/* 1. ÇÃ·¹½¬¿¡ ´ëÇÑ ¿¢Æ¼º£ÀÌ¼Ç *****************************************
** id			: objectÀÇ ¾ÆÀÌµð
** iWith		: object ³ÐÀÌ
** iHeight		: object ³ôÀÌ
** strFileUrl	: ÇÃ·¹½¬ÀÇ À§Ä¡¿Í ÆÄÀÏ¸í (/common/log.swf)
** bMenu		: ¸Þ´ºÀÇ Ç¥Çö ¿©ºÎ (true, false)
** bPlay		: ÇÃ·¹ÀÌ ¿©ºÎ (true, false)
***********************************************************************/
function activxFlash(bId, iWith, iHeight, strFileUrl,bgcolor) {
	var str = "";
		//activxFlash("subvisual_kor",900,189,"/inc/flash/main01_0828.swf")
	if(bId != ""){
	str += "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0\" id=\""+bId+"\" width=\""+iWith+"\" height=\""+iHeight+"\">";
	}else{
	str += "<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=\""+iWith+"\" height=\""+iHeight+"\">";
	}
	str += "<param name=\"wmode\" value=\"transparent\">";
	str += "<param name=\"allowScriptAccess\" value=\"sameDomain\">";
	str += "<param name=\"movie\" value=\""+strFileUrl+"\">";
	str += "<param name=\"quality\" value=\"high\">";
	
	if(bgcolor != ""){
		str += "<param name=\"bgcolor\" value=\""+bgcolor+"\">";
	}
	str += "<embed src=\""+strFileUrl+"\" quality=\"high\" bgcolor=\"#CFCFCF\" name=\""+bId+"\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\""+iWith+"\" height=\""+iHeight+"\"></embed>";
	str += "</object>";
	document.write(str);
}
function activxFlash2(id, iWith, iHeight, strFileUrl, bId,fmode,bgcolor) {
	var str = "";	

	str += "<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=\""+iWith+"\" height=\""+iHeight+"\">";
	str += "<param name=\"flashvars\" value=\""+fmode+"\">";
	str += "<param name=\"wmode\" value=\"transparent\">";
	str += "<param name=\"allowScriptAccess\" value=\"sameDomain\">";
	str += "<param name=\"movie\" value=\""+strFileUrl+"\">";
	str += "<param name=\"quality\" value=\"high\">";
	if (bgcolor != "")
	{
		str += "<param name=\"bgcolor\" value=\""+bgcolor+"\">";
	}
	str += "<embed src=\""+strFileUrl+"\" quality=\"high\" bgcolor=\"#ffffff\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\""+iWith+"\" height=\""+iHeight+"\"></embed>";
	str += "</object>";
	document.write(str);
}
function activxFlash3(iWith, iHeight, strFileUrl,strFileUrl2,fmode,bgcolor) {
	var str = "";	
	
	str += "<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=\""+iWith+"\" height=\""+iHeight+"\">";
	str += "<param name=\"wmode\" value=\"transparent\">";
	str += "<param name=\"flashvars\" value=\""+fmode+"\">";
	str += "<param name=\"allowScriptAccess\" value=\"sameDomain\">";
	str += "<param name=\"movie\" value=\""+strFileUrl+"\">";
	str += "<param name=\"quality\" value=\"high\">";
	if (bgcolor != ""){
		str += "<param name=\"bgcolor\" value=\""+bgcolor+"\">";
	}
	str += "<embed src=\""+strFileUrl2+"\" quality=\"high\" bgcolor=\"#ffffff\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\""+iWith+"\" height=\""+iHeight+"\"></embed>";
	str += "</object>";
	//alert(str);
	document.write(str);
}
/************************************************************************
** »ó´Ü ÇÃ·¡½Ã Àû¿ë ½ºÅ©¸³Æ®	
*/
function activxTopFlash(id, iWith, iHeight, strFileUrl, bId,fmode,bgcolor) {
	var str = "";	
	
	str += "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0\" name=\""+bId+"\" width=\""+iWith+"\" height=\""+iHeight+"\">";
	str += "<param name=\"flashvars\" value=\""+fmode+"\">";
	if (id != "over"){
	str += "<param name=\"wmode\" value=\"transparent\">";
	}
	str += "<param name=\"allowScriptAccess\" value=\"sameDomain\">";
	str += "<param name=\"movie\" value=\""+strFileUrl+"\">";
	str += "<param name=\"quality\" value=\"high\">";
	str += "<param name=\"bgcolor\" value=\""+bgcolor+"\">";
	str += "<embed src=\""+strFileUrl+"?"+fmode+"\" quality=\"high\" bgcolor=\"#ffffff\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\""+iWith+"\" height=\""+iHeight+"\"></embed>";
	str += "</object>";
	document.write(str);
}


/* 2. ¹Ìµð¾îÇÃ·¹ÀÌ¾î ´ëÇÑ ¿¢Æ¼º£ÀÌ¼Ç ***********************************
** id			: objectÀÇ ¾ÆÀÌµð
** iWith		: object ³ÐÀÌ
** iHeight		: object ³ôÀÌ
** strFileUrl	: ¹Ìµð¾îÀÇ À§Ä¡¿Í ÆÄÀÏ¸í (/common/log.wma)
***********************************************************************/
function activxWmp(id, iWith, iHeight, strFileUrl) {
	var str = ""
	var sID = "";
	
	if (id.length > 0) {
		sID = " id=\""+id+"\" name=\""+id+"\"";
	}
	if(id != ""){
		str += "<object ID=\""+id+"\" width=\""+iWith+"\" height=\""+iHeight+"\" classid=\"CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6\" type=\"application/x-oleobject\" VIEWASTEXT>";
	}else{
		str += "<object width=\""+iWith+"\" height=\""+iHeight+"\" classid=\"CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6\" type=\"application/x-oleobject\" VIEWASTEXT>";
	}	
		str += "<param name=\"URL\" value=\""+strFileUrl+"\">";
		str += "<param name=\"rate\" value=\"1\">";
		str += "<param name=\"balance\" value=\"0\">";
		str += "<param name=\"currentPosition\" value=\"0\">";
		str += "<param name=\"defaultFrame\" value=\"\">";
		str += "<param name=\"playCount\" value=\"1\">";
		str += "<param name=\"autoStart\" value=\"-1\">";
		str += "<param name=\"currentMarker\" value=\"0\">";
		str += "<param name=\"invokeURLs\" value=\"-1\">";
		str += "<param name=\"baseURL\" value=\"\">";
		str += "<param name=\"volume\" value=\"100\">";
		str += "<param name=\"mute\" value=\"0\">";
		str += "<param name=\"uiMode\" value=\"full\">";
		str += "<param name=\"stretchToFit\" value=\"-1\">";
		str += "<param name=\"windowlessVideo\" value=\"0\">";
		str += "<param name=\"enabled\" value=\"-1\">";
		str += "<param name=\"enableContextMenu\" value=\"-1\">";
		str += "<param name=\"fullScreen\" value=\"0\">";
		str += "<param name=\"SAMIStyle\" value=\"\">";
		str += "<param name=\"SAMILang\" value=\"\">";
		str += "<param name=\"SAMIFilename\" value=\"\">";
		str += "<param name=\"captioningID\" value=\"\">";
		str += "<param name=\"enableErrorDialogs\" value=\"0\">";
		str += "<embed width=\""+iWith+"\" height=\""+iHeight+"\" src=\""+strFileUrl+"\"";
		str += " type=\"application/x-mplayer2\" pluginspage=\"http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/\"></embed>";
	str += "</object>";
	
	document.write(str);
}

/*ActiveX Àû¿ë ÇØ ÁÖ´Â°÷ IE HTML rewrite */
function IE_HtmlRewrite(objParent) {
	if (window.ActiveXObject && objParent) {
		objParent.innerHTML = objParent.innerHTML;
	}
}