// JavaScript Document $(function() { $("#menu_small").css({marginTop:$("#center_box").height() - 732}); $("#center_panel").css({minHeight:$(document).height() - 200}); $('#left_panel').disableTextSelect(); $('.menu_head').disableTextSelect(); $('.menu_body').disableTextSelect(); $('div#menu_down').disableTextSelect(); showTop(); }); $(document).ready(function() { var cook = $.cookie("stomat"); if (cook != null) $("p.menu_head:contains("+cook+")").next("div.menu_body").slideToggle(0); $('div#slide_show').innerfade({ speed: 1000, timeout: 5000, type: 'sequence', containerheight: '153px' }); $("#a1").mouseover(function() {$(this).css({backgroundImage:"url(/img/1m.png)"}); //$("#w").css({backgroundImage:"url(/img/1b.png)"}); }); $("#a2").mouseover(function() {$(this).css({backgroundImage:"url(/img/2m.png)"}); //$("#w").css({backgroundImage:"url(/img/2b.png)"}); }); $("#a3").mouseover(function() {$(this).css({backgroundImage:"url(/img/3m.png)"}); //$("#w").css({backgroundImage:"url(/img/3b.png)"}); }); $("#a4").mouseover(function() {$(this).css({backgroundImage:"url(/img/4m.png)"}); //$("#w").css({backgroundImage:"url(/img/4b.png)"}); }); $("#a5").mouseover(function() {$(this).css({backgroundImage:"url(/img/5m.png)"}); //$("#w").css({backgroundImage:"url(/img/5b.png)"}); }); $("#a6").mouseover(function() {$(this).css({backgroundImage:"url(/img/6m.png)"}); //$("#w").css({backgroundImage:"url(/img/6b.png)"}); }); $("#a1").mouseout(function() {$(this).css({backgroundImage:"url(/img/1s.png)"}); //$("#w").css({backgroundImage:"url(/img/1f.png)"}); }); $("#a2").mouseout(function() {$(this).css({backgroundImage:"url(/img/2s.png)"}); //$("#w").css({backgroundImage:"url(/img/1f.png)"}); }); $("#a3").mouseout(function() {$(this).css({backgroundImage:"url(/img/3s.png)"}); //$("#w").css({backgroundImage:"url(/img/1f.png)"}); }); $("#a4").mouseout(function() {$(this).css({backgroundImage:"url(/img/4s.png)"}); //$("#w").css({backgroundImage:"url(/img/1f.png)"}); }); $("#a5").mouseout(function() {$(this).css({backgroundImage:"url(/img/5s.png)"}); //$("#w").css({backgroundImage:"url(/img/1f.png)"}); }); $("#a6").mouseout(function() {$(this).css({backgroundImage:"url(/img/6s.png)"}); //$("#w").css({backgroundImage:"url(/img/1f.png)"}); }); //slides the element with class "menu_body" when paragraph with class "menu_head" is clicked $("#firstpane p.menu_head").click(function() { $(this).next("div.menu_body").slideToggle(300).siblings("div.menu_body").slideUp("slow"); $(this).siblings(); a = $(this).html(); b = $.cookie("stomat"); if(a == b)$.cookie('stomat',null,{path : '/'}); else $.cookie('stomat',a,{path : '/'}); return false; }); $("#firstpane p.menu_head").mouseover(function() { $(this).css({'color' : 'rgb(255,255,0)'}); //'color' : 'rgb(166,222,255)' }); $("#firstpane p.menu_head").mouseout(function() { $(this).css({'color' : 'rgb(255,255,255)'}); //'color' : 'rgb(0,40,244)' }); /* NEW -------------------------------------------------------------------------- */ $("#firstpane p.menu_head_price").click(function() { $(this).next("div.menu_body_price").slideToggle(300).siblings("div.menu_body_price").slideUp("slow"); $(this).siblings(); }); $("#firstpane p.menu_head_price").mouseover(function() { $(this).css({'color' : 'rgb(255,255,0)'}); //'color' : 'rgb(166,222,255)' }); $("#firstpane p.menu_head_price").mouseout(function() { $(this).css({'color' : 'rgb(255,255,255)'}); //'color' : 'rgb(0,40,244)' }); }); function showTop() { //$("#head").css("display", "none"); //$("#head").fadeIn(2000); $("#a1").css("display", "none"); $("#a1").delay(300) $("#a1").fadeIn(2000); $("#a2").css("display", "none"); $("#a2").delay(600) $("#a2").fadeIn(2000); $("#a3").css("display", "none"); $("#a3").delay(900) $("#a3").fadeIn(2000); $("#a4").css("display", "none"); $("#a4").delay(1200) $("#a4").fadeIn(2000); $("#a5").css("display", "none"); $("#a5").delay(1500) $("#a5").fadeIn(2000); $("#a6").css("display", "none"); $("#a6").delay(1800) $("#a6").fadeIn(2000); $("#w").css("display", "none"); $("#w").delay(2100) $("#w").fadeIn(2000); $("#slide_show").css("display", "none"); $("#slide_show").delay(2100) $("#slide_show").fadeIn(2000); }