
<!-- Google Analytics -->

var pageTracker = _gat._getTracker("UA-1121402-1");
pageTracker._trackPageview();

var marginLeft = -336;
var winW = 1024, winH = 460;

function flyin()
{
  if (document.getElementById('flyinBanner').style.display == "none")
  {
    document.getElementById('flyinBanner').style.display = "block";
    
    if (parseInt(navigator.appVersion)>3)
    {
      if (navigator.appName=="Netscape")
      {
        winW = window.innerWidth;
      }
      
      if (navigator.appName.indexOf("Microsoft")!=-1)
      {
        winW = document.body.offsetWidth;
      }
    }
    
    //alert(winW);
  }
  
  if (marginLeft<= winW - (winW/2) - 150)
  {
    // if(marginLeft > 0 && marginLeft < 337) document.getElementById('flyinBanner').style.width = marginLeft + "px";
    document.getElementById('flyinBanner').style.marginLeft = marginLeft + "px";
    setTimeout("flyin()",25);
  }
  
  marginLeft=marginLeft+20;
}




function populate()
{
  if (iedom)
  {
    cross_marquee=document.getElementById? document.getElementById("iemarquee") : document.all.iemarquee;
    cross_marquee.style.left=parseInt(marqueewidth)+8+"px";
    cross_marquee.innerHTML=marqueecontent;
    actualwidth=document.all? temp.offsetWidth : document.getElementById("temp").offsetWidth;
  }
  
  else if (document.layers)
  {
    ns_marquee=document.ns_marquee.document.ns_marquee2;
    ns_marquee.left=parseInt(marqueewidth)+8;
    ns_marquee.document.write(marqueecontent);
    ns_marquee.document.close();
    actualwidth=ns_marquee.document.width;
  }
  
  lefttime=setInterval("scrollmarquee()",20);
}

function scrollmarquee()
{
  if (iedom)
  {
    if (parseInt(cross_marquee.style.left)>(actualwidth*(-1)+8))
      cross_marquee.style.left=parseInt(cross_marquee.style.left)-copyspeed+"px";
    
    else
      cross_marquee.style.left=parseInt(marqueewidth)+8+"px";
  }
  
  else if (document.layers)
  {
    if (ns_marquee.left>(actualwidth*(-1)+8))
      ns_marquee.left-=copyspeed;
    else
      ns_marquee.left=parseInt(marqueewidth)+8;
  }
}

function ticker() {
  marqueewidth="526px";
  marqueeheight="20px";
  marqueespeed=1;
  marqueebgcolor="transparent";
  pauseit=1;
  
  //Specify the marquee's content (don't delete <nobr> tag)
  //Keep all content on ONE line, and backslash any single quotations (ie: that\'s great):
  
  marqueecontent='<nobr><span style="color:#00000 ;">'+marqueetext+'</span></nobr>';
  
  marqueespeed=(document.all)? marqueespeed : Math.max(1, marqueespeed-1);
  copyspeed=marqueespeed;
  pausespeed=(pauseit==0)? copyspeed: 0;
  iedom=document.all||document.getElementById;
  
  var txt = "";
  
  if (iedom)
    txt += '<span id="temp" style="visibility:hidden;position:absolute;top:-90px;left:-9000px; margin:0px; font-family: Verdana; font-size:11px; color:#000000;">'+marqueecontent+'</span>';
  
  actualwidth='';
  cross_marquee = false;
  ns_marquee = false;
  
  if (iedom||document.layers)
  {
    with (document)
    {
      txt += '<table border="0" cellspacing="0" cellpadding="0" align="center"><tr><td style="background-color:'+marqueebgcolor+'">';
      
      if (iedom)
      {
        txt += '<div style="position:relative;width:'+marqueewidth+';height:'+marqueeheight+';overflow:hidden">';
        txt += '<div id="elmouse" style="position:absolute;width:'+marqueewidth+';height:'+marqueeheight+';background-color:'+marqueebgcolor+'" onMouseover="copyspeed=pausespeed" onMouseout="copyspeed=marqueespeed">';
        txt += '<div id="iemarquee" style="position:absolute;left:0px;top:0px"></div>';
        txt += '</div></div>';
      }
      
      else if (document.layers)
      {
        txt += '<ilayer width='+marqueewidth+' height='+marqueeheight+' name="ns_marquee" bgColor='+marqueebgcolor+'>';
        txt += '<layer id="elmouse" name="ns_marquee2" left=0 top=0 onMouseover="copyspeed=pausespeed" onMouseout="copyspeed=marqueespeed"></layer>'; 
        txt += '</ilayer>';
      }
      txt += '</td></tr></table>';   
    }
  }
  $("hometicker").update(txt);
  
  populate();
}




Event.observe(window, 'load', function() { 
  if($("hometicker")) {
    ticker();
    Event.observe($("elmouse"), 'mouseover', function() { 
      copyspeed=pausespeed;
    });

    Event.observe($("elmouse"), 'mouseout', function() { 
      copyspeed=marqueespeed;
    });
  }
  //var scrollbar = new Control.ScrollBar('scrollbar_content','scrollbar_track');  
  //swfobject.registerObject("myFlashContent", "9.0.0");
});


