// 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,29,0\" width="+w+" height="+h+" id="+d+"><param name=wmode value="+t+" /><param name=movie value="+s+" /><param name=quality value=high /><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>";
	return "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0\" width="+w+" height="+h+" id="+d+"><param name=wmode value='transparent' /><param name=movie value="+s+" /><param name=quality value=high /><embed src="+s+" quality=high wmode='transparent' 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;
}

function show(url,_width,_height){
 if(window.clientInformation.userAgent.indexOf("SV1")>0){
  newWin=window.open(url,"","toolbar=no, location=no, directories=no, status=no, menubar=no, scrollvars=no, resizable=no, width=1024, height=768 , top=0, left=0");
  newWin.moveTo(0,0);
  left1=(screen.availWidth-1024-5)/2;
  top1=(screen.availHeight-768-10)/2;
  newWin.resizeTo(1024,812);
  newWin.moveTo(left1.top1);
 }else{
  if(screen.width==_width&&screen.height==_height){
   window.open(url,"","fullscreen");
  }else{
   left1=(screen.availWidth-1024-5)/2;
   top1=(screen.availHeight-768-10)/2;
   window.open(url,"","toolbar=no, location=no, directories=no, status=no, menubar=no, scrollvars=no, resizable=no, width=1024, height=768, top=0, left=0");
  }
 }
}


/***** ¹Ìµð¾î ÇÃ·¹ÀÌ¾î ½ºÅ©¸³Æ® *****************/
function writePlayer(mmsUrl, w, h) {
	try {
		//CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6´Â ¹Ìµð¾î ÇÃ·¹ÀÌ¾î 7.0 ÀÌ»óÀ» Áö¿øÇÑ´Ù.(url »ç¿ë)
		//CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95´Â ¹Ìµð¾î ÇÃ·¹ÀÌ¾î 6.4À» Áö¿øÇÑ´Ù. (filename »ç¿ë)
		document.write('<OBJECT ID="MediaPlayer1" style="WIDTH: ' + w + ' ; HEIGHT: ' + h + '" CLASSID=CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6 standby="Loading Microsoft Windows Media Player components..." TYPE="application/x-oleobject" VIEWASTEXT">');
		document.write('<param name="AUTOSTART" value="true">');
		document.write('<PARAM NAME="ShowCaptioning" VALUE="false">');
		document.write('<PARAM NAME="ShowControls" VALUE="false">');
		document.write('<PARAM NAME="ShowAudioControls" VALUE="ture">');
		document.write('<PARAM NAME="ShowDisplay" VALUE="false">');
		document.write('<PARAM NAME="ShowPositionControls" VALUE="false">');
		document.write('<PARAM NAME="ShowStatusBar" VALUE="false">');
		document.write('<PARAM NAME="ShowTracker" VALUE="true">');
	    document.write('<param name="url" value="' + mmsUrl+ '">');
	 	document.write('<param name="PlayCount" value="1">');	
	 	document.write('<param name="enableContextMenu" value="false">');			
		document.write('</OBJECT>');
	} catch(E){}
}

function inchun_map() {
window.open('/popup.html','newname','resizable=no,width=439,height=520,scrollbars=no, top=0, left=0');
}