function setSiteStyle() { var windowWidth = $(window).width(); if (windowWidth<=1100) { if (!$("html").hasClass("small")) { $("html").addClass("small"); } } else { if ($("html").hasClass("small")) { $("html").removeClass("small"); } } } $(window).resize(function () { setSiteStyle(); }); setSiteStyle(); $(document).ready(function(){ $("#topMenu li").mouseenter(function(){ $(this).addClass("over"); }); $("#topMenu li").mouseleave(function(){ $(this).removeClass("over"); }); $("#callBack").click(function() { $.fancybox({ 'padding' : 20, 'transitionIn' : 'none', 'transitionOut' : 'none', 'href' : '/components/ajax_callback.phtml', 'type' : 'ajax' }); }); $(".searchForm input").focus(function(){ var txt = '�����'; if ($(this).val()==txt) { $(this).val(''); } }) $(".searchForm input").blur(function(){ var txt = '�����'; if ($(this).val()=='') { $(this).val(txt); } }) var txt = '�����'; var searchControl = $(".searchForm input[type='text']"); if (searchControl.val()=='') { searchControl.val(txt); } function currentSlide( current ) { $(".current_slide").text(current + " of " + $("#slides").slides("status","total") ); } $("#indexSlider").slidesjs({ width: 995, height: 250, play: { active: true, // [boolean] Generate the play and stop buttons. // You cannot use your own buttons. Sorry. effect: "slide", // [string] Can be either "slide" or "fade". interval: 5000, // [number] Time spent on each slide in milliseconds. auto: true, // [boolean] Start playing the slideshow on load. swap: false, // [boolean] show/hide stop and play buttons pauseOnHover: false, // [boolean] pause a playing slideshow on hover restartDelay: 2500 // [number] restart delay on inactive slideshow }, navigation: { active: false } }); $("#indexSlider2").slidesjs({ width: 473, height: 316, play: { active: true, // [boolean] Generate the play and stop buttons. // You cannot use your own buttons. Sorry. effect: "slide", // [string] Can be either "slide" or "fade". interval: 5000, // [number] Time spent on each slide in milliseconds. auto: true, // [boolean] Start playing the slideshow on load. swap: false, // [boolean] show/hide stop and play buttons pauseOnHover: false, // [boolean] pause a playing slideshow on hover restartDelay: 2500 // [number] restart delay on inactive slideshow }, navigation: { active: false } }); $("#indexSlider3").slidesjs({ width: 607, height: 250, play: { active: true, // [boolean] Generate the play and stop buttons. // You cannot use your own buttons. Sorry. effect: "slide", // [string] Can be either "slide" or "fade". interval: 5000, // [number] Time spent on each slide in milliseconds. auto: true, // [boolean] Start playing the slideshow on load. swap: false, // [boolean] show/hide stop and play buttons pauseOnHover: false, // [boolean] pause a playing slideshow on hover restartDelay: 2500 // [number] restart delay on inactive slideshow }, navigation: { active: false } }); $.autoScroll = function(ops) { ops = ops || {}; ops.styleClass = ops.styleClass || 'scroll-to-top-button'; var t = $('
'), d = $(ops.target || document); $(ops.container || 'body').append(t); t.css({ opacity: 0, position: 'absolute', top: 0, right: 0 }).click(function() { $('html,body').animate({ scrollTop: 0 }, ops.scrollDuration || 1000); }); $(window).scroll(function() { var sv = d.scrollTop(); if (sv < 10) { t.clearQueue().fadeOut(ops.hideDuration || 200); return; } t.css('display', '').clearQueue().animate({ top: sv, opacity: 0.8 }, ops.showDuration || 500); }); }; $.autoScroll({ scrollDuration: 500, showDuration: 1000, hideDuration: 900 }); });