// 미디어 플레이어 
function fPlayer_Activate(argWIDTH, argHEIGHT, argBASE_WORK_URL, argATT_PLAYER_NAME) {

	var contents = "<OBJECT id='mediaPlayer' type='application/x-oleobject' standby='Loading Microsoft?Windows?Media Player components...'"
		contents += " width= " + argWIDTH + " height= " + argHEIGHT + " classid='CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95'>" 
		contents += " <PARAM NAME='FileName' VALUE=" + argBASE_WORK_URL + "/" + argATT_PLAYER_NAME + "> "
		contents += " <PARAM NAME='AnimationAtStart' VALUE='false'> "
		contents += " <PARAM NAME='TransparentAtStart' VALUE='true'> "
		contents += " <PARAM NAME='AutoStart' VALUE='true'> "
		contents += " <PARAM NAME='Autosize' VALUE='false'> "
		contents += " <PARAM NAME='AutoRewind' VALUE='true'> "
		contents += " <PARAM NAME='ShowDisplay' VALUE='false'> "
		contents += " <PARAM NAME='ShowStatusBar' VALUE='false'> "
		contents += " <PARAM NAME='ShowControls' VALUE='false'> "
		contents += " <PARAM NAME='ShowAudioControls' VALUE='false'> "
		contents += " <PARAM NAME='ShowTracker' VALUE='false'> "
		contents += " <PARAM NAME='ShowPositionControls' VALUE='0'> "
		contents += " <PARAM NAME='EnableContextMenu' VALUE='false'> "
		contents += " <param name='scale' value='noscale'> "

		contents += " </object> ";
		document.write(contents);
}

// 플래시 플레이어

function fFlash_Activate(argSRC, argWIDTH, argHEIGHT) {
//alert(argSRC)
	var contents = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="' + argWIDTH + '" height="' +argHEIGHT +'">';
	contents += '<param name="menu" value="false">';
	contents += '<param name="wmode" value="transparent">';
	contents += '<param name="movie" value="' + argSRC + '">';
    contents += '<param name="quality" value="high">';
    contents += '<embed src="' + argSRC + '" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" ';
	contents += ' wmode="transparent" ';
	contents += ' type="application/x-shockwave-flash" width="' + argWIDTH + '" height="' + argHEIGHT +'"></embed></object>';
	document.write(contents);
}

//메인 플래시용
function fFlash_Activate_main(argSRC, argWIDTH, argHEIGHT, argID, argWMODE) {

	var contents = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="' + argID  + '" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="' + argWIDTH + '" height="' +argHEIGHT +'">';
	contents += '<param name="menu" value="false">';
	if (typeof(argWMODE) == "undefined") {
		contents += '<param name="wmode" value="transparent">';
	} else {
		contents += '<param name="wmode" value="' + argWMODE + '">';
	}
	contents += '<param name="movie" value="' + argSRC +'">';
    contents += '<param name="quality" value="high">';
    contents += '<embed src="' + argSRC +'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" ';
	if (typeof(argWMODE) == "undefined") {
		contents += ' wmode="transparent" ';
	} else {
		contents += ' wmode="' + argWMODE + '" ';
	}
	contents += ' type="application/x-shockwave-flash" width="' + argWIDTH + '" height="' + argHEIGHT +'"></embed></object>';
	document.write(contents);
}

function ActiveX(objects){
	var objects = document.getElementById(objects);
	if(navigator.appName == "Microsoft Internet Explorer"){
		document.write(objects.text);
		objects.id = "";
	}
}
function ActiveX_display(){
	var contents = "	<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' width='100%' height='418' id='footer' align='bottom'  style='position:absolute;z;-index:3000;left:0;top:-500;'>";
	contents += "	<param name='allowScriptAccess' value='sameDomain' />";
	contents += "	<param name='movie' value='/flash/banner.swf' />";
	contents += "	<param name='quality' value='high' />";
	contents += "	<param name='wmode' value='transparent' />";
	contents += "	<param name='bgcolor' value='#ffffff' />";
	contents += "	<embed src='/flash/banner.swf' wmode='transparent' quality='high' bgcolor='#ffffff' width='100%' height='418' name='footer' align='middle' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />"
	contents += "	</object>";

	document.write(contents);

}
//--------------------------전체플래시 링크시작(context menu와 링크동일)----------------------------------//




//메인페이지 로고링크--------------------------------------------------------//


function goto_home(){
		self.location="/index.asp";
}


//메인 & 서브페이지 좌측 퀵메뉴 1.2 링크


function goto_quick1(){
		self.location="/cyber/interior.asp";
}
function goto_quick2(){
		self.location="/cyber/ecatalog.asp";
}


//메인페이지상단 사이트맵 링크(송도국제업무단지 -> 고객 센터 -> Contact Us  -> News  -> Sitemap 의 순서)


function goto_top1(){
		self.location="#";
}
function goto_top2(){
		self.location="#";
}
function goto_top3(){
		self.location="/sales/location.asp";
}
function goto_top4(){
		self.location="/etc/news_list.asp";
}
function goto_top5(){
		self.location="/etc/sitemap.asp";
}



//메인페이지 상단 hub_site 링크------------------------------------------------//


function goto_hub1(){
		self.location="/songdo/overview.asp";
}
function goto_hub2(){
		self.location="/cyber/eyeview.asp";
}
function goto_hub3(){
		self.location="/sales/sales_1.asp";
}
function goto_hub4(){
		self.location="/internet/receive.asp";
}



//copyright 하단부 링크(좌측부터 sitemap -> NSIC ->포스코건설 ->송도the# 순서임)---------//


function goto_copy1(){
		self.location="/etc/sitemap.asp";
}
function goto_copy2(){
		self.location="http://www.empas.com";
}
function goto_copy3(){
		self.location="http://www.new-songdocity.co.kr";
}
function goto_copy4(){
		self.location="http://www.songdothesharp.co.kr";
}




//메인플래시 최근게시물 more 버튼링크-------------------------------------------//


function goto_list(){
		self.location="http://www.naver.com";
}




//메인&서브리프트 메뉴 링크시작----------------------------------------------------------------------//


function goto_url(navinum){
    
	//송도the#하버뷰-----------------------------------------------//
	if (navinum == "menu1"){
		self.location="/songdo/overview.asp";
	}else if (navinum == "sub1-1" ){
		self.location="/songdo/overview.asp";
	}else if (navinum == "sub1-2" ){
		self.location="/songdo/environment.asp";
	}else if (navinum == "sub1-3" ){
		self.location="/songdo/vision.asp";
	}else if (navinum == "sub1-4" ){
		self.location="/songdo/notice_list.asp";




	//사이버모델하우스----------------------------------------------//
	}else if (navinum == "menu2" ){
		self.location="/cyber/eyeview.asp";
	}else if (navinum == "sub2-1" ){
		self.location="/cyber/eyeview.asp";
	}else if (navinum == "sub2-2" ){
		self.location="/cyber/arrangement.asp";
	}else if (navinum == "sub2-3" ){
		self.location="/cyber/plan.asp";
	}else if (navinum == "sub2-4" ){
		self.location="/cyber/dong.asp";
	}else if (navinum == "sub2-5" ){
		self.location="/cyber/py.asp";
	}else if (navinum == "sub2-6" ){
		self.location="/cyber/interior.asp";
	}else if (navinum == "sub2-7" ){
		self.location="/cyber/ecatalog.asp";
		

		

	
	//사분양안내&모집공고-------------------------------------------//
	}else if (navinum == "menu3" ){
		self.location="/sales/sales_1.asp";
    }else if (navinum == "sub3-1" ){
		self.location="/sales/sales_1.asp";
    }else if (navinum == "sub3-2" ){
		self.location="/sales/sales_2.asp";;
	}else if (navinum == "sub3-3" ){
		self.location="/sales/sales_3.asp";
    }else if (navinum == "sub3-4" ){
		self.location="/sales/location.asp";;


		
		

	//인터넷청약--------------------------------------------------//
	}else if (navinum == "menu4" ){
	   self.location="/internet/receive.asp";
    }else if (navinum == "sub4-1" ){
		self.location="/internet/receive.asp";
    }else if (navinum == "sub4-2" ){
		self.location="/internet/use.asp";
	}else if (navinum == "sub4-3" ){
		self.location="/internet/info.asp";
	}else if (navinum == "sub4-4" ){
		self.location="/internet/faq.asp";
	}
}