// JavaScript Document

//关闭按钮

function getE(o) {
	return document.getElementById(o);
}
function showhide(o,sh) {
	getE(o+'1').style.display=(sh=='s')?'none':'block';
	getE(o+'2').style.display=(sh=='s')?'block':'none';
}
function closead(o) {
	getE(o).style.display='none';
}



//右侧1（带关闭按钮）
var specialcode="<div id='searchspe' style='z-index: 100; right: 1px; position: absolute; top: 10px;' onmouseover='showhide(\"floatimg\",\"s\")' onmouseout='showhide(\"floatimg\",\"h\")'><div id='floatimg1' style='display:block'><img src='img/duiliany1.jpg' border='0' width='40' /></div><div id='floatimg2' style='display:none'><a href='http://www.interart.cn/' target='_blank'><img src='img/duiliany1-1.jpg' border='0' /></a></div><div style='z-index: 100; right: 1px; position: absolute; top: 300px; width:25px;height:20px; line-height:20px;text-align:right; cursor:pointer' onclick='closead(\"searchspe\")'></div></div>";
document.write(specialcode);

//右2
var specialcode="<div id='searchspe3' style='z-index: 100; right: 1px; position: absolute; top: 464px;' onmouseover='showhide(\"floatimgR\",\"s\")' onmouseout='showhide(\"floatimgR\",\"h\")'><div id='floatimgR1' style='display:block'><img src='img/duilianz2.jpg' border='0' /></div><div id='floatimgR2' style='display:none'><a href='http://www.qdacca.com/' target='_blank'><img src='img/duiliany2-2.jpg' border='0' /></a></div><div id='bar_1' style='z-index: 100; right: 1px; position: absolute; top: 210px; width:25px;height:20px; line-height:20px;text-align:right; cursor:pointer' onclick='closead(\"searchspe3\")'></div></div>";
document.write(specialcode);

//左侧1（带关闭按钮）
var specialcode2="<div id='searchspe2' style='z-index: 100; left: 1px; position: absolute; top: 10px;' onmouseover='showhide(\"floatimg-left\",\"s\")' onmouseout='showhide(\"floatimg-left\",\"h\")'><div id='floatimg-left1' style='display:block'><img  src='img/duilianz1.jpg' width='40' height='259' border='0'  /></div><div id='floatimg-left2' style='display:none'><a href='http://www.zzkjxy.com/' target='_blank'><img src='img/duilianz1-1.jpg' border='0' /></a></div><div style='z-index:100; left: 1px; position: absolute; top: 301px; width:25px;height:20px; line-height:20px;text-align:left; cursor:pointer' onclick='closead(\"searchspe2\")'></div></div>";
document.write(specialcode2);

//左侧2
var specialcode2="<div id='searchspe4' style='z-index: 100; left: 1px; position: absolute; top: 464px;' onmouseover='showhide(\"floatimg-leftL\",\"s\")' onmouseout='showhide(\"floatimg-leftL\",\"h\")'><div id='floatimg-leftL1' style='display:block'><img src='img/duilianz2.jpg' border='0' /></div><div id='floatimg-leftL2' style='display:none'><a href='http://www.qdacca.com/' target='_blank'><img src='img/duilianz2-2.jpg' border='0' /></a></div><div id='bar_2' style='z-index:100; left: 1px; position: absolute; top: 210px; width:25px;height:20px; line-height:20px;text-align:left; cursor:pointer' onclick='closead(\"searchspe4\")'></div></div>";
document.write(specialcode2);

if(true){
   document.write("<script language='javascript'>");
   var imgheight3= 0;
   window.screen.width>800 ? imgheight3=280:imgheight3=90;
   function mymoveFloat_3(){
       document.getElementById("searchspe3").style.top=(document.body.scrollTop?document.body.scrollTop:document.documentElement.scrollTop) + (document.documentElement.clientHeight?document.documentElement.clientHeight:document.body.clientHeight)-imgheight3-0+"px";
       //这里应该获取一个得到右侧位置的逻辑....
	   document.getElementById("searchspe3").style.left= document.getElementById("bar_1").style.left;//800+"px";
       setTimeout("mymoveFloat_3();",50);
   }
   mymoveFloat_3();

var imgheight4= 0;
   window.screen.width>800 ? imgheight4=280:imgheight4=90;
   function mymoveFloat_4(){
       document.getElementById("searchspe4").style.top=(document.body.scrollTop?document.body.scrollTop:document.documentElement.scrollTop) + (document.documentElement.clientHeight?document.documentElement.clientHeight:document.body.clientHeight)-imgheight4-0+"px";
       //这里应该获取一个得到左侧位置的逻辑....
	   document.getElementById("searchspe4").style.right= document.getElementById("bar_2").style.right;//800+"px";
       setTimeout("mymoveFloat_4();",50);
   }
   mymoveFloat_4();

}

