var errorText=behaviourL10n.searchError,searchText=behaviourL10n.searchPrompt+" ";jQuery(document).ready(function(c){var a=c("#scrollerWindow dl dd").width()+20,b=c("#scrollerWindow dl dd").size(),h=0,g=7000,f=setInterval(e,g);c("#scrollerWindow dl").css({width:b*a});function e(){d((h+1)%b)}function d(j){clearInterval(f);if(h!=j){c("#scrollerWindow dl").stop()}c("#scrollerLinks").children("li").removeClass("active");c("#scrollerLinks li a.bob:eq("+j+")").parent("li").addClass("active");c("#scrollerWindow dl").animate({left:"-"+j*a+"px"},{duration:1000});f=setInterval(e,g);h=j;return true}c("#scrollerLinks li a.bob").each(function(j){c(this).click(function(){d(j);return false})});c("#scrollerWindow").hover(function(){clearInterval(f);c("#scroller .pause").fadeIn(500)},function(){clearInterval(f);f=setInterval(e,g);c("#scroller .pause").fadeOut(500)});c("input[name=s]").each(function(){c(this).addClass("unfocused");if(c(this).attr("value")===""||c(this).attr("value")===undefined){c(this).attr({value:searchText})}c(this).focus(function(){if(c(this).attr("value")==searchText){c(this).attr({value:""})}c(this).addClass("focused").removeClass("unfocused")});c(this).blur(function(){if(c(this).attr("value")===""||c(this).attr("value")===undefined){c(this).attr({value:searchText})}c(this).removeClass("focused").addClass("unfocused")})});c("form:has(input[name=s])").submit(function(){var i=c(this).find("input[name=s]");if(i.attr("value")===""||i.attr("value")===searchText||i.attr("value")===undefined){c("body").append('<p class="errorMessage">'+errorText+"</p>").children(".errorMessage").css({opacity:0,position:"absolute",top:i.offset().top-(c(this).height()-(i.height()+10)),left:i.offset().left+(i.width()*0.1)}).animate({opacity:1},250).animate({opacity:1},750).animate({opacity:0},1000,"swing",function(){c(this).remove()});return false}else{return true}});c("input[type='submit']").addClass("submit");c(".postBody table tr:odd").addClass("alternate");c.each(c.browser,function(j,k){if(j=="msie"&&k==true&&c.browser.version.substr(0,1)==6){c("#navList li").hover(function(){c(this).addClass("over")},function(){c(this).removeClass("over")});c("#importantPages li").hover(function(){c(this).addClass("over")},function(){c(this).removeClass("over")})}if(!c.boxModel){theBody=document.getElementsByTagName("BODY");theBody[0].className+=" quirky"}})});