$(document).ready( function() { $('.BtnOver').hover( function() { $(this).attr('src', $(this).attr('over')); }, function() { $(this).attr('src', $(this).attr('out')); } ); $('a.SliderLink').click( function() { thisSliderBox = $(this).parent('div.SliderBox'); thisSliderContainer = thisSliderBox.parent('div.SliderContainer'); boolSlideDown = true; if (thisSliderBox.hasClass('OpenedSlider')) { boolSlideDown = false; } thisSliderContainer.children('div.OpenedSlider').each( function() { $(this).children('div.SliderContent').slideUp( 'slow' ); $(this).removeClass('OpenedSlider'); $(this).addClass('ClosedSlider'); $(this).children('a.SliderLink').children('img').attr('src','/images/SliderArrowClosedSlider.gif'); }) if (boolSlideDown) { thisSliderBox.addClass('OpenedSlider'); thisSliderBox.removeClass('ClosedSlider'); $(this).children('img').attr('src','/images/SliderArrowOpenedSlider.gif'); thisSliderBox.children('div.SliderContent').slideDown( "slow" ) } }); }); $(function() { $(document).click( function() { $('.HideThis').fadeOut(); } ); $('.ShowTopNaviLayer').hover( function() { var LayerId = $(this).attr('layerid'); if (LayerId) { $('#nav_'+LayerId).addClass('ShowLayer'); } }, function() { var LayerId = $(this).attr('layerid'); if (LayerId) { $('#nav_'+LayerId).removeClass('ShowLayer'); } } ); $('.TopNaviLayer').hover( function() { var LayerId = $(this).attr('layerid'); $(this).addClass('OverLayer'); $('#img_'+LayerId).attr('src',$('#img_'+LayerId).attr('over')); }, function() { var LayerId = $(this).attr('layerid'); $(this).removeClass('OverLayer'); $('#img_'+LayerId).attr('src',$('#img_'+LayerId).attr('out')); } ); $('#search').focus( function() { $('.SearchContainer').addClass('SearchContainerFocus'); } ) $('#search').blur( function() { if ($(this).attr('value')=='') { $('.SearchContainer').removeClass('SearchContainerFocus'); } } ) /*$('.HideThis').click( function() { $(this).fadeOut(); })*/ $('a.noLink').click( function() { return false; }) }) function ShowThisClass(Class) { $('.'+Class).fadeIn(); } Shadowbox.init({ players: ["img","swf","iframe"] }); function OpenShadowbox(strLink) { strLink = '/images/'+strLink; Shadowbox.open({ content: strLink, player: "img" }); } function OpenShadowboxVid(strLink) { Shadowbox.open({ content: '/flash/tasteplayer2.swf', width: 660, height: 408, player: "swf", options: { flashVars: { imagePath:'/flash/media/flv/', moviePath:'/flash/media/flv/'+strLink, autoplay:'yes', }, flashParams: { scale:'noscale', wmode:'transparent' } } }); }