
	function alignHeight(){
		try{
			var leftHeight = document.getElementById("left").offsetHeight;//左边层最大高度
			//alert(leftHeight);
			var centerHeight = document.getElementById("center").offsetHeight;//中间层最大高度
			//alert("中间"+centerHeight);
			var rightHeight = document.getElementById("right").offsetHeight;//右边层最大高度
			//先找出高度最大的层
			var maxHeight;
			maxHeight = leftHeight > centerHeight ? leftHeight : centerHeight;
			maxHeight = maxHeight > rightHeight ? maxHeight : rightHeight;
			//alert("最大"+maxHeight);
			
			var divid = new Array();
			divid[0] = "left";divid[1] = "center"; divid[2] = "right";
			
			for(var i = 0; i < divid.length;i++){
				var height = document.getElementById(divid[i]).offsetHeight;
				if(height < maxHeight){
					var incrementHeight = maxHeight - height;  
					var div = document.getElementById(divid[i]);
					var divs = div.getElementsByTagName("div");
					var lastDiv = divs[divs.length - 1];//最后一个层
					try{
						lastDiv.style.height += (incrementHeight+"px");
					}catch(e){			
						lastDiv.style.height = (incrementHeight+"px");
						
						var lh = parseInt(document.getElementById(divid[i]).offsetHeight);
						//alert("lh"+lh+"     max:"+maxHeight);
						if(lh < maxHeight){
							//alert(maxHeight - lh);
							var dh = parseInt(lastDiv.style.height);
							//alert(dh);
							lastDiv.style.height = (dh + (maxHeight - lh)) +"px";
							//alert(lastDiv.style.height);
						}
					}		
				}
			}
		}catch(e){
			alignTwoHeight();
		}
	}
	
	function changeFlash(obj,id,cid,nid){
		if(obj.className != ""){
			obj.className = "";
			document.getElementById(id).className = "saishi_tab2_2";
			document.getElementById(cid).style.display="block";
			document.getElementById(nid).style.display="none";
		}
	}
	
	function alignTwoHeight(){
		var ie6 = false;
		var ie7 = false;
		var ff = false;
		var version = navigator.appVersion;
		//alert(version);
		if(version.indexOf("MSIE 7.0") != -1){
			ie7 = true;
			//alert("ie7");
		}
		else if(version.indexOf("MSIE 6.0") != -1){
			ie6 = true;
			//alert("ie6");
		}
		else{
			ff = true;
			//alert("ff");
		}
		//alert(ie6);
		//alert(ie7);
		var leftHeight = document.getElementById("left").offsetHeight;//左边层最大高度
			//alert("左边"+leftHeight);
			var centerHeight = document.getElementById("right").offsetHeight;//中间层最大高度
			//alert("右边"+centerHeight);
			//var rightHeight = document.getElementById("right").offsetHeight;//右边层最大高度
			//先找出高度最大的层
			var maxHeight;
			maxHeight = leftHeight > centerHeight ? leftHeight : centerHeight;
			//maxHeight = maxHeight > rightHeight ? maxHeight : rightHeight;
			
			
			var divid = new Array();
			divid[0] = "left";divid[1] = "right"; //divid[2] = "right";
			
			for(var i = 0; i < divid.length;i++){
				var height = document.getElementById(divid[i]).offsetHeight;
				var incrementHeight = maxHeight - height;  
				
				if(height < maxHeight){
					var div = document.getElementById(divid[i]);
					//alert(div.id);
					var divs = div.getElementsByTagName("div");
					var lastDiv = divs[divs.length - 1];//最后一个层
					lastDiv.style.height += incrementHeight +"px";
					if(ie6){
						lastDiv.style.marginBottom = "-8px";
					}	
					if(ie7){
						lastDiv.style.marginBottom = "-5px";
						if(div.id == "left"){
							lastDiv.style.marginBottom = "8px";
						}
					}
					if(ff){
						lastDiv.style.marginBottom = "-8px";
					}		
				}
			}
			
	
	}
	alignHeight();
