$(document).ready(function(){ $("#select_languages").change(function() { window.location = $("#select_languages").val(); return false; }); $('#nav').tinyNav({ active: 'selected', label: 'Menu' }); $(".content img").css("height", "auto"); $(window).scroll(function(){ if ($(this).scrollTop() > 150) { $('.scrollup').fadeIn(); } else { $('.scrollup').fadeOut(); } }); $('.scrollup').click(function(){ $("html, body").animate({ scrollTop: 0 }, 600); return false; }); $('.bgrslideshow').bgStretcher({ images: [], imageWidth: 980, imageHeight: 380, slideDirection: 'N', slideShowSpeed: 980, transitionEffect: 'fade', sequenceMode: 'normal', buttonPrev: '#prev', buttonNext: '#next', pagination: '#navi', anchoring: 'left center', anchoringImg: 'center center', title: [], text: [] }); $('#foo5').carouFredSel({ auto: { pauseOnHover: 'resume', progress: '#timer1' }, prev: '#prev2', next: '#next2', responsive: true, width: '100%', scroll: 1, items: { width: 400, visible: { min: 1, max: 2 } } }); $('.fancybox-thumbs').fancybox({ closeBtn : true, arrows : true, nextClick : true, padding : 5, margin : 15, helpers : { thumbs : { width : 40, height : 40 } } }); // $(function () { // $("#select_languages").selectbox(); // }); $('.loginFancy').fancybox({ closeBtn : true, nextClick : true, padding : 20, margin : 15, width: 300, height: 540, type: 'iframe', afterClose: function () { parent.location.reload(true); } }); $('.signupFancy').fancybox({ closeBtn : true, nextClick : true, padding : 20, margin : 15, width: 360, height: 540, type: 'iframe', afterClose: function () { parent.location.reload(true); } }); });