// JScript source code

//		ÇÃ·¡½¬ ÄÚµå 
function MakeFlashString(source,id,width,height,otherParam,otherEmbed){ 
 return "<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,22,0\" width=" + width + " height=" + height + " id=" + id + "><param name=movie value=" + source + " /><param name=wmode VALUE=transparent ><param name=menu value=false /><param name=quality value=high />" + otherParam + "<embed src=" + source + " menu=false quality=high " + otherEmbed + " type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?p1_prod_version=shockwaveflash\" width=" + width + " height=" + height + " name=" + id + "></embed></object>";
}

//¡À 
function raon(url,width,height){
 document.write("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' ");
 document.write("  codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash../swflash.cab#version=8,0,0,0' ");
 document.write("  width='"+width+"' height='"+height+"' align='middle'>");
 document.write(" <param name='allowScriptAccess' value='always' /> ");
 document.write(" <param name='movie'    value='"+url+"' /> ");
 document.write(" <param name='quality'   value='high' /> ");
 document.write(" <param name='wmode'    value='transparent'> ");
 document.write(" <embed src='"+url+"' quality='high' width='"+width+"' height='"+height+"' align='middle' ");
 document.write("  allowScriptAccess='sameDomain' type='application/x-shockwave-flash' ");
 document.write("  pluginspage='http://www.macromedia.com/go/getflashplayer' />");
 document.write("</object>");
}
/////////////////////////////////////////////////////////////////////////////////////



function MakeObjectString(classid, codebase, name, id, width,height, param){
 return "<object classid="+classid+" codebase="+codebase+" name="+name+" width="+width+" height="+height+" id="+id+"><param name=wmode value="+wmode+" />"+param+"</object>";
}

// innerHTML Type
function SetInnerHTML(target, code){ 
 target.innerHTML = code; 
}

// Direct Write Type
function DocumentWrite(src){
 document.write(src);
}

//		¾ÖÇÃ¸´ ÄÚµå 
function get_applet(apt_codebase, apt_code, apt_arch, apt_width, apt_height, apt_param)
{
	var scnt = cnt_string(apt_param,",") ;
	var split_str = apt_param.split(",") ;

	document.writeln("<applet codebase='"+apt_codebase+"' code='"+apt_code+"' archive='"+apt_arch+"' width='"+apt_width+"' height='"+apt_height+"' name='IpixViewer' viewastext id=Applet1>") ;
	for (i=0;i<=scnt;i++)
	{
//		alert("<param name='"+split_str[i].split("@")[0]+"' value='"+split_str[i].split("@")[1]+"'>") ;
		document.writeln("<param name='"+split_str[i].split("@")[0]+"' value='"+split_str[i].split("@")[1]+"'>") ;
	}
	document.writeln("</applet>") ;
}


//	¹®ÀÚ¿­³»ÀÇ ÄÄ¸¶ ¼ö¸¦ Ã¼Å©ÇÏ´Â ÇÔ¼ö
function cnt_string(ostring, chkstr)
{
	var lngPos = 1 ;
	var lngCount = 0 ;

	do
	{
		lngPos = ostring.indexOf(chkstr) ;

		if (lngPos>0)
		{
         lngCount = lngCount + 1 ;
         ostring = ostring.substring(lngPos+chkstr.length, ostring.length) ;
		}
	}
	while (lngPos>0)

	return lngCount ;
}

function inserttag(tag_str)
{
	document.write(tag_str) ;
}