Cufon.replace('#main_nav > .page_item:not(.current_page_item)',{hover:true});Cufon.replace('#main_nav > .current_page_item',{hover:false,textShadow:'0 -1px 1px rgba(0,0,0,0.25)'});Cufon.replace('#main_nav > .current_page_parent',{hover:false,textShadow:'0 -1px 1px rgba(0,0,0,0.25)'});Cufon.replace('#st_news');$(document).ready(function(){var speed=500;var timeout=20000;$("#scroll1 > ul").cycle({fx:'scrollLeft,scrollUp,scrollRight,scrollDown',speed:speed,timeout:timeout,delay:0});$("#scroll2 > ul").cycle({fx:'scrollLeft,scrollUp,scrollRight,scrollDown',speed:speed,timeout:timeout,delay:-12000});$("#scroll3 > ul").cycle({fx:'scrollLeft,scrollUp,scrollRight,scrollDown',speed:speed,timeout:timeout,delay:-6000});$("#scroll4 > ul").cycle({fx:'scrollUp,scrollRight,scrollDown,scrollLeft',speed:speed,timeout:timeout,delay:-9000});$("#scroll5 > ul").cycle({fx:'scrollUp,scrollRight,scrollDown,scrollLeft',speed:speed,timeout:timeout,delay:-3000});$("#scroll6 > ul").cycle({fx:'scrollUp,scrollRight,scrollDown,scrollLeft',speed:speed,timeout:timeout,delay:-15000});$('.scrollArea').bind('mouseover',function(){$(this).children('.overlay').stop();$(this).children('.overlay').animate({opacity:.90},180);});$('.scrollArea').bind('mouseout',function(){$(this).children('.overlay').stop();$(this).children('.overlay').animate({opacity:0.0},180);});$('.shotsmenu a').lightBox({fixedNavigation:true,imageLoading:'http://ja-studios.com/wp-content/themes/JAStudios/Images/lightbox-ico-loading.gif',imageBtnClose:'http://ja-studios.com/wp-content/themes/JAStudios/Images/lightbox-btn-close.gif',imageBtnPrev:'http://ja-studios.com/wp-content/themes/JAStudios/Images/lightbox-btn-prev.gif',imageBtnNext:'http://ja-studios.com/wp-content/themes/JAStudios/Images/lightbox-btn-next.gif',imageBlank:'http://ja-studios.com/wp-content/themes/JAStudios/Images/lightbox-blank.gif'});inputEffect("input[name='email']",'you@email.com',1);inputEffect(".email",'you@email.com',1);inputEffect("input[name='subject']",'So, what\'s this about?',1);inputEffect("textarea[name='body']",'Hmm, tell us more!',1);formCheck();function formCheck(){if($('form.live').size()>0){$('form.live').children().each(function(){var type=$(this).children('input, textarea').attr('name');if(type=='email'){$(this).children('input[name="email"]').bind('keyup click change',function(){if($(this).val().match(/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$/)){if(!$(this).next('.notice').hasClass('confirm')){$(this).next('.notice').fadeOut(200,function(){$(this).removeClass('deny');$(this).addClass('confirm');$(this).fadeIn(200);});}}else{if(!$(this).next('.notice').hasClass('deny')){$(this).next('.notice').fadeOut(200,function(){$(this).removeClass('confirm');$(this).addClass('deny');$(this).fadeIn(200);});}}});}
if(type!='email'&&type!='undefined'){$(this).children('input, textarea').bind('keyup click change',function(){if($(this).val().length>0){if(!$(this).next('.notice').hasClass('confirm')){$(this).next('.notice').fadeOut(200,function(){$(this).removeClass('deny');$(this).addClass('confirm');$(this).fadeIn(200);});}}else{if(!$(this).next('.notice').hasClass('deny')){$(this).next('.notice').fadeOut(200,function(){$(this).removeClass('confirm');$(this).addClass('deny');$(this).fadeIn(200);});}}});}});}}
function inputEffect(tar,def,init){if(init==1&&($(tar).val()==def||$(tar).val()=='')){$(tar).val(def);$(tar).addClass('inputBlur');}
$(tar).bind('focus',function(){if($(this).val()==def){$(this).val(null);$(this).removeClass('inputBlur');}});$(tar).bind('blur',function(){if($(this).val()==''){$(this).val(def);$(this).addClass('inputBlur');}});}
if($.browser.msie){$('#footer_nav > li:last').addClass('last');}});
