function obj_channel_netmarble() {
    document.write("<object ID='NMStarter' WIDTH='0' HEIGHT='0' CLASSID='CLSID:00001026-A15C-11D4-97A4-0050BF0FBE67'codebase='http://download.netmarble.net/web/nmstarter/NMStarter26.cab#version=1,0,2,6' VIEWASTEXT></object>");
}
function obj_channel_daum() {
    document.write("<object ID='NMStarter' WIDTH='0' HEIGHT='0' CLASSID='CLSID:00001025-B831-448b-9ABD-3D3DF187F359' codebase='http://download.netmarble.net/web/nmstarter/Daum/DaumGameStarter25.cab#version=1,0,2,5' VIEWASTEXT></object>");
}
function obj_channel_hangame() {
    document.write("<object ID='NMStarter' WIDTH='0' HEIGHT='0' CLASSID='CLSID:11111004-A15C-11D4-97A4-0050BF0FBE67' codebase='http://download.netmarble.net/web/nmstarter/Hangame/HangameDHOStarter4.cab#version=1,0,0,4' VIEWASTEXT></object>");
}


function obj_ftp(KeyCode, httpLink){
	var str;
    str = "<OBJECT id='NeffyClient' classid='CLSID:0CBF7EDC-17EC-442C-8AE9-5E804707B6CA'CODEBASE='http://dist.cdnetworks.co.kr/cdndist/neffy/Neffy.cab#VERSION=1,1,0,8'width=600 height=447 VIEWASTEXT>\
                <PARAM NAME='KeyCode'	VALUE="+ KeyCode +" />\
                <PARAM NAME='Protocol'  VALUE='HTTP' />\
                <PARAM NAME='HttpLink'  VALUE='"+ httpLink + "' />\
                <PARAM NAME='HttpSkin'  VALUE='http://c2.img.netmarble.kr/web/4G/cp_site/dho/openbeta/images/down/gov7.zip' />\
                <PARAM NAME='SkinPath'  VALUE='CJINTERNET/GOV' />\
                <PARAM NAME='SkinVersion' VALUE=7 />\
                <PARAM NAME='MaxSpeed'  VALUE=0 />\
                <PARAM NAME='AutoStart' VALUE=false />\
                <PARAM NAME='AutoClose' VALUE=false />\
    </OBJECT> ";
    document.write(str); 
}

function obj_movie(){
		document.writeln("<OBJECT classid='CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95' id='MediaPlayer1' name='MediaPlayer1' standby='Loading Music Player...' type='application/x-oleobject'  width='387' height='300' VIEWASTEXT>");
		document.writeln("<PARAM NAME='ShowControls' VALUE='1'>");
		document.writeln("<PARAM NAME='ShowGotoBar' VALUE='0'>");
		document.writeln("<PARAM NAME='ShowStatusBar' VALUE='1'>");
		document.writeln("<PARAM NAME='ControlType' VALUE='2'>");
		document.writeln("<PARAM NAME='AutoStart' value='1'>");
		document.writeln("<PARAM NAME='ShowDisplay' value='0'>");
		document.writeln("<PARAM NAME='DisplayBackColor' VALUE='16777215'>");
		document.writeln("<PARAM NAME='DisplayForeColor' VALUE='0'>");
		document.writeln("<PARAM NAME='Enabled' VALUE='1'>");
		document.writeln("<PARAM NAME='EnableContextMenu' Value='1'>");
		document.writeln("<PARAM NAME='Volume' value='0'>");
		document.writeln("<PARAM NAME='Loop' value='-1'>");
		document.writeln("<PARAM NAME='BufferingTime' value='8'>");
		document.writeln("<Embed type='application/x-mplayer2' pluginspage='http://www.microsoft.com/windows/mediaplayer/download/default.asp' FileName='' id='MediaPlayer1' Name='MediaPlayer1' width='387' height='300' loop=true SHOWSTATUSBAR='-1' SHOWCONTROLS='0' SHOWGOTOBAR='0' SHOWDISPLAY='-1' INVOKEURLS='-1' AUTOSTART='1' CLICKTOPLAY='0' DisplayBackColor='16777215' DisplayForeColor='0'>");
		document.writeln("</Embed>");
		document.write("</OBJECT>");
}

function obj_movie_dho(width, height) {
		document.writeln("<OBJECT classid='CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95' id='MediaPlayer1' name='MediaPlayer1' standby='Loading Movie Player...' type='application/x-oleobject'  width='" + width + "' height='" + height + "' VIEWASTEXT>");
		document.writeln("<PARAM NAME='ShowControls' VALUE='0'>");
		document.writeln("<PARAM NAME='ShowGotoBar' VALUE='0'>");
		document.writeln("<PARAM NAME='ShowStatusBar' VALUE='0'>");
		document.writeln("<PARAM NAME='ControlType' VALUE='2'>");
		document.writeln("<PARAM NAME='AutoStart' value='1'>");
		document.writeln("<PARAM NAME='ShowDisplay' value='0'>");
		document.writeln("<PARAM NAME='DisplayBackColor' VALUE='16777215'>");
		document.writeln("<PARAM NAME='DisplayForeColor' VALUE='0'>");
		document.writeln("<PARAM NAME='Enabled' VALUE='1'>");
		document.writeln("<PARAM NAME='EnableContextMenu' Value='0'>");
		document.writeln("<PARAM NAME='Volume' value='0'>");
		document.writeln("<PARAM NAME='Loop' value='-1'>");
		
		document.writeln("<Embed type='application/x-mplayer2' pluginspage='http://www.microsoft.com/windows/mediaplayer/download/default.asp' FileName='' id='MediaPlayer1' Name='MediaPlayer1' width='387' height='300' loop=true SHOWSTATUSBAR='-1' SHOWCONTROLS='0' SHOWGOTOBAR='0' SHOWDISPLAY='-1' INVOKEURLS='-1' AUTOSTART='1' CLICKTOPLAY='0' DisplayBackColor='16777215' DisplayForeColor='0'>");
		document.writeln("</Embed>");
		document.write("</OBJECT>");
}

function obj_music(fileName){
		document.writeln("<OBJECT classid='CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95' id='Player' name='Player' standby='Loading Music Player...' type='application/x-oleobject' height='0' width='0' VIEWASTEXT>");
		document.writeln("<PARAM NAME='FileName' VALUE='"+fileName+"'>");
		document.writeln("<PARAM NAME='ShowControls' VALUE='0'>");
		document.writeln("<PARAM NAME='ShowGotoBar' VALUE='1'>");
		document.writeln("<PARAM NAME='ShowStatusBar' VALUE='-1'>");
		document.writeln("<PARAM NAME='ControlType' VALUE='2'>");
		document.writeln("<PARAM NAME='AutoStart' value='1'>");
		document.writeln("<PARAM NAME='ShowDisplay' value='-1'>");
		document.writeln("<PARAM NAME='DisplayBackColor' VALUE='16777215'>");
		document.writeln("<PARAM NAME='DisplayForeColor' VALUE='0'>");
		document.writeln("<PARAM NAME='Enabled' VALUE='ture'>");
		document.writeln("<PARAM NAME='EnableContextMenu' Value='true'>");
		document.writeln("<PARAM NAME='Volume' value='0'>");
		//document.writeln("<PARAM NAME='Loop' value='-1'>");
		document.writeln("<PARAM NAME='BufferingTime' value='8'>");
		document.writeln("<Embed type='application/x-mplayer2' pluginspage='http://www.microsoft.com/windows/mediaplayer/download/default.asp' FileName='"+fileName+"' Name='Player' width='0' height='0' loop=true SHOWSTATUSBAR='-1' SHOWCONTROLS='0' SHOWGOTOBAR='0' SHOWDISPLAY='-1' INVOKEURLS='-1' AUTOSTART='1' CLICKTOPLAY='0' DisplayBackColor='16777215' DisplayForeColor='0'>");
		document.writeln("</Embed>");
		document.write("</OBJECT>");
}

function obj_music_main(){
	document.writeln("<OBJECT ID='WMPlay' width='0' height='0' classid='CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95' codebase='http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701' standby='Loading Microsoft Windows Media Player components...' type='application/x-oleobject' VIEWASTEXT>");
	document.writeln("<PARAM NAME='FileName' VALUE=''>");
	document.writeln("<PARAM NAME='AnimationAtStart'         value='0'>");
	document.writeln("<PARAM name='CurrentPosition'          value='0'>");
	document.writeln("<PARAM name='displaysize'              value='4'>");
	document.writeln("<param name='DisplayBackColor'         value='1'>");
	document.writeln("<PARAM name='EnableFullScreenControls' value='0'>");
	document.writeln("<PARAM name='ShowControls'             value='0'>");
	document.writeln("<PARAM name='ShowTracker'              value='1'>");
	document.writeln("<PARAM name='ShowAudioControls'        value='0'>");
	document.writeln("<PARAM name='ShowStatusBar'            value='1'>");
	document.writeln("<PARAM name='ShowDisplay'              value='0'>");
	document.writeln("<PARAM name='ShowTracker'              value='1'>");
	document.writeln("<PARAM name='ShowCaptioning'           value='0'>");
	document.writeln("<PARAM name='ShowPositionControls'     value='0'>");
	document.writeln("<PARAM name='SetCurrentEntry'          value='1'>");
	document.writeln("<PARAM name='ClickToPlay'              value='1'>");
	document.writeln("<PARAM name='AutoSize'                 value='0'>");
	document.writeln("<PARAM NAME='TransparentAtStart'       value='-1'>");
	document.writeln("<PARAM name='AutoStart'                value='1'>");
	document.writeln("<PARAM name='AutoResize'               value='1'>");
	document.writeln("<PARAM name='EnableContextMenu'        value='0'>");
	document.writeln("<PARAM name='volume'                   value='0'>");
	document.writeln("<embed type='application/x-mplayer2' 	pluginspage='http://www.microsoft.com/isapi/redir.dll?prd=windows&sbp=mediaplayer&ar=media&sba=plugin' displaysize='0' name='WMPlay'></embed>");
	document.write("</OBJECT>");
}

function obj_pop_movie_beginner() {

	document.writeln("<OBJECT classid='CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95' id='MediaPlayer1' name='MediaPlayer1' standby='Loading Music Player...' type='application/x-oleobject'  width='640' height='480' VIEWASTEXT>");
	document.writeln("<PARAM NAME='ShowControls' VALUE='1'>");
	document.writeln("<PARAM NAME='ShowGotoBar' VALUE='0'>");
	document.writeln("<PARAM NAME='ShowStatusBar' VALUE='1'>");
	document.writeln("<PARAM NAME='ControlType' VALUE='2'>");
	document.writeln("<PARAM NAME='AutoStart' value='1'>");
	document.writeln("<PARAM NAME='ShowDisplay' value='0'>");
	document.writeln("<PARAM NAME='DisplayBackColor' VALUE='16777215'>");
	document.writeln("<PARAM NAME='DisplayForeColor' VALUE='0'>");
	document.writeln("<PARAM NAME='Enabled' VALUE='1'>");
	document.writeln("<PARAM NAME='EnableContextMenu' Value='1'>");
	document.writeln("<PARAM NAME='Volume' value='0'>");
	document.writeln("<PARAM NAME='Loop' value='-1'>");
	document.writeln("<PARAM NAME='BufferingTime' value='8'>");
	document.writeln("<Embed type='application/x-mplayer2' pluginspage='http://www.microsoft.com/windows/mediaplayer/download/default.asp' FileName='' id='MediaPlayer1' Name='MediaPlayer1' width='570' height='445' loop=true SHOWSTATUSBAR='-1' SHOWCONTROLS='0' SHOWGOTOBAR='0' SHOWDISPLAY='-1' INVOKEURLS='-1' AUTOSTART='1' CLICKTOPLAY='0' DisplayBackColor='16777215' DisplayForeColor='0'>");
	document.writeln("</Embed>");
	document.write("</OBJECT>");

}

function obj_Total_Bbs_image() {
	document.writeln("<OBJECT classid='clsid:CD20529B-6046-4321-B65F-EB8A78A9D49F' codebase='http://download.netmarble.net/NMBrowser/NetmarbleBrowser.cab#version=1,0,0,6' width=0 height=0 id=CamEditor VIEWASTEXT>");
	document.writeln("<PARAM NAME='ThumbWidth' VALUE='200'>	");
	document.writeln("<PARAM NAME='ThumbHeight' VALUE='200'> ");
	document.writeln("</OBJECT>");
}
function obj_write(str) {
	document.write(str);
}

function obj_menu(pbgType)
{
	
	document.write("<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\" width=\"651\" height=\"151\" id=\"menu\" align=\"middle\">\
				<param name=\"movie\" value=\"" + IMAGE_BASE_URL + "/flash/menu_0601.swf?bgType=" + pbgType + "&sub1=&sub2=\" />\
				<param name=\"quality\" value=\"high\" />\
				<param name=\"wmode\" value=\"transparent\">\
				<embed src=\"" + IMAGE_BASE_URL + "/flash/menu_0601.swf?bgType=" + pbgType + "&sub1=&sub2=\" quality=\"high\" bgcolor=\"#ffffff\" width=\"651\" height=\"151\" name=\"menu\" align=\"middle\"  type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" />\
				</object>");
	
}

function obj_left(pskinname)
{
	document.write("<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=\"167\" height=\"328\" ID=\"Object1\" >\
				<param name=\"movie\" value=\"" + IMAGE_BASE_URL + "/main_skin/" + pskinname + "/left.swf\">\
				<param name=\"quality\" value=\"high\">\
				<param name=\"wmode\" value=\"transparent\">\
				<embed src=\"" + IMAGE_BASE_URL + "/flash_11/left.swf\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"167\" height=\"328\"></embed></object>");
}

function obj_right(pskinname)
{
	document.write("<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0\" width=\"160\" height=\"500\" >\
		<param name=movie value=\"" + IMAGE_BASE_URL + "/main_skin/" + pskinname + "/main2.swf\">\
		<param name=quality value=high>\
		<param name=\"wmode\" value=\"transparent\">\
		<embed src=\"" + IMAGE_BASE_URL + "/main_" + pskinname + "/main2.swf\" quality=high pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\" type=\"application/x-shockwave-flash\" width=\"160\" height=\"500\" wmode=\"transparent\">\
		</embed>\
	</object>");
 }

function obj_quick()
{

//<param name=\"movie\" value=\"" + IMAGE_BASE_URL + "/flash_11/main_quick051221.swf\">\
	document.write("<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=\"113\" height=\"445\" >\
			<param name=\"movie\" value=\"" + IMAGE_BASE_URL + "/flash_11/main_quick060306.swf\">\
			<param name=\"quality\" value=\"high\">\
			<param name=\"menu\" value=\"false\">\
			<param name=\"wmode\" value=\"transparent\">\
			<embed src=\"" + IMAGE_BASE_URL + "/flash_11/main_quick060306.swf\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"113\" height=\"445\"></embed></object>");

}
function objCall(strpath,strID,strwid,strhei){
	var fla = new FlashObject(strpath, strwid, strhei); 
	fla.wmode = "transparent"; 
	fla.id  = strID; 
	fla.Render(); 
}

//ΌφΑ€
function FlashObject(path, width, height)
{
	var m_movie = path;
	var m_width = width;
	var m_height = height;

	this.wmode = "";
	this.id = "";
	this.bgcolor = "";
	this.play = "";
	this.loop = "";
	this.quality = "high"
	this.menu = "false"

	
	this.Render = function()
	{
		var html;
		
		html = "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0\" width=\"" + m_width + "\" height=\"" + m_height + "\"";
		if (this.id != "")
			html += " id=\"" + this.id + "\"";
		html += "><param name=\"allowScriptAccess\" value=\"always\">";
		html += "<param name=\"movie\" value=\"" + m_movie + "\">";
		html += "<param name=\"menu\" value=\"" + this.menu + "\">";
		html += "<param name=\"quality\" value=\"" + this.quality + "\">";
		if (this.play != "")
			html += "<param name=\"play\" value=\"" + this.play + "\">";
		if (this.loop != "")
			html += "<param name=\"loop\" value=\"" + this.loop + "\">";
		if (this.bgcolor != "")
			html += "<param name=\"bgcolor\" value=\"" + this.bgcolor + "\">";
		if (this.wmode != "")
			html += "<param name=\"wmode\" value=\"" + this.wmode + "\">";
		html += "<embed src=\"" + this.movie + "\" quality=\"" + this.quality + "\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"" + m_width + "\" height=\"" + m_height + "\"";
		if (this.wmode != "")
			html += " wmode=\"" + this.wmode + "\"";
		html += "></embed>";
		html += "</object>";
		document.write(html);
	}
}


function objCallStyle(strpath,strID,strwid,strhei, style){
	var fla = new FlashObjectStyle(strpath, strwid, strhei, style); 
	fla.wmode = "transparent"; 
	fla.id  = strID; 
	fla.Render(); 
}
function FlashObjectStyle(path, width, height, style)
{
	var m_movie = path;
	var m_width = width;
	var m_height = height;

	this.wmode = "";
	this.id = "";
	this.quality = "high"
	this.menu = "false"
	
	this.Render = function()
	{
		var html;
		
		html = "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' style='"+ style +"' width='" + m_width + "' height='" + m_height + "'";
		if (this.id != "")
			html += " id='" + this.id + "'";
		html += ">";
		html += "<param name='movie' value='" + m_movie + "'>";
		html += "<param name='menu' value='" + this.menu + "'>";
		html += "<param name='quality' value='" + this.quality + "'>";
		if (this.wmode != "")
			html += "<param name='wmode' value='" + this.wmode + "'>";
		html += "<embed src='" + this.movie + "' quality='" + this.quality + "' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='830' height='240'></embed>";
		html += "</object>";
		document.write(html);
	}
}