// fancybox $(document).ready(function() { $(".demo").fancybox({ 'titleShow' : false, 'autoScale' : false, 'type' : 'iframe' }); }); // client login function forgotPassword() { newWindow = window.open("http://web.memberclicks.com/mc/common/forgotpassword.do?hidOrgID=bls", "ForgotPassword", "height=150,width=300,menubar=0,location=0,personalbar=0,toolbar=0,titlebar=0,status=0"); } function formSubmit() { document.frmLogin.txtUserId.value = document.frmUserName.txtUserId.value; document.frmLogin.submit(); } function submit1() { document.frmLogin.txtPassword.focus(); return false; } function submit2() { document.frmLogin.txtUserId.value = document.frmUserName.txtUserId.value; myUrlEncode(document.frmUserName.txtUserId.value,document.frmLogin.txtUserId); myUrlEncode(document.frmLogin.txtPassword.value,document.frmLogin.txtPassword); return true; } /* form validation ----------------------------------------------------------------------------------------------*/ $(document).ready(function(){ $("#send").click(function(){ $(".error").hide(); var hasError = false; var emailReg = /^([\w-\.]+@([\w-]+\.)+[\w-]{2,4})?$/; var nameVal = $("#name").val(); if(nameVal == '') { $("#name").after('
Message sent.
'); return false; }); } ); } return false; }); }); /* in field labels ----------------------------------------------------------------------------------------------*/ $(function(){ $("label").inFieldLabels(); }); // slideshow $(document).ready(function() { // get height for the teasers var height = $('#teasers a').height(); // set the timeout var timeout = 0; function nextA() { clearTimeout(timeout); // animate teasers $('#teasers').css({bottom: 0}); $('#teasers').animate({bottom: -height}, 600); $('#teasers a:last-child').prependTo('#teasers'); // get href for big banner var_current_url = $('#teasers a:last-child').attr("href"); $('#big-banner a').attr('href',var_current_url); // set background to use fadein var_current_bigimg = $('#big-banner img').attr("src"); $("#big-banner").css("background","url("+var_current_bigimg+")"); // clone teaser and remove _small $myclone = $('#teasers a:last-child').clone(); var image_manipulation = $myclone.html(); $big_image = image_manipulation.replace(/_small/, ''); // add the href from the teaser $('#big-banner a').html($big_image); // fade in new banner $('#big-banner img').css({opacity: 0}) .animate({opacity: 1}, 800); // auto rotate timeout = setTimeout(function() { nextA(); }, 8000); } // mouse stuff $('#banner-wrap') .mouseenter(function() { $('#skip').stop().animate({opacity: 1}, 300); }) .mouseleave(function() { $('#skip').stop().animate({opacity: 0}, 300); }); $('#skip') .delay(4000).animate({opacity: 0}) .click(function() { nextA(); }); nextA();// Go again });