﻿// JavaScript Document
function lod(){
	var bh=document.body.scrollHeight;// 获得页面高度
	var al=document.getElementById("acenl");
	var ar=document.getElementById("acenr");
	var am=document.getElementById("acen").scrollHeight;//clientHeight;//div的实际高度
	al.style.height=am+'px';
	ar.style.height=am+'px';
}

function pover(id){
	for(s=1;s<=8;s++){
		//var Lid=document.getElementById("nm"+s);
		if(id==s){
			try
			{
			document.getElementById("pl"+s).style.display='none';
			document.getElementById("pl"+s+"2").style.display='block';
			}
			catch(e){}
		}
		else{
			//img = "/img/i_txt"+(s+1)+"_1.gif"
			try
			{
			document.getElementById("pl"+s).style.display='block';
			document.getElementById("pl"+s+"2").style.display='none';
			}
			catch(e){}
		}
	}
}


//Btm logo
function btm_over(id){
document.getElementById("btml"+id).src="/img/index/btm_log_"+id+"_2.gif";
}

function btm_out(id){
document.getElementById("btml"+id).src="/img/index/btm_log_"+id+"_1.gif";
}


//Left Menu
function over(id){
document.getElementById("m"+id).src="/img/m"+id+"_2.gif";
}

function out(id){
document.getElementById("m"+id).src="/img/m"+id+"_1.gif";
}


//EN Menu
function over_en(id){
document.getElementById("m"+id).src="/img/m"+id+"_2_en.gif";
}

function out_en(id){
document.getElementById("m"+id).src="/img/m"+id+"_1_en.gif";
}


//Flash
function flash(src,w,h){
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="'+w+'" height="'+h+'">');
document.write('<param name="movie" value="'+src+'"><param name="quality" value="high"><param name="menu" value="false">');
document.write('<param name="wmode" value="transparent">');
document.write('<embed src="'+src+'" width="'+w+'" height="'+h+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" menu="false" wmode="transparent"></embed>');
document.write(' </object>');

}


