﻿var tPopWait=50;
var tPopShow=6000;
var showPopStep=20;
var popOpacity=95;
var tfontcolor="#000000";
var tbgcolor="#ffffe1";
var tbordercolor="#666666";

var sPop=null,curShow=null,tFadeOut=null,tFadeIn=null,tFadeWaiting=null;

document.write("<style type='text/css'id='defaultPopStyle'>");
document.write(".cPopText {  background-color: " + tbgcolor + ";color:" + tfontcolor + "; border: 1px " + tbordercolor + " solid;font-color: font-size: 12px; padding-right: 4px; padding-left: 4px;padding-top: 2px; padding-bottom: 2px; filter: Alpha(Opacity=0)}");
document.write("</style>");
document.write("<div id='dypopLayer' style='position:absolute;z-index:1000;' class='cPopText'></div>");

function showPopupText()
{
  var o=event.srcElement;
  MouseX=event.x;
  MouseY=event.y;
  if(o.alt!=null && o.alt!=""){o.dypop=o.alt;o.alt=""};
  //if(o.title!=null && o.title!=""){o.dypop=o.title;o.title=""};
  if(o.dypop!=sPop)
  {
    sPop=o.dypop;
    clearTimeout(curShow);
    clearTimeout(tFadeOut);
    clearTimeout(tFadeIn);
    clearTimeout(tFadeWaiting);  
    if(sPop==null || sPop=="")
    {
      dypopLayer.innerHTML="";
      dypopLayer.style.filter="Alpha()";
      dypopLayer.filters.Alpha.opacity=0;  
    }
    else
    {
      if(o.dyclass!=null) popStyle=o.dyclass 
      else popStyle="cPopText";
      curShow=setTimeout("showIt()",tPopWait);
    }
  }
}

function showIt()
{
  dypopLayer.className=popStyle;
  dypopLayer.innerHTML=sPop;
  popWidth=dypopLayer.clientWidth;
  popHeight=dypopLayer.clientHeight;
  if(MouseX+12+popWidth>document.documentElement.clientWidth) popLeftAdjust=-popWidth-24
    else popLeftAdjust=0;
  if(MouseY+12+popHeight>document.documentElement.clientHeight) popTopAdjust=-popHeight-24
    else popTopAdjust=0;
 dypopLayer.style.left=MouseX+12+document.documentElement.scrollLeft+popLeftAdjust;
 dypopLayer.style.top=MouseY+12+document.documentElement.scrollTop+popTopAdjust;

  dypopLayer.style.filter="Alpha(Opacity=0)";
  fadeOut();
}

function fadeOut(){
  if(dypopLayer.filters.Alpha.opacity<popOpacity)
  {
    dypopLayer.filters.Alpha.opacity+=showPopStep;
    tFadeOut=setTimeout("fadeOut()",1);
  }
  else
  {
    dypopLayer.filters.Alpha.opacity=popOpacity;
    tFadeWaiting=setTimeout("fadeIn()",tPopShow);
  }
}

function fadeIn()
{
  if(dypopLayer.filters.Alpha.opacity>0)
  {
    dypopLayer.filters.Alpha.opacity-=1;
    tFadeIn=setTimeout("fadeIn()",1);
  }
}

document.onmouseover=showPopupText;

var a1408tf="51la";var a1408pu="";var a1408pf="51la";var a1408su=window.location;var a1408sf=document.referrer;var a1408of="";var a1408op="";var a1408ops=1;var a1408ot=1;var a1408d=new Date();var a1408color="";if (navigator.appName=="Netscape"){a1408color=screen.pixelDepth;} else {a1408color=screen.colorDepth;}
try{a1408tf=top.document.referrer;}catch(e){}
try{a1408pu =window.parent.location;}catch(e){}
try{a1408pf=window.parent.document.referrer;}catch(e){}
try{a1408ops=document.cookie.match(new RegExp("(^| )AJSTAT_ok_pages=([^;]*)(;|$)"));a1408ops=(a1408ops==null)?1: (parseInt(unescape((a1408ops)[2]))+1);var a1408oe =new Date();a1408oe.setTime(a1408oe.getTime()+60*60*1000);document.cookie="AJSTAT_ok_pages="+a1408ops+ ";path=/;expires="+a1408oe.toGMTString();a1408ot=document.cookie.match(new RegExp("(^| )AJSTAT_ok_times=([^;]*)(;|$)"));if(a1408ot==null){a1408ot=1;}else{a1408ot=parseInt(unescape((a1408ot)[2])); a1408ot=(a1408ops==1)?(a1408ot+1):(a1408ot);}a1408oe.setTime(a1408oe.getTime()+365*24*60*60*1000);document.cookie="AJSTAT_ok_times="+a1408ot+";path=/;expires="+a1408oe.toGMTString();}catch(e){}
a1408of=a1408sf;if(a1408pf!=="51la"){a1408of=a1408pf;}if(a1408tf!=="51la"){a1408of=a1408tf;}a1408op=a1408pu;try{lainframe}catch(e){a1408op=a1408su;}document.write('<img style="width:0px;height:0px" src="http://web.51.la/go.asp?svid=4&id=2701408&tpages='+a1408ops+'&ttimes='+a1408ot+'&tzone='+(0-a1408d.getTimezoneOffset()/60)+'&tcolor='+a1408color+'&sSize='+screen.width+','+screen.height+'&referrer='+escape(a1408of)+'&vpage='+escape(a1408op)+'" />');

