/*

  Floating Image Source Code 

*/ 


/* Main Module */


  var BrowserA=false;
  var BrowserB=false;
  var oldPageWidth=0;
  var oldPageHeight=0;
  var oldScrollWidth=0;
  var oldScrollHeight=0;
  var pageWidth=0;
  var pageHeight=0;
  var scrollWidth=0;
  var scrollHeight=0;
  var timerID=null;
  var floatImage=null;


  BrowserA=(navigator.appName=="Netscape");
  BrowserB=((navigator.appVersion.indexOf("MSIE") != -1) && (navigator.appVersion.indexOf("Mac") == -1));  

  if (BrowserA) 
   {
    var floatImage=this.document.point;
    checkNC();	
   }
 
  if (BrowserB)
   { 
    var floatImage=this.document.all.point;
    checkIE();	
   }
 
 

/* Functions Declares */


  function checkNC()
  { 

    if ((oldPageWidth != this.innerWidth) || (oldPageHeight != this.innerHeight) || (oldScrollWidth != this.pageXOffset) || (oldScrollHeight != this.pageYOffset) )
    { floatNC();  }
      timerID=this.setTimeout('checkNC();',100);

  }

  function floatNC()
  {    

    pageHeight = window.innerHeight
    pageWidth = window.innerWidth
    scrollWidth = window.pageXOffset
    scrollHeight = window.pageYOffset
     
    floatImage.visibility='hide';
    floatImage.top= (pageHeight+scrollHeight-(40));
    floatImage.left=(pageWidth+scrollWidth-(40));         
    floatImage.visibility='show';               

    oldPageWidth=pageWidth;
    oldPageHeight=pageHeight;
    oldScrollWidth=scrollWidth;
    oldScrollHeight=scrollHeight;

  }

  function checkIE()
  { 
 
    if ((oldPageWidth != this.document.body.clientWidth) || (oldPageHeight != this.document.body.clientHeight) || (oldScrollWidth != this.document.body.scrollLeft) || (oldScrollHeight != this.document.body.scrollTop) )
    { floatIE();  }
 
    timerID=this.setTimeout('checkIE();',100);

  }

  function floatIE()
  {    
	         
    pageWidth=this.document.body.clientWidth;
    pageHeight=this.document.body.clientHeight;
    scrollWidth=this.document.body.scrollLeft;
    scrollHeight=this.document.body.scrollTop;
	 
    floatImage.style.display='none';
    floatImage.style.top= (pageHeight+scrollHeight-(84));
    //floatImage.style.left=(pageWidth+scrollWidth-(180));         
	floatImage.style.left=742;
    floatImage.style.display='';               

    oldPageWidth=pageWidth;
    oldPageHeight=pageHeight;
    oldScrollWidth=scrollWidth;
    oldScrollHeight=scrollHeight;

  }
   




