﻿/*
	本文件针对[产品]频道的[整车]和[零部件]的子菜单而作。
*/


/*
	函数列表
*/

/*商用车子菜单出现*/
function showNewSubMenu()
{
	document.getElementById("newSubMenuBG").style.left = wideGet();
	document.getElementById("newSubMenuWord").style.left = wideGet();
	document.getElementById("newSubMenuBG").style.visibility = 'visible';
	document.getElementById("newSubMenuWord").style.visibility = 'visible';
}
/*商用车子菜单隐藏*/
function hideNewSubMenu()
{
	document.getElementById("newSubMenuBG").style.visibility = 'hidden';
	document.getElementById("newSubMenuWord").style.visibility = 'hidden';
}

/*乘用车子菜单出现*/
function showCarsSubMenu()
{
	document.getElementById("carsSubMenuBG").style.left = wideGet();
	document.getElementById("carsSubMenuWord").style.left = wideGet();
	document.getElementById("carsSubMenuBG").style.visibility = 'visible';
	document.getElementById("carsSubMenuWord").style.visibility = 'visible';
}
/*乘用车子菜单隐藏*/
function hideCarsSubMenu()
{
	document.getElementById("carsSubMenuBG").style.visibility = 'hidden';
	document.getElementById("carsSubMenuWord").style.visibility = 'hidden';
}

function wideGet()
{
if(document.body.clientWidth-778>0) 
return (document.body.clientWidth-778)/2+203;
else
return 203;
}


/*
	页面代码列表
*/


//[商用车]子菜单开始
document.write("<div style='LEFT: 203px;top:189px; POSITION: absolute;visibility:hidden' id='newSubMenuBG'>")
document.write("	<table border='0' cellpadding='0' cellspacing='0' ID='Table4' onMouseOver=showNewSubMenu(); onMouseOut=hideNewSubMenu();>")
document.write("		<tr>")
document.write("			<td width='1'></td>")
document.write("			<td>")
document.write("				<table cellpadding='0' cellspacing='0' ID='Table12' class='productSubMenu' width='110'>")
document.write("					<tr bgcolor='#D2CFEF'>")
document.write("						<td height='20' class='subMenuItem'></td>")
document.write("					</tr>")
document.write("					<tr bgcolor='#c8c5e4'>")
document.write("						<td height='1'></td>")
document.write("					</tr>")
document.write("					<tr bgcolor='#D2CFEF'>")
document.write("						<td height='20' class='subMenuItem'></td>")
document.write("					</tr>")
document.write("					<tr bgcolor='#c8c5e4'>")
document.write("						<td height='1'></td>")
document.write("					</tr>")
document.write("					<tr bgcolor='#D2CFEF'>")
document.write("						<td height='20' class='subMenuItem'></td>")
document.write("					</tr>")
document.write("					<tr bgcolor='#c8c5e4'>")
document.write("						<td height='1'></td>")
document.write("					</tr>")
document.write("					<tr bgcolor='#D2CFEF'>")
document.write("						<td height='20' class='subMenuItem'></td>")
document.write("					</tr>")
document.write("					<tr bgcolor='#c8c5e4'>")
document.write("						<td height='1'></td>")
document.write("					</tr>")
document.write("					<tr bgcolor='#D2CFEF'>")
document.write("						<td height='20' class='subMenuItem'></td>")
document.write("					</tr>")
document.write("				</table>")
document.write("			</td>")
document.write("		</tr>")
document.write("	</table>")
document.write("</div>")
document.write("")
document.write("<div style='LEFT: 203px;top:191px; POSITION: absolute;visibility:hidden' id='newSubMenuWord'>")
document.write("	<table border='0' cellpadding='0' cellspacing='0' onMouseOver=showNewSubMenu(); onMouseOut=hideNewSubMenu();>")
document.write("		<tr>")
document.write("			<td width='1'></td>")
document.write("			<td>")
document.write("				<table cellpadding='0' cellspacing='0'>")
/*document.write("					<tr>")*/
/*document.write("						<td height='20'>&nbsp;&nbsp;<a href='CarsList.aspx?infoclass=CZC'>客车</a>&nbsp;&nbsp;&nbsp;&nbsp;</td>")*/
/*document.write("					</tr>")*/
/*document.write("					<tr>")*/
/*document.write("						<td height='1'></td>")*/
/*document.write("					</tr>")*/
document.write("					<tr>")
document.write("						<td height='20'>&nbsp;&nbsp;<a href='CarsList.aspx?infoclass=ZHC'>货车</a>&nbsp;&nbsp;&nbsp;&nbsp;</td>")
document.write("					</tr>")
//document.write("					<tr>")
//document.write("						<td height='1'></td>")
//document.write("					</tr>")
//document.write("					<tr>")
//document.write("						<td height='20'>&nbsp;&nbsp;<a href='CarsList.aspx?infoclass=YYC'>半挂牵引车</a>&nbsp;&nbsp;&nbsp;&nbsp;</td>")
//document.write("					</tr>")
//document.write("					<tr>")
//document.write("						<td height='1'></td>")
//document.write("					</tr>")
//document.write("					<tr>")
//document.write("						<td height='20'>&nbsp;&nbsp;<a href='CarsList.aspx?infoclass=QYC'>客车非完整车辆</a>&nbsp;&nbsp;&nbsp;&nbsp;</td>")
//document.write("					</tr>")
//document.write("					<tr>")
//document.write("						<td height='1'></td>")
//document.write("					</tr>")
document.write("					<tr>")
document.write("						<td height='20'>&nbsp;&nbsp;<a href='CarsList.aspx?infoclass=ZXC'>货车非完整车辆</a>&nbsp;&nbsp;&nbsp;&nbsp;</td>")
document.write("					</tr>")
document.write("				</table>")
document.write("			</td>")
document.write("		</tr>")
document.write("	</table>")
document.write("</div>")
//[商用车]子菜单结束




//[乘用车]子菜单开始
document.write("<div style='LEFT: 203px;top:212px; POSITION: absolute;visibility:hidden' id='carsSubMenuBG'>")
document.write("	<table border='0' cellpadding='0' cellspacing='0' ID='Table4' onMouseOver=showCarsSubMenu(); onMouseOut=hideCarsSubMenu();>")
document.write("		<tr>")
document.write("			<td width='1'></td>")
document.write("			<td>")
document.write("				<table cellpadding='0' cellspacing='0' ID='Table12' class='productSubMenu' width='140'>")
document.write("					<tr bgcolor='#D2CFEF'>")
document.write("						<td height='20' class='subMenuItem'></td>")
document.write("					</tr>")
document.write("					<tr bgcolor='#c8c5e4'>")
document.write("						<td height='1'></td>")
document.write("					</tr>")
document.write("					<tr bgcolor='#D2CFEF'>")
document.write("						<td height='20' class='subMenuItem'></td>")
document.write("					</tr>")
document.write("					<tr bgcolor='#c8c5e4'>")
document.write("						<td height='1'></td>")
document.write("					</tr>")
document.write("					<tr bgcolor='#D2CFEF'>")
document.write("						<td height='20' class='subMenuItem'></td>")
document.write("					</tr>")
document.write("					<tr bgcolor='#c8c5e4'>")
document.write("						<td height='1'></td>")
document.write("					</tr>")
document.write("					<tr bgcolor='#D2CFEF'>")
document.write("						<td height='20' class='subMenuItem'></td>")
document.write("					</tr>")
document.write("				</table>")
document.write("			</td>")
document.write("		</tr>")
document.write("	</table>")
document.write("</div>")
document.write("")
document.write("<div style='LEFT: 203px;top:214px; POSITION: absolute;visibility:hidden' id='carsSubMenuWord'>")
document.write("	<table border='0' cellpadding='0' cellspacing='0' onMouseOver=showCarsSubMenu(); onMouseOut=hideCarsSubMenu();>")
document.write("		<tr>")
document.write("			<td width='1'></td>")
document.write("			<td>")
document.write("				<table cellpadding='0' cellspacing='0'>")
document.write("					<tr>")
document.write("						<td height='20'>&nbsp;&nbsp;<a href='CarsList.aspx?infoclass=C02'>基本型乘用车</a>&nbsp;&nbsp;&nbsp;&nbsp;</td>")
document.write("					</tr>")
//document.write("					<tr>")
//document.write("						<td height='1'></td>")
//document.write("					</tr>")
//document.write("					<tr>")
//document.write("						<td height='20'>&nbsp;&nbsp;<a href='CarsList.aspx?infoclass=C01'>多功能车(MPV)</a>&nbsp;&nbsp;&nbsp;&nbsp;</td>")
//document.write("					</tr>")
//document.write("					<tr>")
//document.write("						<td height='1'></td>")
//document.write("					</tr>")
//document.write("					<tr>")
//document.write("						<td height='20'>&nbsp;&nbsp;<a href='CarsList.aspx?infoclass=C03'>运动型多用途车(SUV)</a>&nbsp;&nbsp;&nbsp;&nbsp;</td>")
//document.write("					</tr>")
//document.write("					<tr>")
//document.write("						<td height='1'></td>")
//document.write("					</tr>")
//document.write("					<tr>")
//document.write("						<td height='20'>&nbsp;&nbsp;<a href='CarsList.aspx?infoclass=C04'>交叉型乘用车</a>&nbsp;&nbsp;&nbsp;&nbsp;</td>")
//document.write("					</tr>")
document.write("				</table>")
document.write("			</td>")
document.write("		</tr>")
document.write("	</table>")
document.write("</div>")
//[乘用车]子菜单结束

