var today_date= new Date()
var month=today_date.getMonth()
var today=today_date.getDate()
var year=today_date.getYear()
if (year < 2005) {
year = 1900 + year;
}

var months = new Array(
"January",
"February",
"March",
"April",
"May",
"June",
"July",
"August",
"September",
"October",
"November",
"December");
// -->

activateMenu = function(nav) {

    /* currentStyle restricts the Javascript to IE only */
	if (document.all && document.getElementById(nav).currentStyle) {  
        var navroot = document.getElementById(nav);
        
        /* Get all the list items within the menu */
        var lis=navroot.getElementsByTagName("LI");  
        for (i=0; i<lis.length; i++) {
        
           /* If the LI has another menu level */
            if(lis[i].lastChild.tagName=="UL"){
            
                /* assign the function to the LI */
             	lis[i].onmouseover=function() {	
                
                   /* display the inner menu */
                   this.lastChild.style.display="block";
                }
                lis[i].onmouseout=function() {                       
                   this.lastChild.style.display="none";
                }
            }
        }
    }
}
window.onload= function(){
    /* pass the function the id of the top level UL */
    /* remove one, when only using one menu */
    activateMenu('nav'); 
/*    activateMenu('vertnav'); */
}


function random_imglink(){
  var myimages=new Array()
  //specify random images below. You can have as many as you wish
  myimages[1]="img/long1.jpg"
  myimages[2]="img/long2.jpg"
  myimages[3]="img/long3.jpg"
  myimages[4]="img/long4.jpg"
  myimages[5]="img/long5.jpg"
  myimages[6]="img/long6.jpg"
  myimages[7]="img/long7.jpg"

  //specify corresponding links below
  var imagelinks=new Array()
  imagelinks[1]="img/long1.jpg"
  imagelinks[2]="img/long2.jpg"
  imagelinks[3]="img/long3.jpg"
  imagelinks[4]="img/long4.jpg"
  imagelinks[5]="img/long5.jpg"
  imagelinks[6]="img/long6.jpg"
  imagelinks[7]="img/long7.jpg"

  var ry=Math.floor(Math.random()*myimages.length)

  if (ry==0)
     ry=1
 document.write('<img src="'+myimages[ry]+'" border=0>')
}

