﻿//下面是顶部首页菜单-----------------------------------------------------------------------------------------------------------------

function left(){
document.write('<table width="170" border="1" align="center" cellpadding="0" cellspacing="0" class="table_left">');
document.write('<tr class="bg2" onmouseover="changebg(this)" onmouseout="changebg(this)" style="cursor: pointer;"><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="en_company.asp">COMPANY</a></td></tr>');
document.write('<tr class="bg1" onmouseover="changebg(this)" onmouseout="changebg(this)" style="cursor: pointer;"><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="en_credit.asp">CREDIT</a></td></tr>');
document.write('<tr class="bg1" onmouseover="changebg(this)" onmouseout="changebg(this)" style="cursor: pointer;"><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="en_65show.htm">65" PHOTO GALLERY</a></td></tr>');
document.write('<tr class="bg1" onmouseover="changebg(this)" onmouseout="changebg(this)" style="cursor: pointer;"><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="en_bij.htm">Compare with TV</a></td></tr>');
document.write('<tr class="bg1" onmouseover="changebg(this)" onmouseout="changebg(this)" style="cursor: pointer;"><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="en_yous.htm">The advantage of LCoS</a></td></tr>');
document.write('<tr class="bg1" onmouseover="changebg(this)" onmouseout="changebg(this)" style="cursor: pointer;"><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="en_download.htm">Download</a></td></tr></table>');
}

//下面flash显示-----------------------------------------------------------------------------------------------------------------
function GnxFlashActivate ( strFlashUrl , n4Witdh , n4Height , strWmode, strFlashVars, strId, strClassName ) {
	if (strClassName != 0) {
		objSize_attribute = " width='"+ n4Witdh +"' height='"+ n4Height +"'";
	} else {
		objSize_attribute = "";
	}
	if (strId != 0) {
		objId_attribute = " id='" + strId + "'";
		objId_IE_attribute = " id='" + strId + "IE'";
	}

	if (strClassName != 0) {
		className_attribute = " class='" + strClassName + "'";
	} else {
		className_attribute = "";
	}

	if (strWmode != 0) {
		wmode_param = "<param name='wmode' value='" + strWmode + "' />";
		wmode_attribute = " wmode='" + strWmode + "'";
	} else {
		wmode_param = "";
		wmode_attribute = "";
	}

	if ( strFlashVars != 0 ) {
		flashVars_param = "<param name='flashvars' value='" + strFlashVars + "' />" ;
		flashVars_attribute = " flashvars='" + strFlashVars + "'" ;
	} else {
		flashVars_param = "" ;
		flashVars_attribute = "" ;
	}
	document.writeln( "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' " + objSize_attribute + objId_IE_attribute + className_attribute + ">" );
	document.writeln( "<param name='movie' value='"+ strFlashUrl +"' />" );
	document.writeln( "	<PARAM NAME='wmode' VALUE='transparent' />");
	document.writeln( "<param name='quality' value='high' />" );
	document.writeln( "<param name='allowScriptAcess' value='always' />" );
	document.writeln( wmode_param );
	document.writeln( flashVars_param );
	document.writeln( "<!-- Hixie method -->" );
	document.writeln( "<!--[if !IE]> <-->" );
	document.writeln( "<object type='application/x-shockwave-flash' data='"+ strFlashUrl +"'" + objSize_attribute + objId_attribute + wmode_attribute + flashVars_attribute + className_attribute + "></object>" );
	document.writeln( "<!--> <![endif]-->" );
	document.writeln( "</object>" );
}

//下面是改变菜单背景-----------------------------------------------------------------------------------------------------------------

function changebg(element)
{
	if (element.className == "bg1")
	{
		element.className = "bg2";
	} else {
		element.className = "bg1";
	}
}