if(document.images) { textsize1off = new Image(); textsize1off.src = "/assets/templateimages/button.textsize.big.1.gif"; textsize1over = new Image(); textsize1over.src = "/assets/templateimages/button.textsize.big.1-over.gif"; textsize1down = new Image(); textsize1down.src = "/assets/templateimages/button.textsize.big.1-down.gif"; textsize2off = new Image(); textsize2off.src = "/assets/templateimages/button.textsize.big.2.gif"; textsize2over = new Image(); textsize2over.src = "/assets/templateimages/button.textsize.big.2-over.gif"; textsize2down = new Image(); textsize2down.src = "/assets/templateimages/button.textsize.big.2-down.gif"; textsize3off = new Image(); textsize3off.src = "/assets/templateimages/button.textsize.big.3.gif"; textsize3over = new Image(); textsize3over.src = "/assets/templateimages/button.textsize.big.3-over.gif"; textsize3down = new Image(); textsize3down.src = "/assets/templateimages/button.textsize.big.3-down.gif"; textsize4off = new Image(); textsize4off.src = "/assets/templateimages/button.textsize.big.4.gif"; textsize4over = new Image(); textsize4over.src = "/assets/templateimages/button.textsize.big.4-over.gif"; textsize4down = new Image(); textsize4down.src = "/assets/templateimages/button.textsize.big.4-down.gif"; textsize5off = new Image(); textsize5off.src = "/assets/templateimages/button.textsize.big.5.gif"; textsize5over = new Image(); textsize5over.src = "/assets/templateimages/button.textsize.big.5-over.gif"; textsize5down = new Image(); textsize5down.src = "/assets/templateimages/button.textsize.big.5-down.gif"; textsize6off = new Image(); textsize6off.src = "/assets/templateimages/button.textsize.big.6.gif"; textsize6over = new Image(); textsize6over.src = "/assets/templateimages/button.textsize.big.6-over.gif"; textsize6down = new Image(); textsize6down.src = "/assets/templateimages/button.textsize.big.6-down.gif"; textsize7off = new Image(); textsize7off.src = "/assets/templateimages/button.textsize.big.7-down.gif"; textsize7over = new Image(); textsize7over.src = "/assets/templateimages/button.textsize.big.7-over.gif"; textsize7down = new Image(); textsize7down.src = "/assets/templateimages/button.textsize.big.7-down.gif"; textsize8off = new Image(); textsize8off.src = "/assets/templateimages/button.textsize.big.8.gif"; textsize8over = new Image(); textsize8over.src = "/assets/templateimages/button.textsize.big.8-over.gif"; textsize8down = new Image(); textsize8down.src = "/assets/templateimages/button.textsize.big.8-down.gif"; } function changeImages() { if (document.images) { for (var i=0; i0 && links[i].innerHTML.indexOf(''+$(this.element).find('img').attr('alt')+'

' : '') + (this.group.length>1 ? '

Image ' + (this.index + 1) + ' of ' + this.group.length + '

' : ''); } // beforeShow; }) }); $(document).ready(function(){ $(".popup-page").fancybox({ 'width' : 400, 'height' : 600, 'autoScale' : false, 'transitionIn' : 'none', 'transitionOut' : 'none', 'type' : 'iframe', 'scrolling' : 'no' }); }); $(document).ready(function(){ $("#mainsearchbutton").fancybox({ 'width' : 600, 'height' : 600, 'autoScale' : false, 'transitionIn' : 'none', 'transitionOut' : 'none', 'type' : 'iframe', 'scrolling' : 'auto' }); }); $(document).ready(function() { $(".popup-video").click(function() { $.fancybox({ 'padding': 0, 'autoScale' : false, 'transitionIn' : 'none', 'transitionOut' : 'none', 'title' : (this.title ? this.title : ''), 'width' : 795, 'height' : 447, 'href' : this.href.replace(new RegExp("watch.*v=","i"), "v/") + '?autoplay=1&showinfo=0&rel=0', 'type' : 'swf', 'swf' : { 'wmode' : 'transparent', 'allowfullscreen' : 'true' } }); return false; }); $("a[href^='#']").click(function() { $('body').animate({ scrollTop: $($(this).attr("href")).offset().top-50 }, 500); return false; }); $(document).keypress( function(event){ if (event.which == '13') { event.preventDefault(); } }); $(window).scroll(function(e){ $el = $('#headbuttons'); if ($(this).scrollTop() > 208 && $el.css('position') != 'fixed'){ $('#headbuttons').addClass('tofixed'); $('#backtotop').css({'display':'block'}); } if ($(this).scrollTop() <= 208 && $el.css('position') == 'fixed'){ $('#headbuttons').removeClass('tofixed'); $('#backtotop').css({'display':'none'}); } }); }); function backToTop() { $('body,html').animate({ scrollTop: 0 }, 400); } function setupsearch() { bobj=document.getElementById('mainsearchbutton'); if(bobj) { bobj.setAttribute('href','/spsearch/search.php?search=1&submit=Search&query_t='+document.headersearchform.query_t.value); } } function backToTop() { $('body,html').animate({ scrollTop: 0 }, 400); } $(document).ready(function() { function scrollToAnchor(aid){ var aTag = $("a[name='"+ aid +"']"); $('html,body').animate({scrollTop: aTag.offset().top-50},'slow'); } $("a[href^=#]").click(function() { var href = $(this).attr('href').replace('#', '') scrollToAnchor(href); }); }); $(window).scroll(function(e){ $el = $('#headbuttons'); if ($(this).scrollTop() > 208 && $el.css('position') != 'fixed'){ $('#headbuttons').addClass('tofixed'); $('#backtotop').css({'display':'block'}); } if ($(this).scrollTop() <= 208 && $el.css('position') == 'fixed'){ $('#headbuttons').removeClass('tofixed'); $('#backtotop').css({'display':'none'}); } }); function backToTop() { $('body,html').animate({ scrollTop: 0 }, 400); }