function IEHoverPseudo() {
    var navItems = document.getElementById("utilNav").getElementsByTagName("li");
    for (var i=0; i<navItems.length; i++) {
        if (navItems[i].className == "menuparent") {
            navItems[i].onmouseover=function() { 
            this.className += " over"; 
            this.style.zIndex=2000;
         }
           navItems[i].onmouseout=function() { this.className = "menuparent"; }
        }
        else if (navItems[i].className == "menuparent arrow") {
            navItems[i].onmouseover=function() { 
            this.className += " over"; 
            this.style.zIndex=2000;
         }
           navItems[i].onmouseout=function() { this.className = "menuparent arrow"; }
        }
        else if (navItems[i].className == "menuparent lastItem") {
            navItems[i].onmouseover=function() { 
            this.className += " over"; 
            this.style.zIndex=2000;
         }
           navItems[i].onmouseout=function() { this.className = "menuparent lastItem"; }
        }
    }
}


function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
 

// Togle layer script

function toggleLayer( whichLayer )
{
  var elem, vis;
  if( document.getElementById ) // this is the way the standards work
    elem = document.getElementById( whichLayer );
  else if( document.all ) // this is the way old msie versions work
      elem = document.all[whichLayer];
  else if( document.layers ) // this is the way nn4 works
    elem = document.layers[whichLayer];
  vis = elem.style;
  // if the style.display value is blank we try to figure it out here
  if(vis.display==''&&elem.offsetWidth!=undefined&&elem.offsetHeight!=undefined)
    vis.display = (elem.offsetWidth!=0&&elem.offsetHeight!=0)?'block':'none';
  vis.display = (vis.display==''||vis.display=='block')?'none':'block';
}



//Querystring parser


//This is the script to take querystrings from the URL and convert them into
//a Javascript array. "?search=whatever" becomes querystring["search"] 
//this loads the portion of the url containing the querystring, and also
//decodes any special character codes  
var que = unescape(location.search);
//remove the ? from the beginning of the string
var que = que.substring(1, que.length);
//detects multiple values and splits them into an array que[0], que[1] etc...
var que = que.split("&");
// creates the querystring array
var querystring = new Array();
//(for some strange reason the "for/next" loop wasn't working)
var loop = 0;
//This loop takes each value in the que array then seperates the "names" 
//from the "values" by splitting it into "inter" arrays. the name becomes
// "inter3" and the value becomes "inter2". querystring then loads the "inter2" 
//value into a slot called "inter3"
while (loop < que.length)
 {
   var inter = que[loop].split("=");
   var inter2 = inter[1];
   var inter3 = inter[0]
   que[loop] = inter2;
   querystring[inter3] = inter2
   loop = loop + 1;
 } ;
//(C) Samuel Loy



function myURL(str){
str = escape(str);
return str;
}

