$(document).ready( function () {
		
		$("#menumap").hover(function () {
			$("#menumapcontent").addClass("on");
			},
			function () {
			//$("#menumapcontent").removeClass("on");
			}) ;
		
		$("#menumapcontent").hover(function () {
			$("#menumapcontent").addClass("on");
			},
			function () {
			$("#menumapcontent").removeClass("on");
			}) ;
		
		$("ul#menu > li").hover(function () {
			$(this).addClass("on");
			$(this).parent().addClass("on");
			},
			function () {
			$(this).removeClass("on");
			$(this).parent().removeClass("on");
			}) ;
		$("ul#nav2 li").hover(function () {					
			$(this).css("position", "relative"); //bug z-index ie
			$(this).addClass("on2");
			$("ul#nav2 li.on").addClass("temp").removeClass("on");
			$(this).children("ul.sub_nav2").show();
			},
			function () {
			$(this).css("position", "static"); //bug z-index ie
			$(this).removeClass("on2");
			$("ul#nav2 li.temp").addClass("on").removeClass("temp");
			$(this).children("ul.sub_nav2").hide();
			}) ;
			
	} ) ;
	
    function selectRandom(max) {
        var r = Math.random();
        r *= max;
        r = parseInt(r);
        if(isNaN(r)) r = 0
        else r %= max
        return r
    }
    
    function GetLiveData(ThisUrl) {$.get(ThisUrl,function(Quote){document.getElementById("SharePrice").innerHTML = Quote;});}