<!--
    //Cross-browser scroller adapted from Billy Peterson's 7/14/2000 SitePoint online column.
    //Use the MARQUEE tag for scrolling in IE.  In NS 4.x, use a LAYER inside an ILAYER and move the LAYER to the
    //left to create scrolling effect.

   //Specify the marquee's scroll speed (larger is faster) - used by both IE and Netscape scroll effect
   var speed=6;
   //Specify the marquee contents - also used by both IE and Netscape
   
   var marqueecontents='';

   function intializemarquee(){ //only used by Netscape
     if (document.layers){ //then browser is Netscape 4.x 
       document.cmarquee01.document.cmarquee02.document.write('<nobr>'+marqueecontents+'</nobr>');
       document.cmarquee01.document.cmarquee02.document.close();
       thelength=document.cmarquee01.document.cmarquee02.document.width;
       scrollit();
     }
   }

   function scrollit(){ //only used by Netscape
	 if (document.cmarquee01.document.cmarquee02.left>=thelength*(-1)){ 
	   document.cmarquee01.document.cmarquee02.left-=speed;
	   setTimeout("scrollit()",100);
	 }
	 else{
		document.cmarquee01.document.cmarquee02.left=300;
		scrollit();
	 } 
   }

function Is () //used by balloon help to determin browser version
{   // convert all characters to lowercase to simplify testing
    var agt=navigator.userAgent.toLowerCase()

    // *** BROWSER VERSION ***
    this.major = parseInt(navigator.appVersion)
	this.nav  = ((agt.indexOf('mozilla')!=-1) && ((agt.indexOf('spoofer')==-1)
                && (agt.indexOf('compatible') == -1)))
    this.nav4 = (this.nav && (this.major == 4))
    this.nav4up = this.nav && (this.major >= 4)

    this.ie   = (agt.indexOf("msie") != -1)
    this.ie4  = (this.ie && (this.major == 4))
    this.ie4up  = this.ie  && (this.major >= 4)
}
var is = new Is();


function maketheBalloon(id, width, message)
{
   var theString = '<STYLE TYPE="text/css">#'+id+'{width:'+width+';}</STYLE>';
   theString+='<DIV CLASS="balloon" id="'+id+'">'+message+'</DIV>';
   document.write(theString);
}

   //maketheBalloon("announcements",130,"view announcements");

function makeItVisible(id, event)
{
  //if (is.nav4up) {
  //K.B. 12/18/02 - replaced nav4up test with nav4, since Netscape 6.x and 7.x don't support the .layers object
  if (is.nav4) {
	document.layers[id].left = event.pageX + 20;
	document.layers[id].top = event.pageY + 15;
	document.layers[id].visibility="show";
  }
  else if (is.ie4up) {
	document.all[id].style.pixelLeft = (document.body.scrollLeft + event.clientX) + 10;
	document.all[id].style.pixelTop = (document.body.scrollTop + event.clientY) + 10;
	document.all[id].style.visibility="visible";
  }
  else { //k.b. else hope that browser supports W3C standard
    document.getElementById(id).style.left = (document.body.scrollLeft + event.clientX) + 10; 
    document.getElementById(id).style.top =  (document.body.scrollTop + event.clientY);
    document.getElementById(id).style.visibility = "visible";
  }		
}

function hideHelp(id) {
//	is.nav4up ? document.layers[id].visibility="hide" : document.all[id].style.visibility="hidden";
//	is.nav4 ? document.layers[id].visibility="hide" : document.all[id].style.visibility="hidden";
  if (is.nav4) 
    document.layers[id].visibility="hide"
  else if (is.ie4up) 
    document.all[id].style.visibility="hidden"
  else 
    document.getElementById(id).style.visibility = "hidden";      
}

//-->
