lastScrollY=0;
function heartBeat(){ 
var diffY;
if (document.documentElement && document.documentElement.scrollTop)
	diffY = document.documentElement.scrollTop;
else if (document.body)
	diffY = document.body.scrollTop
else
    {/*Netscape stuff*/}
	
//alert(diffY);
percent=.1*(diffY-lastScrollY); 
if(percent>0)percent=Math.ceil(percent); 
else percent=Math.floor(percent); 
document.getElementById("lovexin12").style.top=parseInt(document.getElementById
("lovexin12").style.top)+percent+"px";
document.getElementById("lovexin14").style.top=parseInt(document.getElementById
("lovexin14").style.top)+percent+"px";
document.getElementById("lovexin16").style.top=parseInt(document.getElementById
("lovexin16").style.top)+percent+"px";
document.getElementById("lovexin18").style.top=parseInt(document.getElementById
("lovexin18").style.top)+percent+"px";


lastScrollY=lastScrollY+percent; 
//alert(lastScrollY);
}
//suspendcode12="<DIV id=\"lovexin12\" style='left:2px;POSITION:absolute;TOP:120px;'><a href='http://www.synthleather.com/zhuanti/syn.htm' target='_blank'><img src=http://www.china-jiaogun.com/images/syn.gif  border=0></a></div>"
//suspendcode14="<DIV id=\"lovexin14\" style='right:2px;POSITION:absolute;TOP:120px;'><a href='http://www.china-jiaogun.com/syn.doc' target='_blank'><img src=http://www.china-jiaogun.com/img/synrig.jpg  border=0></a></div>"
suspendcode16="<DIV id=\"lovexin16\" style='left:2px;POSITION:absolute;TOP:420px;'><a href='http://www.cslie.com/' target='_blank'><img src=http://www.synthleather.com/images/90X230_l.gif  border=0></a></div>"
suspendcode18="<DIV id=\"lovexin18\" style='right:2px;POSITION:absolute;TOP:420px;'><a href='http://www.cslie.com/' target='_blank'><img src=http://www.synthleather.com/images/90X230_r.gif border=0></a></div>"

//document.write(suspendcode12); 
//document.write(suspendcode14); 
document.write(suspendcode16); 
document.write(suspendcode18); 
window.setInterval("heartBeat()",1);

var intervalId = null; 
function slideAd(id,nStayTime,sState,nMaxHth,nMinHth){ 
  this.stayTime=nStayTime*1000 || 5000; 
  this.maxHeigth=nMaxHth || 90; 
  this.minHeigth=nMinHth || 1; 
  this.state=sState || "down" ; 
  var obj = document.getElementById(id); 
  if(intervalId != null)window.clearInterval(intervalId); 
  function openBox(){ 
   var h = obj.offsetHeight; 
   obj.style.height = ((this.state == "down") ? (h + 2) : (h - 2))+"px"; 
    if(obj.offsetHeight>this.maxHeigth){ 
    window.clearInterval(intervalId); 
    intervalId=window.setInterval(closeBox,this.stayTime); 
    } 
    if (obj.offsetHeight<this.minHeigth){ 
    window.clearInterval(intervalId); 
    obj.style.display="none"; 
    } 
  } 
  function closeBox(){ 
   slideAd(id,this.stayTime,"up",nMaxHth,nMinHth); 
  } 
  intervalId = window.setInterval(openBox,10); 
} 



document.write("<span id=tmpAreaLmtDiv></span>");

//ر,С,
function showDiv(swidth){
    if(document.getElementById('PcPoPmarket')==null)return;	
	document.getElementById('PcPoPmarket').style.height = swidth+'px';
	document.getElementById('showvod').style.display = 'none';
	document.getElementById('hidevod').style.display = 'block';
}

function hideDiv(){
    if(document.getElementById('PcPoPmarket')==null)return;
	document.getElementById('PcPoPmarket').style.height = 29 + 'px';
	document.getElementById('hidevod').style.display = 'none';
	document.getElementById('showvod').style.display = 'block';	
}

function closeDiv(){
    if(document.getElementById('PcPoPmarket')==null)return;
	document.getElementById('PcPoPmarket').style.display = 'none';	
}

function ShowPoPDiv(pwidth,staytime,pagehtml)
{
	var patn= new RegExp("^[0-9]+$");
	staytime=(patn.test(staytime))?Number(staytime)*1000:3000;	
	if (pagehtml!=null && pagehtml.length > 0){
		var s="";
		try{
			//Ϊ˼ xhtml1.0  html4 / ie6 ie7 ff ļhack
			if(document.compatMode && document.compatMode != 'BackCompat'){
				s+=('<DIV  style="z-index:9;right:0;bottom:0; height:237px;width:350px;overflow:hidden;POSITION:fixed;'+(/MSIE 7/.test(navigator.appVersion)?'':'_position:absolute; _margin-top:expression(document.documentElement.clientHeight-this.style.pixelHeight+document.documentElement.scrollTop);')+'" id="PcPoPmarket" >');
			}
			else {
				s+=('<DIV  style="z-index:9;right:0;bottom:0; height:237px;width:350px;overflow:hidden;POSITION:fixed;*position:absolute; *top:expression(eval(document.body.scrollTop)+eval(document.body.clientHeight)-this.style.pixelHeight);" id="PcPoPmarket" >');
			}
			s+=(' <div style="z-index:9; POSITION: absolute; width:350px; height:30px; overflow:hidden;"><span style="CURSOR: pointer;float:left;clear:none; width:123px; height:14px; overflow:hidden; margin:10px 5px;"></span><span style="CURSOR: pointer;float:right;clear:none; width:15px; height:14px; margin:6px 5px;" onclick=closeDiv()></span><span style="background-image:url(http://www1.pconline.com.cn/images/lmt/oncity_big.gif);CURSOR: pointer;float:right; width:15px; height:14px; overflow:hidden;clear:none;display:none; margin:9px 1px 0 0; " onclick=showDiv('+pwidth+') id="showvod"></span><span style="background-image:url(http://www1.pconline.com.cn/images/lmt/oncity_small.gif);CURSOR: pointer;float:right;overflow:hidden; width:15px; height:14px; clear:none; display:bolck; margin:9px 1px 0 0;" onclick=hideDiv() id="hidevod"></span></div> ');
			s+=("<iframe scrolling=no frameborder=0 width=350 height="+pwidth+" src="+pagehtml+" />-</iframe>");
			s+=('</DIV>');
			document.getElementById('tmpAreaLmtDiv').innerHTML = s;
			setTimeout('hideDiv();', staytime);
		}catch(err){}
	}
	showDiv(pwidth);
}