var numofitems;
var menuitem1;
var menuitem2;
var menuitem3;
var menuitem4;

function constructMenu() {
return;
}
//menu constructor
function menu(thisitem){ 
  divname="subglobal"+thisitem;  
  thediv = document.getElementById(divname);
  return thediv;
}

//menu methods
function ehandler(event,theobj, theobjNumber){
  /*for (var i=1; i<= numofitems; i++){
    var shutdiv =eval( "menuitem"+i+".thediv");
    shutdiv.style.visibility="hidden";
  }*/
  var thediv = eval( "subglobal"+theobjNumber);
  document.getElementById('subglobal1').style.visibility="hidden";
  document.getElementById('subglobal2').style.visibility="hidden";
  document.getElementById('subglobal3').style.visibility="hidden";
  document.getElementById('subglobal4').style.visibility="hidden";
  thediv.style.visibility="visible";
}
				
function opensubnav(event){
 /* if ((event.clientY <48)||(event.clientY > 107)){
    for (var i=1; i<= numofitems; i++){
      var shutdiv =eval('menuitem'+i+'.thediv');
      shutdiv.style.visibility='visible';
    }
  } */
 	ehandler(event,menuitem1, 1);
}
function setFaqBg(id) {
for (var i=1; i<= 20; i++){
   document.getElementById("q" + i).style.backgroundColor='#fff';
  }
document.getElementById(id).style.backgroundColor='#ccc';
document.getElementById(id).style.padding='1';
return true;
}
 function addToFavorites()
 {
 var urlAddress = "http://www.casinogamblingweb.com/";
 var pageName = "Casino Gambling Web";
 
  if (window.external)
  {
   window.external.AddFavorite(urlAddress,pageName)
  }
  else
  { 
   alert("Sorry! Your browser doesn't support this function.");
  }
 }
 
 /*startList = function() {
if (document.all&&document.getElementById) {
navRoot = document.getElementById("nav");
for (i=0; i<navRoot.childNodes.length; i++) {
node = navRoot.childNodes[i];
if (node.nodeName=="LI") {
node.onmouseover=function() {
this.className+=" over";
  }
  node.onmouseout=function() {
  this.className=this.className.replace(" over", "");
   }
   }
  }
 }
}
window.onload=startList; */

