// JavaScript Document


  
  document.write("<div id='John'></div>");
  loadLayer("John");

  function John_HideLayer() { John_Layer.style.visibility = "hidden";}
  function John_ShowLayer(WebName,URL)
  {
  John_Layer.style.visibility = "visible";
  document.getElementById("WebName").innerHTML=WebName;  
  document.getElementById("John_iframe").src="http://wap.st.gmcc.net/makewap/pushbookmark.asp?url="+escape(URL)+"/&title="+escape(WebName);
  
  }
  function show(){window.event.cancelBubble = true;}
  var Obj="" ;
  document.onmouseup=MUp;document.onmousemove=MMove;
  function MDown(Object){Obj=Object.id;document.all(Obj).setCapture();pX=event.x-document.all(Obj).style.pixelLeft;pY=event.y-  document.all(Obj).style.pixelTop;}
  function MMove(){if(Obj!=""){document.all(Obj).style.left=event.x-pX;document.all(Obj).style.top=event.y-pY;}}
  function MUp(){if(Obj!=""){document.all(Obj).releaseCapture();Obj="";}}
function loadLayer(contentid){
	var ocontent=document.getElementById(contentid);				
		ocontent.innerHTML="<div  id='John_Layer' onclick=show() style='position:absolute;width:406px;height=406px;z-index:202;visibility:hidden; border:1px inset gray; background-color: #f0f8ff;  left:300; top:137;'><div style='bgcolor:#f0f8ff;cursor:move;align=center;text-indent:5px;font-weight:bold; font-size:12px; height:20px;color:gray;line-height:20px;border:1px solid gray; width=406' onmousedown=MDown(John_Layer)><span style='float:right;margin-right:5px;cursor:hand' onclick='John_HideLayer() '>关闭</span>[<label id='WebName'></label>]移动互联网直通车</div><iframe   id='John_iframe' width=406 height=406 scrolling='no'></iframe></div>";
			
}



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("lovexin12").style.top)+percent+"px";

lastScrollY=lastScrollY+percent; 
//alert(lastScrollY);
}
suspendcode12="<DIV id=\"lovexin12\" style='left:22px;POSITION:absolute;TOP:160px;'><a href='#' onclick='John_ShowLayer(\"汕头产权交易市场\",\"http://www.stpe.net\")'><img src='float/100x100.gif' border=0/></a></div>"
suspendcode14="<DIV id=\"lovexin14\" style='right:22px;POSITION:absolute;TOP:160px;'><a href='http://yw.febar.com.cn' target='_blank'><img src='float/sjyw.gif' border=0/></a></div>"

document.write(suspendcode12); 
document.write(suspendcode14); 
window.setInterval("heartBeat()",1);

