try {document.execCommand('BackgroundImageCache', false, true); } catch(e) {} 

function openCatoon(){
	window.open("/go/cartoonguide/",'catoon','width=995,height=675,statusbar=no,scrollbars=no,toolbar=no,resizable=no');;
}
   
function clearText(thefield){
if (thefield.defaultValue==thefield.value)
	thefield.value = "";     
    thefield.style.background = "#fff";
}


//table tr color
//<Script>tableOverChange('table id name')</script>
function tableOverChange(obj) {

    tableObj = document.getElementById(obj);
    tableObj_td = tableObj.getElementsByTagName('tr');
        for(i=0;i<tableObj_td.length;i++) {
        tableObj_td[i].onmouseover = function() {
            this.style.backgroundColor = "#efe6e6";
        }
        tableObj_td[i].onmouseout = function() {
            this.style.backgroundColor = "";
        }
    }
}



// div height vd
function openmenu(){
document.getElementById('topMenu').style.height='191'+"px";
}
function closemenu(){
document.getElementById('topMenu').style.height='50'+"px";
}


function topMenu_flash()	{
    document.write("<object data='/img/flash/nav.swf?xmlURL=/img/flash/' width='962' height='240' type='application/x-shockwave-flash'>");
	document.write("<param name='movie' value='/img/flash/nav.swf?xmlURL=/img/flash/' />");
	document.write("<param name='wmode' value='transparent'>");
	document.write("</object>");
}


function gameStart_flash()	{
// Flash Code
	document.write("<object data='/img/flash/gamestart.swf' width='220' height='215' type='application/x-shockwave-flash'>");
	document.write("<param name='movie' value='/img/flash/gamestart.swf' />");
	document.write("<param name='wmode' value='transparent'>");
	document.write("</object>");
//	document.write("<a href='#'><img src='/img/flash/ex_flash_start.jpg' alt='' /></a>")
}

function bgEtc_flash()	{
// Flash Code
	document.write("<object data='/img/flash/bgtop.swf' width='100%' height='100%' type='application/x-shockwave-flash'>");
	document.write("<param name='movie' value='/img/flash/bgtop.swf' />");
	document.write("<param name='wmode' value='transparent'>");
	document.write("</object>");
}

function event_flash()	{
	document.write("<object data='/img/flash/event.swf?xmlURL=/img/flash/' width='506' height='298' type='application/x-shockwave-flash'>");
	document.write("<param name='movie' value='/img/flash/event.swf?xmlURL=/img/flash/' />");
	document.write("<param name='wmode' value='transparent'>");
	document.write("</object>");

}

function item_flash()	{
// Flash Code
	document.write("<object data='/img/flash/item.swf' width='143' height='166' type='application/x-shockwave-flash'>");
	document.write("<param name='movie' value='/img/flash/item.swf' />");
	document.write("<param name='wmode' value='transparent'>");
	document.write("</object>");
//	document.write("<img src='/img/flash/ex_flash_item.jpg' alt='' />")
}

function map_flash()	{
// Flash Code
	
	// document.write("<object data='/img/main/warLive/sever_status.swf' width='530' height='286' type='application/x-shockwave-flash'>");
	// document.write("<param name='movie' value='/img/main/warLive/sever_status.swf' />");
	// document.write("<param name='wmode' value='transparent'>");
	// document.write("</object>");
	 
//	document.write("<img src='/img/main/map.jpg' alt='' />")
	 
	             
}

function bgFooter_flash()	{
// Flash Code
	document.write("<object data='/img/flash/bgbottom.swf' width='100%' height='100%' type='application/x-shockwave-flash'>");
	document.write("<param name='movie' value='/img/flash/bgbottom.swf' />");
	document.write("<param name='wmode' value='transparent'>");
	document.write("</object>");
}




function maintenance_flash()	{
// Flash Code
	document.write("<object data='/img/flash/maintenance.swf' width='384' height='64' type='application/x-shockwave-flash'>");
	document.write("<param name='movie' value='/img/flash/maintenance.swf' />");
	document.write("<param name='wmode' value='transparent'>");
	document.write("</object>");
}




function chara_flash()	{
// Flash Code
	document.write("<object data='/img/guide/info_chara.swf' width='542' height='1976' type='application/x-shockwave-flash'>");
	document.write("<param name='movie' value='/img/guide/info_chara.swf' />");
	document.write("<param name='wmode' value='transparent'>");
	document.write("</object>");
}



function mainback_flash()	{
// Flash Code
	document.write("<object data='/img/flash/back.swf' width='1272' height='787' type='application/x-shockwave-flash'>");
	document.write("<param name='movie' value='/img/flash/back.swf' />");
	document.write("<param name='wmode' value='transparent'>");
	document.write("</object>");
}

function banner_flash()	{
	// Flash Code
		document.write("<object data='/img/flash/banner.swf' width='179' height='76' type='application/x-shockwave-flash'>");
		document.write("<param name='movie' value='/img/flash/banner.swf' />");
		document.write("<param name='wmode' value='transparent'>");
		document.write("</object>");
	}

function GnxFlashActivate( strFlashUrl , n4Witdh , n4Height , strWmode , strId , strClassName , strFlashvar, strFullScreen ){
	//width,height 여부 & 묶음 (width,height가 없을때는 0 으로 선언)
	if (n4Witdh != 0) {
		objSize_attribute = " width='"+ n4Witdh +"' height='"+ n4Height +"'";
	} else {
		objSize_attribute = "";
	}
	//id 여부 (ID 셀렉렉터가 없을경우 0으로선언)
	if (strId != 0) {
		objId_attribute = " id='" + strId + "'";
		objId_IE_attribute = " id='" + strId + "'";
	} else {
		objId_attribute = "";
		objId_IE_attribute = "";
	}
	//class 여부 (class가 없을때는 0 으로 선언)
	if (strClassName != 0) {
		className_attribute = " class='" + strClassName + "'";
	} else {
		className_attribute = "";
	}
	//wmode 여부 (wmode가 없을때는 0 으로 선언)
	if (strWmode != 0) {
		wmode_param = "<param name='wmode' value='" + strWmode + "' />";
		wmode_attribute = " wmode='" + strWmode + "'";
	} else {
		wmode_param = "";
		wmode_attribute = "";
	}
	//Flashvar 여부 (wmode가 없을때는 0 으로 선언)
	if (strFlashvar != 0) {
		Flashvar_param = "<param name='flashvars' value='" + strFlashvar + "' />";
		Flashvar_attribute = " Flashvars='" + strFlashvar + "'";
	} else {
		Flashvar_param = "";
		Flashvar_attribute = "";
	}
	// allowFullScreen 여부 
	if (strFullScreen != undefined){
		FullScreen_param = "<param name='allowFullScreen' value='" + strFullScreen + "' />";
		FullScreen_attribute = " allowFullScreen='" + strFullScreen + "'";
	}else{
		FullScreen_param = "";
		FullScreen_attribute = "";
	}
	document.writeln( "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,42,34' " + objSize_attribute + objId_IE_attribute + className_attribute + ">" );
	document.writeln( "<param name='movie' value='"+ strFlashUrl +"' />" );
	document.writeln( "<param name='quality' value='high' />" );
	document.writeln( "<param name='menu' value='0' />" );
	document.writeln( "<param name='allowScriptAccess' value='always' />" );
	document.writeln( "<param name='scale' value='noscale' />" );
	document.writeln( "<param name='salign' value='t' />" );
	document.writeln( wmode_param );
	document.writeln( Flashvar_param );
	document.writeln( FullScreen_param );
	document.writeln( "<!-- Hixie method -->" );
	document.writeln( "<!--[if !IE]> <-->" );
	document.writeln( "<object type='application/x-shockwave-flash' allowScriptAccess='always'  data='"+ strFlashUrl +"'" + Flashvar_attribute + objSize_attribute + objId_attribute + wmode_attribute + className_attribute + "></object>" );
	document.writeln( "<!--> <![endif]-->" );
	document.writeln( "</object>" );              
	}
