var hpContentIntervalId=0;$(document).ready(function(){var b=4000;$(".rightLinks li").hoverIntent(function(){switchContent(($(this).attr("title")),false,1,false)},function(){switchContent(parseInt($(this).attr("title"))+1,true,2,false)});var a=2;startHpContentLoop(parseInt(a),b)});function startHpContentLoop(a,b){hpContentIntervalId=setTimeout("switchContent("+a+", true, 0, true)",b)}function endSwitchLoop(){clearTimeout(hpContentIntervalId)}function switchContent(b,d,c,a){endSwitch();if(b>$(".rightLinks li").length){b=1}if(c==0){clearLinkHoverStatus();setCurrentLinkStatus(b);if($("span.hpImg:visible").length>0){$("span.hpImg:visible").fadeOut("normal",function(){$(this).hide();setCurrentImgStatus(b);reStart(b+1,d,c,false)})}else{setCurrentImgStatus(b);reStart(b+1,d,c,false)}}if(c==1){clearLinkHoverStatus();setCurrentLinkStatus(b);$("span.hpImg:visible").hide();setCurrentImgStatus(b)}if(c==2){reStart(b,d,0,false)}}function clearLinkHoverStatus(){$(".rightLinks li").removeClass("current")}function setCurrentLinkStatus(a){var b=$(".link"+a);b.addClass("current")}function setCurrentImgStatus(a){var b=$("#ctl00_BodyPlaceHolder_HP1_imgWrapper"+a);$(b).show().attr("style","display:block;").hide().fadeIn()}function endSwitch(){clearTimeout(hpContentIntervalId)}function reStart(b,e,d,a){var c=4000;hpContentIntervalId=setTimeout("switchContent("+b+", "+e+", "+d+", false)",c)};