pHPSetupFunction=function(){ jQuery("#p-top-banner .p-home-banner").css("cursor","pointer"); jQuery("#p-top-banner .p-home-banner").click(function(M){ window.location=jQuery(this).find("a").attr("href") }); jQuery("#p-top-banner .p-bannerqh").css("width","20000em"); jQuery.easing.custom=function(N,O,M,Q,P,U,T,A){ if(O==0){return M} if(O==P){return M+Q} if((O/=P/2)<1){return Q/2*Math.pow(2,8*(O-1))+M} return Q/2*(-Math.pow(2,-10*--O)+2)+M }; jQuery("#p-top-banner .p-top-qh-pane,#p-top-banner .p-top-qh-pane .p-home-banner").width(jQuery("#p-top-banner").width()); var L=navigator.platform.match(/iPad/i)!=null; if(L){ var K=jQuery("#p-top-banner .p-top-qh-pane").scrollable({easing:"custom",speed:2000,circular:true}).navigator().handleSwipes() }else{ //var K=jQuery("#p-top-banner .p-top-qh-pane").scrollable({easing:"custom",speed:2000,circular:true}).navigator().autoscroll({interval:5000}) } //window.api=K.data("scrollable"); jQuery(".p-top-qh-nav a").append('
"+H.text()+"
"); var C=jQuery("#p-top-main #p-banner-2 img:first").attr("alt"); var G=jQuery("#p-banner-2 p em:first").clone(); jQuery("span",G).remove(); jQuery(".p-top-qh-nav a:nth-child(2) .p-top-qh-view").addClass("p-banner-small-2").children("div.p-banner-small-alt").prepend('"+G.text()+"
"); var B=jQuery("#p-top-main #p-banner-3 img:first").attr("alt"); var D=jQuery("#p-banner-3 p em:first").clone(); jQuery("span",D).remove(); jQuery(".p-top-qh-nav a:nth-child(3) .p-top-qh-view").addClass("p-banner-small-3").children("div.p-banner-small-alt").prepend('"+D.text()+"
"); var F=jQuery("#p-top-main #p-banner-4 img:first").attr("alt"); var J=jQuery("#p-banner-4 p em:first").clone(); jQuery("span",J).remove(); jQuery(".p-top-qh-nav a:nth-child(4) .p-top-qh-view").addClass("p-banner-small-4").children("div.p-banner-small-alt").prepend('"+J.text()+"
"); var Z=jQuery("#p-top-main #p-banner-5 img:first").attr("alt"); var S=jQuery("#p-banner-5 p em:first").clone(); jQuery("span",S).remove(); jQuery(".p-top-qh-nav a:nth-child(5) .p-top-qh-view").addClass("p-banner-small-5").children("div.p-banner-small-alt").prepend('"+S.text()+"
"); var X6=jQuery("#p-top-main #p-banner-7 img:first").attr("alt"); var Y6=jQuery("#p-banner-7 p em:first").clone(); jQuery("span",Y6).remove(); jQuery(".p-top-qh-nav a:nth-child(6) .p-top-qh-view").addClass("p-banner-small-7").children("div.p-banner-small-alt").prepend('"+Y6.text()+"
"); var X=jQuery("#p-top-main #p-banner-6 img:first").attr("alt"); var Y=jQuery("#p-banner-6 p em:first").clone(); jQuery("span",Y).remove(); jQuery(".p-top-qh-nav a:nth-child(7) .p-top-qh-view").addClass("p-banner-small-6").children("div.p-banner-small-alt").prepend('"+Y.text()+"
"); if(jQuery.browser.msie){ jQuery(".p-top-qh-nav a:nth-child(1)").mouseenter(function(){ jQuery(this).children().children("div.p-banner-small-alt").css("display","block") }).mouseleave(function(){ jQuery(this).children().children("div.p-banner-small-alt").css("display","none") }); jQuery(".p-top-qh-nav a:nth-child(2)").mouseenter(function(){ jQuery(this).children().children("div.p-banner-small-alt").css("display","block") }).mouseleave(function(){ jQuery(this).children().children("div.p-banner-small-alt").css("display","none") }); jQuery(".p-top-qh-nav a:nth-child(3)").mouseenter(function(){ jQuery(this).children().children("div.p-banner-small-alt").css("display","block") }).mouseleave(function(){ jQuery(this).children().children("div.p-banner-small-alt").css("display","none") }); jQuery(".p-top-qh-nav a:nth-child(4)").mouseenter(function(){ jQuery(this).children().children("div.p-banner-small-alt").css("display","block") }).mouseleave(function(){ jQuery(this).children().children("div.p-banner-small-alt").css("display","none") }); jQuery(".p-top-qh-nav a:nth-child(5)").mouseenter(function(){ jQuery(this).children().children("div.p-banner-small-alt").css("display","block") }).mouseleave(function(){ jQuery(this).children().children("div.p-banner-small-alt").css("display","none") }) jQuery(".p-top-qh-nav a:nth-child(6)").mouseenter(function(){ jQuery(this).children().children("div.p-banner-small-alt").css("display","block") }).mouseleave(function(){ jQuery(this).children().children("div.p-banner-small-alt").css("display","none") }) jQuery(".p-top-qh-nav a:nth-child(7)").mouseenter(function(){ jQuery(this).children().children("div.p-banner-small-alt").css("display","block") }).mouseleave(function(){ jQuery(this).children().children("div.p-banner-small-alt").css("display","none") }) }else{ jQuery(".p-top-qh-nav a:nth-child(1)").mouseenter(function(){ jQuery(this).children().children("div.p-banner-small-alt").stop(true,true).fadeIn("fast") }).mouseleave(function(){ jQuery(this).children().children("div.p-banner-small-alt").stop(true,true).fadeOut("fast") }); jQuery(".p-top-qh-nav a:nth-child(2)").mouseenter(function(){ jQuery(this).children().children("div.p-banner-small-alt").stop(true,true).fadeIn("fast") }).mouseleave(function(){ jQuery(this).children().children("div.p-banner-small-alt").stop(true,true).fadeOut("fast") }); jQuery(".p-top-qh-nav a:nth-child(3)").mouseenter(function(){ jQuery(this).children().children("div.p-banner-small-alt").stop(true,true).fadeIn("fast") }).mouseleave(function(){ jQuery(this).children().children("div.p-banner-small-alt").stop(true,true).fadeOut("fast") }); jQuery(".p-top-qh-nav a:nth-child(4)").mouseenter(function(){ jQuery(this).children().children("div.p-banner-small-alt").stop(true,true).fadeIn("fast") }).mouseleave(function(){ jQuery(this).children().children("div.p-banner-small-alt").stop(true,true).fadeOut("fast") }); jQuery(".p-top-qh-nav a:nth-child(5)").mouseenter(function(){ jQuery(this).children().children("div.p-banner-small-alt").stop(true,true).fadeIn("fast") }).mouseleave(function(){ jQuery(this).children().children("div.p-banner-small-alt").stop(true,true).fadeOut("fast") }); jQuery(".p-top-qh-nav a:nth-child(6)").mouseenter(function(){ jQuery(this).children().children("div.p-banner-small-alt").stop(true,true).fadeIn("fast") }).mouseleave(function(){ jQuery(this).children().children("div.p-banner-small-alt").stop(true,true).fadeOut("fast") }) jQuery(".p-top-qh-nav a:nth-child(7)").mouseenter(function(){ jQuery(this).children().children("div.p-banner-small-alt").stop(true,true).fadeIn("fast") }).mouseleave(function(){ jQuery(this).children().children("div.p-banner-small-alt").stop(true,true).fadeOut("fast") }) } jQuery(".p-top-qh-nav a").click(function(){return false;}) var I; jQuery(window).resize(function(){ if(!L){ if(I){ clearTimeout(I); I=null } } if(jQuery("#p-top-banner .p-bannerqh").is(":not(animated)")){ if(!L){ api.stop() } var O=-jQuery("#p-top-banner").width(); var M=-jQuery("#p-top-banner").width()*2; var P=-jQuery("#p-top-banner").width()*3; var U=-jQuery("#p-top-banner").width()*4; var V=-jQuery("#p-top-banner").width()*5; var A=-jQuery("#p-top-banner").width()*6; var N=-jQuery("#p-top-banner").width()*7; var Q=-jQuery("#p-top-banner").width()*299; if(jQuery("#p-top-banner #p-banner-1").hasClass("p-selected-view")){ jQuery("#p-top-banner .p-bannerqh").css("left",O) }if(jQuery("#p-top-banner #p-banner-2").hasClass("p-selected-view")){ jQuery("#p-top-banner .p-bannerqh").css("left",M) }if(jQuery("#p-top-banner #p-banner-3").hasClass("p-selected-view")){ jQuery("#p-top-banner .p-bannerqh").css("left",P) }if(jQuery("#p-top-banner #p-banner-4").hasClass("p-selected-view")){ jQuery("#p-top-banner .p-bannerqh").css("left",U) }if(jQuery("#p-top-banner #p-banner-5").hasClass("p-selected-view")){ jQuery("#p-top-banner .p-bannerqh").css("left",V) }if(jQuery("#p-top-banner #p-banner-7").hasClass("p-selected-view")){ jQuery("#p-top-banner .p-bannerqh").css("left",N) }if(jQuery("#p-top-banner #p-banner-6").hasClass("p-selected-view")){ jQuery("#p-top-banner .p-bannerqh").css("left",T) } jQuery("#p-top-banner .p-top-qh-pane,#p-top-banner .p-top-qh-pane .p-home-banner").width(jQuery("#p-top-banner").width()); if(!L){ I=setTimeout (function(){api.play()},1000) } } }); } pHPSetupFunction();