

function pluginControl(ControlType)
{
	this.ControlType = ControlType;
	this.param = new Array();
	this.addParam = PC_addParam;
	this.SetDefault_FLASH = PC_SetDefault_FLASH;

	if ( this.ControlType == 'FLASH')
	{
		this.SetDefault_FLASH();
	}
}

/*
###############################################################################################################
object Å×µÎ¸® Á¦°Å¸¦ À§ÇÑ jscript
2006-09 ±èÁö¿í Á¦ÀÛ

################################################################################## »ç¿ë¹ý
<!-- »ç¿ëÇÒ js script -->
<SCRIPT LANGUAGE="JavaScript" src='/_library/embedPluginControl.js'></script>

<!-- ÇÃ·¯±×ÀÎÀÌ µé¾î°¥ À§Ä¡¿¡ »ç¿ëÇÒ script -->
<SCRIPT type="text/javascript">
<!--
var object_name = new pluginControl(string pluginType);	// pluginType : ÇÃ·¡½Ã´Â 'FLASH' 

object_name.classid = string classid;	// ÀÓº£µðµåÇÒ ÇÃ·¯±×ÀÎÀÇ classid
codebase = string codebase;	// ÀÓº£µðµåÇÒ ÇÃ·¯±×ÀÎÀÇ codebase

object_name.src = string pluginURL;	// ÀÓº£µðµåÇÒ ÇÃ·¯±×ÀÎÀÇ URL
object_name.width = int width;	// ÀÓº£µðµåÇÒ ÇÃ·¯±×ÀÎÀÇ width
object_name.height = int height;	// ÀÓº£µðµåÇÒ ÇÃ·¯±×ÀÎÀÇ height

object_name.addParam(string ParamName, string ParamValue);	// Àü´ÞÇÒ ÆÄ¶÷°ª

embedPluginControl(object_name);
//-->
</SCRIPT>

################################################################################## ±âº»°ª
pluginTypeÀÌ FLASHÀÎ °æ¿ì classid¿Í codebase´Â ´ÙÀ½°ªÀÌ µðÆúµå·Î Á¦°øµÈ´Ù.
classid = "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase = "http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0"

pluginTypeÀÌ FLASHÀÎ °æ¿ì¿¡´Â ±âº» ParamÀ¸·Î ´ÙÀ½°ú °°Àº °ªµéÀÌ µðÆúµå·Î Àü´ÞµÈ´Ù.
pluginspage = 'http://www.macromedia.com/go/getflashplayer'
type = 'application/x-shockwave-flash'
quality = 'high'

################################################################################## »ç¿ë¿¹
<SCRIPT type="text/javascript" src='/_library/embedPluginControl.js'></script>
<SCRIPT type="text/javascript">
<!--
var worldMap = new pluginControl('FLASH');

worldMap.src = 'http://www.eduwang.com/images/biz_img/world_map_china.swf';
worldMap.width = '251';
worldMap.height = '160';
worldMap.addParam('movie', worldMap.src);
embedPluginControl(worldMap);
//-->
</SCRIPT>

###############################################################################################################
*/


function PC_addParam(name, value)
{
	this.param[this.param.length] = {name:name, value:value};
}

function PC_SetDefault_FLASH()
{
	this.classid = "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000";
	this.codebase = "http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0";
	this.param[0] = {name:'pluginspage', value:'http://www.macromedia.com/go/getflashplayer'};
	this.param[1] = {name:'type', value:'application/x-shockwave-flash'};
	this.param[2] = {name:'quality', value:'high'};
}

function embedPluginControl(o)
{
	var ParamStr = '';
	var ParamInline = '';
	var ControlType = o.ControlType;

	var classid = ( o.classid ) ? "classid='"+o.classid+"'":'';
	var codebase = ( o.codebase ) ? "codebase='"+o.codebase+"'":'';
	var width = ( o.width ) ? "width='"+o.width+"'":'';
	var height = ( o.height ) ? "height='"+o.height+"'":'';
	var src = ( o.src ) ? "src='"+o.src+"'":'';

	if ( ControlType == 'FLASH' )
	{
		for ( i=0; i<o.param.length; i++)
		{
			for (var key in o.param[i] )
			{
				ParamInline += "<param name='"+o.param[i]['name']+"' value='"+o.param[i]['value']+"'>";
				ParamStr += o.param[i]['name']+"='"+o.param[i]['value']+"' ";
			}
		}

		document.write("<object "+classid+" "+codebase+" "+width+" "+height+">");
		document.write(ParamInline);
		document.write("<embed "+src+" "+ParamStr+" "+width+" "+height+"></embed>");
		document.write("</object>");
	}
}

var emScript = document.createElement("script");
emScript.src = "/_library/embedPluginControl.js";
document.getElementsByTagName("head")[0].appendChild(emScript);


function top()
{
	var objFlash = new pluginControl('FLASH');

	objFlash.src = '/eduwang_menu_091209.swf';
	objFlash.width = '1000';
	objFlash.height = '317';
	objFlash.addParam('movie', objFlash.src);
	objFlash.addParam('wmode', 'transparent');
	embedPluginControl(objFlash);
}



function topSub()
{
	var objFlash = new pluginControl('FLASH');

	objFlash.src = '/eduwang_menu_091209.swf';
	objFlash.width = '1000';
	objFlash.height = '88';
	objFlash.addParam('movie', objFlash.src);
	objFlash.addParam('wmode', 'transparent');
	embedPluginControl(objFlash);
}

function pop()
{

	var objFlash = new pluginControl('FLASH');

	objFlash.src = '/edupop.swf';
	objFlash.width = '211';
	objFlash.height = '168';
	objFlash.addParam('movie', objFlash.src);
	objFlash.addParam('wmode', 'transparent');
	embedPluginControl(objFlash);
}

function quick()
{

	var objFlash = new pluginControl('FLASH');

	objFlash.src = '/quicklink.swf';
	objFlash.width = '125';
	objFlash.height = '95';
	objFlash.addParam('movie', objFlash.src);
	objFlash.addParam('wmode', 'transparent');
	embedPluginControl(objFlash);
}

function quick_main()
{

	var objFlash = new pluginControl('FLASH');

	objFlash.src = '/quicklink_main.swf';
	objFlash.width = '125';
	objFlash.height = '140';
	objFlash.addParam('movie', objFlash.src);
	objFlash.addParam('wmode', 'transparent');
	embedPluginControl(objFlash);
}

function quick_brand()
{

	var objFlash = new pluginControl('FLASH');

	//objFlash.src = 'http://image.eduwang.com/images/img_quicklink/quick_brand_081209.swf';
	objFlash.src = '/quick_brand_081212.swf';
	objFlash.width = '115';
	objFlash.height = '200';
	objFlash.addParam('movie', objFlash.src);
	objFlash.addParam('wmode', 'transparent');
	embedPluginControl(objFlash);
}

function child()
{

	var objFlash = new pluginControl('FLASH');

	objFlash.src = '/1.swf';
	objFlash.width = '240';
	objFlash.height = '425';
	objFlash.addParam('movie', objFlash.src);
	objFlash.addParam('wmode', 'transparent');
	embedPluginControl(objFlash);
}

function main_child()
{

	num=parseInt(Math.random()*4);
	num = num + 1;
	
	var objFlash = new pluginControl('FLASH');

	objFlash.src = '/1_(' + num + ')_test.swf';
	objFlash.width = '350';
	objFlash.height = '425';
	objFlash.addParam('movie', objFlash.src);
	objFlash.addParam('wmode', 'transparent');
	embedPluginControl(objFlash);
}

function main_child_test()
{

	num=parseInt(Math.random()*4);
	num = num + 1;
	
	var objFlash = new pluginControl('FLASH');
    objFlash.src = '/2_(' + num + ')_test.swf';


	
	objFlash.width = '350';
	objFlash.height = '425';
	objFlash.addParam('movie', objFlash.src);
	objFlash.addParam('wmode', 'transparent');
	embedPluginControl(objFlash);
}
function worldMap()
{

	var objFlash = new pluginControl('FLASH');

	objFlash.src = 'http://image.eduwang.com/images/img_business/world_map.swf';
	objFlash.width = '465';
	objFlash.height = '275';
	objFlash.addParam('movie', objFlash.src);
	embedPluginControl(objFlash);
}

function worldMap_germany()
{

	var objFlash = new pluginControl('FLASH');

	objFlash.src = 'http://image.eduwang.com/images/img_business/world_map_germany.swf';
	objFlash.width = '251';
	objFlash.height = '160';
	objFlash.addParam('movie', objFlash.src);
	embedPluginControl(objFlash);
}

function worldMap_china()
{

	var objFlash = new pluginControl('FLASH');

	objFlash.src = 'http://image.eduwang.com/images/img_business/world_map_china.swf';
	objFlash.width = '251';
	objFlash.height = '160';
	objFlash.addParam('movie', objFlash.src);
	embedPluginControl(objFlash);
}

function worldMap_malaysia()
{

	var objFlash = new pluginControl('FLASH');

	objFlash.src = 'http://image.eduwang.com/images/img_business/world_map_manalsia.swf';
	objFlash.width = '251';
	objFlash.height = '160';
	objFlash.addParam('movie', objFlash.src);
	embedPluginControl(objFlash);
}

function worldMap_canada()
{

	var objFlash = new pluginControl('FLASH');

	objFlash.src = 'http://image.eduwang.com/images/img_business/world_map_canada.swf';
	objFlash.width = '251';
	objFlash.height = '160';
	objFlash.addParam('movie', objFlash.src);
	embedPluginControl(objFlash);
}

function worldMap_usa()
{

	var objFlash = new pluginControl('FLASH');

	objFlash.src = 'http://image.eduwang.com/images/img_business/world_map_usa.swf';
	objFlash.width = '251';
	objFlash.height = '160';
	objFlash.addParam('movie', objFlash.src);
	embedPluginControl(objFlash);
}

function brand_award()
{
	var objFlash = new pluginControl('FLASH');

	objFlash.src = 'http://www.eduwang.com/swf/brand_bn_081127.swf';
	objFlash.width = '200';
	objFlash.height = '60';
	objFlash.addParam('movie', objFlash.src);
	objFlash.addParam('wmode', 'transparent');
	embedPluginControl(objFlash);
}

function book_center()
{
	var objFlash = new pluginControl('FLASH');

	objFlash.src = 'http://www.eduwang.com/book_center.swf';
	objFlash.width = '600';
	objFlash.height = '360';
	objFlash.addParam('movie', objFlash.src);
	objFlash.addParam('wmode', 'transparent');
	embedPluginControl(objFlash);
}

function eduwang_come()
{
	var objFlash = new pluginControl('FLASH');

	objFlash.src = 'http://www.eduwang.com/eduwang_come.swf';
	objFlash.width = '600';
	objFlash.height = '380';
	objFlash.addParam('movie', objFlash.src);
	objFlash.addParam('wmode', 'transparent');
	embedPluginControl(objFlash);
}
