function addFav() { if(document.all) { window.external.AddFavorite(location.href,document.title) } else { if(window.sidebar) { window.sidebar.addPanel(document.title,location.href,''); } } } function addDefault() { alert("Sorry, your browser can't set the home page."); } $(document).ready(function() { $(".gift_left").find("img").ifixpng(); $(".featured_image1").find("img").ifixpng(); $("#cluetip-outer").parent().hide().removeClass().end().children().empty(); $("#login_screen").draggable({ dragPrevention: 'input,a,img' }); $('#login_button_close').hover( function () { $("#login_button_close").append(''); }, function () { $("#login_button_close").empty(); } ); $(".new_menu_item3").find("img").css("opacity", 0.7); $('#login_button_ok').click(function() { ajax_test_login($("#login").val(), $("#password").val()); }); $("#login").keypress(function (e) { if(e.which == 13) ajax_test_login($("#login").val(), $("#password").val()); }); $("#password").keypress(function (e) { if(e.which == 13) ajax_test_login($("#login").val(), $("#password").val()); }); $('a').click(function() { this.blur(); }); $('#blank').height($(document).height()); $('#login_button').click( function() { $("#blank").css("opacity", "0"); $("#blank").css("display", "block"); $("#blank").fadeTo("slow", "0.8", function(){ $("#login_screen").css("opacity", "0"); $("#login_screen").css("display", "block"); $("#login_screen").fadeTo("slow", "1"); $("#login").focus(); }); }); $('#login_button_close').click( function() { $("#login_screen").fadeTo("slow", "0", function() { $("#login_screen").css("display", "none"); $("#blank").fadeTo("slow", "0", function() { $("#blank").css("display", "none"); }); }); }); $('#blank').click( function() { $("#login_screen").fadeTo("slow", "0", function() { $("#login_screen").css("display", "none"); $("#blank").fadeTo("slow", "0", function() { $("#blank").css("display", "none"); }); }); }); $("#back_button").css("cursor", "pointer"); $("#home_button").css("cursor", "pointer"); $("#back_button").hover( function() { $("#back_button").attr('src', '/images/back_button2.png'); }, function() { $("#back_button").attr('src', '/images/back_button.png'); } ); $("#home_button").hover( function() { $("#home_button").attr('src', '/images/home_button_h.png'); }, function() { $("#home_button").attr('src', '/images/home_button.png'); } ); if($.browser.msie) { $('a.jt').cluetip({ showTitle: false, width: 700, cluetipClass: 'jtip', cursor: 'pointer', arrows: false, positionBy: 'fixed', topOffset: 1, leftOffset: -10, dropShadow: false, hoverIntent: true, sticky: true, mouseOutClose: true, closePosition: 'title' }); } else { $('a.jt').cluetip({ showTitle: false, width: 700, cluetipClass: 'jtip', positionBy: 'fixed', cursor: 'pointer', leftOffset: -10, topOffset: -51, arrows: false, dropShadow: false, hoverIntent: true, sticky: true, mouseOutClose: true, closePosition: 'title' }); } $(".book_item").hover(function() { $(this).find(".book_buttons").css("visibility", "visible"); }, function() { $(this).find(".book_buttons").css("visibility", "hidden"); }); $('.new_menu_item').hover( function() { $(this).find("img").fadeTo("fast", 0.01); }, function() { $(this).find("img").fadeTo("fast", 1); } ); $('.new_menu_item2').hover( function() { $(this).find("img").fadeTo("fast", 0.01); }, function() { $(this).find("img").fadeTo("fast", 1); } ); $(".new_menu_item3").hover( function() { $(this).find("img").fadeTo("fast", 1); }, function() { $(this).find("img").fadeTo("fast", 0.7); } ); $("#new_logo_home").click(function() { window.location = '/'; }); $("#restaurant_menu_big").hover( function() { $(this).attr("src", "/images/new_menu_bigh.png"); }, function() { $(this).attr("src", "/images/new_menu_big.png"); } ); });