function writeObject(obj_file,width,height,wmode)
{
    var obj_src = "";
    obj_src += "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0\" width=\""+width+"\" height=\""+height+"\">\n";
    obj_src += "  <param name=\"movie\" value=\""+obj_file+"\">\n";
    if(wmode!="")
    {
        obj_src += "  <param name=\"wmode\" value=\""+wmode+"\">\n";
    }
    obj_src += "  <param name=allowScriptAccess value=sameDomain>\n";
	obj_src += "  <param name=\"menu\" value=\"false\">\n";
    obj_src += "  <param name=\"quality\" value=\"high\">\n";
    obj_src += "  <embed src=\""+obj_file+"\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\""+width+"\" height=\""+height+"\"></embed>\n";
    obj_src += "</object>\n";
    
    document.write(obj_src);
}

// Flash Å×µÎ¸® ¾Èº¸ÀÌ°Ô ÇÏ±â
function FlashLoad(url,w,h,bg,t,code,id){
document.write("\
<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' width="+w+" height="+h+" id="+id+">\
<param name='movie' value="+url+" />\
<param name='wmode' value="+t+" />\
<param name='bgcolor' value="+bg+" />\
<param name='allowScriptAccess' value='sameDomain' />\
<param name='quality' value='high' />\
<param name='menu' value='false' />\
<param name='flashVars' value='&"+code+"' />\
<embed src="+url+" width="+w+" height="+h+" name="+id+" bgcolor="+bg+" allowScriptAccess='sameDomain' quality='high' wmode='"+t+"' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />\
</object>\
");
}

// È­¸éÁß¾Ó¿¡ »õÃ¢¶ç¿ì±â ÇÔ¼ö
function new_window(url, name, option, width, height, left, top)
{
	var win_width;
	var win_height;

	// »õÃ¢À» À§ÇÑ ÁÂÇ¥°ªÀ» ±¸ÇÑ´Ù.
	if(screen.width < width)
	{
		win_width = 0;
		width = screen.width;
	}
	else
	{
		win_width = (screen.width - width) / 2;
	}

	if(screen.height < height)
	{
		win_height = 0;
		height = screen.height;
	}
	else
	{
		win_height = (screen.height - height) / 2;
	}

	// ¿É¼ÇÃ³¸®
	if(!option)
	{
		option = "resizable=no,scrollbars=yes,menubar=no,status=no";
	}

	if(left)
		win_width = left;

	if(top)
		win_height = top;

	// »õÃ¢À» ¶ç¿î´Ù.
	window.open(url,name,option+',width='+width+',height='+height+',left='+win_width+',top='+win_height);
}


function fn_ShowEmbedObject(OBJ_ELEMENT_ID) {
    //alert(OBJ_ELEMENT_ID.text);
    document.write(OBJ_ELEMENT_ID.text);
    OBJ_ELEMENT_ID.id = "";
}


// Product View
function proView(no)
{
	for(var i=1 ; i<=1 ; i++){
		if(no==i)
		{ 
			document.all['productview'+i].style.visibility = 'visible';document.all['productview'+i].style.display = '';
		} else { 
			document.all['productview'+i].style.visibility = 'hidden';document.all['productview'+i].style.display = 'none';
		}
    }
}
