

$(document).ready(function() { /* JQUERY ONREADY FUNCTION */ 



});



function addEvent(obj, evType, fn) {  /* GENERIC ADD EVENT SCRIPT */

 if (obj.addEventListener) { obj.addEventListener(evType, fn, false);  return true; }
 else if (obj.attachEvent) { var r = obj.attachEvent("on"+evType, fn); return r;    }
 else                      { return false; }
}


/* ROLLOVERS */

var imgz = new Array

function rollinit() {
  if (document.getElementsByTagName) { var x = document.getElementsByTagName('*'); }
  else if (document.all.tags) { var x = document.all.tags('*'); }
  else { return false; }
  for (var i=0; i<x.length; i++) {
    if (x[i].className.substring(0,5) == 'roll:') {
      rollsrc = x[i].className.substring(5,x[i].className.length);
      if ( rollsrc > '' )  {
        imgz[i]=new Image; imgz[i].src = rollsrc;
        x[i].onmouseover = function () { origSrc=this.src; this.src=this.className.substring(5,this.className.length); }
        x[i].onmouseout  = function () { if(typeof(origSrc)!='undefined') {this.src=origSrc} }
      }
    }
  }
}

addEvent(window, 'load', rollinit);



$(document).ready(function() {

/* submenu show/hide */
$("#nav li").mouseover(function() { $(this).find("ul").css({display:'block'}); });
$("#nav li").mouseout(function()  { $(this).find("ul").css({display:'none'}); });

});

