// JavaScript Document













		

window.onload = function(){
	correctPNG();
	
	var lanid= document.getElementById('lanid').innerHTML;
	var hangye= document.getElementById('hangye').innerHTML;
	var yanids= document.getElementById('yanids').innerHTML;
	
		 if(lanid!=''){
		 if(lanid=='s2'){
		 if(hangye!=''){
		 if(hangye!='hangq')
		
		 document.getElementById('hangq').className="hanglan";
document.getElementById(hangye).className="andian";
		}else{
		 
		document.getElementById('hangq').className="andian";
		}
	
		if(yanids!=''){
			if(yanids=='quan'){
				
			document.getElementById('quan1s').className='';	
				}
document.getElementById(yanids).className="yanidss";
}
document.getElementById(lanid).className="gailan";
document.getElementById(lanid).style.color='#ffffff';
}else{
document.getElementById(lanid).className="gailan";
document.getElementById(lanid).style.color='#ffffff';
}

}else{
document.getElementById('s').className="gailan";
document.getElementById('s').style.color='#ffffff';
}

}


function addleft(){
	var h=document.getElementById("leftla").offsetWidth;
	 var j=document.getElementById("leftla").offsetLeft;

	var addh=493;
	if(h<addh){	
	
	document.getElementById("leftla").style.left=j-10+"px";

	document.getElementById("leftla").style.width=h+10+"px";
	setTimeout("addleft()",10); 
	 
	}else{
		
				document.getElementById("leftxian").style.display="block";
document.getElementById("tuaa").style.display="block";
document.getElementById("tubb").style.display="none";
		
		}
	

	
	
	 
} 
function jianright(){
		var h=document.getElementById("leftla").offsetWidth;
	 var j=document.getElementById("leftla").offsetLeft;
document.getElementById("leftxian").style.display="none";
	var addh=13;
	if(h>addh){
	document.getElementById("leftla").style.width=h-10+"px";
	document.getElementById("leftla").style.left=j+10+"px";
	
	
	setTimeout("jianright()",10);   
	
	} else{
	
document.getElementById("tubb").style.display="block";
document.getElementById("tuaa").style.display="none";
	}
	
	 
}

	function tou(a){
		var lanid= document.getElementById('lanid').innerHTML;
	if(lanid!=''){
	var ids=lanid ;
	
}	else {
var ids='s';
}
if(a!=ids)
{

document.getElementById(a).className="gailans";
}
	}
	
	
	function touss(a){
var lanid= document.getElementById('lanid').innerHTML;
	if(lanid!=''){
	var ids=lanid;
	
	
}	else {
var ids='s';
}

if(a!=ids)
{
	
	document.getElementById(a).className="gailan1";
	}
}
    



function correctPNG()
{
    var arVersion = navigator.appVersion.split("MSIE");
    var version = parseFloat(arVersion[1]);
    if ((version >= 5.5) && (version < 7.0) && (document.body.filters))
    {
       for(var j=0; j<document.images.length; j++)
       {
          var img = document.images[j];
          var imgName = img.src.toUpperCase();
          if (imgName.substring(imgName.length-3, imgName.length) == "PNG")
          {
             var imgID = (img.id) ? "id='" + img.id + "' " : "";
             var imgClass = (img.className) ? "class='" + img.className + "' " : "";
             var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' ";
             var imgStyle = "display:inline-block;" + img.style.cssText;
             if (img.align == "left") imgStyle = "float:left;" + imgStyle;
             if (img.align == "right") imgStyle = "float:right;" + imgStyle;
             if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle;
if (imgName == 'images/Arrow_White.png'){
alert(img.height);
}
             var strNewHTML = "<span " + imgID + imgClass + imgTitle
             + " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"
             + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
             + "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>";
             img.outerHTML = strNewHTML;
             j = j-1;
          }
       }
    }
}

	
	
		
	
