var fixupLayers=new function(){
var i=0,k,f,af=document.getElementsByTagName("iframe");
for(k in af){f=af[k];
 if(f.nodeName && f.getAttribute("fixuptype")){
 if(f.getAttribute("fixuptype")=="float" && f.getAttribute("ismove") && f.getAttribute("ismove")=="auto"){
  f.onmouseout=function(){f.ismove="true"};
  f.onmouseover=function(){f.ismove="false"};
  f.ismove="true";}
  f.style.position="absolute";f.style.zIndex=999;this[i]=af[k];i++;}
 }this.length=i;}
function fixup(){
 var ph=document.documentElement.offsetHeight;
 var pw=document.documentElement.offsetWidth;
 var st=document.body.scrollTop;
 var fw,f,ft,lw,lh,mr=5;
 for(var i=0;i<fixupLayers.length;i++){
  f=fixupLayers[i];
  fw=parseInt(f.getAttribute("fixupwidth"));
  lw=f.offsetWidth;lh=f.offsetHeight;ft=f.getAttribute("fixuptype");
  if(ft=="top") f.style.pixelTop=st+fw;
  else if(ft=="bottom") f.style.pixelTop=st+ph-fw-lh-mr;
  else if(ft=="dl") f.style.pixelTop=st+fw+150;
  else if(ft=="float" && f.getAttribute("ismove") && f.getAttribute("ismove")=="true"){ms=5;
   if(f.getAttribute("movespeed")) ms=parseInt(f.getAttribute("movespeed"));
   if(!f.lastX){f.lastX=fw;f.moveX=ms;}
   if(!f.lastY){f.lastY=fw;f.moveY=ms;}
   f.lastX+=parseInt(f.moveX)-ms*Math.random();
   f.lastY+=parseInt(f.moveY)-ms*Math.random();
   if(parseInt(f.lastX)>pw-mr-lw-fw){f.lastX=pw-mr-lw-fw;f.moveX=0;}
   else if(parseInt(f.lastX)<mr+fw){f.lastX=mr+fw;f.moveX=ms;}
   if(parseInt(f.lastY)>ph-mr-lh-fw){f.lastY=ph-mr-lh-fw;f.moveY=0;}
   else if(parseInt(f.lastY)<mr+fw){f.lastY=mr+fw;f.moveY=ms;}
   f.style.pixelTop=parseInt(f.lastY)+st;
   f.style.pixelLeft=parseInt(f.lastX);}}}
if(_lf){clearInterval(_lf);
 var _lf=window.setInterval("fixup()",100);
}else var _lf=window.setInterval("fixup()",100);
