var win, x, y, ispeed, idelay;var pWidth, pHeight;function createPopUp(){  pWidth = document.body.clientWidth;  pHeight = document.body.clientHeight;  x = 0;  y = pWidth/2;  win = window.open("autoshow.html","banner.gif","height=350,width=500");  setInterval("if(!win.closed) win.focus();", 100);  moveIn();}function moveIn(){  x = x + 2;  if(x < pWidth/2)  {     win.moveTo(x,y);     ispeed = setTimeout("moveIn()", 24);  }  else  {     clearTimeout(ispeed);     startDelay();  }}function startDelay(){  idelay = setTimeout("endDelay()", 5000);}function endDelay(){  clearTimeout(idelay);  moveOut();  }function moveOut(){  x = x + 2;  if(x < pWidth - 100)  {     win.moveTo(x,y);     ispeed = setTimeout("moveOut()", 24);  }  else  {     clearTimeout(ispeed);     win.close();  }}