function initEcAdClose() {
	document.all.AdLayer1Close.style.posTop = -130;
	//document.all.AdLayer1.style.visibility = 'display'
	document.all.AdLayer2Close.style.posTop = -130;
	//document.all.AdLayer2.style.visibility = 'display'
	MoveLeftLayerClose('AdLayer1Close');
	MoveRightLayerClose('AdLayer2Close');
}
function MoveLeftLayerClose(layerName) {
	var x = 5;
	var y = 86;
	//var diff = (document.body.scrollTop + y - document.all.AdLayer1.style.posTop)*.40;
	//var y = document.body.scrollTop + y - diff;
	eval("document.all." + layerName + ".style.posTop = y");
	eval("document.all." + layerName + ".style.posLeft = x");
	setTimeout("MoveLeftLayerClose('AdLayer1Close');", 20);
}
function MoveRightLayerClose(layerName) {
	var x = 5;
	var y = 86;
	//var diff = (document.body.scrollTop + y - document.all.AdLayer2.style.posTop)*.40;
	//var y = document.body.scrollTop + y - diff;
	eval("document.all." + layerName + ".style.posTop = y");
	eval("document.all." + layerName + ".style.posRight = x");
	setTimeout("MoveRightLayerClose('AdLayer2Close');", 20);
}


document.write("<div  id=AdLayer1Close  style='position: absolute;visibility:display;z-index:4;cursor:hand;' onclick='hidenAlladLayer()'><img src='/cms5root/pages/CARI/images/0529_index_close.gif'></div>"
	+"<div id=AdLayer2Close style='position: absolute;visibility:display;Z-INDEX:4;cursor:hand'  onclick='hidenAlladLayer()'><img src='/cms5root/pages/CARI/images/0529_index_close.gif'></div>");

initEcAdClose() //载入关闭按钮动画



function initEcAd() {
document.all.AdLayer1.style.posTop = -200;
//document.all.AdLayer1.style.visibility = 'display'
document.all.AdLayer2.style.posTop = -200;
//document.all.AdLayer2.style.visibility = 'display'
MoveLeftLayer('AdLayer1');
MoveRightLayer('AdLayer2');
}
function MoveLeftLayer(layerName) {
var x = 5;
var y = 100;
//var diff = (document.body.scrollTop + y - document.all.AdLayer1.style.posTop)*.40;
//var y = document.body.scrollTop + y - diff;
eval("document.all." + layerName + ".style.posTop = y");
eval("document.all." + layerName + ".style.posLeft = x");
setTimeout("MoveLeftLayer('AdLayer1');", 20);
}
function MoveRightLayer(layerName) {
var x = 5;
var y = 100;
//var diff = (document.body.scrollTop + y - document.all.AdLayer2.style.posTop)*.40;
//var y = document.body.scrollTop + y - diff;
eval("document.all." + layerName + ".style.posTop = y");
eval("document.all." + layerName + ".style.posRight = x");
setTimeout("MoveRightLayer('AdLayer2');", 20);
}


//document.write("<div id=AdLayer1 style='position: absolute;visibility:display;z-index:2'><a href='http://www.uaa.cn/cms5root/pages/cn2/topics/wuyi_07/index.html' target=_blank><img src='http://www.uaa.cn/cms5root/pages/cn2/topics/carshow/uaa_5.1.gif' border=0></a></div>" +"<div id=AdLayer2 style='position: absolute;visibility:display;Z-INDEX:2'><a href='http://www.uaa.cn/cms5root/pages/cn2/topics/wuyi_07/index.html' target=_blank><img src='http://www.uaa.cn/cms5root/pages/cn2/topics/carshow/uaa_5.1.gif' border=0></a></div>");
document.write("<div id=AdLayer1 style='position: absolute;visibility:display;z-index:2'><object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0' width='100' height='300'><param name='movie' value='/cms5root/pages/en/images/duilian_1217.swf'><param name='quality' value='high'><embed src='/cms5root/pages/en/images/duilian_1217.swf' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='100' height='300'></embed></object></div>" + "<div id=AdLayer2 style='position: absolute;visibility:display;Z-INDEX:2'><object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0' width='100' height='300'><param name='movie' value='/cms5root/pages/en/images/duilian_1217.swf'><param name='quality' value='high'><embed src='/cms5root/pages/en/images/duilian_1217.swf' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='100' height='300'></embed></object></div>");
//document.write("<div id=AdLayer1 style='position: absolute;visibility:display;z-index:2'><a href='http://www.uaa.cn/cms5root/pages/cn2/topics/wuyi_07/index.html' target='_blank'><img src='http://www.uaa.cn/cms5root/pages/cn2/topics/carshow/uaa_5.1.gif' width='100' height='300'border='0'></a></div>" +"<div id=AdLayer2 style='position: absolute;visibility:display;Z-INDEX:2'><a href='http://www.uaa.cn/cms5root/pages/cn2/topics/wuyi_07/index.html' target='_blank'><img src='http://www.uaa.cn/cms5root/pages/cn2/topics/carshow/uaa_5.1.gif' width='100' height='300' border='0'></a></div>");
initEcAd() //载入FLASH与GIF动画
//close_float_right();//如果想关闭此广告,请取销此行注释



function close_float_right(){
	AdLayer1.style.display='none';
	AdLayer2.style.display='none';
}


//交换FLASH
function swapDiv(numParam){
		alert('d')
	if(numParam==1 || numParam==2){

		window.location = "/cms5root/pages/cn2/news_article.page?cid=17195"
	}
	else if(numParam==3){
		AdLayer1Big.style.display = "none"
		AdLayer2Big.style.display = "none" 
		AdLayer1.style.display='';
		AdLayer2.style.display='';	
		AdLayer1Close.style.display = ""
		AdLayer2Close.style.display = ""
	}
	else if(numParam==4){
		AdLayer1Big.style.display = "none"
		AdLayer2Big.style.display = "none"
		AdLayer1.style.display='';
		AdLayer2.style.display='';	
		AdLayer1Close.style.display = ""
		AdLayer2Close.style.display = ""
	}
}
 
function hidenAlladLayer(){  
	AdLayer1.style.display='none';
	AdLayer2.style.display='none';
	AdLayer1Close.style.display = "none"
	AdLayer2Close.style.display = "none"
}

function close_float_right(){
	AdLayer1.style.display='none';
	AdLayer2.style.display='none';
}

 
