$(function() { // $('a[rel=lightbox]').lightBox(); // Select all links that contains lightbox in the attribute rel // $('a').lightBox(); $.fn.clearForm = function() { return this.each(function() { var type = this.type, tag = this.tagName.toLowerCase(); if (tag == 'form') return $(':input',this).clearForm(); if (type == 'text' || type == 'password' || tag == 'textarea') this.value = ''; else if (type == 'checkbox' || type == 'radio') this.checked = false; else if (tag == 'select') this.selectedIndex = -1; }); }; }); $(document).ready(function() { $("#content").html(''); $("#m1").attr('src','/theme/pic/m1b.jpg'); $("#content").load('htm/menu0.php', function(){ $('#scrollcontent2').jScrollPane({scrollbarWidth:9, scrollbarMargin:2, showArrows:true}); }); }); function menu1() { $("#m1").attr('src','/theme/pic/m1b.jpg'); $("#m2").attr('src','/theme/pic/m2.jpg'); $("#m3").attr('src','/theme/pic/m3.jpg'); $("#m4").attr('src','/theme/pic/m4.jpg'); $("#m5").attr('src','/theme/pic/m5.jpg'); $("#m1link").blur(); $("#content").html(''); $("#content").load('htm/menu1.php', function(){ $('#scrollcontent2').jScrollPane({scrollbarWidth:9, scrollbarMargin:2, showArrows:true}); $("#videocont").load('htm/menu1video.php?id=', function(){ $("#videocont").animate({opacity: 1},800,function(){ }); }); }); } function m1load(id) { $("#videobal").removeClass('videobal2'); $("#videojobb").removeClass('videojobb2'); $("#videocont").html(''); $("#videocont").load('htm/menu1video.php?id='+id, function(){ }); } function menu2() { $("#m1").attr('src','/theme/pic/m1.jpg'); $("#m2").attr('src','/theme/pic/m2b.jpg'); $("#m3").attr('src','/theme/pic/m3.jpg'); $("#m4").attr('src','/theme/pic/m4.jpg'); $("#m5").attr('src','/theme/pic/m5.jpg'); $("#m2link").blur(); $("#content").html(''); $("#content").load('htm/menu2.php', function(){ $('#scrollcontent2').jScrollPane({scrollbarWidth:9, scrollbarMargin:2, showArrows:true}); $("#videocont").load('htm/menu2video.php?id=', function(){ $("#videocont").animate({opacity: 1},800,function(){ }); }); }); } function m2load(id) { $("#videocont").html(''); $("#videocont").load('htm/menu2video.php?id='+id, function(){ }); } function menu3() { $("#m1").attr('src','/theme/pic/m1.jpg'); $("#m2").attr('src','/theme/pic/m2.jpg'); $("#m3").attr('src','/theme/pic/m3b.jpg'); $("#m4").attr('src','/theme/pic/m4.jpg'); $("#m5").attr('src','/theme/pic/m5.jpg'); $("#m3link").blur(); $("#content").html(''); $("#content").load('htm/menu3.php', function(){ $('#scrollcontent').jScrollPane({scrollbarWidth:9, scrollbarMargin:2, showArrows:true}); $("#fotocont").load('htm/menu3foto.php?id=', function(){ $("#fotocont").animate({opacity: 1},800,function(){ }); }); }); } function m3load(id) { $('#fotocont').animate({opacity: 0}, 900, function(){ $("#fotocont").html(''); $("#fotocont").load('htm/menu3foto.php?id='+id, function(){ $("#fotocont img").load(function() { $("#fotocont").animate({opacity: 1},800,function(){ }); }); }); }); } function menu4() { $("#m1").attr('src','/theme/pic/m1.jpg'); $("#m2").attr('src','/theme/pic/m2.jpg'); $("#m3").attr('src','/theme/pic/m3.jpg'); $("#m4").attr('src','/theme/pic/m4b.jpg'); $("#m5").attr('src','/theme/pic/m5.jpg'); $("#m4link").blur(); $("#content").html(''); $("#content").load('htm/menu4.php', function(){ $('#scrollcontent').jScrollPane({scrollbarWidth:9, scrollbarMargin:2, showArrows:true}); $("#fotocont").load('htm/menu4foto.php?id=', function(){ $("#fotocont").animate({opacity: 1},800,function(){ }); }); }); } function m4load(id) { $('#fotocont').animate({opacity: 0}, 900, function(){ $("#fotocont").html(''); $("#fotocont").load('htm/menu4foto.php?id='+id, function(){ $("#fotocont img").load(function() { $("#fotocont").animate({opacity: 1},800,function(){ }); }); }); }); } function menu5() { } function menucontact() { $("#m1").attr('src','/theme/pic/m1.jpg'); $("#m2").attr('src','/theme/pic/m2.jpg'); $("#m3").attr('src','/theme/pic/m3.jpg'); $("#m4").attr('src','/theme/pic/m4.jpg'); $("#m5").attr('src','/theme/pic/m5.jpg'); $("#m5link").blur(); $("#content").html(''); $("#content").load('htm/menucont.php', function(){ $("#videocont").animate({opacity: 1},800,function(){ }); }); } function menupartnerek() { $("#m1").attr('src','/theme/pic/m1.jpg'); $("#m2").attr('src','/theme/pic/m2.jpg'); $("#m3").attr('src','/theme/pic/m3.jpg'); $("#m4").attr('src','/theme/pic/m4.jpg'); $("#m5").attr('src','/theme/pic/m5.jpg'); $("#m1link").blur(); $("#content").html(''); $("#content").load('htm/menupartnerek.php', function(){ $("#videocont").animate({opacity: 1},800,function(){ }); }); } function menuabout() { $("#m1").attr('src','/theme/pic/m1.jpg'); $("#m2").attr('src','/theme/pic/m2.jpg'); $("#m3").attr('src','/theme/pic/m3.jpg'); $("#m4").attr('src','/theme/pic/m4.jpg'); $("#m5").attr('src','/theme/pic/m5b.jpg'); $("#m5link").blur(); $("#m5").blur(); $("#content").html(''); $("#content").load('htm/menuabout.php', function(){ $('#scrollcontent3').jScrollPane({scrollbarWidth:9, scrollbarMargin:2, showArrows:true}); $("#videocont").animate({opacity: 1},800,function(){ $('#scrollcontent3').jScrollPane({scrollbarWidth:9, scrollbarMargin:2, showArrows:true}); }); }); }