$(document).ready(function(){$(".workimg").hover(function(){$("a",this).animate({top:96,opacity:0.7},"slow")},function(){$("a",this).animate({top:125,opacity:0.1},"slow").dequeue();return false});$("#selectbox select").change(function(){zz=$("select option:selected").attr("value");location.href="/clients/sortby/"+zz});if(typeof $(window).accordion=="function"){$(".services").accordion({autoheight:false,active:".oye",animated:"easeslide"});$(".services a.outlink").click(function(){$(".services").accordion("disable");href=$(this).attr("href");location.href=href})}if(typeof $(window).livequery=="function"){$(".paging a").livequery("click",function(){kicked=$(this).attr("href");div=$(this).parent().parent().parent();div.parent().css({background:'transparent url("../images/frame-loader.gif") 50% 50% no-repeat'});div.fadeOut("slow",function(){div.load(kicked,{x:1},function(){div.fadeIn("slow",function(){div.parent().css({background:"none"})})})});return false});$("a[href*=#]").click(function(){if(location.pathname.replace(/^\//,"")==this.pathname.replace(/^\//,"")&&location.hostname==this.hostname){var A=$(this.hash);A=A.length&&A||$("[name="+this.hash.slice(1)+"]");if(A.length){var B=A.offset().top;$("html,body").animate({scrollTop:B},1000);return false}}});$("a.greybox").livequery("click",function(){link=$(this).attr("href");t=this.title||$(this).text()||this.href;i=$(this).attr("id");GB_show(t,i,link,500,490);return false})}else{$("a.greybox").click(function(){link=$(this).attr("href");t=this.title||$(this).text()||this.href;i=$(this).attr("id");GB_show(t,i,link,500,490);return false})}if(typeof jQuery.fn.validate=="function"){$("#name").attr("minlength","3")}});