// Flash Activating Script

// s: source url
// d: flash id
// w: source width
// h: source height
// t: wmode ("" for none, transparent, opaque ...)
function mf(s,d,w,h,t){
        return "<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\" id="+d+" width="+w+" height="+h+" wmode="+t+" ><param name=movie value="+s+" /><param name=quality value=high /><param name=wmode value="+t+" ><embed src="+s+" quality=high wmode="+t+" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?p1_prod_version=shockwaveflash\" width="+w+" height="+h+"></embed></object>";
}

// write document contents
function documentwrite(src){
        document.write(src);
}

// assign code innerHTML
function setcode(target, code){
        target.innerHTML = code;
}

//¸Þ´º ÇöÀçÀ§Ä¡Ç¥½Ã
IEx = navigator.appName.indexOf("Microsoft") != -1;

function trace(n)
{
    flashObj = IEx ? Fmovie : document.Fmovie;
    flashObj.TGotoFrame("_root",n)

}


/* 2008 ¸®´º¾ó Ãß°¡*/


/* param°ªÀ¸·Î xmlURLº¯¼öÇü½ÄÀ¸·Î xml°æ·Î ¼³Á¤
	mNum°ªÀ¸·Î ÇØ´ç¸Þ´ºÈ°¼ºÈ­
    ex)¸ÞÀÎÀÏ°æ¿ì mNum ¼³Á¤ÇÒÇÊ¿ä¾øÀ½					*/
function gnbNavi(swfPath, xmlPath) {
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="988" height="48" id="GNB" align="middle">');
	document.write('<param name="allowScriptAccess" value="sameDomain" />');
	document.write('<param name="allowFullScreen" value="false" />');
	document.write('<param name="movie" value="'+swfPath+'?xmlURL='+xmlPath+'" />');
	document.write('<param name="quality" value="high" />');
	document.write('<param name="wmode" value="transparent" />');
	document.write('<param name="bgcolor" value="#ffffff" />');
	document.write('<embed src="'+swfPath+'" quality="high" bgcolor="#222222" width="988" height="48" name="GNB" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.write('</object>');
}
