document.write("<link rel='stylesheet' href='css/topMenu.css' type='text/css' />");
	
//	$(document).ready(function(){	    
//       $(".menuBar").mouseover(function(event){       
//        $(this).find("ul").css("visibility", "visible");        
//       });
//       $("li.menuBar").mouseout(function(event){
//        $(this).find("ul").css("visibility", "hidden");       
//       });
//     });

$(document).ready(function(){
           $('#menuList .menuBar ul').each(function(index) {
              $(this).css("width",$(this).width());
              $(this).attr("oh", $(this).height());
           });
           $("#menuList .menuBar ul").css("display", "none");
           $("#menuList .menuBar ul").css("visibility", "visible");
           $("#menuList .menuBar").css("background-color", "transparent");
           $("#menuList .menuBar").hover(function (event) {
               try { if ($(this, "ul")) { $(this).find("ul").stop(true, true).slideDown('fast'); $(this).css("height", $(this).find("ul").attr("oh") + "px"); } } catch (e) { }
           }, function (event) {
               try { if ($(this, "ul")) { $(this).find("ul").stop(true, true).slideUp('fast'); $(this).css("height", "17px"); } } catch (e) { }
           });       
        });

  /* This block of script is for scrolling issue on sifr fonts */
  function handle(delta) {
  if (delta < 0)
	        window.scrollBy(0,60);
        else
		    window.scrollBy(0,-60);
}

function wheel(event){
        var delta = 0;
        if (!event)
                event = window.event;
        if (event.wheelDelta) {
                delta = event.wheelDelta/120;
                if (window.opera)
                        delta = -delta;
        } else if (event.detail) {
                delta = -event.detail/3;
        }
        if (delta)
                handle(delta);
        if (event.preventDefault)
                event.preventDefault();
	event.returnValue = false;
}
if (window.addEventListener)
        window.addEventListener('DOMMouseScroll', wheel, false);
window.onmousewheel = document.onmousewheel = wheel;

