/*
 * jquery.hoverIntent.minified.js
 */
(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);
/*
 * jquery.hoverIntentGroup.js 
 */
(function(a){a.fn.hoverIntentGroup=function(k,j){var l={sensitivity:7,interval:100,timeout:0,triggerEvent:"mouseover",closeEvent:"mouseout",closeEventElements:""};l=a.extend(l,j?{over:k,out:j}:k);var n,m,h,e;var q=0;var p;var d=function(f){n=f.pageX;m=f.pageY};var c=function(g,f){p=clearTimeout(p);if((Math.abs(h-n)+Math.abs(e-m))<l.sensitivity){a(f).unbind("mousemove",d);q=1;if(g.type==l.triggerEvent){return l.over.apply(f,[g])}}else{h=n;e=m;p=setTimeout(function(){c(g,f)},l.interval)}};var i=function(g,f){p=clearTimeout(p);if(q==1){q=0;return l.out.apply(f,[g])}};var b=function(s){if(s.type!="click"){var r=(s.type=="mouseover"?s.fromElement:s.toElement)||s.relatedTarget;while(r&&r!=this){try{r=r.parentNode}catch(s){r=this}}if(r==this){return false}}var g=jQuery.extend({},s);var f=this;if(p){p=clearTimeout(p)}if(s.type=="mouseover"){h=g.pageX;e=g.pageY;a(f).bind("mousemove",d);if(q==0){p=setTimeout(function(){c(g,f)},l.interval)}}else{if(s.type=="click"){d(g);q=1;return l.over.apply(f,[g])}else{a(f).unbind("mousemove",d);if(q==1){p=setTimeout(function(){i(g,f)},l.timeout)}}}};var o=function(r){var g=jQuery.extend({},r);var f=this;q=0;if(p){p=clearTimeout(p)}return l.out.apply(f,[g])};return a(this).each(function(){if(l.triggerEvent=="mouseover"||l.closeEvent=="mouseout"){a(this).mouseover(b).mouseout(b)}if(l.triggerEvent=="click"){a(this).click(b)}if(l.closeEvent=="click"){a(l.closeEventElements).click(o)}})}})(jQuery);
/*
 * jquery.hqBehaviour.js 
 */
(function(b){var a=function(){};b.fn.hqBehaviour=function(l){var m={sensitivity:7,interval:100,timeout:500,click:a,hoverOver:a,hoverOut:a,hoverShow:a,hoverHide:a};m=b.extend(m,l);var o,n,k,j;var e=0;var d;var i=function(f){o=f.pageX;n=f.pageY};var h=function(p,f){d=clearTimeout(d);if((Math.abs(k-o)+Math.abs(j-n))<m.sensitivity){b(f).unbind("mousemove",i);e=1;return m.hoverShow.apply(f,[p])}else{k=o;j=n;d=setTimeout(function(){h(p,f)},m.interval)}};var c=function(p,f){d=clearTimeout(d);if(e){e=0;return m.hoverHide.apply(f,[p])}};var g=function(s){if(s.type!="click"){var r=(s.type=="mouseover"?s.fromElement:s.toElement)||s.relatedTarget;while(r&&r!=this){try{r=r.parentNode}catch(s){r=this}}if(r==this){return false}}var q=jQuery.extend({},s);var f=this;if(d){d=clearTimeout(d)}if(s.type=="mouseover"){k=q.pageX;j=q.pageY;b(f).bind("mousemove",i);if(!e){d=setTimeout(function(){h(q,f)},m.interval)}m.hoverOver.apply(f,[q])}else{if(s.type=="click"){return m.click.apply(f,[q,e])}else{if(s.type=="mouseout"){b(f).unbind("mousemove",i);if(e){d=setTimeout(function(){c(q,f)},m.timeout)}m.hoverOut.apply(f,[q])}}}};return b(this).each(function(){b(this).mouseover(g).mouseout(g).click(g)})}})(jQuery);
(function(a){a.address=(function(){var d=function(i){a(a.address).trigger(a.extend(a.Event(i),(function(){var an={},am=a.address.parameterNames();for(var al=0,ak=am.length;al<ak;al++){an[am[al]]=a.address.parameter(am[al])}return{value:a.address.value(),path:a.address.path(),pathNames:a.address.pathNames(),parameterNames:am,parameters:an,queryString:a.address.queryString()}}).call(a.address)))},l=function(al,ak,i){if(i||ak){a(a.address).bind(al,i||ak,i&&ak)}return a.address},W=function(){var i=X.href.indexOf("#");return i!=-1?aj(s(E(X.href.substr(i+1),ac))):""},b=function(){try{return top.document!==undefined?top:window}catch(i){return window}},o=function(){return"javascript"},ah=function(ak,i){if(F.strict){ak=i?(ak.substr(0,1)!="/"?"/"+ak:ak):(ak==""?"/":ak)}return ak},S=function(i,ak){return(j&&X.protocol=="file:")?(ak?U.replace(/\?/,"%3F"):U.replace(/%253F/,"?")):i},E=function(i,ak){if(F.crawlable&&ak){return(i!=""?"!":"")+i}return i.replace(/^\!/,"")},R=function(i,ak){return parseInt(i.css(ak),10)},m=function(ao){var al,an;for(var am=0,ak=ao.childNodes.length;am<ak;am++){if(ao.childNodes[am].src){al=String(ao.childNodes[am].src)}an=m(ao.childNodes[am]);if(an){al=an}}return al},aa=function(){if(!u){var ak=W(),i=U!=ak;if(w&&t<523){if(H!=ab.length){H=ab.length;if(typeof B[H-1]!=J){U=B[H-1]}Y(ac)}}else{if(j&&t<7&&i){X.reload()}else{if(i){U=ak;Y(ac)}}}}},Y=function(i){d(I);d(i?h:ag);q(x,10)},x=function(){var ak=(X.pathname+(/\/$/.test(X.pathname)?"":"/")+a.address.value()).replace(/\/\//,"/").replace(/^\/$/,""),i=window[F.tracker];if(typeof i==g){i(ak)}else{if(typeof _gaq!=J&&typeof _gaq.push==g){_gaq.push(["_trackPageview",ak])}else{if(typeof pageTracker!=J&&typeof pageTracker._trackPageview==g){pageTracker._trackPageview(ak)}else{if(typeof urchinTracker==g){urchinTracker(ak)}}}}},G=function(){var i=f.contentWindow.document;i.open();i.write("<html><head><title>"+ae.title+"</title><script>var "+z+' = "'+W()+'";<\/script></head></html>');i.close()},P=function(){if(!V){V=D;if(F.wrap){var ak=a("body");wrap=a("body > *").wrapAll('<div style="padding:'+(R(ak,"marginTop")+R(ak,"paddingTop"))+"px "+(R(ak,"marginRight")+R(ak,"paddingRight"))+"px "+(R(ak,"marginBottom")+R(ak,"paddingBottom"))+"px "+(R(ak,"marginLeft")+R(ak,"paddingLeft"))+'px;" />').parent().wrap('<div id="'+z+'" style="height:100%; overflow:auto;'+(w?(window.statusbar.visible&&!/chrome/i.test(ai)?"":" resize:both;"):"")+'" />');a("html, body").css({height:"100%",margin:0,padding:0,overflow:"hidden"});if(w){a('<style type="text/css" />').appendTo("head").text("#"+z+"::-webkit-resizer { background-color: #fff; }")}}if(j&&t<8){var i=ae.getElementsByTagName("frameset")[0];f=ae.createElement((i?"":"i")+"frame");if(i){i.insertAdjacentElement("beforeEnd",f);i[i.cols?"cols":"rows"]+=",0";f.src=o()+":"+ac;f.noResize=D;f.frameBorder=f.frameSpacing=0}else{f.src=o()+":"+ac;f.style.display="none";ae.body.insertAdjacentElement("afterBegin",f)}q(function(){a(f).bind("load",function(){var al=f.contentWindow;var am=al.location.href;U=(typeof al[z]!=J?al[z]:"");if(U!=W()){Y(ac);X.hash=S(E(U,D),D)}});if(typeof f.contentWindow[z]==J){G()}},50)}else{if(w){if(t<418){a(ae.body).append('<form id="'+z+'" style="position:absolute;top:-9999px;" method="get"></form>');L=ae.getElementById(z)}if(typeof X[z]==J){X[z]={}}if(typeof X[z][X.pathname]!=J){B=X[z][X.pathname].split(",")}}}q(function(){d("init");Y(ac)},1);if((j&&t>7)||(!j&&("on"+T) in Q)){if(Q.addEventListener){Q.addEventListener(T,aa,false)}else{if(Q.attachEvent){Q.attachEvent("on"+T,aa)}}}else{v(aa,50)}a("a[rel*=address:]").address()}},r=function(){if(Q.removeEventListener){Q.removeEventListener(T,aa,false)}else{if(Q.detachEvent){Q.detachEvent("on"+T,aa)}}},z="jQueryAddress",g="function",J="undefined",T="hashchange",p="init",I="change",h="internalChange",ag="externalChange",D=true,ac=false,F={autoUpdate:D,crawlable:ac,history:D,strict:D,wrap:ac},C=a.browser,t=parseFloat(a.browser.version),ad=C.mozilla,j=C.msie,N=C.opera,w=C.safari,af=ac,Q=b(),ae=Q.document,ab=Q.history,X=Q.location,v=setInterval,q=setTimeout,s=decodeURI,aj=encodeURI,ai=navigator.userAgent,f,L,k=m(document),c=k?k.indexOf("?"):-1,K=ae.title,H=ab.length,u=ac,V=ac,O=D,M=D,y=ac,B=[],A={},U=W();if(j){t=parseFloat(ai.substr(ai.indexOf("MSIE")+4));if(ae.documentMode&&ae.documentMode!=t){t=ae.documentMode!=8?7:8}a(document).bind("propertychange",function(){if(ae.title!=K&&ae.title.indexOf("#"+W())!=-1){ae.title=K}})}af=(ad&&t>=1)||(j&&t>=6)||(N&&t>=9.5)||(w&&t>=312);if(af){for(var Z=1;Z<H;Z++){B.push("")}B.push(U);if(j&&X.hash!=U){X.hash="#"+S(E(U,D),D)}if(N){history.navigationMode="compatible"}if(k&&c!=-1){var n,e=k.substr(c+1).split("&");for(Z=0;Z<e.length;Z++){n=e[Z].split("=");if(/^(autoUpdate|crawlable|history|strict|wrap)$/.test(n[0])){F[n[0]]=(isNaN(n[1])?/^(true|yes)$/i.test(n[1]):(parseInt(n[1],10)!==0))}if(/^tracker$/.test(n[0])){F[n[0]]=n[1]}}}if(document.readyState=="complete"){P()}a(P);a(window).bind("unload",r)}else{if((!af&&W()!="")||(w&&t<418&&W()!=""&&X.search!="")){ae.open();ae.write('<html><head><meta http-equiv="refresh" content="0;url='+encodeURI(X.href.substr(0,X.href.indexOf("#")))+'" /></head></html>');ae.close()}else{x()}}return{init:function(ak,i){return l(p,ak,i)},change:function(ak,i){return l(I,ak,i)},internalChange:function(ak,i){return l(h,ak,i)},externalChange:function(ak,i){return l(ag,ak,i)},baseURL:function(){var i=X.href;if(W()!=""){i=i.substr(0,i.indexOf("#"))}if(/\/$/.test(i)){i=i.substr(0,i.length-1)}return i},autoUpdate:function(i){if(i!==undefined){F.autoUpdate=i;return this}return F.autoUpdate},crawlable:function(i){if(i!==undefined){F.crawlable=i;return this}return F.crawlable},history:function(i){if(i!==undefined){F.history=i;return this}return F.history},strict:function(i){if(i!==undefined){F.strict=i;return this}return F.strict},tracker:function(i){if(i!==undefined){F.tracker=i;return this}return F.tracker},wrap:function(i){if(i!==undefined){F.wrap=i;return this}return F.wrap},update:function(){y=D;this.value(U);y=ac;return this},title:function(i){if(i!==undefined){i=s(i);q(function(){K=ae.title=i;if(M&&f&&f.contentWindow&&f.contentWindow.document){f.contentWindow.document.title=i;M=ac}if(!O&&ad){X.replace(X.href.indexOf("#")!=-1?X.href:X.href+"#")}O=ac},50);return this}return ae.title},value:function(al){if(al!==undefined){al=aj(s(ah(al,D)));if(al=="/"){al=""}if(U==al&&!y){return}O=D;U=al;if(F.autoUpdate||y){u=D;Y(D);B[ab.length]=U;if(w){if(F.history){X[z][X.pathname]=B.toString();H=ab.length+1;if(t<418){if(X.search==""){L.action="#"+E(U,D);L.submit()}}else{if(t<523||U==""){var i=ae.createEvent("MouseEvents");i.initEvent("click",D,D);var ak=ae.createElement("a");ak.href="#"+E(U,D);ak.dispatchEvent(i)}else{X.hash="#"+E(U,D)}}}else{X.replace("#"+E(U,D))}}else{if(U!=W()){if(F.history){X.hash="#"+S(E(U,D),D)}else{X.replace("#"+E(U,D))}}}if((j&&t<8)&&F.history){q(G,50)}if(w){q(function(){u=ac},1)}else{u=ac}}return this}if(!af){return null}return s(ah(S(U,ac),ac))},path:function(ak){if(ak!==undefined){var i=this.queryString(),al=this.hash();this.value(ak+(i?"?"+i:"")+(al?"#"+al:""));return this}return this.value().split("#")[0].split("?")[0]},queryString:function(ak){if(ak!==undefined){var al=this.hash();this.value(this.path()+(ak?"?"+ak:"")+(al?"#"+al:""));return this}var i=this.value().split("?");return i.slice(1,i.length).join("?").split("#")[0]},parameter:function(al,au,an){var ar,ap;if(au!==undefined){var at=this.parameterNames();ap=[];for(ar=0;ar<at.length;ar++){var ao=at[ar],av=this.parameter(ao);if(typeof av=="string"){av=[av]}if(ao==al){av=(au===null||au=="")?[]:(an?av.concat([au]):[au])}for(var aq=0;aq<av.length;aq++){ap.push(ao+"="+av[aq])}}if(a.inArray(al,at)==-1){ap.push(al+"="+au)}this.queryString(ap.join("&"));return this}au=this.queryString();if(au){ap=au.split("&");var ak=[];for(ar=0;ar<ap.length;ar++){var am=ap[ar].split("=");if(am[0]==al){ak.push(am[1])}}if(ak.length!==0){return ak.length!=1?ak:ak[0]}}},pathNames:function(){var ak=this.path(),i=ak.replace(/\/{2,9}/g,"/").split("/");if(ak.substr(0,1)=="/"||ak.length===0){i.splice(0,1)}if(ak.substr(ak.length-1,1)=="/"){i.splice(i.length-1,1)}return i},parameterNames:function(){var ak=this.queryString(),an=[];if(ak&&ak.indexOf("=")!=-1){var ao=ak.split("&");for(var am=0;am<ao.length;am++){var al=ao[am].split("=")[0];if(a.inArray(al,an)==-1){an.push(al)}}}return an},hash:function(ak){if(ak!==undefined){this.value(this.value().split("#")[0]+(ak?"#"+ak:""));return this}var i=this.value().split("#");return i.slice(1,i.length).join("#")}}})();a.fn.address=function(b){this.each(function(){if(this.tagName.toLowerCase()=="form"){a("form").live("submit",function(){var d=b?b.call(this):a(this).attr("action")+"?"+a(this).serialize();a.address.value(d);return false})}else{var c=function(){var d=b?b.call(this):/address:/.test(a(this).attr("rel"))?a(this).attr("rel").split("address:")[1].split(" ")[0]:a(this).attr("href").replace(/^#\!?/,"");a.address.value(d);return false};a(this).click(c).live("click",c)}})}}(jQuery));
jQuery.url=function(){var e={};var b={};var d={url:window.location,strictMode:false,key:["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],q:{name:"queryKey",parser:/(?:^|&)([^&=]*)=?([^&]*)/g},parser:{strict:/^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,loose:/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/}};var c=function(){str=decodeURI(d.url);var j=d.parser[d.strictMode?"strict":"loose"].exec(str);var l={};var k=14;while(k--){l[d.key[k]]=j[k]||""}l[d.q.name]={};l[d.key[12]].replace(d.q.parser,function(m,i,n){if(i){l[d.q.name][i]=n}});return l};var f=function(i){if(!b.length){a()}if(i=="base"){if(b.port!==null&&b.port!==""){return b.protocol+"://"+b.host+":"+b.port+"/"}else{return b.protocol+"://"+b.host+"/"}}return(b[i]==="")?null:b[i]};var h=function(i){if(!b.length){a()}return(b.queryKey[i]===null)?null:b.queryKey[i]};var a=function(){b=c();g()};var g=function(){var i=b.path;e=[];e=b.path.length==1?{}:(i.charAt(i.length-1)=="/"?i.substring(1,i.length-1):path=i.substring(1)).split("/")};return{setMode:function(i){strictMode=i=="strict"?true:false;return this},setUrl:function(i){d.url=i===undefined?window.location:i;a();return this},segment:function(i){if(!b.length){a()}if(i===undefined){return e.length}return(e[i]===""||e[i]===undefined)?null:e[i]},attr:f,param:h}}();
var jaaulde=window.jaaulde||{};jaaulde.utils=jaaulde.utils||{};jaaulde.utils.cookies=(function(){var e,d,c,b,a={expiresAt:null,path:"/",domain:null,secure:false};e=function(g){var h,f;if(typeof g!=="object"||g===null){h=a}else{h={expiresAt:a.expiresAt,path:a.path,domain:a.domain,secure:a.secure};if(typeof g.expiresAt==="object"&&g.expiresAt instanceof Date){h.expiresAt=g.expiresAt}else{if(typeof g.hoursToLive==="number"&&g.hoursToLive!==0){f=new Date();f.setTime(f.getTime()+(g.hoursToLive*60*60*1000));h.expiresAt=f}}if(typeof g.path==="string"&&g.path!==""){h.path=g.path}if(typeof g.domain==="string"&&g.domain!==""){h.domain=g.domain}if(g.secure===true){h.secure=g.secure}}return h};d=function(f){f=e(f);return((typeof f.expiresAt==="object"&&f.expiresAt instanceof Date?"; expires="+f.expiresAt.toGMTString():"")+"; path="+f.path+(typeof f.domain==="string"?"; domain="+f.domain:"")+(f.secure===true?"; secure":""))};c=function(){var o={},h,g,f,n,k=document.cookie.split(";"),j;for(h=0;h<k.length;h=h+1){g=k[h].split("=");f=g[0].replace(/^\s*/,"").replace(/\s*$/,"");try{n=decodeURIComponent(g[1])}catch(m){n=g[1]}if(typeof JSON==="object"&&JSON!==null&&typeof JSON.parse==="function"){try{j=n;n=JSON.parse(n)}catch(l){n=j}}o[f]=n}return o};b=function(){};b.prototype.get=function(i){var f,h,g=c();if(typeof i==="string"){f=(typeof g[i]!=="undefined")?g[i]:null}else{if(typeof i==="object"&&i!==null){f={};for(h in i){if(typeof g[i[h]]!=="undefined"){f[i[h]]=g[i[h]]}else{f[i[h]]=null}}}else{f=g}}return f};b.prototype.filter=function(f){var i,g={},h=c();if(typeof f==="string"){f=new RegExp(f)}for(i in h){if(i.match(f)){g[i]=h[i]}}return g};b.prototype.set=function(i,g,f){if(typeof f!=="object"||f===null){f={}}if(typeof g==="undefined"||g===null){g="";f.hoursToLive=-8760}else{if(typeof g!=="string"){if(typeof JSON==="object"&&JSON!==null&&typeof JSON.stringify==="function"){g=JSON.stringify(g)}else{throw new Error("cookies.set() received non-string value and could not serialize.")}}}var h=d(f);document.cookie=i+"="+encodeURIComponent(g)+h};b.prototype.del=function(i,h){var f={},g;if(typeof h!=="object"||h===null){h={}}if(typeof i==="boolean"&&i===true){f=this.get()}else{if(typeof i==="string"){f[i]=true}}for(g in f){if(typeof g==="string"&&g!==""){this.set(g,null,h)}}};b.prototype.test=function(){var g=false,f="cT",h="data";this.set(f,h);if(this.get(f)===h){this.del(f);g=true}return g};b.prototype.setOptions=function(f){if(typeof f!=="object"){f=null}a=e(f)};return new b()})();(function(){if(window.jQuery){(function(b){b.cookies=jaaulde.utils.cookies;var a={cookify:function(c){return this.each(function(){var e,g=["name","id"],d,h=b(this),f;for(e in g){if(!isNaN(e)){d=h.attr(g[e]);if(typeof d==="string"&&d!==""){if(h.is(":checkbox, :radio")){if(h.attr("checked")){f=h.val()}}else{if(h.is(":input")){f=h.val()}else{f=h.html()}}if(typeof f!=="string"||f===""){f=null}b.cookies.set(d,f,c);break}}}})},cookieFill:function(){return this.each(function(){var h,c,f=["name","id"],d,g=b(this),e;c=function(){h=f.pop();return !!h};while(c()){d=g.attr(h);if(typeof d==="string"&&d!==""){e=b.cookies.get(d);if(e!==null){if(g.is(":checkbox, :radio")){if(g.val()===e){g.attr("checked","checked")}else{g.removeAttr("checked")}}else{if(g.is(":input")){g.val(e)}else{g.html(e)}}}break}}})},cookieBind:function(c){return this.each(function(){var d=b(this);d.cookieFill().change(function(){d.cookify(c)})})}};b.each(a,function(c){b.fn[c]=this})})(window.jQuery)}})();
/*
 * jquery.equalheights.js 
 */
$.fn.equalHeights=function(a){$(this).each(function(){var b=0;$(this).children().each(function(c){if($(this).height()>b){b=$(this).height()}});if($.browser.msie&&$.browser.version==6){$(this).children().css({height:b})}$(this).children().css({"min-height":b})});return this};
/*
 * layout.js 
 */
var HQHair={Common:{addHistoryAnchor:function(a){var b=document.location.toString();var c=b;if(b.match(new RegExp("#","g"))){c=b.split("#")[0]}c+="#"+a;document.location=c},getCurrentAnchor:function(){var a=document.location.toString();if(a.match(new RegExp("#","g"))){return a.split("#")[1]}return""},getCorrectSearchPageFromAnchor:function(a){var b=HQHair.Common.getCurrentAnchor();if(b!=undefined&&b.length>0&&b.match(new RegExp("^\\d+$","g"))){if(a!=b){return b}}return a},hoverClass:function(a){$(a).hover(function(){$(this).addClass("hover")},function(){$(this).removeClass("hover")})},accordion:function(a){$(a+" li:last-child").addClass("last");$(a+" .open h2").click(function(){return});$(a+" li h2").click(function(){if($(this).parent().hasClass("open")){return}else{$(a+" .open .content").slideUp(10);$(a+" .open").removeClass("open");$(this).parent().addClass("open");$(this).siblings(".content").slideDown(10)}})},init:function(a){$("body").addClass("js");$("body.noLeftColumn.noRightColumn").addClass("noLeftColumn_noRightColumn");$(".equalHeights").equalHeights();HQHair.Common.checkForDisabledInputs()},checkForEnter:function(b){var a;if(window.event){a=window.event.keyCode}else{if(b){a=b.which}}return a==13},checkForDisabledInputs:function(){if($(".disabledInput").length>0){$(".disabledInput").each(function(){$(this).attr("disabled","disabled")})}},clickOnEnter:function(b,a){if(HQHair.Common.checkForEnter(b)){a.click();return false}return true},checkKeyCodeIsNumber:function(a){return(a>=48&&a<=57)},checkKeyCodeIsBackspace:function(a){return a==8},checkKeyCodeIsTab:function(a){return a==9},filterNumericInputKeys:function(b){var a;if(window.event){a=window.event.keyCode}else{if(b){a=b.which}}return a==0||HQHair.Common.checkKeyCodeIsNumber(a)||HQHair.Common.checkKeyCodeIsBackspace(a)||HQHair.Common.checkKeyCodeIsTab(a)},setTitle:function(a){if(a){document.title=a}},bindRadioCareOfAction:function(){if($(".careOfRadios input:radio").length>0){$(".careOfRadios input:radio").click(function(a){HQHair.Common.businessAddressChecked()})}},businessAddressChecked:function(){if($(".careOfRadios input:radio").length>0){if($(".careOfRadios input:checked").eq(0).val().toLowerCase()=="true"){$(".careOf").attr("style","display:none")}else{$(".careOf").attr("style","")}}},cursorThinkingOn:function(){$("html").css("cursor","wait")},cursorThinkingOff:function(){$("html").css("cursor","default")},trackActionIndexTools:function(c,a){var b=YWA.getTracker(c);b.setAction(a);b.submit_action()},reloadAjaxPanels:function(){if(typeof window._reloadAjaxPanels=="function"){_reloadAjaxPanels()}}},Header:{init:function(){HQHair.Header.clickToShow(".navCurrency a",".navCurrency .popup");HQHair.Header.hoverToShow(".navWishAndGiftList",".wishAndGiftList",".navWishAndGiftList a",HQHair.Header.cleanupGiftListPopup);HQHair.Header.hoverToShow(".navInstantGiftCards",".instantGiftCards",".navInstantGiftCards a");$(".instantGiftCards select").bind("mouseenter mouseleave",function(a){a.stopPropagation()});$(".instantGiftCards select").mouseout(function(a){a.stopPropagation()}).mouseover(function(a){a.stopPropagation()});HQHair.Header.hoverToShow(".navMyAccount",".myAccount",".navMyAccount a",HQHair.Header.cleanupMyAcountPopup);HQHair.Header.clickToShow(".navNewsLetter",".newsletterSignup");HQHair.Header.hoverToShow(".navHqoutletstore, .navHqman, .navHqhair",".shopAcrossStores");$(".navHqoutletstore").mouseover(function(){$(".shopAcrossStores").css("left","50px")});$(".navHqman").mouseover(function(){$(".shopAcrossStores").css("left","175px")});$(".navHqhair").mouseover(function(){if(location.href.indexOf("outlet")!=-1){$(".shopAcrossStores").css("left","295px")}else{$(".shopAcrossStores").css("left","175px")}});$("#globalNav .navBrandSelector").hoverIntentGroup({over:function(){$("#globalNav .navBrandSelector").addClass("navBrandSelectorActive")},out:function(){$("#globalNav .navBrandSelector").removeClass("navBrandSelectorActive")},triggerEvent:"click",timeout:500});$("#headerSearchBox").labelInside("Search the site","");$("a#headerMyAccountLoginButton").click(function(a){if(!$("#loginIframe").size()>0){$("#footer").append('<iframe src="about:blank" name="loginIframe" id="loginIframe" style="width: 1px; height: 1px;"></iframe>')}$("#headerMyAccountLoginButton").text("Loading...").removeClass("buttonLogIn");$("form#myAccountLoginForm").submit();a.preventDefault()});$("a#headerWishAndGiftListLoginButton").click(function(a){if(!$("#loginIframe").size()>0){$("#footer").append('<iframe src="about:blank" name="loginIframe" id="loginIframe" style="width: 1px; height: 1px;"></iframe>')}$("#headerWishAndGiftListLoginButton").text("Loading...").removeClass("buttonLogIn");$("form#wishAndGiftListLogin").submit();a.preventDefault()});$("#headerMyAccountSignupButton").click(function(a){$("#newVisitorRegistration").submit();a.preventDefault()});$("#buttonCreateAWishAndGiftList").click(function(a){$("#createAList").submit();a.preventDefault()});$("#buttonBuyInstantGiftCard").click(function(a){if($("#buyInstantGiftCard select").val()!=""){$("#buyInstantGiftCard select").attr("style","");$("#buyInstantGiftCard").submit()}else{$("#buyInstantGiftCard select").attr("style","border-color:red;")}a.preventDefault()})},initQuickView:function(){$("#quickView").hqBehaviour({hoverOver:function(a){if(HQHair.Header.getBasketSize()>0){$("#quickViewTriggerLogo").addClass("showHover")}else{$("#quickViewEmptyError").show()}},hoverOut:function(a){$("#quickViewTriggerLogo").removeClass("showHover");$("#quickViewEmptyError").hide()}});$("#quickView #quickViewTriggerLogo").click(function(a){if(HQHair.Header.getBasketSize()>0){$("#quickView .popup").toggle()}a.preventDefault();a.stopPropagation()});$("#quickView .navClose a").click(function(a){$("#quickView .popup").hide();a.preventDefault();a.stopPropagation()})},moveRelativeTo:function(b,c){if(!b.length||!c.length){return}var d=$("#content").offset();var e;var a=c.offset();if(b.css("display")=="none"){e=b.toggle().offset();b.toggle()}else{e=b.offset()}a.left-=d.left;e.left-=d.left;b.css({left:a.left+e.left,top:a.top+e.top})},clickHover:function(a,h,f,g,b){var k=$(a);var e=$(h);var j=f?$(f):e;if(b){HQHair.Header.moveRelativeTo(j,$(b))}function i(l){l.preventDefault();j.show();k.find("a, .tab").eq(0).addClass("active")}function d(l){j.hide();k.find("a, .tab").eq(0).removeClass("active");return false}k.click(i);var c={over:function(){},sensitivity:1000,interval:10,out:d,timeout:2000};if(g){$(g).click(d)}e.hoverIntent(c);if(j.css("display")=="none"){j.toggle().bgiframe().toggle()}else{j.bgiframe()}},hoverToShow:function(b,a,d,c){$(b+","+a).hoverIntentGroup({over:function(){$(d).addClass("active");$(a).show()},out:function(){$(d).removeClass("active");$(a).hide();if(c){c()}},timeout:500})},clickToShow:function(b,a,d,c){$(b+","+a).hoverIntentGroup({over:function(){$(d).addClass("active");$(a).show()},out:function(){$(d).removeClass("active");$(a).hide()},timeout:1200,triggerEvent:"click"})},loginFailed:function(a){var b;if(a=="myAccount"){$("#headerMyAccountLoginButton").text("Log in").addClass("buttonLogIn");b=$("#account_login_password").parents("div");$(b[0]).addClass("formErrorField");$(b[1]).addClass("formError");$("#account_login_password").val("")}else{if(a=="wishList"){$("#headerWishAndGiftListLoginButton").text("Wish & Gift List Log In").addClass("buttonLogIn");b=$("#wishandgiftlist_login_password").parents("div");$(b[0]).addClass("formErrorField");$(b[1]).addClass("formError");$("#wishandgiftlist_login_password").val("")}}},cleanupGiftListPopup:function(){var a=$("#wishandgiftlist_login_password").parents("div");$(a[0]).removeClass("formErrorField");$(a[1]).removeClass("formError");$("#viewAList").removeClass("error");$("#viewAList .viewListErrorMessages").empty()},cleanupMyAcountPopup:function(){var a=$("#account_login_password").parents("div");$(a[0]).removeClass("formErrorField");$(a[1]).removeClass("formError")},_basketSize:0,setBasketSize:function(a){HQHair.Header._basketSize=a},getBasketSize:function(){return HQHair.Header._basketSize}},Product:{removeIFrameHeight:function(){if($("#powerReviewPopupFrame iframe").length>0){$("#powerReviewPopupFrame iframe").removeAttr("height");$("#powerReviewPopupFrame iframe").attr("style","height:100%")}else{setTimeout("HQHair.Product.removeIFrameHeight()",200)}},togglePowerReviewPopup:function(){$("#powerReviewPopupFrame").toggle()},toggleSlideoutPanel:function(){$(".productReviewsSlideOut").toggle();$(".hideSlideoutPanel").toggle();$(".showSlideoutPanel").toggle()}},Checkout:{alreadyClicked:false,textCounter:function(c,a,b){if(c.length&&a.length){if(c.val().length>b){c.val(c.val().substring(0,b))}a.text((b-c.val().length)+" Characters Available")}},checkTermsConditions:function(){var a=$(".agreeTermsConditions:checked").length;if(!a){HQHair.Popup.showPopup("agreeTermsConditionsPopup")}return a},init:function(){HQHair.Checkout.textCounter($(".giftCardMessageTextArea"),$(".charactersAvailable"),120);HQHair.Common.bindRadioCareOfAction();HQHair.Common.businessAddressChecked()},pageButtonClickedOnce:function(){if(!HQHair.Checkout.alreadyClicked){HQHair.Checkout.alreadyClicked=true;return false}return true}},Popup:{quickBuy:function(b,c,a){_hqLaunchQuickBuy(b,c,a);return false},specialOffer:function(a){_hqLaunchSpecialOffer(a);return false},showPopup:function(a){this.currentPopup=a;_hqLaunchPopup(a);return false},showCurrentPopup:function(){$("#"+this.currentPopup).hqShowPopup();this.currentPopup=null},closePopup:function(b){var a=$(b.target);a.parents(".popupContent").eq(0).hqHidePopup();return false}},Member:{init:function(){$("#addAddressTypeRadioContainer input:radio").click(function(a){if($(this).val()=="true"){$(".ca0FieldContainerClass").hide()}else{$(".ca0FieldContainerClass").show()}});HQHair.Common.bindRadioCareOfAction();HQHair.Common.businessAddressChecked()},displaySuccessOverlay:function(a,b){if(a=="success"){var c=$(b);if(c.size()==0){alert("Thanks!")}var d=c.offset();if($("#temporarySuccessNotificationPanel").size()==0){$("body").append('<div id="temporarySuccessNotificationPanel">Thank you!</div>')}$("#temporarySuccessNotificationPanel").css({display:"none",position:"absolute",top:d.top,left:d.left,width:c.outerWidth(),"padding-top":c.outerHeight()}).fadeIn("slow",function(){$(this).animate({opacity:1},3000,function(){$(this).fadeOut(1500)})})}}},Content:{injectContentCss:function(b){var a=$("head");$(b).each(function(){var c=$(this).html();$(this).html("");a.append('<style type="text/css">'+c+"</style>")})}},AskTheExperts:{init:function(){var a=$(".formAskExpert .dilemmaChooser");if(a.length>0){a.change(HQHair.AskTheExperts.dilemmaChangeHandler);HQHair.AskTheExperts.showProblemItems(a.val().split(" "))}$(".introExpertsPicks>ol>li>a").click(function(d){var c=$(d.target).parents("li").eq(0).attr("class");var b=this;$(".introExpertsPicks>ol>li>a").each(function(){if(this==b){$(this).addClass("current")}else{$(this).removeClass("current")}});$(".introExpertsPicks .productGrid").each(function(){var e=$(this).attr("class");if(e.indexOf(c)==-1){$(this).hide()}else{$(this).show()}});d.preventDefault();d.stopPropagation()})},dilemmaChangeHandler:function(a){var b=$(this).val().split(" ");HQHair.AskTheExperts.showProblemItems(b)},showProblemItems:function(b){var a=true;$(".expertQuestions>li").each(function(){var d=$(this).attr("class");if(d.indexOf("alwaysShow")==-1){var e=false;for(var c in b){if(d.indexOf(b[c])!=-1){e=true;break}}if(e){$(this).show();if(a){$(this).addClass("alternateBackground")}else{$(this).removeClass("alternateBackground")}a=!a}else{$(this).hide()}}})},isAnswered:function(a){var b=false;if($(a).hasClass("novalidate")){return true}$("input:text, textarea",a).each(function(){if($(this).val().length>0){b=true;return false}});b|=($("input:checked",a).size()>0);return b},validateAndSubmit:function(){var a=false;$(".expertQuestions>li:visible").each(function(){if(HQHair.AskTheExperts.isAnswered(this)){$(this).removeClass("error")}else{a|=true;$(this).addClass("error")}});if(a){$(".formAskExpert p.error").show()}else{$("a.submitAskTheExpertsQuestion").click()}return a}},GiftList:{quantityCheck:function(){var a=false;$(".vertCenterInner .productDescription .text").each(function(){var b=$(".errorMessage",$(this).parents(".productDescription"));if($(this).val()<1){a=true;b.removeClass("hidden")}else{if(!b.hasClass("hidden")){b.addClass("hidden")}}});return a}},Effect:{animateHighlight:function(b,c){try{var a=$(b);var f=$(c);var i=null;var e=document.getElementById("hq_animate_highlight_shadow");if(e!=null){i=$(e)}else{var h=document.createElement("div");h.id="hq_animate_highlight_shadow";$("body").prepend(h);i=$(h);i.css({"background-color":"#E62A2A",border:"solid 1px #E62A2A",display:"none",position:"static",top:"0","z-index":"100000"})}var g=a.offset();i.width(a.css("width"));i.height(a.css("height"));i.css({top:g.top,left:g.left,opacity:0.5});i.show();i.css("position","absolute");var j=f.offset();i.animate({width:f.innerWidth(),height:f.innerHeight(),top:j.top,left:j.left},{duration:400}).animate({opacity:0},{duration:100,complete:function(){i.css({display:"none",position:"static",top:"0",width:"0",height:"0"});a.parents(".popupContent").eq(0).hqHidePopup()}})}catch(d){}}}};$(document).ready(function(){HQHair.Common.init();HQHair.Header.init();HQHair.Checkout.init();HQHair.Member.init();HQHair.AskTheExperts.init();HQHair.Common.hoverClass($(".sidebar div.catNav ol li"));HQHair.Common.accordion(".drawers.accordion");HQHair.Header.clickHover(".whatsThis",".popupExtraSafety",".popupExtraSafety",".popupExtraSafety .close");HQHair.Header.clickHover(".popupSafeShopping",".popupSafeShopping",".popupSafeShopping",".popupSafeShopping .close");HQHair.Header.clickHover(".productOffer",".popupProductOffer",".productOffer .popup",".popupProductOffer .close");HQHair.Header.clickHover(".productOffer",".popupProductOfferImage",".productOffer .popup",".popupProductOfferImage .close");HQHair.Header.clickHover(".deleteList",".popupGiftDelete",".popupGiftDelete",".popupGiftDelete .close");HQHair.Header.clickHover(".questionNotCovered",".popupCustomerServiceEnquiryForm",".popupCustomerServiceEnquiryForm",".popupCustomerServiceEnquiryForm .close");HQHair.Header.hoverToShow(".beSocialBookmarks","#socialBookMarks");HQHair.Header.clickHover(".giftListTitleSuggestion",".popupGiftSuggestions",".popupGiftSuggestions",".popupGiftSuggestions .close",".giftListTitleSuggestion");HQHair.Header.clickHover(".popupSafeShopping",".popupSafeShopping",".popupSafeShopping",".popupSafeShopping .close");HQHair.Header.clickHover(".popupRegistrationThanks",".popupRegistrationThanks",".popupRegistrationThanks",".popupRegistrationThanks .close");HQHair.Header.clickHover(".popupError",".popupError",".popupError",".popupError .close");HQHair.Header.moveRelativeTo($(".popupWishListEmpty0"),$(".giftList"));HQHair.Header.hoverToShow(".priceSavingsPopupHandle",".priceSavingsPopup");var a=$("body");$(".productGrid li, .userContentInfoBoxContentDescription").each(function(c,f){var g=$(this);var d=g.find(".buttonQuickBuy");var b=g.find(".popup");var h=g.find(".close");a.append(b);HQHair.Header.clickHover(d,b,b,h)});HQHair.Common.reloadAjaxPanels()});$(document).ready(function(){$.address.init(function(a){}).externalChange(function(a){if($.address.value()=="/"){if($.url.param("sectionCode")!=undefined&&$.cookies.get("navmemento")!=$.url.param("sectionCode")){$.cookies.set("navmemento",$.url.param("sectionCode"))}else{if($.url.param("sectionCode")!=undefined&&$.cookies.get("navmemento")==$.url.param("sectionCode")){selectTreeCategory($.url.param("sectionCode"))}}}else{if($.address.value().length>1){selectTreeCategory(a.value.substr(1))}}})});jQuery.fn.log=function(a){console.log("%s: %o",a,this);return this};
/* Copyright (c) 2006 Brandon Aaron (http://brandonaaron.net)
 * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) 
 * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
 *
 * $LastChangedDate: 2007-07-21 18:45:56 -0500 (Sat, 21 Jul 2007) $
 * $Rev: 2447 $
 *
 * Version 2.1.1
 */
(function($){$.fn.bgIframe=$.fn.bgiframe=function(s){if($.browser.msie&&/6.0/.test(navigator.userAgent)){s=$.extend({top:'auto',left:'auto',width:'auto',height:'auto',opacity:true,src:'javascript:false;'},s||{});var prop=function(n){return n&&n.constructor==Number?n+'px':n;},html='<iframe class="bgiframe"frameborder="0"tabindex="-1"src="'+s.src+'"'+'style="display:block;position:absolute;z-index:-1;'+(s.opacity!==false?'filter:Alpha(Opacity=\'0\');':'')+'top:'+(s.top=='auto'?'expression(((parseInt(this.parentNode.currentStyle.borderTopWidth)||0)*-1)+\'px\')':prop(s.top))+';'+'left:'+(s.left=='auto'?'expression(((parseInt(this.parentNode.currentStyle.borderLeftWidth)||0)*-1)+\'px\')':prop(s.left))+';'+'width:'+(s.width=='auto'?'expression(this.parentNode.offsetWidth+\'px\')':prop(s.width))+';'+'height:'+(s.height=='auto'?'expression(this.parentNode.offsetHeight+\'px\')':prop(s.height))+';'+'"/>';return this.each(function(){if($('> iframe.bgiframe',this).length==0)this.insertBefore(document.createElement(html),this.firstChild);});}return this;};})(jQuery);
/*
 * jquery.blockUI.js 
 */
(function(f){if(/1\.(0|1|2)\.(0|1|2)/.test(f.fn.jquery)||/^1.1/.test(f.fn.jquery)){alert("blockUI requires jQuery v1.2.3 or later!  You are using v"+f.fn.jquery);return}f.fn._fadeIn=f.fn.fadeIn;f.blockUI=function(m){c(window,m)};f.unblockUI=function(m){g(window,m)};f.fn.block=function(m){return this.unblock({fadeOut:0}).each(function(){if(f.css(this,"position")=="static"){this.style.position="relative"}if(f.browser.msie){this.style.zoom=1}c(this,m)})};f.fn.unblock=function(m){return this.each(function(){g(this,m)})};f.blockUI.version=2.16;f.blockUI.defaults={message:"<h1>Please wait...</h1>",css:{padding:0,margin:0,width:"30%",top:"40%",left:"35%",textAlign:"center",color:"#000",border:"3px solid #aaa",backgroundColor:"#fff",cursor:"wait"},overlayCSS:{backgroundColor:"#000",opacity:"0.6"},growlCSS:{width:"350px",top:"10px",left:"",right:"10px",border:"none",padding:"5px",opacity:"0.6",cursor:null,color:"#fff",backgroundColor:"#000","-webkit-border-radius":"10px","-moz-border-radius":"10px"},iframeSrc:"javascript:false",baseZ:1000,centerX:true,centerY:true,allowBodyStretch:true,constrainTabKey:true,fadeIn:200,fadeOut:400,timeout:0,showOverlay:true,focusInput:true,applyPlatformOpacityRules:true,onUnblock:null,quirksmodeOffsetHack:4};var d=f.browser.msie&&/MSIE 6.0/.test(navigator.userAgent);var b=null;var e=[];function c(o,m){var y=(o==window);var p=m&&m.message!==undefined?m.message:undefined;m=f.extend({},f.blockUI.defaults,m||{});m.overlayCSS=f.extend({},f.blockUI.defaults.overlayCSS,m.overlayCSS||{});var x=f.extend({},f.blockUI.defaults.css,m.css||{});p=p===undefined?m.message:p;if(y&&b){g(window,{fadeOut:0})}if(p&&typeof p!="string"&&(p.parentNode||p.jquery)){var r=p.jquery?p[0]:p;var w={};f(o).data("blockUI.history",w);w.el=r;w.parent=r.parentNode;w.display=r.style.display;w.position=r.style.position;if(w.parent){w.parent.removeChild(r)}}var A=m.baseZ;var v=(f.browser.msie)?f('<iframe class="blockUI" style="z-index:'+(A++)+';display:none;border:none;margin:0;padding:0;position:absolute;width:100%;height:100%;top:0;left:0" src="'+m.iframeSrc+'"></iframe>'):f('<div class="blockUI" style="display:none"></div>');var u=f('<div class="blockUI blockOverlay" style="z-index:'+(A++)+';display:none;cursor:wait;border:none;margin:0;padding:0;width:100%;height:100%;top:0;left:0"></div>');var q=y?f('<div class="blockUI blockMsg blockPage" style="z-index:'+A+';display:none;position:fixed"></div>'):f('<div class="blockUI blockMsg blockElement" style="z-index:'+A+';display:none;position:absolute"></div>');if(p){q.css(x)}if(!m.applyPlatformOpacityRules||!(f.browser.mozilla&&/Linux/.test(navigator.platform))){u.css(m.overlayCSS)}u.css("position",y?"fixed":"absolute");if(f.browser.msie){v.css("opacity","0.0")}f([v[0],u[0],q[0]]).appendTo(y?"body":o);var D=f.browser.msie&&(f.browser.version<8||!f.boxModel)&&(!f.boxModel||f("object,embed",y?null:o).length>0);if(d||(D&&q[0].style.setExpression)){if(y&&m.allowBodyStretch&&f.boxModel){f("html,body").css("height","100%")}if((d||!f.boxModel)&&!y){var E=j(o,"borderTopWidth"),s=j(o,"borderLeftWidth");var C=E?"(0 - "+E+")":0;var n=s?"(0 - "+s+")":0}f.each([v,u,q],function(t,H){var z=H[0].style;z.position="absolute";if(t<2){y?z.setExpression("height","Math.max(document.body.scrollHeight, document.body.offsetHeight) - (jQuery.boxModel?0:"+m.quirksmodeOffsetHack+') + "px"'):z.setExpression("height",'this.parentNode.offsetHeight + "px"');y?z.setExpression("width",'jQuery.boxModel && document.documentElement.clientWidth || document.body.clientWidth + "px"'):z.setExpression("width",'this.parentNode.offsetWidth + "px"');if(n){z.setExpression("left",n)}if(C){z.setExpression("top",C)}}else{if(m.centerY){if(y){z.setExpression("top",'(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"')}z.marginTop=0}else{if(!m.centerY&&y){var F=(m.css&&m.css.top)?parseInt(m.css.top):0;var G="((document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "+F+') + "px"';z.setExpression("top",G)}}}})}if(p){q.append(p);if(p.jquery||p.nodeType){f(p).show()}}if(f.browser.msie&&m.showOverlay){v.show()}if(m.fadeIn){if(m.showOverlay){u._fadeIn(m.fadeIn)}if(p){q.fadeIn(m.fadeIn)}}else{if(m.showOverlay){u.show()}if(p){q.show()}}i(1,o,m);if(y){b=q[0];e=f(":input:enabled:visible",b);if(m.focusInput){setTimeout(l,20)}}else{a(q[0],m.centerX,m.centerY)}if(m.timeout){var B=setTimeout(function(){y?f.unblockUI(m):f(o).unblock(m)},m.timeout);f(o).data("blockUI.timeout",B)}}function g(p,q){var o=p==window;var n=f(p);var r=n.data("blockUI.history");var s=n.data("blockUI.timeout");if(s){clearTimeout(s);n.removeData("blockUI.timeout")}q=f.extend({},f.blockUI.defaults,q||{});i(0,p,q);var m=o?f("body").children().filter(".blockUI"):f(".blockUI",p);if(o){b=e=null}if(q.fadeOut){m.fadeOut(q.fadeOut);setTimeout(function(){h(m,r,q,p)},q.fadeOut)}else{h(m,r,q,p)}}function h(m,p,o,n){m.each(function(q,r){if(this.parentNode){this.parentNode.removeChild(this)}});if(p&&p.el){p.el.style.display=p.display;p.el.style.position=p.position;if(p.parent){p.parent.appendChild(p.el)}f(p.el).removeData("blockUI.history")}if(typeof o.onUnblock=="function"){o.onUnblock(n,o)}}function i(m,q,r){var p=q==window,o=f(q);if(!m&&(p&&!b||!p&&!o.data("blockUI.isBlocked"))){return}if(!p){o.data("blockUI.isBlocked",m)}if(m&&!r.showOverlay){return}var n="mousedown mouseup keydown keypress";m?f(document).bind(n,r,k):f(document).unbind(n,k)}function k(p){if(p.keyCode&&p.keyCode==9){if(b&&p.data.constrainTabKey){var o=e;var n=!p.shiftKey&&p.target==o[o.length-1];var m=p.shiftKey&&p.target==o[0];if(n||m){setTimeout(function(){l(m)},10);return false}}}if(f(p.target).parents("div.blockMsg").length>0){return true}return f(p.target).parents().children().filter("div.blockUI").length==0}function l(m){if(!e){return}var n=e[m===true?e.length-1:0];if(n){n.focus()}}function a(r,m,v){var u=r.parentNode,q=r.style;var n=((u.offsetWidth-r.offsetWidth)/2)-j(u,"borderLeftWidth");var o=((u.offsetHeight-r.offsetHeight)/2)-j(u,"borderTopWidth");if(m){q.left=n>0?(n+"px"):"0"}if(v){q.top=o>0?(o+"px"):"0"}}function j(m,n){return parseInt(f.css(m,n))||0}})(jQuery);
/*
 * jquery.labelinside.js 
 */
$.fn.labelInside=function(c,b){var a=b||"";$(this).each(function(){var d=$(this);if(d.val()==""){d.addClass(a).val(c)}else{d.removeClass(a)}d.focus(function(){if($(this).val()==c){$(this).val("").removeClass(a)}}).blur(function(){if($(this).val()==""){$(this).val(c).addClass(a)}})})};
/*
 * jquery.popup.js 
 */
(function(a){a.fn.hqShowPopup=function(d){var b={clickOutsideToClose:false,top:"50%",left:"50%",center_y:true,center_x:true};d=a.extend(b,d);var c=a(this);var e=jQuery.browser.msie&&(jQuery.browser.version<7);if(!e){var f=a(this).offset();c.addClass("popupShown");c.show();c.css({top:d.top,left:d.left,"margin-left":((c.outerWidth()/2)*-1)+"px","margin-top":((c.outerHeight()/2)*-1)+"px"})}else{c.addClass("ie6FixedPositionSimulator");c.show()}};a.fn.hqHidePopup=function(){a(this).hide();a(this).removeClass("ie6FixedPositionSimulator")}})(jQuery);
/*
 * zoomer.js 
 */
var BrowserDetect={init:function(){this.browser=this.searchString(this.dataBrowser)||"An unknown browser";this.version=this.searchVersion(navigator.userAgent)||this.searchVersion(navigator.appVersion)||"an unknown version";this.OS=this.searchString(this.dataOS)||"an unknown OS"},searchString:function(d){for(var a=0;a<d.length;a++){var b=d[a].string;var c=d[a].prop;this.versionSearchString=d[a].versionSearch||d[a].identity;if(b){if(b.indexOf(d[a].subString)!=-1){return d[a].identity}}else{if(c){return d[a].identity}}}},searchVersion:function(b){var a=b.indexOf(this.versionSearchString);if(a==-1){return}return parseFloat(b.substring(a+this.versionSearchString.length+1))},dataBrowser:[{string:navigator.userAgent,subString:"Chrome",identity:"Chrome"},{string:navigator.userAgent,subString:"OmniWeb",versionSearch:"OmniWeb/",identity:"OmniWeb"},{string:navigator.vendor,subString:"Apple",identity:"Safari"},{prop:window.opera,identity:"Opera"},{string:navigator.vendor,subString:"iCab",identity:"iCab"},{string:navigator.vendor,subString:"KDE",identity:"Konqueror"},{string:navigator.userAgent,subString:"Firefox",identity:"Firefox"},{string:navigator.vendor,subString:"Camino",identity:"Camino"},{string:navigator.userAgent,subString:"Netscape",identity:"Netscape"},{string:navigator.userAgent,subString:"MSIE",identity:"Explorer",versionSearch:"MSIE"},{string:navigator.userAgent,subString:"Gecko",identity:"Mozilla",versionSearch:"rv"},{string:navigator.userAgent,subString:"Mozilla",identity:"Netscape",versionSearch:"Mozilla"}],dataOS:[{string:navigator.platform,subString:"Win",identity:"Windows"},{string:navigator.platform,subString:"Mac",identity:"Mac"},{string:navigator.platform,subString:"Linux",identity:"Linux"}]};BrowserDetect.init();function Zoom(){var a=this;this._reticule=undefined;this._viewport=undefined;this._thumbnail=undefined;this._zoomImage=undefined;this._thumbnailRect=undefined;this._coords=undefined;this.previousX=undefined;this.previousY=undefined;this.activatedThumbMO=undefined;this.activatedReticuleMO=undefined;this.active=false;this.isInBounds=false;this.isZoomVisible=false;this.intentProperties=undefined;this.reticuleMouseMove=function(b){a.previousX=b.pageX;a.previousY=b.pageY;a.checkOutOfBounds(b);a.moveReticuleToCursor(b);a.moveZoomImageToCursor(b)};this.reticuleMouseover=function(b){if(a.activatedReticuleMO==undefined){a.activatedReticuleMO=true;a._reticule.mousemove(a.reticuleMousemove)}};this.reticuleMousemove=function(b){a.reticuleOut=false;a.mouseMoved(b)};this.turnOn=function(){a.active=true};this.turnOff=function(){a.active=false};this.thumbMousemove=function(b){a.thumbOut=false;a.mouseMoved(b)};this.mouseMoved=function(b){if(a.active){if(!a.checkOutOfBounds(b)){if(b.pageX!=a.previousX||b.pageY!=a.previousY||!a.isCurrentlyZooming){a.previousX=b.pageX;a.previousY=b.pageY;a.moveReticuleToCursor(b);a.moveZoomImageToCursor(b)}}}};this.show=function(){if(a._reticule!=undefined){if(!a.isCurrentlyZooming&&a.intentProperties&&a.intentProperties.startupDelay&&a.intentProperties.startupDelay>0&&a.intentProperties.variationPixels&&a.intentProperties.variationPixels>0){a._reticule.css("visibility","hidden");a._viewport.css("visibility","hidden");a._zoomImage.css("visibility","hidden");a.intentProperties.lastX=a.previousX;a.intentProperties.lastY=a.previousY;setTimeout(a.delayedShow,a.intentProperties.startupDelay)}else{a.isCurrentlyZooming=true}a._reticule.show();a._viewport.show();a._zoomImage.show()}};this.delayedShow=function(){if(a.isInBounds){if(a.checkMouseIntent(a.previousX,a.previousY,a.intentProperties.lastX,a.intentProperties.lastY,a.intentProperties.variationPixels)){a.isCurrentlyZooming=true;a._reticule.css("visibility","visible");a._viewport.css("visibility","visible");a._zoomImage.css("visibility","visible")}else{a.intentProperties.lastX=a.previousX;a.intentProperties.lastY=a.previousY;setTimeout(a.delayedShow,a.intentProperties.startupDelay)}}};this.checkMouseIntent=function(g,f,e,d,j){if(g&&f&&e&&d&&j){var c=e+j/2;var i=e-j/2;var b=d+j/2;var h=d-j/2;return(g>=i&&g<=c&&f>=h&&f<=b)}return false};this.start=function(c){if(a.active){a.show();var b=a._thumbnail.offset();a._thumbnailRect={top:b.top,left:b.left,right:b.left+a._thumbnail.width(),bottom:b.top+a._thumbnail.height()};a.setReticuleSize();a.moveReticuleToCursor(c);if(a.activatedThumbMO==undefined){a.activatedThumbMO=true;a._thumbnail.mousemove(a.reticuleMouseMove)}}};this.end=function(){a._reticule.hide();a._viewport.hide();a.isZoomVisible=false};this.setReticuleSize=function(){if(a.active){a._viewport.show();var b=Math.round((a._viewport.width()/a._zoomImage.width())*a._thumbnail.width());var c=Math.round((a._viewport.height()/a._zoomImage.height())*a._thumbnail.height());a._reticule.css("width",b).css("height",c).show()}};this.moveReticuleToCursor=function(d){if(a.active){var h=0;var k=0;if(BrowserDetect.browser=="Explorer"){h=d.clientY;k=d.clientX;if(document.body&&(document.body.scrollLeft||document.body.scrollTop)){h=d.clientY+document.body.scrollTop;k=d.clientX+document.body.scrollLeft}else{if(document.documentElement&&(document.documentElement.scrollLeft||document.documentElement.scrollTop)){h=d.clientY+document.documentElement.scrollTop;k=d.clientX+document.documentElement.scrollLeft}}}else{h=d.clientY;k=d.clientX;h+=window.pageYOffset;k+=window.pageXOffset}k=k-a._thumbnail.offset().left;h=h-a._thumbnail.offset().top;var i=k-(a._reticule.outerWidth()/2);var g=h-(a._reticule.outerHeight()/2);var f=a._thumbnailRect.left-a._thumbnail.offset().left;var j=a._thumbnailRect.right-a._thumbnail.offset().left;var c=a._thumbnailRect.top-a._thumbnail.offset().top;var b=a._thumbnailRect.bottom-a._thumbnail.offset().top;if(i>=f&&(i+a._reticule.outerWidth())<=j){a._reticule.css("left",i)}else{if(i<f){a._reticule.css("left",f)}else{a._reticule.css("left",(j-a._reticule.outerWidth()))}}if(g>=c&&(g+a._reticule.outerHeight())<=b){a._reticule.css("top",g)}else{if(g<c){a._reticule.css("top",c)}}}};this.moveZoomImageToCursor=function(l){if(a.active){var g=a._thumbnail.offset();var p=a._thumbnail.height();var c=a._thumbnail.width();var j=(l.pageX-g.left)/c;var h=(l.pageY-g.top)/p;var k=a._viewport.width();var i=a._viewport.height();var o=a._zoomImage.height();var f=a._zoomImage.width();var d=-((f*j)-(k/2));var n=-((f*j)+(k/2));var m=-((o*h)-(i/2));var b=-((o*h)+(i/2));if(d<=0&&n>(f*-1)){a._zoomImage.css("left",d)}else{if((l.pageX-g.left-(a._reticule.outerWidth()/2))<0){a._zoomImage.css("left",0)}else{a._zoomImage.css("left",-((f)-(k)))}}if(m<=0&&b>(o*-1)){a._zoomImage.css("top",m)}else{if((l.pageY-g.top-(a._reticule.outerHeight()/2))<0){a._zoomImage.css("top",0)}else{a._zoomImage.css("top",-((o)-(i)))}}}};this.checkOutOfBounds=function(d){var f=0;var b=0;f=d.pageY;b=d.pageX;var c=a._thumbnailRect;if(c!=undefined&&!(b>c.left&&b<c.right&&f>c.top&&f<c.bottom)){a.end();a.isInBounds=false;a.isCurrentlyZooming=false;return true}a.isInBounds=true;return false};this.thumbMouseOut=function(b){a.checkOutOfBounds(b)};this.reticuleMouseOut=function(b){a.checkOutOfBounds(b)};this.init=function(g,d,c,f,e,b){f.mouseover(a.start);g.mouseover(a.reticuleMouseover);f.mouseout(a.thumbMouseOut);g.mouseout(a.reticuleMouseOut);a._coords=e;a._reticule=g;a._viewport=d;a._zoomImage=c;a._thumbnail=f;a.intentProperties=b;a.active=true}};
