// ¹Ìµð¾î ÇÃ·¹ÀÌ¾î 
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 += " </object> ";
		document.write(contents);
}

// ÇÃ·¡½Ã ÇÃ·¹ÀÌ¾î

function fFlash_Activate(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="true">';
	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 fFlash_main(argSRC, argWIDTH, argHEIGHT) {

	var contents = '<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="' + argWIDTH + '" height="' +argHEIGHT +'">';
	contents += '<param name="menu" value="true">';
	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 set_center(width,height,type)
{
	nWidth = width;
	nHeight = height;
	nLeft = (window.screen.width - nWidth ) / 2;
	nTop  = (window.screen.height- nHeight) / 2;
	sF = "";

	if(type=="1") sF += "toolbar=no,location=no,menubar=no,status=no,directories=no,resizable=no,scrollbars=no";
	else sF += "toolbar=no,location=no,menubar=no,status=no,directories=no,resizable=no,scrollbars=yes";

	sF += ",left=" + nLeft;
	sF += ",top=" + nTop;
	sF += ",width=" +  nWidth;
	sF += ",height=" + nHeight;

	return sF;
}
//--------------------------ÀüÃ¼ÇÃ·¡½Ã ¸µÅ©½ÃÀÛ(context menu¿Í ¸µÅ©µ¿ÀÏ)----------------------------------//



//¸ÞÀÎÆäÀÌÁö ·Î°í¸µÅ©--------------------------------------------------------//


function goto_home(){
		self.location="/";
}


//¼­ºê 2depth¸Þ´ºÀÇ (±â´Éºñ±³)¸µÅ©---------------------------------------------//


function goto_function(){
		self.location="javascript:alert('coming soon');"
}


//top_menu ¸µÅ©----------------------------------------------------------------------------//


function goto_url(navinum){
    
	//Introduction ------------------------------------------------//
	if (navinum == "menu1"){
		self.location="http://www.nastranfx.com.cn/product/introduction/nastranFX.asp";



	//About Nastran FX ----------------------------------------------//
	}else if (navinum == "menu2" ){
		self.location="http://www.nastranfx.com.cn/product/AboutNastranFX/about_FX_overview.asp";
		

		

	//Why Nastran FX -----------------------------------------------//
	}else if (navinum == "menu3" ){
		self.location="http://www.nastranfx.com.cn/product/why/why_FX_main.asp";
		
		
	
	//Features ----------------------------------------------------//
	}else if (navinum == "menu4" ){
		self.location="http://www.nastranfx.com.cn/product/features/features.asp";

		
		
	//Feel Nastran FX ----------------------------------------------//
	}else if (navinum == "menu5" ){
	   self.location="http://www.nastranfx.com.cn/product/feel/feel_NFX.asp"
	}
}
