jQuery(document).ready(function(){jQuery(".closeSubnav").click(function(){jQuery(".mainSubnav").slideUp()});jQuery("ul#mainNav > li > em").click(function(){var a=this.id;var b=parseFloat(a.replace("nav-em-",""));jQuery("#subnav-"+b).slideToggle("slow");for(i=1;i<=jQuery("ul#mainNav > li").length;i++){if((i!=b)){if(othersubNav=jQuery("#subnav-"+i)){othersubNav.slideUp()}}}});if(jQuery.isFunction(jQuery.fn.tooltip)){jQuery("#tipBookmarks").tooltip({track:true,delay:10,showURL:false,opacity:1,fixPNG:true,showBody:" - ",extraClass:"pretty fancy",top:-15,left:5})}if(jQuery.isFunction(jQuery.fn.tabs)){jQuery("#tab-set1").tabs()}jQuery("p.toggle-details").click(function(){var b=this.id;var a=parseFloat(b.replace("details-more-",""));jQuery(this).toggleClass("toggle-details-up");jQuery(this).text(jQuery(this).text()=="Show more details"?"Less details":"Show more details");jQuery("#module"+a).slideToggle("slow");return false});(function(a){if(!document.defaultView||!document.defaultView.getComputedStyle){var b=jQuery.curCSS;jQuery.curCSS=function(e,c,f){if(c!=="backgroundPosition"||!e.currentStyle||e.currentStyle[c]){return b.apply(this,arguments)}var d=e.style;if(!f&&d&&d[c]){return d[c]}return b(e,"backgroundPositionX",f)+" "+b(e,"backgroundPositionY",f)}}})(jQuery);(function(b){function a(d){d=d.replace(/left|top/g,"0px");d=d.replace(/right|bottom/g,"100%");d=d.replace(/([0-9\.]+)(\s|\)|$)/g,"$1px$2");var c=d.match(/(-?[0-9\.]+)(px|\%|em|pt)\s(-?[0-9\.]+)(px|\%|em|pt)/);return[parseFloat(c[1],10),c[2],parseFloat(c[3],10),c[4]]}b.fx.step.backgroundPosition=function(d){if(!d.bgPosReady){var f=b.curCSS(d.elem,"backgroundPosition");if(!f){f="0px 0px"}f=a(f);d.start=[f[0],f[2]];var c=a(d.options.curAnim.backgroundPosition);d.end=[c[0],c[2]];d.unit=[c[1],c[3]];d.bgPosReady=true}var e=[];e[0]=((d.end[0]-d.start[0])*d.pos)+d.start[0]+d.unit[0];e[1]=((d.end[1]-d.start[1])*d.pos)+d.start[1]+d.unit[1];d.elem.style.backgroundPosition=e[0]+" "+e[1]}})(jQuery);(function(a){a("#secondary-nav li").css({backgroundPosition:"0 0"}).mouseover(function(){a(this).stop().animate({backgroundPosition:"(0 -250px)"},{duration:500})}).mouseout(function(){a(this).stop().animate({backgroundPosition:"(0 0)"},{duration:500})})})(jQuery)});
