
var rover = new Array();
var roff = new Array();
var rSelect = new Array();
var id = getQueryString('sec')
if (id==''){
	id='1'
}
var strLoc = "menu_" + id;

	for (i = 1; i <= 6; i++) {
		rover[i] = new Image;
		roff[i] = new Image;
		rSelect[i] = new Image;
	}

	rover[1].src = "images/homeBut_On.gif";
	roff[1].src = "images/homeBut.gif";
	rover[2].src = "images/historyBut_On.gif";
	roff[2].src = "images/historyBut.gif";
	rover[3].src = "images/fastnetBut_On.gif";
	roff[3].src = "images/fastnetBut.gif";
	rover[4].src = "images/crewBut_On.gif";
	roff[4].src = "images/crewBut.gif";
	rover[5].src = "images/pressBut_On.gif";
	roff[5].src = "images/pressBut.gif";
	rover[6].src = "images/contactBut_On.gif";
	roff[6].src = "images/contactBut.gif";

	
	rSelect[1].src = "images/pressBut.gif";

						
	// === Set state for menu image for section === //
			
// ====================================================== //	
function rollover(id) {
	var strID = "menu_" + id;
	document.getElementById(strID).src = rover[id].src;
}
// ====================================================== //
function rolloff(id) {
	var strID = "menu_" + id;
	document.getElementById(strID).src = roff[id].src;
	
		
}
// ====================================================== //
//      This function is used to extract a value from  	  //	
//   	 	a querystring					     		  //
// ====================================================== //
function getQueryString(param){


  var begin,end;	
  if(self.location.search.length>1)
  {
    begin=self.location.search.indexOf(param) +param.length+1;
    end=self.location.search.indexOf("&",begin);
    if(end==(-1)) end=self.location.search.length;
    return(self.location.search.substring(begin,end));
		
  }
  else if(self.location.hash.length>1)
  {
    begin=self.location.hash.indexOf(param) +param.length+1;
    end=self.location.hash.indexOf("&",begin);
    if(end==(-1)) end=self.location.hash.length;
    return(self.location.hash.substring(begin,end));
		
  }
  else return("");
}
// ====================================================== //