
ns4 = (document.layers)? true:false
ie4 = (document.all)? true:false



function layerWrite(id,text) {
    if (document.layers) {
        document.layers[id].document.open();
        document.layers[id].document.write(text);
        document.layers[id].document.close();
    } else {
       // if (document.all) {
      //      eval("document.all." + id + ".innerHTML='" + text + "'");
      //  } else {
            document.getElementById(id).innerHTML = text;
      //  }
    }
}

var submenu=new Array()

//Set submenu contents. Expand as needed. For each content, make sure everything exists on ONE LINE. Otherwise, there will be JS errors.
 
submenu[0]='<table border=0 cellpadding=0 cellspacing=0 class=mnvbottom><tr><td width=10>&nbsp;</td><td><a href="../AboutUs/index.aspx">公司简介</a></td><td width=14 align=center><img src=../images/grey_pixel.gif border=0 width=1 height=18></td><td><a href="../AboutUs/index2.aspx">企业文化</a></td><td width=14 align=center><img src=../images/grey_pixel.gif border=0 width=1 height=18></td><td><a href="../AboutUs/index3.aspx">发展历程</a></td></tr></table>'
submenu[1]='<table border=0 cellpadding=0 cellspacing=0 class=mnvbottom><tr><td width=10>&nbsp;</td><td><a href="../News/Class.aspx?ClassId=4">公司新闻</a></td><td width=14 align=center><img src=../images/grey_pixel.gif border=0 width=1 height=18></td><td><a href="../News/Class.aspx?ClassId=3">行业动态</a></td><td width=14 align=center><img src=../images/grey_pixel.gif border=0 width=1 height=18></td><td><a href="../News/Class.aspx?ClassId=2">媒体报道</a></td><td width=14 align=center><img src=../images/grey_pixel.gif border=0 width=1 height=18></td><td><a href="../News/Class.aspx?ClassId=1">市场活动</a></td><td><img src=/images/trans.gif border=0 width=150 height=1></td></tr></table>'
submenu[2]='<table border=0 cellpadding=0 cellspacing=0 class=mnvbottom><tr><td width=10>&nbsp;</td><td height=18><a href="../Product/index.aspx">网上展厅</a></td><td width=14 align=center><img src=../images/grey_pixel.gif border=0 width=1 height=18></td><td><a href="../Product/StarElite.aspx">星睿二手车</a></td><td width=14 align=center><img src=../images/grey_pixel.gif border=0 width=1 height=18></td><td><a href="../Product/TryforSteerT.aspx">申请体验</a></td></tr></table>'
submenu[3]='<table border=0 cellpadding=0 cellspacing=0 class=mnvbottom><tr><td width=10>&nbsp;</td><td><a href="../Meshwork/index2.aspx">区域分布</a></td><td width=14 align=center><img src=../images/grey_pixel.gif border=0 width=1 height=18></td><td><a href="../Meshwork/index4.aspx">常见问题</a></td><td width=14 align=center><img src=../images/grey_pixel.gif border=0 width=1 height=18></td><td><a href="../Meshwork/Contact.aspx">留言反馈</a></td><td width=14 align=center><img src=../images/grey_pixel.gif border=0 width=1 height=18></td><td><a href="../Meshwork/index6.aspx">联系我们</a></td><td><img src=/images/trans.gif border=0 width=150 height=1></td></tr></table>'
submenu[4]='<table border=0 cellpadding=0 cellspacing=0 class=mnvbottom><tr><td width=10>&nbsp;</td><td><a href="../Job/index1.aspx">人才战略</a></td><td width=14 align=center><img src=../images/grey_pixel.gif border=0 width=1 height=18></td><td><a href="../Job/index2.aspx">虚位以待</a></td><td width=14 align=center><img src=../images/grey_pixel.gif border=0 width=1 height=18></td><td><a href="../Job/AcceptJob.aspx">在线求职</a></td><td width=14 align=center><img src=../images/grey_pixel.gif border=0 width=1 height=18></td><td><a href="../Job/campus.aspx">校园招聘</a></td></tr></table>'



//Set delay before submenu disappears after mouse moves out of it (in milliseconds)
var delay_hide=500

/////No need to edit beyond here

var menuobj=document.getElementById? document.getElementById("describe") : document.all? document.all.describe : document.layers? document.dep1.document.dep2 : ""

function showit(which){
clear_delayhide()
thecontent=(which==-1)? "" : submenu[which]
if (document.getElementById||document.all)
menuobj.innerHTML=thecontent
else if (document.layers){
menuobj.document.write(thecontent)
menuobj.document.close()
}
}

function resetit(e){
if (document.all&&!menuobj.contains(e.toElement))
delayhide=setTimeout("showit(-1)",delay_hide)
else if (document.getElementById&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
delayhide=setTimeout("showit(-1)",delay_hide)



}

function clear_delayhide(){
if (window.delayhide)
clearTimeout(delayhide)
}

function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}






function writemenuon(x) {

	if (x == 1) {wd = 66;}
	if (x == 2) {wd = 68;}
	if (x == 3) {wd = 68;}
	if (x == 4) {wd = 68;}
	if (x == 5) {wd = 63;}
	

	if (x != 1){
		layerWrite('menu_mid_line1','<img src=../images/grey_pixel.gif border=0 width=66 height=1>');
		document.getElementById('menu_mid_bg1').style.backgroundColor='#E4E4E4';
		document.getElementById('menutop1').style.backgroundColor='#E4E4E4';
	}
	if (x != 2){
		layerWrite('menu_mid_line2','<img src=../images/grey_pixel.gif border=0 width=68 height=1>');
		document.getElementById('menu_mid_bg2').style.backgroundColor='#E4E4E4';
		document.getElementById('menutop2').style.backgroundColor='#E4E4E4';
	}
	if (x != 3){
		layerWrite('menu_mid_line3','<img src=../images/grey_pixel.gif border=0 width=68 height=1>');
		document.getElementById('menu_mid_bg3').style.backgroundColor='#E4E4E4';
		document.getElementById('menutop3').style.backgroundColor='#E4E4E4';
	}	
	if (x != 4){
		layerWrite('menu_mid_line4','<img src=../images/grey_pixel.gif border=0 width=68 height=1>');
		document.getElementById('menu_mid_bg4').style.backgroundColor='#E4E4E4';
		document.getElementById('menutop4').style.backgroundColor='#E4E4E4';
	}
	if (x != 5){
		layerWrite('menu_mid_line5','<img src=../images/grey_pixel.gif border=0 width=63 height=1>');
		document.getElementById('menu_mid_bg5').style.backgroundColor='#E4E4E4';
		document.getElementById('menutop5').style.backgroundColor='#E4E4E4';
	}	
		
	layerWrite('menu_mid_line'+x,'<img src=../images/trans.gif border=0 width='+wd+' height=1>')	
	document.getElementById('menu_mid_bg'+x+'').style.backgroundColor='#F0F0F0';
	document.getElementById('menutop'+x+'').style.backgroundColor='#F0F0F0';
	


j = x;

}




function clean() {

for (i=1;i<6;i++) {
	document.getElementById('menutop'+i+'').style.backgroundColor='#E4E4E4';
	document.getElementById('menu_mid_bg'+i+'').style.backgroundColor='#E4E4E4';
}
layerWrite('menu_mid_line1','<img src=../images/grey_pixel.gif border=0 width=66 height=1>');
layerWrite('menu_mid_line2','<img src=../images/grey_pixel.gif border=0 width=68 height=1>');
layerWrite('menu_mid_line3','<img src=../images/grey_pixel.gif border=0 width=68 height=1>');
layerWrite('menu_mid_line4','<img src=../images/grey_pixel.gif border=0 width=68 height=1>');
layerWrite('menu_mid_line5','<img src=../images/grey_pixel.gif border=0 width=63 height=1>');

//layerWrite('menubottom','<table width=100% height=100% border=0 cellpadding=0 cellspacing=0 class=mnvbottom onMouseover="writemenuon(\''+j+'\');"><tr><td>&nbsp;</td></tr></table>');

}


RightNow = new Date();
var TheYear = RightNow.getYear()

if (TheYear >= 100 && TheYear <= 1999)
{TheYear=TheYear + 1900}
else
{TheYear=TheYear}



function passflashchange(x) {

layerWrite('passflash','<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="600" height="100"><param name=movie value="/images/products/passenger_car/index/'+x+'.swf"><param name=quality value=high><embed src="/images/products/passenger_car/index/'+x+'.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="600" height="100"></embed></object>');

}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}