$(document).ready(function(){ $("#panel a.closer").click(function () {$("#panel").fadeOut("slow");}); }); //$(function() //{ //$.extend($.fn.jScrollPane.defaults, {showArrows:true}); //$('#text_content').jScrollPane(); //}); // The following is just a little piece of jquery JS to open links // with a class of "external" in a new window. $(function(){ $('a.external').click(function(){ window.open(this.href); return false; }); }); jQuery(function() { // set class to "on" for all li ancestors of anchors pointing to the current page var page = location.href; page = page.replace(/http:\/\/[^\/]+/i,""); jQuery("a[href=" + page + "]").parents().filter('li').each(function() {jQuery(this).addClass("on");}); // onclick remove "on" class for all li elements // var lis = jQuery("li"); // jQuery(function() { // jQuery("li").click(function(){jQuery(lis).removeClass("on")}); // }); }); function slideSwitch() { var $active = $('#slideshow IMG.active'); if ( $active.length == 0 ) $active = $('#slideshow IMG:last'); var $next = $active.next().length ? $active.next() : $('#slideshow IMG:first'); $active.addClass('last-active'); $next.css({opacity: 0.0}) .addClass('active') .animate({opacity: 1.0}, 1000, function() { $active.removeClass('active last-active'); }); } $(function() { setInterval( "slideSwitch()", 4000 ); }); // The following is just a little piece of jquery JS to open links // with a class of "external" in a new window. $(function(){ $('a.external').click(function(){ window.open(this.href); return false; }); }); $(function(){ if ($('div#special_offer_panel_final ul').children().length == 0) {$('div#special_offer_panel_final').hide();} if ($('div#special_offer_panel_lower ul').children().length == 0) {$('div#special_offer_panel_lower').hide();} if ($('div#special_offer_panel_last ul').children().length == 0) {$('div#special_offer_panel_last').hide();} if ($('div#special_offer_panel ul').children().length == 0) {$('div#special_offer_panel').hide();} });