$(document).ready(function() {
$("#menumap").hover(function() { $("#menumapcontent").addClass("on") }, function() { });
$("#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");
    $(this).addClass("on2"); $("ul#nav2 li.on").addClass("temp").removeClass("on");
    $(this).children("ul.sub_nav2").show()
}, function() {
$(this).css("position", "static");
$(this).removeClass("on2");
$("ul#nav2 li.temp").addClass("on").removeClass("temp");
$(this).children("ul.sub_nav2").hide()
})
$("ul#nav3 li").hover(function() {
    $(this).css("position", "relative");
    $(this).addClass("on2"); 
    $("ul#nav3 li.on").addClass("temp").removeClass("on");
    $(this).children("ul.sub_nav3").show()
}, function() {
$(this).css("position", "static");
$(this).removeClass("on2");
$("ul#nav3 li.temp").addClass("on").removeClass("temp");
$(this).children("ul.sub_nav3").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 }) }
function CreateFlvPlayer(VideoUrl, PlayerWidth, PlayerHeight, CoverUrl, ContainerId, ObjectId, PlayerAutoStart) {
    var flashvars = {file: VideoUrl,autostart: PlayerAutoStart,image: CoverUrl};
    var params = {allowfullscreen: "true",allowscriptaccess: "always",wmode: "transparent"};
    var attributes = {id: ObjectId,name: ObjectId};
    swfobject.embedSWF("js/flvplayer.swf", ContainerId, PlayerWidth, PlayerHeight, "9.0.115", "false", flashvars, params, attributes);
};
