function colorIt(newBgColor) { try { if ($("#sushiIt").css("background-color").length > 0) { $("#sushiIt").animate({ backgroundColor: "rgb(" + newBgColor + ")" }, 500); $.cookie("lastBg", newBgColor, {expires: 365, path: '/'}); } } catch (err) { } } var isLastBg = 0; if($.cookie("lastBg")) { isLastBg = $.cookie("lastBg"); } $("#sushiIt").css("background-color", "rgb(" + isLastBg + ")"); $(document).ready(function(){ // $("#sushiIt").css({ backgroundColor: "rgb(" + isLastBg + ")" }); //alert (isLastBg); $(".menubox a.na img") .mouseover(function() { var src = $(this).attr("src").match(/[^\.]+/) + "_active.png"; $(this).attr("src", src); }) .mouseout(function() { var src = $(this).attr("src").replace("_active", ""); $(this).attr("src", src); }); $(" #menu2 ul ").css({display: "none"}); // Opera Fix $(" #menu2 li").hover(function(){ $(this).find('ul:first').css({visibility: "visible",display: "none"}).show(100); //$(this).parent().parent().find('a:first').css({background: "#ffffff", color: "#333333"}); $(this).find('a:first').css({background: "#ffffff", color: "#333333"}); },function(){ $(this).find('ul:first').css({visibility: "hidden"}); $(this).find('a:first').css({background: "#241c1c", color: "#ffffff"}); }); /* $('#menu2 a').click(function(){ var toLoad = $(this).attr('href')+' #menucontent'; $('#menucontent').fadeOut('fast',loadContent); $('#load').remove(); $('#wrapper').append('LOADING...'); $('#load').fadeIn('normal'); window.location.hash = $(this).attr('href').substr(0,$(this).attr('href').length-4); function loadContent() { $('#menucontent').load(toLoad,'',showNewContent()) } function showNewContent() { $('#menucontent').fadeIn('normal',hideLoader()); } function hideLoader() { $('#load').fadeOut('normal'); } return false; }); */ });