function MM_showHideLayers() { //v3.0

  var i,p,v,obj,args=MM_showHideLayers.arguments;

  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];

    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }

    obj.visibility=v; }

}



function MM_swapImgRestore() { //v3.0

  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;

}



function MM_preloadImages() { //v3.0

  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();

    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)

    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}

}



function MM_findObj(n, d) { //v4.0

  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {

    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}

  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];

  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);

  if(!x && document.getElementById) x=document.getElementById(n); return x;

}



function MM_swapImage() { //v3.0

  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)

   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}

}



function MM_openBrWindow(theURL,winName,features) { //v2.0

  window.open(theURL,winName,features);

}



function WM_netscapeCssFix() {

  /*

    Source: Webmonkey Code Library

    (http://www.hotwired.com/webmonkey/javascript/code_library/)



    Author: Taylor

    Author Email: taylor@wired.com

    Author URL: http://www.taylor.org/

    */



  // This part was inspired by Matthew_Baird@wayfarer.com

  // It gets around another unfortunate bug whereby Netscape 

  // fires a resize event when the scrollbars pop up. This 

  // checks to make sure that the window's available size 

  // has actually changed.

  if (document.WM.WM_netscapeCssFix.initWindowWidth != window.innerWidth || document.WM.WM_netscapeCssFix.initWindowHeight != window.innerHeight) {

    document.location = document.location;

  }

}



function WM_netscapeCssFixCheckIn() {

  // This function checks to make sure the version of Netscape 

  // in use contains the bug; if so, it records the window's 

  // width and height and sets all resize events to be handled 

  // by the WM_netscapeCssFix() function.

  if ((navigator.appName == 'Netscape') && (parseInt(navigator.appVersion) == 4)) {

    if (typeof document.WM == 'undefined'){

      document.WM = new Object;

    }

    if (typeof document.WM.WM_scaleFont == 'undefined') {

      document.WM.WM_netscapeCssFix = new Object;

      document.WM.WM_netscapeCssFix.initWindowWidth = window.innerWidth;

      document.WM.WM_netscapeCssFix.initWindowHeight = window.innerHeight;

    }

    window.onresize = WM_netscapeCssFix;

  }

}



WM_netscapeCssFixCheckIn()





function MM_jumpMenu(targ,selObj,restore){ //v3.0

  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");

  if (restore) selObj.selectedIndex=0;

}



var nifty_little_window = null;

function surveyLogin() {

  nifty_little_window = window.open('surveyLogin.html', 'surveyLogin',

  'width=350,height=174,resizable=1');

}





  // Begin Scroll Box

function scrl_param(){



  this.txt_ln="You've got 2 unread messages     *     You've got 1 new alert     *     ";



  this.speed=250; 



  this.box_lg=65;



  this.max=1000000;



  this.count=0;



  this.pos=0;  



  this.stop=0;



  this.box_ln=" ";





  if (this.txt_ln.length<this.box_lg) {  



      this.msg_ln=this.txt_ln; 



      for(var i=0 ;i<(this.box_lg-this.txt_ln.length);i++) this.msg_ln+=" "; 



  } else { 



     this.msg_ln=this.txt_ln; 



     this.msg_ln+="          ";



  }  





}





var scrl=new scrl_param();





function scrlbox () {





  if (scrl.pos>scrl.msg_ln.length) {



    scrl.pos=1;  



    scrl.count++; 



  } 





  scrl.box_ln=" "; 



  scrl.box_ln+=scrl.msg_ln.substring(scrl.pos,scrl.msg_ln.length);  



  scrl.box_ln+=scrl.msg_ln.substring(0,scrl.pos);  





  

    if (scrl.count<scrl.max) { 



      scrl.pos++;



      document.scrlform.scrlbox.value=scrl.box_ln;



      time3=window.setTimeout('scrlbox()',scrl.speed);



    } else {



       if (scrl.end_ln.length>2) {



         time2=window.setTimeout("document.scrlform.scrlbox.value="+ 'scrl.end_ln',scrl.speed); 



       } 



       document.scrlform.scrlbox.blur();



    }                              



  } 







function startscrl () {





  scrl.pos=0; 



  scrlbox(); 



} 





function stopscrl () {



 scrl.stop=0; 



} 



  // End Scroll Box

  



  // Begin Clock



function showMilitaryTime() {



if (document.form.showMilitary[0].checked) {



return true;



}



return false;



}



function showTheHours(theHour) {



if (showMilitaryTime() || (theHour > 0 && theHour < 13)) {



return (theHour);



}



if (theHour == 0) {



return (12);



}



return (theHour-12);



}



function showZeroFilled(inValue) {



if (inValue > 9) {



return "" + inValue;



}



return "0" + inValue;



}



function showAmPm() {



if (showMilitaryTime()) {



return ("");



}



if (now.getHours() < 12) {



return (" am");



}



return (" pm");



}



function showTheTime() {



now = new Date



document.form.showTime.value = showTheHours(now.getHours()) + ":" +

showZeroFilled(now.getMinutes()) + ":" + showZeroFilled(now.getSeconds()) +

showAmPm()



setTimeout("showTheTime()",1000)



}



// End Clock



