Compare.prototype.pia=new Array();Compare.prototype.pna=new Array();Compare.prototype.pua=new Array();Compare.prototype.isInitialised=false;Compare.prototype.cookieSeperator="X";Compare.prototype.setCookieSeperator=function(a){this.cookieSeperator=a};Compare.prototype.getCookieSeperator=function(){return this.cookieSeperator};Compare.prototype.cookieKey="comparePageId";Compare.prototype.setCookieKey=function(a){this.cookieKey=a};Compare.prototype.getCookieKey=function(){return this.cookieKey};Compare.prototype.containerDivId="shortlist";Compare.prototype.setContainerDivId=function(a){this.containerDivId=a};Compare.prototype.getContainerDivId=function(){return this.containerDivId};Compare.prototype.listId="shortlistUl";Compare.prototype.setListId=function(a){this.listId=a};Compare.prototype.getListId=function(){return this.listId};Compare.prototype.externalVarName="";Compare.prototype.setExternalVarName=function(a){this.externalVarName=a};Compare.prototype.getExternalVarName=function(){return this.externalVarName};Compare.prototype.cookieLength=-1;Compare.prototype.setCookieLength=function(a){this.cookieLength=a};Compare.prototype.getCookieLength=function(){return this.cookieLength};Compare.prototype.getSpanPrefix=function(a){return this.getCookieKey()+"_span_"+a};Compare.prototype.add=function(c,b,a){if(this.getCookieLength()>-1){if(!this.contains(c)){this.pia.push(c);this.pna.push(b);this.pua.push(a)}this.save();this.updateDisplay(false)}else{this.reset()}};Compare.prototype.remove=function(b){var a=this.position(b);if(a>-1){this.pia.splice(a,1);this.pna.splice(a,1);this.pua.splice(a,1)}this.save();this.updateDisplay(false)};Compare.prototype.toggle=function(d,b,a){var c=false;if(this.contains(d)){this.remove(d)}else{this.add(d,b,a);c=true}return c};Compare.prototype.updateDisplay=function(a){if(this.isInitialised==true){if(this.pia.length>0){$("#"+this.getContainerDivId()).show();$("#"+this.getListId()).slideUp("slow",function(){var e="";for(var d=0;d<this.pia.length;d++){var c=this.pna[d];var b=this.pua[d];e+="<li>";e+='<span class="cross" onclick="'+this.getExternalVarName()+".remove("+this.pia[d]+');">&nbsp;</span>';e+='<a href="'+b+'">'+c+"</a>";e+="</li>"}e;document.getElementById(this.getListId()).innerHTML=e;$("#"+this.getListId()).slideDown("slow")}.bind(this))}else{$("#"+this.getListId()).slideUp("slow",function(){$("#"+this.getContainerDivId()).fadeOut("slow")}.bind(this))}}};Compare.prototype.contains=function(a){return(this.position(a)>-1)?true:false};Compare.prototype.position=function(b){var c=-1;for(var a=0;a<this.pia.length;a++){if(this.pia[a]==b){c=a;break}}return c};Compare.prototype.displayStatus=function(){var b="CookieContent\n\n";for(var a=0;a<this.pia.length;a++){b+="Item "+a+" : "+this.pia[a]+"\n"}};Compare.prototype.save=function(){if(this.getCookieLength()>-1){var d=this.getCookieSeperator();for(var c=0;c<this.pia.length;c++){d+=this.pia[c]+this.getCookieSeperator()}var d=this.getCookieKey()+"="+escape(d)+"; ";var b=new Date();b.setTime(b.getTime()+(this.getCookieLength()*24*60*60*1000));var a="expires="+b.toGMTString()+"; ";var e="path=/";this.reset();document.cookie=d+a+e}else{this.reset()}};Compare.prototype.reset=function(){document.cookie=this.getCookieKey()+"=; expires=-1; path=/"};Compare.prototype.init=function(){this.isInitialised=true;this.updateDisplay(true)};function Compare(a){this.setExternalVarName(a)}(function(B,P){var C={transition:"elastic",speed:300,width:false,initialWidth:"600",innerWidth:false,maxWidth:false,height:false,initialHeight:"450",innerHeight:false,maxHeight:false,scalePhotos:true,scrolling:true,inline:false,html:false,iframe:false,photo:false,href:false,title:false,rel:false,opacity:0.6,preloading:true,current:"image {current} of {total}",previous:"previous",next:"next",close:"close",open:false,returnFocus:true,loop:true,slideshow:false,slideshowAuto:true,slideshowSpeed:2500,slideshowStart:"start slideshow",slideshowStop:"stop slideshow",onOpen:false,onLoad:false,onComplete:false,onCleanup:false,onClosed:false,overlayClose:true,escKey:true,arrowKey:true},t="colorbox",M="cbox",O=M+"_open",e=M+"_load",N=M+"_complete",q=M+"_cleanup",U=M+"_closed",i=M+"_purge",I=M+"_loaded",r=B.browser.msie&&!B.support.opacity,X=r&&B.browser.version<7,T=M+"_IE6",K,Y,Z,d,z,m,b,J,c,S,F,j,h,l,p,Q,o,L,v,aa,k,g,a,s,A,V,x,R,E=false,D,n=M+"Element";function H(ac,ab){ac=ac?' id="'+M+ac+'"':"";ab=ab?' style="'+ab+'"':"";return B("<div"+ac+ab+"/>")}function G(ab,ac){ac=ac==="x"?S.width():S.height();return(typeof ab==="string")?Math.round((/%/.test(ab)?(ac/100)*parseInt(ab,10):parseInt(ab,10))):ab}function w(ab){return V.photo||/\.(gif|png|jpg|jpeg|bmp)(?:\?([^#]*))?(?:#(\.*))?$/i.test(ab)}function W(ac){for(var ab in ac){if(B.isFunction(ac[ab])&&ab.substring(0,2)!=="on"){ac[ab]=ac[ab].call(s)}}ac.rel=ac.rel||s.rel||"nofollow";ac.href=ac.href||B(s).attr("href");ac.title=ac.title||s.title;return ac}function y(ab,ac){if(ac){ac.call(s)}B.event.trigger(ab)}function u(){var ac,ae=M+"Slideshow_",af="click."+M,ag,ad,ab;if(V.slideshow&&c[1]){ag=function(){Q.text(V.slideshowStop).unbind(af).bind(N,function(){if(A<c.length-1||V.loop){ac=setTimeout(D.next,V.slideshowSpeed)}}).bind(e,function(){clearTimeout(ac)}).one(af+" "+q,ad);Y.removeClass(ae+"off").addClass(ae+"on");ac=setTimeout(D.next,V.slideshowSpeed)};ad=function(){clearTimeout(ac);Q.text(V.slideshowStart).unbind([N,e,q,af].join(" ")).one(af,ag);Y.removeClass(ae+"on").addClass(ae+"off")};if(V.slideshowAuto){ag()}else{ad()}}}function f(ab){if(!E){s=ab;V=W(B.extend({},B.data(s,t)));c=B(s);A=0;if(V.rel!=="nofollow"){c=B("."+n).filter(function(){var ad=B.data(this,t).rel||this.rel;return(ad===V.rel)});A=c.index(s);if(A===-1){c=c.add(s);A=c.length-1}}if(!x){x=R=true;Y.show();if(V.returnFocus){try{s.blur();B(s).one(U,function(){try{this.focus()}catch(ad){}})}catch(ac){}}K.css({opacity:+V.opacity,cursor:V.overlayClose?"pointer":"auto"}).show();V.w=G(V.initialWidth,"x");V.h=G(V.initialHeight,"y");D.position(0);if(X){S.bind("resize."+T+" scroll."+T,function(){K.css({width:S.width(),height:S.height(),top:S.scrollTop(),left:S.scrollLeft()})}).trigger("scroll."+T)}y(O,V.onOpen);p.add(L).add(o).add(Q).add(l).hide();v.html(V.close).show()}D.load(true)}}D=B.fn[t]=B[t]=function(ab,ae){var ac=this,ad;if(!ac[0]&&ac.selector){return ac}ab=ab||{};if(ae){ab.onComplete=ae}if(!ac[0]||ac.selector===undefined){ac=B("<a/>");ab.open=true}ac.each(function(){B.data(this,t,B.extend({},B.data(this,t)||C,ab));B(this).addClass(n)});ad=ab.open;if(B.isFunction(ad)){ad=ad.call(ac)}if(ad){f(ac[0])}return ac};D.init=function(){S=B(P);Y=H().attr({id:t,"class":r?M+"IE":""});K=H("Overlay",X?"position:absolute":"").hide();Z=H("Wrapper");d=H("Content").append(F=H("LoadedContent","width:0; height:0; overflow:hidden"),h=H("LoadingOverlay").add(H("LoadingGraphic")),l=H("Title"),p=H("Current"),o=H("Next"),L=H("Previous"),Q=H("Slideshow").bind(O,u),v=H("Close"));Z.append(H().append(H("TopLeft"),z=H("TopCenter"),H("TopRight")),H(false,"clear:left").append(m=H("MiddleLeft"),d,b=H("MiddleRight")),H(false,"clear:left").append(H("BottomLeft"),J=H("BottomCenter"),H("BottomRight"))).children().children().css({"float":"left"});j=H(false,"position:absolute; width:9999px; visibility:hidden; display:none");B("body").prepend(K,Y.append(Z,j));d.children().hover(function(){B(this).addClass("hover")},function(){B(this).removeClass("hover")}).addClass("hover");aa=z.height()+J.height()+d.outerHeight(true)-d.height();k=m.width()+b.width()+d.outerWidth(true)-d.width();g=F.outerHeight(true);a=F.outerWidth(true);Y.css({"padding-bottom":aa,"padding-right":k}).hide();o.click(D.next);L.click(D.prev);v.click(D.close);d.children().removeClass("hover");B("."+n).live("click",function(ab){if(!((ab.button!==0&&typeof ab.button!=="undefined")||ab.ctrlKey||ab.shiftKey||ab.altKey)){ab.preventDefault();f(this)}});K.click(function(){if(V.overlayClose){D.close()}});B(document).bind("keydown",function(ab){if(x&&V.escKey&&ab.keyCode===27){ab.preventDefault();D.close()}if(x&&V.arrowKey&&!R&&c[1]){if(ab.keyCode===37&&(A||V.loop)){ab.preventDefault();L.click()}else{if(ab.keyCode===39&&(A<c.length-1||V.loop)){ab.preventDefault();o.click()}}}})};D.remove=function(){Y.add(K).remove();B("."+n).die("click").removeData(t).removeClass(n)};D.position=function(af,ac){var ae,ad=Math.max(document.documentElement.clientHeight-V.h-g-aa,0)/2+S.scrollTop(),ab=Math.max(S.width()-V.w-a-k,0)/2+S.scrollLeft();ae=(Y.width()===V.w+a&&Y.height()===V.h+g)?0:af;Z[0].style.width=Z[0].style.height="9999px";function ag(ah){z[0].style.width=J[0].style.width=d[0].style.width=ah.style.width;h[0].style.height=h[1].style.height=d[0].style.height=m[0].style.height=b[0].style.height=ah.style.height}Y.dequeue().animate({width:V.w+a,height:V.h+g,top:ad,left:ab},{duration:ae,complete:function(){ag(this);R=false;Z[0].style.width=(V.w+a+k)+"px";Z[0].style.height=(V.h+g+aa)+"px";if(ac){ac()}},step:function(){ag(this)}})};D.resize=function(ab){if(x){ab=ab||{};if(ab.width){V.w=G(ab.width,"x")-a-k}if(ab.innerWidth){V.w=G(ab.innerWidth,"x")}F.css({width:V.w});if(ab.height){V.h=G(ab.height,"y")-g-aa}if(ab.innerHeight){V.h=G(ab.innerHeight,"y")}if(!ab.innerHeight&&!ab.height){var ac=F.wrapInner("<div style='overflow:auto'></div>").children();V.h=ac.height();ac.replaceWith(ac.children())}F.css({height:V.h});D.position(V.transition==="none"?0:V.speed)}};D.prep=function(ae){if(!x){return}var ad,af=V.transition==="none"?0:V.speed;S.unbind("resize."+M);F.remove();F=H("LoadedContent").html(ae);function ab(){V.w=V.w||F.width();V.w=V.mw&&V.mw<V.w?V.mw:V.w;return V.w}function ag(){V.h=V.h||F.height();V.h=V.mh&&V.mh<V.h?V.mh:V.h;return V.h}F.hide().appendTo(j.show()).css({width:ab(),overflow:V.scrolling?"auto":"hidden"}).css({height:ag()}).prependTo(d);j.hide();B("#"+M+"Photo").css({cssFloat:"none",marginLeft:"auto",marginRight:"auto"});if(X){B("select").not(Y.find("select")).filter(function(){return this.style.visibility!=="hidden"}).css({visibility:"hidden"}).one(q,function(){this.style.visibility="inherit"})}function ac(ak){var am,an,aj,ai,al=c.length,ah=V.loop;D.position(ak,function(){function ao(){if(r){Y[0].style.removeAttribute("filter")}}if(!x){return}if(r){if(ad){F.fadeIn(100)}}F.show();y(I);l.show().html(V.title);if(al>1){if(typeof V.current==="string"){p.html(V.current.replace(/\{current\}/,A+1).replace(/\{total\}/,al)).show()}o[(ah||A<al-1)?"show":"hide"]().html(V.next);L[(ah||A)?"show":"hide"]().html(V.previous);am=A?c[A-1]:c[al-1];aj=A<al-1?c[A+1]:c[0];if(V.slideshow){Q.show()}if(V.preloading){ai=B.data(aj,t).href||aj.href;an=B.data(am,t).href||am.href;ai=B.isFunction(ai)?ai.call(aj):ai;an=B.isFunction(an)?an.call(am):an;if(w(ai)){B("<img/>")[0].src=ai}if(w(an)){B("<img/>")[0].src=an}}}h.hide();if(V.transition==="fade"){Y.fadeTo(af,1,function(){ao()})}else{ao()}S.bind("resize."+M,function(){D.position(0)});y(N,V.onComplete)})}if(V.transition==="fade"){Y.fadeTo(af,0,function(){ac(0)})}else{ac(af)}};D.load=function(ae){var ad,ac,af,ab=D.prep;R=true;s=c[A];if(!ae){V=W(B.extend({},B.data(s,t)))}y(i);y(e,V.onLoad);V.h=V.height?G(V.height,"y")-g-aa:V.innerHeight&&G(V.innerHeight,"y");V.w=V.width?G(V.width,"x")-a-k:V.innerWidth&&G(V.innerWidth,"x");V.mw=V.w;V.mh=V.h;if(V.maxWidth){V.mw=G(V.maxWidth,"x")-a-k;V.mw=V.w&&V.w<V.mw?V.w:V.mw}if(V.maxHeight){V.mh=G(V.maxHeight,"y")-g-aa;V.mh=V.h&&V.h<V.mh?V.h:V.mh}ad=V.href;h.show();if(V.inline){H().hide().insertBefore(B(ad)[0]).one(i,function(){B(this).replaceWith(F.children())});ab(B(ad))}else{if(V.iframe){Y.one(I,function(){var ag=B("<iframe frameborder='0' style='width:100%; height:100%; border:0; display:block'/>")[0];ag.name=M+(+new Date());ag.src=V.href;if(!V.scrolling){ag.scrolling="no"}if(r){ag.allowtransparency="true"}B(ag).appendTo(F).one(i,function(){ag.src="//about:blank"})});ab(" ")}else{if(V.html){ab(V.html)}else{if(w(ad)){ac=new Image();ac.onload=function(){var ag;ac.onload=null;ac.id=M+"Photo";B(ac).css({border:"none",display:"block",cssFloat:"left"});if(V.scalePhotos){af=function(){ac.height-=ac.height*ag;ac.width-=ac.width*ag};if(V.mw&&ac.width>V.mw){ag=(ac.width-V.mw)/ac.width;af()}if(V.mh&&ac.height>V.mh){ag=(ac.height-V.mh)/ac.height;af()}}if(V.h){ac.style.marginTop=Math.max(V.h-ac.height,0)/2+"px"}if(c[1]&&(A<c.length-1||V.loop)){B(ac).css({cursor:"pointer"}).click(D.next)}if(r){ac.style.msInterpolationMode="bicubic"}setTimeout(function(){ab(ac)},1)};setTimeout(function(){ac.src=ad},1)}else{if(ad){j.load(ad,function(ah,ag,ai){ab(ag==="error"?"Request unsuccessful: "+ai.statusText:B(this).children())})}}}}}};D.next=function(){if(!R){A=A<c.length-1?A+1:0;D.load()}};D.prev=function(){if(!R){A=A?A-1:c.length-1;D.load()}};D.close=function(){if(x&&!E){E=true;x=false;y(q,V.onCleanup);S.unbind("."+M+" ."+T);K.fadeTo("fast",0);Y.stop().fadeTo("fast",0,function(){y(i);F.remove();Y.add(K).css({opacity:1,cursor:"auto"}).hide();setTimeout(function(){E=false;y(U,V.onClosed)},1)})}};D.element=function(){return B(s)};D.settings=C;B(D.init)}(jQuery,this));(function(a){a.updatingSelect=function(c,b){var d=this;d.$el=a(c);d.el=c;d.$el.data("updatingSelect",d);d.init=function(){d.options=a.extend({},a.updatingSelect.defaultOptions,b);d.$el.prepend("<div></div>");d.$el.prepend('<select style="font-weight: bold; margin-bottom: 15px; padding-right: 0pt; margin-left: 16px; width: 90%; font-family: Arial,Helvetica,sans-serif; font-size: 120%; color: rgb(68, 68, 68);"></select>');d.$el.find("> ul.children > li > a").each(function(f){d.$el.find("select").append('<option value="'+f+'">'+a(this).text()+"</option>")});var e=(d.options.initialOption!=null&&d.options.initialOption!="")?d.findIndex(d.options.initialOption):d.options.initialIndex;d.updateList(e);d.$el.find("select").change(function(){d.updateList(d.findIndex(a(this).find("option:selected").text()))})};d.findIndex=function(g,f){var e=0;retVal=e;d.$el.find("> ul.children > li > a").each(function(h){if(a(this).text()==g){retVal=h;return}h++});if(retVal==0){retVal=d.options.initialIndex}return retVal};d.updateList=function(e,f){d.$el.find("div").slideUp(d.options.duration,function(){d.$el.find("div > ul").remove().end();a("select")[0].selectedIndex=e;d.$el.find("div").append('<ul class="reg-item"></ul>');d.$el.find("div > ul").append(d.$el.find("> ul.children > li").eq(e).find("ul.children").html());d.$el.find("div ul li a").each(function(){var h=a(this).text();var i=a("select option[value='"+e+"']").text();var g=h.replace(i,"");a(this).text(g.trim())});d.$el.find("div").slideDown(d.options.duration)})};d.init()};a.updatingSelect.defaultOptions={duration:500,initialIndex:0,initialOption:""};a.fn.updatingSelect=function(b){return this.each(function(){(new a.updatingSelect(this,b))})}})(jQuery);(function(a){a.detachedTabs=function(c,b){var d=this;d.$el=a(c);d.el=c;d.$el.data("detachedTabs",d);d.init=function(){d.options=a.extend({},a.detachedTabs.defaultOptions,b);a("#"+d.el.id+"_container > .content").hide();a("."+d.el.id+"_click").each(function(){a(this).click(function(){d.el.currentClickId=a(this).attr("href");a("#"+d.el.id).find("li > a").each(function(){var g=a(this).attr("href");if(g==d.el.currentClickId){d.selectTab(a(this).parent());var f=a("#"+d.el.id+"_container").offset();var e=f.top-30;a("#content-wrapper").animate({scrollTop:e},500)}})});return false});a("#"+d.el.id+" li").click(function(){return d.selectTab(a(this))});if(d.options.animate=="none"){d.selectInitial()}else{a("#"+d.el.id+" li").mouseover(function(){d.el.pause=true});a("#"+d.el.id+"_container > .content").mouseover(function(){d.el.pause=true});d.el.pause=false;d.rotate()}};d.selectInitial=function(){var f="";var h="";if(location.hash){f=location.hash;h=d.getRelevantTab(f)}else{h=d.getDefaultTab(f)}if(h!=""){a("#"+d.el.id).find("li > a").each(function(j){var k=a(this).attr("href");if(k=="#"+h){d.el.currentTabIndex=j;d.selectTab(a(this).parent())}});if(f!=""){var i=a("#"+d.el.id+"_container").offset();var g=a(f).offset();var e=g.top-i.top;a("#"+d.el.id+"_container").animate({scrollTop:e},500)}}};d.getRelevantTab=function(e){var g="";for(var f=0;f<d.options.tabDefinitions.length;f++){var h=d.options.tabDefinitions[f];if(h.associations.indexOf(e)>-1){g=h.id;break}}return g};d.getDefaultTab=function(e){var g="";for(var f=0;f<d.options.tabDefinitions.length;f++){var h=d.options.tabDefinitions[f];if(h.defaultTab==true){g=h.id;break}}return g};d.selectTab=function(f){a("#"+d.el.id+" li").removeClass("active");a("#"+d.el.id+" li > a").removeClass("hover");a("#"+d.el.id+"_container > div#display > div.content").hide().unwrap();var e=f.find("a").attr("href");a(e).show().wrap('<div id="display"></div>');f.addClass("active");f.find("a").addClass("hover");return false};d.rotate=function(){if(d.el.pause==false){var e=a("#"+d.el.id+" li.active");if(e.length==0||e.next().length==0){d.selectTab(a("#"+d.el.id+" li:first-child"))}else{d.selectTab(e.next())}}setTimeout(arguments.callee,d.options.pauseTime)};d.init()};a.detachedTabs.defaultOptions={initialTabId:"",tabDefinitions:[],animate:"none",transitionTime:500,pauseTime:3000};a.fn.detachedTabs=function(b){return this.each(function(){(new a.detachedTabs(this,b))})}})(jQuery);(function(a){a.hpRotator=function(c,b){var d=this;d.$el=a(c);d.el=c;d.$el.data("hpRotator",d);d.init=function(){d.options=a.extend({},a.hpRotator.defaultOptions,b)};d.init()};a.hpRotator.defaultOptions={};a.fn.hpRotator=function(b){return this.each(function(){(new a.hpRotator(this,b))})}})(jQuery);(function(a){a.priceComparison=function(c,b){var d=this;d.$el=a(c);d.el=c;d.$el.data("priceComparison",d);d.init=function(){d.options=a.extend({},a.priceComparison.defaultOptions,b);d.$el.find("tr.product").hide();d.$el.find("tr.company").show();d.$el.find("a.viewOffers").click(function(){a(this).parent().parent().nextUntil("tr.company").toggle()})};d.init()};a.priceComparison.defaultOptions={};a.fn.priceComparison=function(b){return this.each(function(){(new a.priceComparison(this,b))})}})(jQuery);(function(a){a.fn.hoverIntent=function(k,j){var l={sensitivity:7,interval:100,timeout:0};l=a.extend(l,j?{over:k,out:j}:k);var n,m,h,d;var e=function(f){n=f.pageX;m=f.pageY};var c=function(g,f){f.hoverIntent_t=clearTimeout(f.hoverIntent_t);if((Math.abs(h-n)+Math.abs(d-m))<l.sensitivity){a(f).unbind("mousemove",e);f.hoverIntent_s=1;return l.over.apply(f,[g])}else{h=n;d=m;f.hoverIntent_t=setTimeout(function(){c(g,f)},l.interval)}};var i=function(g,f){f.hoverIntent_t=clearTimeout(f.hoverIntent_t);f.hoverIntent_s=0;return l.out.apply(f,[g])};var b=function(q){var o=(q.type=="mouseover"?q.fromElement:q.toElement)||q.relatedTarget;while(o&&o!=this){try{o=o.parentNode}catch(q){o=this}}if(o==this){return false}var g=jQuery.extend({},q);var f=this;if(f.hoverIntent_t){f.hoverIntent_t=clearTimeout(f.hoverIntent_t)}if(q.type=="mouseover"){h=g.pageX;d=g.pageY;a(f).bind("mousemove",e);if(f.hoverIntent_s!=1){f.hoverIntent_t=setTimeout(function(){c(g,f)},l.interval)}}else{a(f).unbind("mousemove",e);if(f.hoverIntent_s==1){f.hoverIntent_t=setTimeout(function(){i(g,f)},l.timeout)}}};return this.mouseover(b).mouseout(b)}})(jQuery);(function(b){b.fn.superfish=function(k){var g=b.fn.superfish,j=g.c,f=b(['<span class="',j.arrowClass,'"> &#187;</span>'].join("")),i=function(){var c=b(this),l=d(c);clearTimeout(l.sfTimer);c.showSuperfishUl().siblings().hideSuperfishUl()},e=function(){var c=b(this),m=d(c),l=g.op;clearTimeout(m.sfTimer);m.sfTimer=setTimeout(function(){l.retainPath=(b.inArray(c[0],l.$path)>-1);c.hideSuperfishUl();if(l.$path.length&&c.parents(["li.",l.hoverClass].join("")).length<1){i.call(l.$path)}},l.delay)},d=function(c){var l=c.parents(["ul.",j.menuClass,":first"].join(""))[0];g.op=g.o[l.serial];return l},h=function(c){c.addClass(j.anchorClass).append(f.clone())};return this.each(function(){var c=this.serial=g.o.length;var m=b.extend({},g.defaults,k);m.$path=b("li."+m.pathClass,this).slice(0,m.pathLevels).each(function(){b(this).addClass([m.hoverClass,j.bcClass].join(" ")).filter("li:has(ul)").removeClass(m.pathClass)});g.o[c]=g.op=m;b("li:has(ul)",this)[(b.fn.hoverIntent&&!m.disableHI)?"hoverIntent":"hover"](i,e).each(function(){if(m.autoArrows){h(b(">a:first-child",this))}}).not("."+j.bcClass).hideSuperfishUl();var l=b("a",this);l.each(function(n){var o=l.eq(n).parents("li");l.eq(n).focus(function(){i.call(o)}).blur(function(){e.call(o)})});m.onInit.call(this)}).each(function(){var c=[j.menuClass];if(g.op.dropShadows&&!(b.browser.msie&&b.browser.version<7)){c.push(j.shadowClass)}b(this).addClass(c.join(" "))})};var a=b.fn.superfish;a.o=[];a.op={};a.IE7fix=function(){var c=a.op;if(b.browser.msie&&b.browser.version>6&&c.dropShadows&&c.animation.opacity!=undefined){this.toggleClass(a.c.shadowClass+"-off")}};a.c={bcClass:"sf-breadcrumb",menuClass:"sf-js-enabled",anchorClass:"sf-with-ul",arrowClass:"sf-sub-indicator",shadowClass:"sf-shadow"};a.defaults={hoverClass:"sfHover",pathClass:"overideThisToUse",pathLevels:1,delay:800,animation:{opacity:"show"},speed:"normal",autoArrows:true,dropShadows:true,disableHI:false,onInit:function(){},onBeforeShow:function(){},onShow:function(){},onHide:function(){}};b.fn.extend({hideSuperfishUl:function(){var e=a.op,d=(e.retainPath===true)?e.$path:"";e.retainPath=false;var c=b(["li.",e.hoverClass].join(""),this).add(this).not(d).removeClass(e.hoverClass).find(">ul").hide().css("visibility","hidden");e.onHide.call(c);return this},showSuperfishUl:function(){var e=a.op,d=a.c.shadowClass+"-off",c=this.addClass(e.hoverClass).find(">ul:hidden").css("visibility","visible");a.IE7fix.call(c);e.onBeforeShow.call(c);c.animate(e.animation,e.speed,function(){a.IE7fix.call(c);e.onShow.call(c)});return this}})})(jQuery);(function(a){a.fn.supersubs=function(b){var c=a.extend({},a.fn.supersubs.defaults,b);return this.each(function(){var d=a(this);var e=a.meta?a.extend({},c,d.data()):c;var f=a('<li id="menu-fontsize">&#8212;</li>').css({padding:0,position:"absolute",top:"-999em",width:"auto"}).appendTo(d).width();a("#menu-fontsize").remove();$ULs=d.find("ul");$ULs.each(function(l){var k=$ULs.eq(l);var j=k.children();var g=j.children("a");var m=j.css("white-space","nowrap").css("float");var h=k.add(j).add(g).css({"float":"none",width:"auto"}).end().end()[0].clientWidth/f;h+=e.extraWidth;if(h>e.maxWidth){h=e.maxWidth}else{if(h<e.minWidth){h=e.minWidth}}h+="em";k.css("width",h);j.css({"float":m,width:"100%","white-space":"normal"}).each(function(){var n=a(">ul",this);var i=n.css("left")!==undefined?"left":"right";n.css(i,h)})})})};a.fn.supersubs.defaults={minWidth:9,maxWidth:25,extraWidth:0}})(jQuery);
