window.log=function(){log.history=log.history||[];log.history.push(arguments);if(this.console){arguments.callee=arguments.callee.caller;var b=[].slice.call(arguments);typeof console.log==="object"?log.apply.call(console.log,console,b):console.log.apply(console,b)}};
(function(b){function d(){}for(var f="assert,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,timeStamp,profile,profileEnd,time,timeEnd,trace,warn".split(","),a;a=f.pop();)b[a]=b[a]||d})(function(){try{return console.log(),window.console}catch(b){return window.console={}}}());(function(b){b.fn.setAllToMaxHeight=function(){return this.height(Math.max.apply(this,b.map(this,function(d){return b(d).height()})))}})(this.jQuery);
(function(b){var d=[],f=/^url\(["']?([^"'\)]*)["']?\);?$/i,a=/\.png$/i,h=b.browser.msie&&b.browser.version==6;b(window).resize(function(){b.each(d,function(){this.refresh(true)})});b.Poshytip=function(a,e){this.$elm=b(a);this.opts=b.extend({},b.fn.poshytip.defaults,e);this.$tip=b(['<div class="',this.opts.className,'"><div class="tip-inner tip-bg-image"></div><div class="tip-arrow tip-arrow-top tip-arrow-right tip-arrow-bottom tip-arrow-left"></div></div>'].join(""));this.$arrow=this.$tip.find("div.tip-arrow");
this.$inner=this.$tip.find("div.tip-inner");this.disabled=false;this.init()};b.Poshytip.prototype={init:function(){d.push(this);this.$elm.data("title.poshytip",this.$elm.attr("title")).data("poshytip",this);switch(this.opts.showOn){case "hover":this.$elm.bind({"mouseenter.poshytip":b.proxy(this.mouseenter,this),"mouseleave.poshytip":b.proxy(this.mouseleave,this)});this.opts.alignTo=="cursor"&&this.$elm.bind("mousemove.poshytip",b.proxy(this.mousemove,this));this.opts.allowTipHover&&this.$tip.hover(b.proxy(this.clearTimeouts,
this),b.proxy(this.hide,this));break;case "focus":this.$elm.bind({"focus.poshytip":b.proxy(this.show,this),"blur.poshytip":b.proxy(this.hide,this)})}},mouseenter:function(){if(this.disabled)return true;this.clearTimeouts();this.$elm.attr("title","");this.showTimeout=setTimeout(b.proxy(this.show,this),this.opts.showTimeout)},mouseleave:function(){if(this.disabled)return true;this.clearTimeouts();this.$elm.attr("title",this.$elm.data("title.poshytip"));this.hideTimeout=setTimeout(b.proxy(this.hide,
this),this.opts.hideTimeout)},mousemove:function(b){if(this.disabled)return true;this.eventX=b.pageX;this.eventY=b.pageY;if(this.opts.followCursor&&this.$tip.data("active")&&(this.calcPos(),this.$tip.css({left:this.pos.l,top:this.pos.t}),this.pos.arrow))this.$arrow[0].className="tip-arrow tip-arrow-"+this.pos.arrow},show:function(){!this.disabled&&!this.$tip.data("active")&&(this.reset(),this.update(),this.display())},hide:function(){!this.disabled&&this.$tip.data("active")&&this.display(true)},reset:function(){this.$tip.queue([]).detach().css("visibility",
"hidden").data("active",false);this.$inner.find("*").poshytip("hide");this.opts.fade&&this.$tip.css("opacity",this.opacity);this.$arrow[0].className="tip-arrow tip-arrow-top tip-arrow-right tip-arrow-bottom tip-arrow-left"},update:function(b){if(!this.disabled){var a=b!==void 0;if(a){if(!this.$tip.data("active"))return}else b=this.opts.content;this.$inner.contents().detach();var d=this;this.$inner.append(typeof b=="function"?b.call(this.$elm[0],function(b){d.update(b)}):b=="[title]"?this.$elm.data("title.poshytip"):
b);this.refresh(a)}},refresh:function(c){if(!this.disabled){if(c){if(!this.$tip.data("active"))return;var e={left:this.$tip.css("left"),top:this.$tip.css("top")}}this.$tip.css({left:0,top:0}).appendTo(document.body);if(this.opacity===void 0)this.opacity=this.$tip.css("opacity");var d=this.$tip.css("background-image").match(f),n=this.$arrow.css("background-image").match(f);if(d){var k=a.test(d[1]);h&&k?(this.$tip.css("background-image","none"),this.$inner.css({margin:0,border:0,padding:0}),k=false):
this.$tip.prepend('<table border="0" cellpadding="0" cellspacing="0"><tr><td class="tip-top tip-bg-image" colspan="2"><span></span></td><td class="tip-right tip-bg-image" rowspan="2"><span></span></td></tr><tr><td class="tip-left tip-bg-image" rowspan="2"><span></span></td><td></td></tr><tr><td class="tip-bottom tip-bg-image" colspan="2"><span></span></td></tr></table>').css({border:0,padding:0,"background-image":"none","background-color":"transparent"}).find(".tip-bg-image").css("background-image",
'url("'+d[1]+'")').end().find("td").eq(3).append(this.$inner);if(k&&!b.support.opacity)this.opts.fade=false}if(n&&!b.support.opacity)h&&a.test(n[1])&&(n=false,this.$arrow.css("background-image","none")),this.opts.fade=false;d=this.$tip.find("table");if(h){this.$tip[0].style.width="";d.width("auto").find("td").eq(3).width("auto");var k=this.$tip.width(),i=parseInt(this.$tip.css("min-width")),x=parseInt(this.$tip.css("max-width"));!isNaN(i)&&k<i?k=i:!isNaN(x)&&k>x&&(k=x);this.$tip.add(d).width(k).eq(0).find("td").eq(3).width("100%")}else d[0]&&
d.width("auto").find("td").eq(3).width("auto").end().end().width(this.$tip.width()).find("td").eq(3).width("100%");this.tipOuterW=this.$tip.outerWidth();this.tipOuterH=this.$tip.outerHeight();this.calcPos();if(n&&this.pos.arrow)this.$arrow[0].className="tip-arrow tip-arrow-"+this.pos.arrow,this.$arrow.css("visibility","inherit");c?this.$tip.css(e).animate({left:this.pos.l,top:this.pos.t},200):this.$tip.css({left:this.pos.l,top:this.pos.t})}},display:function(a){var e=this.$tip.data("active");if(!(e&&
!a||!e&&a)){this.$tip.stop();if((this.opts.slide&&this.pos.arrow||this.opts.fade)&&(a&&this.opts.hideAniDuration||!a&&this.opts.showAniDuration)){var d={},h={};if(this.opts.slide&&this.pos.arrow){var f,i;this.pos.arrow=="bottom"||this.pos.arrow=="top"?(f="top",i="bottom"):(f="left",i="right");var x=parseInt(this.$tip.css(f));d[f]=x+(a?0:this.opts.slideOffset*(this.pos.arrow==i?-1:1));h[f]=x+(a?this.opts.slideOffset*(this.pos.arrow==i?1:-1):0)}if(this.opts.fade)d.opacity=a?this.$tip.css("opacity"):
0,h.opacity=a?0:this.opacity;this.$tip.css(d).animate(h,this.opts[a?"hideAniDuration":"showAniDuration"])}a?this.$tip.queue(b.proxy(this.reset,this)):this.$tip.css("visibility","inherit");this.$tip.data("active",!e)}},disable:function(){this.reset();this.disabled=true},enable:function(){this.disabled=false},destroy:function(){this.reset();this.$tip.remove();this.$elm.unbind("poshytip").removeData("title.poshytip").removeData("poshytip");d.splice(b.inArray(this,d),1)},clearTimeouts:function(){if(this.showTimeout)clearTimeout(this.showTimeout),
this.showTimeout=0;if(this.hideTimeout)clearTimeout(this.hideTimeout),this.hideTimeout=0},calcPos:function(){var a={l:0,t:0,arrow:""},e=b(window),d=e.scrollLeft(),h=e.scrollTop(),f=e.width(),e=e.height(),i,x,r,l,B,j;this.opts.alignTo=="cursor"?(i=x=r=this.eventX,l=B=j=this.eventY):(x=this.$elm.offset(),i=x.left,l=x.top,r=this.$elm.outerWidth(),j=this.$elm.outerHeight(),i+=this.opts.alignX!="inner-right"?0:r,x=i+Math.floor(r/2),r=i+(this.opts.alignX!="inner-left"?r:0),l+=this.opts.alignY!="inner-bottom"?
0:j,B=l+Math.floor(j/2),j=l+(this.opts.alignY!="inner-top"?j:0));switch(this.opts.alignX){case "right":case "inner-left":a.l=r+this.opts.offsetX;if(a.l+this.tipOuterW>d+f)a.l=d+f-this.tipOuterW;if(this.opts.alignX=="right"||this.opts.alignY=="center")a.arrow="left";break;case "center":a.l=x-Math.floor(this.tipOuterW/2);if(a.l+this.tipOuterW>d+f)a.l=d+f-this.tipOuterW;else if(a.l<d)a.l=d;break;default:a.l=i-this.tipOuterW-this.opts.offsetX;if(a.l<d)a.l=d;if(this.opts.alignX=="left"||this.opts.alignY==
"center")a.arrow="right"}switch(this.opts.alignY){case "bottom":case "inner-top":a.t=j+this.opts.offsetY;if(!a.arrow||this.opts.alignTo=="cursor")a.arrow="top";if(a.t+this.tipOuterH>h+e&&(a.t=l-this.tipOuterH-this.opts.offsetY,a.arrow=="top"))a.arrow="bottom";break;case "center":a.t=B-Math.floor(this.tipOuterH/2);if(a.t+this.tipOuterH>h+e)a.t=h+e-this.tipOuterH;else if(a.t<h)a.t=h;break;default:a.t=l-this.tipOuterH-this.opts.offsetY;if(!a.arrow||this.opts.alignTo=="cursor")a.arrow="bottom";if(a.t<
h&&(a.t=j+this.opts.offsetY,a.arrow=="bottom"))a.arrow="top"}this.pos=a}};b.fn.poshytip=function(a){if(typeof a=="string")return this.each(function(){var e=b(this).data("poshytip");if(e&&e[a])e[a]()});var e=b.extend({},b.fn.poshytip.defaults,a);b("#poshytip-css-"+e.className)[0]||b(['<style id="poshytip-css-',e.className,'" type="text/css">div.',e.className,"{visibility:hidden;position:absolute;top:0;left:0;}div.",e.className," table, div.",e.className," td{margin:0;font-family:inherit;font-size:inherit;font-weight:inherit;font-style:inherit;font-variant:inherit;}div.",
e.className," td.tip-bg-image span{display:block;font:1px/1px sans-serif;height:",e.bgImageFrameSize,"px;width:",e.bgImageFrameSize,"px;overflow:hidden;}div.",e.className," td.tip-right{background-position:100% 0;}div.",e.className," td.tip-bottom{background-position:100% 100%;}div.",e.className," td.tip-left{background-position:0 100%;}div.",e.className," div.tip-inner{background-position:-",e.bgImageFrameSize,"px -",e.bgImageFrameSize,"px;}div.",e.className," div.tip-arrow{visibility:hidden;position:absolute;overflow:hidden;font:1px/1px sans-serif;}</style>"].join("")).appendTo("head");
return this.each(function(){new b.Poshytip(this,e)})};b.fn.poshytip.defaults={content:"[title]",className:"tip-yellow",bgImageFrameSize:10,showTimeout:500,hideTimeout:100,showOn:"hover",alignTo:"cursor",alignX:"right",alignY:"top",offsetX:-22,offsetY:18,allowTipHover:true,followCursor:false,fade:true,slide:true,slideOffset:8,showAniDuration:300,hideAniDuration:300}})(jQuery);
(function(b){function d(a,j){var m=a==window,c=j&&j.message!==void 0?j.message:void 0,j=b.extend({},b.blockUI.defaults,j||{});j.overlayCSS=b.extend({},b.blockUI.defaults.overlayCSS,j.overlayCSS||{});var d=b.extend({},b.blockUI.defaults.css,j.css||{}),A=b.extend({},b.blockUI.defaults.themedCSS,j.themedCSS||{}),c=c===void 0?j.message:c;m&&r&&f(window,{fadeOut:0});if(c&&typeof c!="string"&&(c.parentNode||c.jquery)){var g=c.jquery?c[0]:c,k={};b(a).data("blockUI.history",k);k.el=g;k.parent=g.parentNode;
k.display=g.style.display;k.position=g.style.position;k.parent&&k.parent.removeChild(g)}var k=j.baseZ,v=b.browser.msie||j.forceIframe?b('<iframe class="blockUI" style="z-index:'+k++ +';display:none;border:none;margin:0;padding:0;position:absolute;width:100%;height:100%;top:0;left:0" src="'+j.iframeSrc+'"></iframe>'):b('<div class="blockUI" style="display:none"></div>'),g=b('<div class="blockUI blockOverlay" style="z-index:'+k++ +';display:none;border:none;margin:0;padding:0;width:100%;height:100%;top:0;left:0"></div>'),
k=b(j.theme&&m?'<div class="blockUI '+j.blockMsgClass+' blockPage ui-dialog ui-widget ui-corner-all" style="z-index:'+k+';display:none;position:fixed"><div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">'+(j.title||"&nbsp;")+'</div><div class="ui-widget-content ui-dialog-content"></div></div>':j.theme?'<div class="blockUI '+j.blockMsgClass+' blockElement ui-dialog ui-widget ui-corner-all" style="z-index:'+k+';display:none;position:absolute"><div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">'+
(j.title||"&nbsp;")+'</div><div class="ui-widget-content ui-dialog-content"></div></div>':m?'<div class="blockUI '+j.blockMsgClass+' blockPage" style="z-index:'+k+';display:none;position:fixed"></div>':'<div class="blockUI '+j.blockMsgClass+' blockElement" style="z-index:'+k+';display:none;position:absolute"></div>');c&&(j.theme?(k.css(A),k.addClass("ui-widget-content")):k.css(d));(!j.applyPlatformOpacityRules||!b.browser.mozilla||!/Linux/.test(navigator.platform))&&g.css(j.overlayCSS);g.css("position",
m?"fixed":"absolute");(b.browser.msie||j.forceIframe)&&v.css("opacity",0);var d=[v,g,k],O=m?b("body"):b(a);b.each(d,function(){this.appendTo(O)});j.theme&&j.draggable&&b.fn.draggable&&k.draggable({handle:".ui-dialog-titlebar",cancel:"li"});d=i&&(!b.boxModel||b("object,embed",m?null:a).length>0);if(x||d){m&&j.allowBodyStretch&&b.boxModel&&b("html,body").css("height","100%");if((x||!b.boxModel)&&!m)var d=parseInt(b.css(a,"borderTopWidth"))||0,A=parseInt(b.css(a,"borderLeftWidth"))||0,q=d?"(0 - "+d+
")":0,P=A?"(0 - "+A+")":0;b.each([v,g,k],function(b,a){var c=a[0].style;c.position="absolute";if(b<2)m?c.setExpression("height","Math.max(document.body.scrollHeight, document.body.offsetHeight) - (jQuery.boxModel?0:"+j.quirksmodeOffsetHack+') + "px"'):c.setExpression("height",'this.parentNode.offsetHeight + "px"'),m?c.setExpression("width",'jQuery.boxModel && document.documentElement.clientWidth || document.body.clientWidth + "px"'):c.setExpression("width",'this.parentNode.offsetWidth + "px"'),P&&
c.setExpression("left",P),q&&c.setExpression("top",q);else if(j.centerY)m&&c.setExpression("top",'(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"'),c.marginTop=0;else if(!j.centerY&&m){var e="((document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "+(j.css&&j.css.top?parseInt(j.css.top):
0)+') + "px"';c.setExpression("top",e)}})}c&&(j.theme?k.find(".ui-widget-content").append(c):k.append(c),(c.jquery||c.nodeType)&&b(c).show());(b.browser.msie||j.forceIframe)&&j.showOverlay&&v.show();if(j.fadeIn)d=j.onBlock?j.onBlock:n,v=j.showOverlay&&!c?d:n,d=c?d:n,j.showOverlay&&g._fadeIn(j.fadeIn,v),c&&k._fadeIn(j.fadeIn,d);else if(j.showOverlay&&g.show(),c&&k.show(),j.onBlock)j.onBlock();h(1,a,j);m?(r=k[0],l=b(":input:enabled:visible",r),j.focusInput&&setTimeout(e,20)):s(k[0],j.centerX,j.centerY);
j.timeout&&(c=setTimeout(function(){m?b.unblockUI(j):b(a).unblock(j)},j.timeout),b(a).data("blockUI.timeout",c))}function f(c,j){var m=c==window,e=b(c),d=e.data("blockUI.history"),f=e.data("blockUI.timeout");f&&(clearTimeout(f),e.removeData("blockUI.timeout"));j=b.extend({},b.blockUI.defaults,j||{});h(0,c,j);var g;g=m?b("body").children().filter(".blockUI").add("body > .blockUI"):b(".blockUI",c);m&&(r=l=null);j.fadeOut?(g.fadeOut(j.fadeOut),setTimeout(function(){a(g,d,j,c)},j.fadeOut)):a(g,d,j,c)}
function a(a,j,m,c){a.each(function(){this.parentNode&&this.parentNode.removeChild(this)});if(j&&j.el)j.el.style.display=j.display,j.el.style.position=j.position,j.parent&&j.parent.appendChild(j.el),b(c).removeData("blockUI.history");if(typeof m.onUnblock=="function")m.onUnblock(c,m)}function h(a,j,m){var e=j==window,j=b(j);if(a||!(e&&!r||!e&&!j.data("blockUI.isBlocked")))e||j.data("blockUI.isBlocked",a),m.bindEvents&&(!a||m.showOverlay)&&(a?b(document).bind("mousedown mouseup keydown keypress",m,
c):b(document).unbind("mousedown mouseup keydown keypress",c))}function c(a){if(a.keyCode&&a.keyCode==9&&r&&a.data.constrainTabKey){var j=l,m=a.shiftKey&&a.target===j[0];if(!a.shiftKey&&a.target===j[j.length-1]||m)return setTimeout(function(){e(m)},10),false}j=a.data;return b(a.target).parents("div."+j.blockMsgClass).length>0?true:b(a.target).parents().children().filter("div.blockUI").length==0}function e(b){l&&(b=l[b===true?l.length-1:0])&&b.focus()}function s(a,j,m){var c=a.parentNode,e=a.style,
d=(c.offsetWidth-a.offsetWidth)/2-(parseInt(b.css(c,"borderLeftWidth"))||0),a=(c.offsetHeight-a.offsetHeight)/2-(parseInt(b.css(c,"borderTopWidth"))||0);if(j)e.left=d>0?d+"px":"0";if(m)e.top=a>0?a+"px":"0"}if(/1\.(0|1|2)\.(0|1|2)/.test(b.fn.jquery)||/^1.1/.test(b.fn.jquery))alert("blockUI requires jQuery v1.2.3 or later!  You are using v"+b.fn.jquery);else{b.fn._fadeIn=b.fn.fadeIn;var n=function(){},k=document.documentMode||0,i=b.browser.msie&&(b.browser.version<8&&!k||k<8),x=b.browser.msie&&/MSIE 6.0/.test(navigator.userAgent)&&
!k;b.blockUI=function(b){d(window,b)};b.unblockUI=function(b){f(window,b)};b.growlUI=function(a,j,c,e){var d=b('<div class="growlUI"></div>');a&&d.append("<h1>"+a+"</h1>");j&&d.append("<h2>"+j+"</h2>");c==void 0&&(c=3E3);b.blockUI({message:d,fadeIn:700,fadeOut:1E3,centerY:false,timeout:c,showOverlay:false,onUnblock:e,css:b.blockUI.defaults.growlCSS})};b.fn.block=function(a){return this.unblock({fadeOut:0}).each(function(){if(b.css(this,"position")=="static")this.style.position="relative";if(b.browser.msie)this.style.zoom=
1;d(this,a)})};b.fn.unblock=function(b){return this.each(function(){f(this,b)})};b.blockUI.version=2.35;b.blockUI.defaults={message:"<h1>Please wait...</h1>",title:null,draggable:true,theme:false,css:{padding:0,margin:0,width:"30%",top:"40%",left:"35%",textAlign:"center",color:"#000",border:"3px solid #aaa",backgroundColor:"#fff",cursor:"wait"},themedCSS:{width:"30%",top:"40%",left:"35%"},overlayCSS:{backgroundColor:"#000",opacity:0.6,cursor:"wait"},growlCSS:{width:"350px",top:"10px",left:"",right:"10px",
border:"none",padding:"5px",opacity:0.6,cursor:"default",color:"#fff",backgroundColor:"#000","-webkit-border-radius":"10px","-moz-border-radius":"10px","border-radius":"10px"},iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank",forceIframe:false,baseZ:1E3,centerX:true,centerY:true,allowBodyStretch:true,bindEvents:true,constrainTabKey:true,fadeIn:200,fadeOut:400,timeout:0,showOverlay:true,focusInput:true,applyPlatformOpacityRules:true,onBlock:null,onUnblock:null,quirksmodeOffsetHack:4,
blockMsgClass:"blockMsg"};var r=null,l=[]}})(jQuery);
(function(b){function d(a){b.fn.cycle.debug&&f(a)}function f(){window.console&&window.console.log&&window.console.log("[cycle] "+Array.prototype.join.call(arguments," "))}function a(a,m,e){function d(a,j,c){if(!a&&j===true){a=b(c).data("cycle.opts");if(!a)return f("options not found, can not resume"),false;if(c.cycleTimeout)clearTimeout(c.cycleTimeout),c.cycleTimeout=0;i(a.elements,a,1,!a.backwards)}}if(a.cycleStop==void 0)a.cycleStop=0;if(m===void 0||m===null)m={};if(m.constructor==String)switch(m){case "destroy":case "stop":e=
b(a).data("cycle.opts");if(!e)return false;a.cycleStop++;a.cycleTimeout&&clearTimeout(a.cycleTimeout);a.cycleTimeout=0;b(a).removeData("cycle.opts");m=="destroy"&&c(e);return false;case "toggle":return a.cyclePause=a.cyclePause===1?0:1,d(a.cyclePause,e,a),false;case "pause":return a.cyclePause=1,false;case "resume":return a.cyclePause=0,d(false,e,a),false;case "prev":case "next":e=b(a).data("cycle.opts");if(!e)return f('options not found, "prev/next" ignored'),false;b.fn.cycle[m](e);return false;
default:m={fx:m}}else if(m.constructor==Number){var h=m,m=b(a).data("cycle.opts");if(!m)return f("options not found, can not advance slide"),false;if(h<0||h>=m.elements.length)return f("invalid slide index: "+h),false;m.nextSlide=h;if(a.cycleTimeout)clearTimeout(a.cycleTimeout),a.cycleTimeout=0;if(typeof e=="string")m.oneTimeFx=e;i(m.elements,m,1,h>=m.currSlide);return false}return m}function h(a,c){if(!b.support.opacity&&c.cleartype&&a.style.filter)try{a.style.removeAttribute("filter")}catch(e){}}
function c(a){a.next&&b(a.next).unbind(a.prevNextEvent);a.prev&&b(a.prev).unbind(a.prevNextEvent);if(a.pager||a.pagerAnchorBuilder)b.each(a.pagerAnchors||[],function(){this.unbind().remove()});a.pagerAnchors=null;a.destroy&&a.destroy(a)}function e(a,c,e,d,A){var g=b.extend({},b.fn.cycle.defaults,d||{},b.metadata?a.metadata():b.meta?a.data():{});if(g.autostop)g.countdown=g.autostopCount||e.length;var z=a[0];a.data("cycle.opts",g);g.$cont=a;g.stopCount=z.cycleStop;g.elements=e;g.before=g.before?[g.before]:
[];g.after=g.after?[g.after]:[];g.after.unshift(function(){g.busy=0});!b.support.opacity&&g.cleartype&&g.after.push(function(){h(this,g)});g.continuous&&g.after.push(function(){i(e,g,0,!g.backwards)});s(g);!b.support.opacity&&g.cleartype&&!g.cleartypeNoBg&&B(c);a.css("position")=="static"&&a.css("position","relative");g.width&&a.width(g.width);g.height&&g.height!="auto"&&a.height(g.height);if(g.startingSlide)g.startingSlide=parseInt(g.startingSlide);else if(g.backwards)g.startingSlide=e.length-1;
if(g.random){g.randomMap=[];for(z=0;z<e.length;z++)g.randomMap.push(z);g.randomMap.sort(function(){return Math.random()-0.5});g.randomIndex=1;g.startingSlide=g.randomMap[1]}else if(g.startingSlide>=e.length)g.startingSlide=0;g.currSlide=g.startingSlide||0;var v=g.startingSlide;c.css({position:"absolute",top:0,left:0}).hide().each(function(a){a=g.backwards?v?a<=v?e.length+(a-v):v-a:e.length-a:v?a>=v?e.length-(a-v):v-a:e.length-a;b(this).css("z-index",a)});b(e[v]).css("opacity",1).show();h(e[v],g);
g.fit&&g.width&&c.width(g.width);g.fit&&g.height&&g.height!="auto"&&c.height(g.height);if(g.containerResize&&!a.innerHeight()){for(var x=z=0,q=0;q<e.length;q++){var P=b(e[q]),M=P[0],L=P.outerWidth(),Q=P.outerHeight();L||(L=M.offsetWidth||M.width||P.attr("width"));Q||(Q=M.offsetHeight||M.height||P.attr("height"));z=L>z?L:z;x=Q>x?Q:x}z>0&&x>0&&a.css({width:z+"px",height:x+"px"})}g.pause&&a.hover(function(){this.cyclePause++},function(){this.cyclePause--});if(n(g)===false)return false;var w=false;d.requeueAttempts=
d.requeueAttempts||0;c.each(function(){var a=b(this);this.cycleH=g.fit&&g.height?g.height:a.height()||this.offsetHeight||this.height||a.attr("height")||0;this.cycleW=g.fit&&g.width?g.width:a.width()||this.offsetWidth||this.width||a.attr("width")||0;if(a.is("img")){var a=b.browser.mozilla&&this.cycleW==34&&this.cycleH==19&&!this.complete,j=b.browser.opera&&(this.cycleW==42&&this.cycleH==19||this.cycleW==37&&this.cycleH==17)&&!this.complete,c=this.cycleH==0&&this.cycleW==0&&!this.complete;if(b.browser.msie&&
this.cycleW==28&&this.cycleH==30&&!this.complete||a||j||c)if(A.s&&g.requeueOnImageNotLoaded&&++d.requeueAttempts<100)return f(d.requeueAttempts," - img slide not loaded, requeuing slideshow: ",this.src,this.cycleW,this.cycleH),setTimeout(function(){b(A.s,A.c).cycle(d)},g.requeueTimeout),w=true,false;else f("could not determine size of image: "+this.src,this.cycleW,this.cycleH)}return true});if(w)return false;g.cssBefore=g.cssBefore||{};g.animIn=g.animIn||{};g.animOut=g.animOut||{};c.not(":eq("+v+
")").css(g.cssBefore);g.cssFirst&&b(c[v]).css(g.cssFirst);if(g.timeout){g.timeout=parseInt(g.timeout);if(g.speed.constructor==String)g.speed=b.fx.speeds[g.speed]||parseInt(g.speed);g.sync||(g.speed/=2);for(z=g.fx=="shuffle"?500:250;g.timeout-g.speed<z;)g.timeout+=g.speed}if(g.easing)g.easeIn=g.easeOut=g.easing;if(!g.speedIn)g.speedIn=g.speed;if(!g.speedOut)g.speedOut=g.speed;g.slideCount=e.length;g.currSlide=g.lastSlide=v;if(g.random){if(++g.randomIndex==e.length)g.randomIndex=0;g.nextSlide=g.randomMap[g.randomIndex]}else g.nextSlide=
g.backwards?g.startingSlide==0?e.length-1:g.startingSlide-1:g.startingSlide>=e.length-1?0:g.startingSlide+1;if(!g.multiFx)if(z=b.fn.cycle.transitions[g.fx],b.isFunction(z))z(a,c,g);else if(g.fx!="custom"&&!g.multiFx)return f("unknown transition: "+g.fx,"; slideshow terminating"),false;a=c[v];g.before.length&&g.before[0].apply(a,[a,a,g,true]);g.after.length>1&&g.after[1].apply(a,[a,a,g,true]);g.next&&b(g.next).bind(g.prevNextEvent,function(){return r(g,1)});g.prev&&b(g.prev).bind(g.prevNextEvent,function(){return r(g,
0)});(g.pager||g.pagerAnchorBuilder)&&l(e,g);k(g,e);return g}function s(a){a.original={before:[],after:[]};a.original.cssBefore=b.extend({},a.cssBefore);a.original.cssAfter=b.extend({},a.cssAfter);a.original.animIn=b.extend({},a.animIn);a.original.animOut=b.extend({},a.animOut);b.each(a.before,function(){a.original.before.push(this)});b.each(a.after,function(){a.original.after.push(this)})}function n(a){var c,e,h=b.fn.cycle.transitions;if(a.fx.indexOf(",")>0){a.multiFx=true;a.fxs=a.fx.replace(/\s*/g,
"").split(",");for(c=0;c<a.fxs.length;c++){var k=a.fxs[c];e=h[k];if(!e||!h.hasOwnProperty(k)||!b.isFunction(e))f("discarding unknown transition: ",k),a.fxs.splice(c,1),c--}if(!a.fxs.length)return f("No valid transitions named; slideshow terminating."),false}else if(a.fx=="all")for(p in a.multiFx=true,a.fxs=[],h)e=h[p],h.hasOwnProperty(p)&&b.isFunction(e)&&a.fxs.push(p);if(a.multiFx&&a.randomizeEffects){e=Math.floor(Math.random()*20)+30;for(c=0;c<e;c++)h=Math.floor(Math.random()*a.fxs.length),a.fxs.push(a.fxs.splice(h,
1)[0]);d("randomized fx sequence: ",a.fxs)}return true}function k(a,c){a.addSlide=function(e,d){var h=b(e),g=h[0];a.autostopCount||a.countdown++;c[d?"unshift":"push"](g);if(a.els)a.els[d?"unshift":"push"](g);a.slideCount=c.length;h.css("position","absolute");h[d?"prependTo":"appendTo"](a.$cont);d&&(a.currSlide++,a.nextSlide++);!b.support.opacity&&a.cleartype&&!a.cleartypeNoBg&&B(h);a.fit&&a.width&&h.width(a.width);a.fit&&a.height&&a.height!="auto"&&h.height(a.height);g.cycleH=a.fit&&a.height?a.height:
h.height();g.cycleW=a.fit&&a.width?a.width:h.width();h.css(a.cssBefore);(a.pager||a.pagerAnchorBuilder)&&b.fn.cycle.createPagerAnchor(c.length-1,g,b(a.pager),c,a);if(b.isFunction(a.onAddSlide))a.onAddSlide(h);else h.hide()}}function i(a,c,e,h){if(e&&c.busy&&c.manualTrump)d("manualTrump in go(), stopping active transition"),b(a).stop(true,true),c.busy=false;if(c.busy)d("transition active, ignoring new tx request");else{var f=c.$cont[0],g=a[c.currSlide],k=a[c.nextSlide];if(!(f.cycleStop!=c.stopCount||
f.cycleTimeout===0&&!e))if(!e&&!f.cyclePause&&!c.bounce&&(c.autostop&&--c.countdown<=0||c.nowrap&&!c.random&&c.nextSlide<c.currSlide))c.end&&c.end(c);else{var l=false;if((e||!f.cyclePause)&&c.nextSlide!=c.currSlide){var l=true,n=c.fx;g.cycleH=g.cycleH||b(g).height();g.cycleW=g.cycleW||b(g).width();k.cycleH=k.cycleH||b(k).height();k.cycleW=k.cycleW||b(k).width();if(c.multiFx){if(c.lastFx==void 0||++c.lastFx>=c.fxs.length)c.lastFx=0;n=c.fxs[c.lastFx];c.currFx=n}if(c.oneTimeFx)n=c.oneTimeFx,c.oneTimeFx=
null;b.fn.cycle.resetState(c,n);c.before.length&&b.each(c.before,function(b,a){f.cycleStop==c.stopCount&&a.apply(k,[g,k,c,h])});n=function(){b.each(c.after,function(b,a){f.cycleStop==c.stopCount&&a.apply(k,[g,k,c,h])})};d("tx firing; currSlide: "+c.currSlide+"; nextSlide: "+c.nextSlide);c.busy=1;if(c.fxFn)c.fxFn(g,k,c,n,h,e&&c.fastOnEvent);else if(b.isFunction(b.fn.cycle[c.fx]))b.fn.cycle[c.fx](g,k,c,n,h,e&&c.fastOnEvent);else b.fn.cycle.custom(g,k,c,n,h,e&&c.fastOnEvent)}if(l||c.nextSlide==c.currSlide)if(c.lastSlide=
c.currSlide,c.random){c.currSlide=c.nextSlide;if(++c.randomIndex==a.length)c.randomIndex=0;c.nextSlide=c.randomMap[c.randomIndex];if(c.nextSlide==c.currSlide)c.nextSlide=c.currSlide==c.slideCount-1?0:c.currSlide+1}else c.backwards?(e=c.nextSlide-1<0)&&c.bounce?(c.backwards=!c.backwards,c.nextSlide=1,c.currSlide=0):(c.nextSlide=e?a.length-1:c.nextSlide-1,c.currSlide=e?0:c.nextSlide+1):(e=c.nextSlide+1==a.length)&&c.bounce?(c.backwards=!c.backwards,c.nextSlide=a.length-2,c.currSlide=a.length-1):(c.nextSlide=
e?0:c.nextSlide+1,c.currSlide=e?a.length-1:c.nextSlide-1);l&&c.pager&&c.updateActivePagerLink(c.pager,c.currSlide,c.activePagerClass);l=0;c.timeout&&!c.continuous?l=x(a[c.currSlide],a[c.nextSlide],c,h):c.continuous&&f.cyclePause&&(l=10);if(l>0)f.cycleTimeout=setTimeout(function(){i(a,c,0,!c.backwards)},l)}}}function x(b,a,c,e){if(c.timeoutFn){for(b=c.timeoutFn.call(b,b,a,c,e);b-c.speed<250;)b+=c.speed;d("calculated timeout: "+b+"; speed: "+c.speed);if(b!==false)return b}return c.timeout}function r(a,
c){var e=c?1:-1,d=a.elements,h=a.$cont[0],g=h.cycleTimeout;if(g)clearTimeout(g),h.cycleTimeout=0;if(a.random&&e<0){a.randomIndex--;if(--a.randomIndex==-2)a.randomIndex=d.length-2;else if(a.randomIndex==-1)a.randomIndex=d.length-1;a.nextSlide=a.randomMap[a.randomIndex]}else if(a.random)a.nextSlide=a.randomMap[a.randomIndex];else if(a.nextSlide=a.currSlide+e,a.nextSlide<0){if(a.nowrap)return false;a.nextSlide=d.length-1}else if(a.nextSlide>=d.length){if(a.nowrap)return false;a.nextSlide=0}h=a.onPrevNextEvent||
a.prevNextClick;b.isFunction(h)&&h(e>0,a.nextSlide,d[a.nextSlide]);i(d,a,1,c);return false}function l(a,c){var e=b(c.pager);b.each(a,function(d,h){b.fn.cycle.createPagerAnchor(d,h,e,a,c)});c.updateActivePagerLink(c.pager,c.startingSlide,c.activePagerClass)}function B(a){function c(b){b=parseInt(b).toString(16);return b.length<2?"0"+b:b}function e(a){for(;a&&a.nodeName.toLowerCase()!="html";a=a.parentNode){var d=b.css(a,"background-color");if(d.indexOf("rgb")>=0)return a=d.match(/\d+/g),"#"+c(a[0])+
c(a[1])+c(a[2]);if(d&&d!="transparent")return d}return"#ffffff"}d("applying clearType background-color hack");a.each(function(){b(this).css("background-color",e(this))})}if(b.support==void 0)b.support={opacity:!b.browser.msie};b.fn.cycle=function(c,h){var k={s:this.selector,c:this.context};if(this.length===0&&c!="stop"){if(!b.isReady&&k.s)return f("DOM not ready, queuing slideshow"),b(function(){b(k.s,k.c).cycle(c,h)}),this;f("terminating; zero elements found by selector"+(b.isReady?"":" (DOM not ready)"));
return this}return this.each(function(){var l=a(this,c,h);if(l!==false){l.updateActivePagerLink=l.updateActivePagerLink||b.fn.cycle.updateActivePagerLink;this.cycleTimeout&&clearTimeout(this.cycleTimeout);this.cycleTimeout=this.cyclePause=0;var n=b(this),g=l.slideExpr?b(l.slideExpr,this):n.children(),r=g.get();if(r.length<2)f("terminating; too few slides: "+r.length);else{var s=e(n,g,r,l,k);if(s!==false&&(n=s.continuous?10:x(r[s.currSlide],r[s.nextSlide],s,!s.backwards)))n+=s.delay||0,n<10&&(n=10),
d("first timeout: "+n),this.cycleTimeout=setTimeout(function(){i(r,s,0,!l.backwards)},n)}}})};b.fn.cycle.resetState=function(a,c){c=c||a.fx;a.before=[];a.after=[];a.cssBefore=b.extend({},a.original.cssBefore);a.cssAfter=b.extend({},a.original.cssAfter);a.animIn=b.extend({},a.original.animIn);a.animOut=b.extend({},a.original.animOut);a.fxFn=null;b.each(a.original.before,function(){a.before.push(this)});b.each(a.original.after,function(){a.after.push(this)});var e=b.fn.cycle.transitions[c];b.isFunction(e)&&
e(a.$cont,b(a.elements),a)};b.fn.cycle.updateActivePagerLink=function(a,c,e){b(a).each(function(){b(this).children().removeClass(e).eq(c).addClass(e)})};b.fn.cycle.next=function(b){r(b,1)};b.fn.cycle.prev=function(b){r(b,0)};b.fn.cycle.createPagerAnchor=function(a,c,e,h,f){b.isFunction(f.pagerAnchorBuilder)?(c=f.pagerAnchorBuilder(a,c),d("pagerAnchorBuilder("+a+", el) returned: "+c)):c='<a href="#">'+(a+1)+"</a>";if(c){var g=b(c);if(g.parents("body").length===0){var k=[];e.length>1?(e.each(function(){var a=
g.clone(true);b(this).append(a);k.push(a[0])}),g=b(k)):g.appendTo(e)}f.pagerAnchors=f.pagerAnchors||[];f.pagerAnchors.push(g);g.bind(f.pagerEvent,function(c){c.preventDefault();f.nextSlide=a;var c=f.$cont[0],e=c.cycleTimeout;if(e)clearTimeout(e),c.cycleTimeout=0;c=f.onPagerEvent||f.pagerClick;b.isFunction(c)&&c(f.nextSlide,h[f.nextSlide]);i(h,f,1,f.currSlide<a)});!/^click/.test(f.pagerEvent)&&!f.allowPagerClickBubble&&g.bind("click.cycle",function(){return false});f.pauseOnPagerHover&&g.hover(function(){f.$cont[0].cyclePause++},
function(){f.$cont[0].cyclePause--})}};b.fn.cycle.hopsFromLast=function(b,a){var c=b.lastSlide,e=b.currSlide;return a?e>c?e-c:b.slideCount-c:e<c?c-e:c+b.slideCount-e};b.fn.cycle.commonReset=function(a,c,e,d,h,g){b(e.elements).not(a).hide();e.cssBefore.opacity=1;e.cssBefore.display="block";if(e.slideResize&&d!==false&&c.cycleW>0)e.cssBefore.width=c.cycleW;if(e.slideResize&&h!==false&&c.cycleH>0)e.cssBefore.height=c.cycleH;e.cssAfter=e.cssAfter||{};e.cssAfter.display="none";b(a).css("zIndex",e.slideCount+
(g===true?1:0));b(c).css("zIndex",e.slideCount+(g===true?0:1))};b.fn.cycle.custom=function(a,c,e,d,h,g){var f=b(a),k=b(c),l=e.speedIn,a=e.speedOut,n=e.easeIn,c=e.easeOut;k.css(e.cssBefore);g&&(l=typeof g=="number"?a=g:a=1,n=c=null);f.animate(e.animOut,a,c,function(){e.cssAfter&&f.css(e.cssAfter);e.sync||k.animate(e.animIn,l,n,d)});e.sync&&k.animate(e.animIn,l,n,d)};b.fn.cycle.transitions={fade:function(a,c,e){c.not(":eq("+e.currSlide+")").css("opacity",0);e.before.push(function(a,c,e){b.fn.cycle.commonReset(a,
c,e);e.cssBefore.opacity=0});e.animIn={opacity:1};e.animOut={opacity:0};e.cssBefore={top:0,left:0}}};b.fn.cycle.ver=function(){return"2.94"};b.fn.cycle.defaults={fx:"fade",timeout:4E3,timeoutFn:null,continuous:0,speed:1E3,speedIn:null,speedOut:null,next:null,prev:null,onPrevNextEvent:null,prevNextEvent:"click.cycle",pager:null,onPagerEvent:null,pagerEvent:"click.cycle",allowPagerClickBubble:false,pagerAnchorBuilder:null,before:null,after:null,end:null,easing:null,easeIn:null,easeOut:null,shuffle:null,
animIn:null,animOut:null,cssBefore:null,cssAfter:null,fxFn:null,height:"auto",startingSlide:0,sync:1,random:0,fit:0,containerResize:1,slideResize:1,pause:0,pauseOnPagerHover:0,autostop:0,autostopCount:0,delay:0,slideExpr:null,cleartype:!b.support.opacity,cleartypeNoBg:false,nowrap:0,fastOnEvent:0,randomizeEffects:1,rev:0,manualTrump:true,requeueOnImageNotLoaded:true,requeueTimeout:250,activePagerClass:"activeSlide",updateActivePagerLink:null,backwards:false}})(jQuery);
(function(b){b.fn.cycle.transitions.none=function(d,f,a){a.fxFn=function(a,c,e,d){b(c).show();b(a).hide();d()}};b.fn.cycle.transitions.fadeout=function(d,f,a){f.not(":eq("+a.currSlide+")").css({display:"block",opacity:1});a.before.push(function(a,c,e,d,f,k){b(a).css("zIndex",e.slideCount+(!k===true?1:0));b(c).css("zIndex",e.slideCount+(!k===true?0:1))});a.animIn={opacity:1};a.animOut={opacity:0};a.cssBefore={opacity:1,display:"block"};a.cssAfter={zIndex:0}};b.fn.cycle.transitions.scrollUp=function(d,
f,a){d.css("overflow","hidden");a.before.push(b.fn.cycle.commonReset);d=d.height();a.cssBefore={top:d,left:0};a.cssFirst={top:0};a.animIn={top:0};a.animOut={top:-d}};b.fn.cycle.transitions.scrollDown=function(d,f,a){d.css("overflow","hidden");a.before.push(b.fn.cycle.commonReset);d=d.height();a.cssFirst={top:0};a.cssBefore={top:-d,left:0};a.animIn={top:0};a.animOut={top:d}};b.fn.cycle.transitions.scrollLeft=function(d,f,a){d.css("overflow","hidden");a.before.push(b.fn.cycle.commonReset);d=d.width();
a.cssFirst={left:0};a.cssBefore={left:d,top:0};a.animIn={left:0};a.animOut={left:0-d}};b.fn.cycle.transitions.scrollRight=function(d,f,a){d.css("overflow","hidden");a.before.push(b.fn.cycle.commonReset);d=d.width();a.cssFirst={left:0};a.cssBefore={left:-d,top:0};a.animIn={left:0};a.animOut={left:d}};b.fn.cycle.transitions.scrollHorz=function(d,f,a){d.css("overflow","hidden").width();a.before.push(function(a,c,e,d){e.rev&&(d=!d);b.fn.cycle.commonReset(a,c,e);e.cssBefore.left=d?c.cycleW-1:1-c.cycleW;
e.animOut.left=d?-a.cycleW:a.cycleW});a.cssFirst={left:0};a.cssBefore={top:0};a.animIn={left:0};a.animOut={top:0}};b.fn.cycle.transitions.scrollVert=function(d,f,a){d.css("overflow","hidden");a.before.push(function(a,c,e,d){e.rev&&(d=!d);b.fn.cycle.commonReset(a,c,e);e.cssBefore.top=d?1-c.cycleH:c.cycleH-1;e.animOut.top=d?a.cycleH:-a.cycleH});a.cssFirst={top:0};a.cssBefore={left:0};a.animIn={top:0};a.animOut={left:0}};b.fn.cycle.transitions.slideX=function(d,f,a){a.before.push(function(a,c,e){b(e.elements).not(a).hide();
b.fn.cycle.commonReset(a,c,e,false,true);e.animIn.width=c.cycleW});a.cssBefore={left:0,top:0,width:0};a.animIn={width:"show"};a.animOut={width:0}};b.fn.cycle.transitions.slideY=function(d,f,a){a.before.push(function(a,c,e){b(e.elements).not(a).hide();b.fn.cycle.commonReset(a,c,e,true,false);e.animIn.height=c.cycleH});a.cssBefore={left:0,top:0,height:0};a.animIn={height:"show"};a.animOut={height:0}};b.fn.cycle.transitions.shuffle=function(d,f,a){d=d.css("overflow","visible").width();f.css({left:0,
top:0});a.before.push(function(a,c,e){b.fn.cycle.commonReset(a,c,e,true,true,true)});if(!a.speedAdjusted)a.speed/=2,a.speedAdjusted=true;a.random=0;a.shuffle=a.shuffle||{left:-d,top:15};a.els=[];for(d=0;d<f.length;d++)a.els.push(f[d]);for(d=0;d<a.currSlide;d++)a.els.push(a.els.shift());a.fxFn=function(a,c,e,d,f){e.rev&&(f=!f);var k=f?b(a):b(c);b(c).css(e.cssBefore);var i=e.slideCount;k.animate(e.shuffle,e.speedIn,e.easeIn,function(){for(var c=b.fn.cycle.hopsFromLast(e,f),r=0;r<c;r++)f?e.els.push(e.els.shift()):
e.els.unshift(e.els.pop());if(f){c=0;for(r=e.els.length;c<r;c++)b(e.els[c]).css("z-index",r-c+i)}else c=b(a).css("z-index"),k.css("z-index",parseInt(c)+1+i);k.animate({left:0,top:0},e.speedOut,e.easeOut,function(){b(f?this:a).hide();d&&d()})})};a.cssBefore={display:"block",opacity:1,top:0,left:0}};b.fn.cycle.transitions.turnUp=function(d,f,a){a.before.push(function(a,c,e){b.fn.cycle.commonReset(a,c,e,true,false);e.cssBefore.top=c.cycleH;e.animIn.height=c.cycleH;e.animOut.width=c.cycleW});a.cssFirst=
{top:0};a.cssBefore={left:0,height:0};a.animIn={top:0};a.animOut={height:0}};b.fn.cycle.transitions.turnDown=function(d,f,a){a.before.push(function(a,c,e){b.fn.cycle.commonReset(a,c,e,true,false);e.animIn.height=c.cycleH;e.animOut.top=a.cycleH});a.cssFirst={top:0};a.cssBefore={left:0,top:0,height:0};a.animOut={height:0}};b.fn.cycle.transitions.turnLeft=function(d,f,a){a.before.push(function(a,c,e){b.fn.cycle.commonReset(a,c,e,false,true);e.cssBefore.left=c.cycleW;e.animIn.width=c.cycleW});a.cssBefore=
{top:0,width:0};a.animIn={left:0};a.animOut={width:0}};b.fn.cycle.transitions.turnRight=function(d,f,a){a.before.push(function(a,c,e){b.fn.cycle.commonReset(a,c,e,false,true);e.animIn.width=c.cycleW;e.animOut.left=a.cycleW});a.cssBefore={top:0,left:0,width:0};a.animIn={left:0};a.animOut={width:0}};b.fn.cycle.transitions.zoom=function(d,f,a){a.before.push(function(a,c,e){b.fn.cycle.commonReset(a,c,e,false,false,true);e.cssBefore.top=c.cycleH/2;e.cssBefore.left=c.cycleW/2;e.animIn={top:0,left:0,width:c.cycleW,
height:c.cycleH};e.animOut={width:0,height:0,top:a.cycleH/2,left:a.cycleW/2}});a.cssFirst={top:0,left:0};a.cssBefore={width:0,height:0}};b.fn.cycle.transitions.fadeZoom=function(d,f,a){a.before.push(function(a,c,e){b.fn.cycle.commonReset(a,c,e,false,false);e.cssBefore.left=c.cycleW/2;e.cssBefore.top=c.cycleH/2;e.animIn={top:0,left:0,width:c.cycleW,height:c.cycleH}});a.cssBefore={width:0,height:0};a.animOut={opacity:0}};b.fn.cycle.transitions.blindX=function(d,f,a){d=d.css("overflow","hidden").width();
a.before.push(function(a,c,e){b.fn.cycle.commonReset(a,c,e);e.animIn.width=c.cycleW;e.animOut.left=a.cycleW});a.cssBefore={left:d,top:0};a.animIn={left:0};a.animOut={left:d}};b.fn.cycle.transitions.blindY=function(d,f,a){d=d.css("overflow","hidden").height();a.before.push(function(a,c,e){b.fn.cycle.commonReset(a,c,e);e.animIn.height=c.cycleH;e.animOut.top=a.cycleH});a.cssBefore={top:d,left:0};a.animIn={top:0};a.animOut={top:d}};b.fn.cycle.transitions.blindZ=function(d,f,a){f=d.css("overflow","hidden").height();
d=d.width();a.before.push(function(a,c,e){b.fn.cycle.commonReset(a,c,e);e.animIn.height=c.cycleH;e.animOut.top=a.cycleH});a.cssBefore={top:f,left:d};a.animIn={top:0,left:0};a.animOut={top:f,left:d}};b.fn.cycle.transitions.growX=function(d,f,a){a.before.push(function(a,c,e){b.fn.cycle.commonReset(a,c,e,false,true);e.cssBefore.left=this.cycleW/2;e.animIn={left:0,width:this.cycleW};e.animOut={left:0}});a.cssBefore={width:0,top:0}};b.fn.cycle.transitions.growY=function(d,f,a){a.before.push(function(a,
c,e){b.fn.cycle.commonReset(a,c,e,true,false);e.cssBefore.top=this.cycleH/2;e.animIn={top:0,height:this.cycleH};e.animOut={top:0}});a.cssBefore={height:0,left:0}};b.fn.cycle.transitions.curtainX=function(d,f,a){a.before.push(function(a,c,e){b.fn.cycle.commonReset(a,c,e,false,true,true);e.cssBefore.left=c.cycleW/2;e.animIn={left:0,width:this.cycleW};e.animOut={left:a.cycleW/2,width:0}});a.cssBefore={top:0,width:0}};b.fn.cycle.transitions.curtainY=function(d,f,a){a.before.push(function(a,c,e){b.fn.cycle.commonReset(a,
c,e,true,false,true);e.cssBefore.top=c.cycleH/2;e.animIn={top:0,height:c.cycleH};e.animOut={top:a.cycleH/2,height:0}});a.cssBefore={left:0,height:0}};b.fn.cycle.transitions.cover=function(d,f,a){var h=a.direction||"left",c=d.css("overflow","hidden").width(),e=d.height();a.before.push(function(a,d,f){b.fn.cycle.commonReset(a,d,f);h=="right"?f.cssBefore.left=-c:h=="up"?f.cssBefore.top=e:h=="down"?f.cssBefore.top=-e:f.cssBefore.left=c});a.animIn={left:0,top:0};a.animOut={opacity:1};a.cssBefore={top:0,
left:0}};b.fn.cycle.transitions.uncover=function(d,f,a){var h=a.direction||"left",c=d.css("overflow","hidden").width(),e=d.height();a.before.push(function(a,d,f){b.fn.cycle.commonReset(a,d,f,true,true,true);h=="right"?f.animOut.left=c:h=="up"?f.animOut.top=-e:h=="down"?f.animOut.top=e:f.animOut.left=-c});a.animIn={left:0,top:0};a.animOut={opacity:1};a.cssBefore={top:0,left:0}};b.fn.cycle.transitions.toss=function(d,f,a){var h=d.css("overflow","visible").width(),c=d.height();a.before.push(function(a,
d,f){b.fn.cycle.commonReset(a,d,f,true,true,true);!f.animOut.left&&!f.animOut.top?f.animOut={left:h*2,top:-c/2,opacity:0}:f.animOut.opacity=0});a.cssBefore={left:0,top:0};a.animIn={left:0}};b.fn.cycle.transitions.wipe=function(d,f,a){var h=d.css("overflow","hidden").width(),c=d.height();a.cssBefore=a.cssBefore||{};var e;a.clip&&(/l2r/.test(a.clip)?e="rect(0px 0px "+c+"px 0px)":/r2l/.test(a.clip)?e="rect(0px "+h+"px "+c+"px "+h+"px)":/t2b/.test(a.clip)?e="rect(0px "+h+"px 0px 0px)":/b2t/.test(a.clip)?
e="rect("+c+"px "+h+"px "+c+"px 0px)":/zoom/.test(a.clip)&&(d=parseInt(c/2),f=parseInt(h/2),e="rect("+d+"px "+f+"px "+d+"px "+f+"px)"));a.cssBefore.clip=a.cssBefore.clip||e||"rect(0px 0px 0px 0px)";var d=a.cssBefore.clip.match(/(\d+)/g),s=parseInt(d[0]),n=parseInt(d[1]),k=parseInt(d[2]),i=parseInt(d[3]);a.before.push(function(a,e,d){if(a!=e){var f=b(a),j=b(e);b.fn.cycle.commonReset(a,e,d,true,true,false);d.cssAfter.display="block";var m=1,u=parseInt(d.speedIn/13)-1;(function A(){var a=s?s-parseInt(m*
(s/u)):0,b=i?i-parseInt(m*(i/u)):0,e=k<c?k+parseInt(m*((c-k)/u||1)):c,d=n<h?n+parseInt(m*((h-n)/u||1)):h;j.css({clip:"rect("+a+"px "+d+"px "+e+"px "+b+"px)"});m++<=u?setTimeout(A,13):f.css("display","none")})()}});a.cssBefore={display:"block",opacity:1,top:0,left:0};a.animIn={left:0};a.animOut={left:0}}})(jQuery);if(!this.JSON)this.JSON={};
(function(){function b(a){return a<10?"0"+a:a}function d(a){h.lastIndex=0;return h.test(a)?'"'+a.replace(h,function(a){var b=s[a];return typeof b==="string"?b:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+a+'"'}function f(a,b){var h,r,l,s,j=c,m,u=b[a];u&&typeof u==="object"&&typeof u.toJSON==="function"&&(u=u.toJSON(a));typeof n==="function"&&(u=n.call(b,a,u));switch(typeof u){case "string":return d(u);case "number":return isFinite(u)?String(u):"null";case "boolean":case "null":return String(u);
case "object":if(!u)return"null";c+=e;m=[];if(Object.prototype.toString.apply(u)==="[object Array]"){s=u.length;for(h=0;h<s;h+=1)m[h]=f(h,u)||"null";l=m.length===0?"[]":c?"[\n"+c+m.join(",\n"+c)+"\n"+j+"]":"["+m.join(",")+"]";c=j;return l}if(n&&typeof n==="object"){s=n.length;for(h=0;h<s;h+=1)r=n[h],typeof r==="string"&&(l=f(r,u))&&m.push(d(r)+(c?": ":":")+l)}else for(r in u)Object.hasOwnProperty.call(u,r)&&(l=f(r,u))&&m.push(d(r)+(c?": ":":")+l);l=m.length===0?"{}":c?"{\n"+c+m.join(",\n"+c)+"\n"+
j+"}":"{"+m.join(",")+"}";c=j;return l}}if(typeof Date.prototype.toJSON!=="function")Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+b(this.getUTCMonth()+1)+"-"+b(this.getUTCDate())+"T"+b(this.getUTCHours())+":"+b(this.getUTCMinutes())+":"+b(this.getUTCSeconds())+"Z":null},String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(){return this.valueOf()};var a=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,
h=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,c,e,s={"\u0008":"\\b","\t":"\\t","\n":"\\n","\u000c":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},n;if(typeof JSON.stringify!=="function")JSON.stringify=function(a,b,d){var h;e=c="";if(typeof d==="number")for(h=0;h<d;h+=1)e+=" ";else typeof d==="string"&&(e=d);if((n=b)&&typeof b!=="function"&&(typeof b!=="object"||typeof b.length!=="number"))throw Error("JSON.stringify");return f("",
{"":a})};if(typeof JSON.parse!=="function")JSON.parse=function(b,c){function e(a,b){var d,f,h=a[b];if(h&&typeof h==="object")for(d in h)Object.hasOwnProperty.call(h,d)&&(f=e(h,d),f!==void 0?h[d]=f:delete h[d]);return c.call(a,b,h)}var d,b=String(b);a.lastIndex=0;a.test(b)&&(b=b.replace(a,function(a){return"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)}));if(/^[\],:{}\s]*$/.test(b.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,
"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return d=eval("("+b+")"),typeof c==="function"?e({"":d},""):d;throw new SyntaxError("JSON.parse");}})();
(function(b){b.baseClass=function(d){d=b(d);return d.get(0).className.match(/([^ ]+)/)[1]};b.fn.addDependClass=function(d,f){var a=f?f:"-";return this.each(function(){var f=b.baseClass(this);f&&b(this).addClass(f+a+d)})};b.fn.removeDependClass=function(d,f){var a=f?f:"-";return this.each(function(){var f=b.baseClass(this);f&&b(this).removeClass(f+a+d)})};b.fn.toggleDependClass=function(d,f){var a=f?f:"-";return this.each(function(){var f=b.baseClass(this);f&&(b(this).is("."+f+a+d)?b(this).removeClass(f+
a+d):b(this).addClass(f+a+d))})}})(jQuery);
(function(){Function.prototype.inheritFrom=function(b,d){var f=function(){};f.prototype=b.prototype;this.prototype=new f;this.prototype.constructor=this;this.prototype.baseConstructor=b;this.prototype.superClass=b.prototype;if(d)for(var a in d)this.prototype[a]=d[a]};Number.prototype.jSliderNice=function(b){var d=String(Number(this)),f,a="";if(f=d.match(/^(-)?(\d+)([\.,](\d+))?$/)){var d=f[2],h=f[4]?Number("0."+f[4]):0;if(h){a=Math.pow(10,b?b:2);h=Math.round(h*a);a=sNewDecPart=String(h);if(sNewDecPart.length<
b){b-=sNewDecPart.length;for(h=0;h<b;h++)a="0"+a}a=","+a}else if(b&&b!=0){for(h=0;h<b;h++)a+="0";a=","+a}if(Number(d)<1E3)a=d+a;else{b="";for(h=1;h*3<d.length;h++)b=" "+d.substring(d.length-h*3,d.length-(h-1)*3)+b;a=d.substr(0,3-h*3+d.length)+b+a}return f[1]?"-"+a:a}else return d};this.jSliderIsArray=function(b){return typeof b=="undefined"?false:b instanceof Array||!(b instanceof Object)&&Object.prototype.toString.call(b)=="[object Array]"||typeof b.length=="number"&&typeof b.splice!="undefined"&&
typeof b.propertyIsEnumerable!="undefined"&&!b.propertyIsEnumerable("splice")?true:false}})();
(function(){var b={};this.jSliderTmpl=function f(a,h){var c=!/\W/.test(a)?b[a]=b[a]||f(a):new Function("obj","var p=[],print=function(){p.push.apply(p,arguments);};with(obj){p.push('"+a.replace(/[\r\t\n]/g," ").split("<%").join("\t").replace(/((^|%>)[^\t]*)'/g,"$1\r").replace(/\t=(.*?)%>/g,"',$1,'").split("\t").join("');").split("%>").join("p.push('").split("\r").join("\\'")+"');}return p.join('');");return h?c(h):c}})();
(function(b){this.Draggable=function(){this._init.apply(this,arguments)};Draggable.prototype={oninit:function(){},events:function(){},onmousedown:function(){this.ptr.css({position:"absolute"})},onmousemove:function(b,f,a){this.ptr.css({left:f,top:a})},onmouseup:function(){},isDefault:{drag:false,clicked:false,toclick:true,mouseup:false},_init:function(){if(arguments.length>0){this.ptr=b(arguments[0]);this.outer=b(".draggable-outer");this.is={};b.extend(this.is,this.isDefault);var d=this.ptr.offset();
this.d={left:d.left,top:d.top,width:this.ptr.width(),height:this.ptr.height()};this.oninit.apply(this,arguments);this._events()}},_getPageCoords:function(b){return b.targetTouches&&b.targetTouches[0]?{x:b.targetTouches[0].pageX,y:b.targetTouches[0].pageY}:{x:b.pageX,y:b.pageY}},_bindEvent:function(b,f,a){this.supportTouches_?b.get(0).addEventListener(this.events_[f],a,false):b.bind(this.events_[f],a)},_events:function(){var d=this;this.supportTouches_=b.browser.webkit&&navigator.userAgent.indexOf("Mobile")!=
-1;this.events_={click:this.supportTouches_?"touchstart":"click",down:this.supportTouches_?"touchstart":"mousedown",move:this.supportTouches_?"touchmove":"mousemove",up:this.supportTouches_?"touchend":"mouseup"};this._bindEvent(b(document),"move",function(b){d.is.drag&&(b.stopPropagation(),b.preventDefault(),d._mousemove(b))});this._bindEvent(b(document),"down",function(b){d.is.drag&&(b.stopPropagation(),b.preventDefault())});this._bindEvent(b(document),"up",function(b){d._mouseup(b)});this._bindEvent(this.ptr,
"down",function(b){d._mousedown(b);return false});this._bindEvent(this.ptr,"up",function(b){d._mouseup(b)});this.ptr.find("a").click(function(){d.is.clicked=true;if(!d.is.toclick)return d.is.toclick=true,false}).mousedown(function(b){d._mousedown(b);return false});this.events()},_mousedown:function(d){this.is.drag=true;this.is.clicked=false;this.is.mouseup=false;var f=this.ptr.offset(),a=this._getPageCoords(d);this.cx=a.x-f.left;this.cy=a.y-f.top;b.extend(this.d,{left:f.left,top:f.top,width:this.ptr.width(),
height:this.ptr.height()});this.outer&&this.outer.get(0)&&this.outer.css({height:Math.max(this.outer.height(),b(document.body).height()),overflow:"hidden"});this.onmousedown(d)},_mousemove:function(b){this.is.toclick=false;var f=this._getPageCoords(b);this.onmousemove(b,f.x-this.cx,f.y-this.cy)},_mouseup:function(d){if(this.is.drag)this.is.drag=false,this.outer&&this.outer.get(0)&&(b.browser.mozilla?this.outer.css({overflow:"hidden"}):this.outer.css({overflow:"visible"}),b.browser.msie&&b.browser.version==
"6.0"?this.outer.css({height:"100%"}):this.outer.css({height:"auto"})),this.onmouseup(d)}}})(jQuery);
(function(b){function d(){this.baseConstructor.apply(this,arguments)}b.slider=function(a,d){var c=b(a);c.data("jslider")||c.data("jslider",new jSlider(a,d));return c.data("jslider")};b.fn.slider=function(a,d){var c,e=arguments;this.each(function(){var f=b.slider(this,a);if(typeof a=="string")switch(a){case "value":if(e[1]!==void 0&&e[2]!==void 0){var n=f.getPointers(),k=[0,1];e[1]!=null&&n[1]!=null&&n[1].value.origin<f.round(e[1])&&(k=[1,0]);for(var i=0;i<k.length;i++)n[k[i]]!=null&&e[k[i]+1]!=null&&
(n[k[i]].set(e[k[i]+1]),n[k[i]].setIndexOver())}else e[1]!==void 0?(n=f.getPointers(),n[0]!=null&&e[1]!=null&&(n[0].set(e[1]),n[0].setIndexOver())):c=f.getValue();break;case "prc":e[1]!==void 0&&e[2]!==void 0?(n=f.getPointers(),n[0]!=null&&e[1]!=null&&(n[0]._set(e[1]),n[0].setIndexOver()),n[1]!=null&&e[2]!=null&&(n[1]._set(e[2]),n[1].setIndexOver())):e[1]!==void 0?(n=f.getPointers(),n[0]!=null&&e[1]!=null&&(n[0]._set(e[1]),n[0].setIndexOver())):c=f.getPrcValue();break;case "calculatedValue":n=f.getValue().split(";");
c="";for(i=0;i<n.length;i++)c+=(i>0?";":"")+f.nice(n[i]);break;case "skin":f.setSkin(e[1])}else!a&&!d&&(jSliderIsArray(c)||(c=[]),c.push(slider))});jSliderIsArray(c)&&c.length==1&&(c=c[0]);return c||this};var f={settings:{from:1,to:10,step:1,smooth:true,limits:true,round:0,value:"5;7",dimension:""},className:"jslider",selector:".jslider-",template:jSliderTmpl('<span class="<%=className%>"><table><tr><td><div class="<%=className%>-bg"><i class="l"><i></i></i><i class="r"><i></i></i><i class="v"><i></i></i></div><div class="<%=className%>-pointer"><i></i></div><div class="<%=className%>-pointer <%=className%>-pointer-to"><i></i></div><div class="<%=className%>-label"><span><%=settings.from%></span></div><div class="<%=className%>-label <%=className%>-label-to"><span><%=settings.to%></span><%=settings.dimension%></div><div class="<%=className%>-value"><span></span><%=settings.dimension%></div><div class="<%=className%>-value <%=className%>-value-to"><span></span><%=settings.dimension%></div><div class="<%=className%>-scale"><%=scale%></div></td></tr></table></span>')};
this.jSlider=function(){return this.init.apply(this,arguments)};jSlider.prototype={init:function(a,d){this.settings=b.extend(true,{},f.settings,d?d:{});this.inputNode=b(a).hide();this.settings.interval=this.settings.to-this.settings.from;this.settings.value=this.inputNode.attr("value");if(this.settings.calculate&&b.isFunction(this.settings.calculate))this.nice=this.settings.calculate;if(this.settings.onstatechange&&b.isFunction(this.settings.onstatechange))this.onstatechange=this.settings.onstatechange;
this.is={init:false};this.o={};this.create()},onstatechange:function(){},create:function(){var a=this;this.domNode=b(f.template({className:f.className,settings:{from:this.nice(this.settings.from),to:this.nice(this.settings.to),dimension:this.settings.dimension},scale:this.generateScale()}));this.inputNode.after(this.domNode);this.drawScale();this.settings.skin&&this.settings.skin.length>0&&this.setSkin(this.settings.skin);this.sizes={domWidth:this.domNode.width(),domOffset:this.domNode.offset()};
b.extend(this.o,{pointers:{},labels:{0:{o:this.domNode.find(f.selector+"value").not(f.selector+"value-to")},1:{o:this.domNode.find(f.selector+"value").filter(f.selector+"value-to")}},limits:{0:this.domNode.find(f.selector+"label").not(f.selector+"label-to"),1:this.domNode.find(f.selector+"label").filter(f.selector+"label-to")}});b.extend(this.o.labels[0],{value:this.o.labels[0].o.find("span")});b.extend(this.o.labels[1],{value:this.o.labels[1].o.find("span")});if(!a.settings.value.split(";")[1])this.settings.single=
true,this.domNode.addDependClass("single");a.settings.limits||this.domNode.addDependClass("limitless");this.domNode.find(f.selector+"pointer").each(function(b){var c=a.settings.value.split(";")[b];if(c){a.o.pointers[b]=new d(this,b,a);var e=a.settings.value.split(";")[b-1];e&&new Number(c)<new Number(e)&&(c=e);c=c<a.settings.from?a.settings.from:c;c=c>a.settings.to?a.settings.to:c;a.o.pointers[b].set(c,true)}});this.o.value=this.domNode.find(".v");this.is.init=true;b.each(this.o.pointers,function(){a.redraw(this)});
(function(a){b(window).resize(function(){a.onresize()})})(this)},setSkin:function(a){this.skin_&&this.domNode.removeDependClass(this.skin_,"_");this.domNode.addDependClass(this.skin_=a,"_")},setPointersIndex:function(){b.each(this.getPointers(),function(a){this.index(a)})},getPointers:function(){return this.o.pointers},generateScale:function(){if(this.settings.scale&&this.settings.scale.length>0){for(var a="",b=this.settings.scale,c=Math.round(100/(b.length-1)*10)/10,e=0;e<b.length;e++)a+='<span style="left: '+
e*c+'%">'+(b[e]!="|"?"<ins>"+b[e]+"</ins>":"")+"</span>";return a}return""},drawScale:function(){this.domNode.find(f.selector+"scale span ins").each(function(){b(this).css({marginLeft:-b(this).outerWidth()/2})})},onresize:function(){var a=this;this.sizes={domWidth:this.domNode.width(),domOffset:this.domNode.offset()};b.each(this.o.pointers,function(){a.redraw(this)})},limits:function(a,b){if(!this.settings.smooth)var c=this.settings.step*100/this.settings.interval,a=Math.round(a/c)*c;if((c=this.o.pointers[1-
b.uid])&&b.uid&&a<c.value.prc)a=c.value.prc;if(c&&!b.uid&&a>c.value.prc)a=c.value.prc;a<0&&(a=0);a>100&&(a=100);return Math.round(a*10)/10},redraw:function(b){if(!this.is.init)return false;this.setValue();this.o.pointers[0]&&this.o.pointers[1]&&this.o.value.css({left:this.o.pointers[0].value.prc+"%",width:this.o.pointers[1].value.prc-this.o.pointers[0].value.prc+"%"});for(key in this.o.labels)this.o.pointers[key]&&this.o.labels[key].value.html(this.nice(this.o.pointers[key].value.origin));this.redrawLabels(b)},
redrawLabels:function(b){function d(b,a,e){a.margin=-a.label/2;label_left=a.border+a.margin;label_left<0&&(a.margin-=label_left);a.border+a.label/2>c.sizes.domWidth?(a.margin=0,a.right=true):a.right=false;b.o.css({left:e+"%",marginLeft:a.margin,right:"auto"});a.right&&b.o.css({left:"auto",right:0});return a}var c=this,e=this.o.labels[b.uid],f=b.value.prc,n={label:e.o.outerWidth(),right:false,border:f*this.sizes.domWidth/100};if(!this.settings.single){var k=this.o.pointers[1-b.uid],i=this.o.labels[k.uid];
switch(b.uid){case 0:if(n.border+n.label/2>i.o.offset().left-this.sizes.domOffset.left){if(i.o.css({visibility:"hidden"}),i.value.html(this.nice(k.value.origin)),e.o.css({visibility:"visible"}),f=(k.value.prc-f)/2+f,k.value.prc!=b.value.prc)e.value.html(this.nice(b.value.origin)+"&nbsp;&ndash;&nbsp;"+this.nice(k.value.origin)),n.label=e.o.outerWidth(),n.border=f*this.sizes.domWidth/100}else i.o.css({visibility:"visible"});break;case 1:if(n.border-n.label/2<i.o.offset().left-this.sizes.domOffset.left+
i.o.outerWidth()){if(i.o.css({visibility:"hidden"}),i.value.html(this.nice(k.value.origin)),e.o.css({visibility:"visible"}),f=(f-k.value.prc)/2+k.value.prc,k.value.prc!=b.value.prc)e.value.html(this.nice(k.value.origin)+"&nbsp;&ndash;&nbsp;"+this.nice(b.value.origin)),n.label=e.o.outerWidth(),n.border=f*this.sizes.domWidth/100}else e.o.css({visibility:"visible"}),i.o.css({visibility:"visible"})}}n=d(e,n,f);i&&(n={label:i.o.outerWidth(),right:false,border:k.value.prc*this.sizes.domWidth/100},n=d(i,
n,k.value.prc));this.redrawLimits()},redrawLimits:function(){if(this.settings.limits){var b=[true,true];for(key in this.o.pointers)if(!this.settings.single||key==0){var d=this.o.labels[this.o.pointers[key].uid],c=d.o.offset().left-this.sizes.domOffset.left,e=this.o.limits[0];c<e.outerWidth()&&(b[0]=false);e=this.o.limits[1];c+d.o.outerWidth()>this.sizes.domWidth-e.outerWidth()&&(b[1]=false)}for(d=0;d<b.length;d++)b[d]?this.o.limits[d].fadeIn("fast"):this.o.limits[d].fadeOut("fast")}},setValue:function(){var b=
this.getValue();this.inputNode.attr("value",b);this.onstatechange.call(this,b)},getValue:function(){if(!this.is.init)return false;var a=this,d="";b.each(this.o.pointers,function(b){this.value.prc!=void 0&&!isNaN(this.value.prc)&&(d+=(b>0?";":"")+a.prcToValue(this.value.prc))});return d},getPrcValue:function(){if(!this.is.init)return false;var a="";b.each(this.o.pointers,function(b){this.value.prc!=void 0&&!isNaN(this.value.prc)&&(a+=(b>0?";":"")+this.value.prc)});return a},prcToValue:function(b){if(this.settings.heterogeneity&&
this.settings.heterogeneity.length>0)for(var d=this.settings.heterogeneity,c=0,e=this.settings.from,f=0;f<=d.length;f++){var n=d[f]?d[f].split("/"):[100,this.settings.to];n[0]=new Number(n[0]);n[1]=new Number(n[1]);if(b>=c&&b<=n[0])var k=e+(b-c)*(n[1]-e)/(n[0]-c);c=n[0];e=n[1]}else k=this.settings.from+b*this.settings.interval/100;return this.round(k)},valueToPrc:function(b,d){if(this.settings.heterogeneity&&this.settings.heterogeneity.length>0)for(var c=this.settings.heterogeneity,e=0,f=this.settings.from,
n=0;n<=c.length;n++){var k=c[n]?c[n].split("/"):[100,this.settings.to];k[0]=new Number(k[0]);k[1]=new Number(k[1]);if(b>=f&&b<=k[1])var i=d.limits(e+(b-f)*(k[0]-e)/(k[1]-f));e=k[0];f=k[1]}else i=d.limits((b-this.settings.from)*100/this.settings.interval);return i},round:function(b){b=Math.round(b/this.settings.step)*this.settings.step;return b=this.settings.round?Math.round(b*Math.pow(10,this.settings.round))/Math.pow(10,this.settings.round):Math.round(b)},nice:function(b){b=b.toString().replace(/,/gi,
".");b=b.toString().replace(/ /gi,"");return Number.prototype.jSliderNice?(new Number(b)).jSliderNice(this.settings.round).replace(/-/gi,"&minus;"):new Number(b)}};d.inheritFrom(Draggable,{oninit:function(b,d,c){this.uid=d;this.parent=c;this.value={};this.settings=this.parent.settings},onmousedown:function(){this._parent={offset:this.parent.domNode.offset(),width:this.parent.domNode.width()};this.ptr.addDependClass("hover");this.setIndexOver()},onmousemove:function(b){this._set(this.calc(this._getPageCoords(b).x))},
onmouseup:function(){this.parent.settings.callback&&b.isFunction(this.parent.settings.callback)&&this.parent.settings.callback.call(this.parent,this.parent.getValue());this.ptr.removeDependClass("hover")},setIndexOver:function(){this.parent.setPointersIndex(1);this.index(2)},index:function(b){this.ptr.css({zIndex:b})},limits:function(b){return this.parent.limits(b,this)},calc:function(b){return this.limits((b-this._parent.offset.left)*100/this._parent.width)},set:function(b,d){this.value.origin=this.parent.round(b);
this._set(this.parent.valueToPrc(b,this),d)},_set:function(b,d){if(!d)this.value.origin=this.parent.prcToValue(b);this.value.prc=b;this.ptr.css({left:b+"%"});this.parent.redraw(this)}})})(jQuery);var jaaulde=window.jaaulde||{};jaaulde.utils=jaaulde.utils||{};
jaaulde.utils.cookies=function(){var b,d,f,a,h={expiresAt:null,path:"/",domain:null,secure:false};b=function(b){var a,d;if(typeof b!=="object"||b===null)a=h;else{a={expiresAt:h.expiresAt,path:h.path,domain:h.domain,secure:h.secure};if(typeof b.expiresAt==="object"&&b.expiresAt instanceof Date)a.expiresAt=b.expiresAt;else if(typeof b.hoursToLive==="number"&&b.hoursToLive!==0)d=new Date,d.setTime(d.getTime()+b.hoursToLive*36E5),a.expiresAt=d;if(typeof b.path==="string"&&b.path!=="")a.path=b.path;if(typeof b.domain===
"string"&&b.domain!=="")a.domain=b.domain;if(b.secure===true)a.secure=b.secure}return a};d=function(a){a=b(a);return(typeof a.expiresAt==="object"&&a.expiresAt instanceof Date?"; expires="+a.expiresAt.toGMTString():"")+"; path="+a.path+(typeof a.domain==="string"?"; domain="+a.domain:"")+(a.secure===true?"; secure":"")};f=function(){var b={},a,d,f,h,i=document.cookie.split(";"),x;for(a=0;a<i.length;a+=1){d=i[a].split("=");f=d[0].replace(/^\s*/,"").replace(/\s*$/,"");try{h=decodeURIComponent(d[1])}catch(r){h=
d[1]}if(typeof JSON==="object"&&JSON!==null&&typeof JSON.parse==="function")try{x=h,h=JSON.parse(h)}catch(l){h=x}b[f]=h}return b};a=function(){};a.prototype.get=function(b){var a,d,h=f();if(typeof b==="string")a=typeof h[b]!=="undefined"?h[b]:null;else if(typeof b==="object"&&b!==null)for(d in a={},b)a[b[d]]=typeof h[b[d]]!=="undefined"?h[b[d]]:null;else a=h;return a};a.prototype.filter=function(b){var a,d={},h=f();typeof b==="string"&&(b=RegExp(b));for(a in h)a.match(b)&&(d[a]=h[a]);return d};a.prototype.set=
function(b,a,f){if(typeof f!=="object"||f===null)f={};if(typeof a==="undefined"||a===null)a="",f.hoursToLive=-8760;else if(typeof a!=="string")if(typeof JSON==="object"&&JSON!==null&&typeof JSON.stringify==="function")a=JSON.stringify(a);else throw Error("cookies.set() received non-string value and could not serialize.");f=d(f);document.cookie=b+"="+encodeURIComponent(a)+f};a.prototype.del=function(b,a){var d={},f;if(typeof a!=="object"||a===null)a={};typeof b==="boolean"&&b===true?d=this.get():typeof b===
"string"&&(d[b]=true);for(f in d)typeof f==="string"&&f!==""&&this.set(f,null,a)};a.prototype.test=function(){var b=false;this.set("cT","data");this.get("cT")==="data"&&(this.del("cT"),b=true);return b};a.prototype.setOptions=function(a){typeof a!=="object"&&(a=null);h=b(a)};return new a}();
(function(){window.jQuery&&function(b){b.cookies=jaaulde.utils.cookies;b.each({cookify:function(d){return this.each(function(){var f,a=["name","id"],h,c=b(this),e;for(f in a)if(!isNaN(f)&&(h=c.attr(a[f]),typeof h==="string"&&h!=="")){c.is(":checkbox, :radio")?c.attr("checked")&&(e=c.val()):e=c.is(":input")?c.val():c.html();if(typeof e!=="string"||e==="")e=null;b.cookies.set(h,e,d);break}})},cookieFill:function(){return this.each(function(){var d,f,a=["name","id"],h,c=b(this);for(f=function(){d=a.pop();
return!!d};f();)if(h=c.attr(d),typeof h==="string"&&h!==""){f=b.cookies.get(h);f!==null&&(c.is(":checkbox, :radio")?c.val()===f?c.attr("checked","checked"):c.removeAttr("checked"):c.is(":input")?c.val(f):c.html(f));break}})},cookieBind:function(d){return this.each(function(){var f=b(this);f.cookieFill().change(function(){f.cookify(d)})})}},function(d){b.fn[d]=this})}(window.jQuery)})();
(function(b,d,f){function a(){a.history=a.history||[];a.history.push(arguments);if("object"===typeof console){var b=console[console.warn?"warn":"log"],c=Array.prototype.slice.call(arguments);typeof arguments[0]==="string"&&(c[0]="qTip2: "+c[0]);b.apply?b.apply(console,c):b(c)}}function h(a){var c;if(!a||"object"!==typeof a)return l;if("object"!==typeof a.metadata)a.metadata={type:a.metadata};if("content"in a){if("object"!==typeof a.content||a.content.jquery)a.content={text:a.content};c=a.content.text||
l;if(!b.isFunction(c)&&(!c&&!c.attr||c.length<1||"object"===typeof c&&!c.jquery))a.content.text=l;if("title"in a.content){if("object"!==typeof a.content.title)a.content.title={text:a.content.title};c=a.content.title.text||l;if(!b.isFunction(c)&&(!c&&!c.attr||c.length<1||"object"===typeof c&&!c.jquery))a.content.title.text=l}}if("position"in a&&"object"!==typeof a.position)a.position={my:a.position,at:a.position};if("show"in a&&"object"!==typeof a.show)a.show=a.show.jquery?{target:a.show}:{event:a.show};
if("hide"in a&&"object"!==typeof a.hide)a.hide=a.hide.jquery?{target:a.hide}:{event:a.hide};if("style"in a&&"object"!==typeof a.style)a.style={classes:a.style};b.each(m,function(){this.sanitize&&this.sanitize(a)});return a}function c(a,c,e,k){function n(b){for(var a=0,d,e=c,b=b.split(".");e=e[b[a++]];)a<b.length&&(d=e);return[d||c,b.pop()]}function i(){var b=c.style.widget;t.toggleClass(g,b).toggleClass(O,!b);D.content.toggleClass(g+"-content",b);D.titlebar&&D.titlebar.toggleClass(g+"-header",b);
D.button&&D.button.toggleClass(A+"-icon",!b)}function R(b){if(D.title)D.titlebar.remove(),D.titlebar=D.title=D.button=B,b!==l&&o.reposition()}function N(){var a=c.content.title.button,e=typeof a==="string"?a:"Close tooltip";D.button&&D.button.remove();D.button=a.jquery?a:b("<a />",{"class":"ui-state-default "+(c.style.widget?"":A+"-icon"),title:e,"aria-label":e}).prepend(b("<span />",{"class":"ui-icon ui-icon-close",html:"&times;"}));D.button.appendTo(D.titlebar).attr("role","button").click(function(b){t.hasClass(z)||
o.hide(b);return l});o.redraw()}function I(){var a=x+"-title";D.titlebar&&R();D.titlebar=b("<div />",{"class":A+"-titlebar "+(c.style.widget?"ui-widget-header":"")}).append(D.title=b("<div />",{id:a,"class":A+"-title","aria-atomic":r})).insertBefore(D.content).delegate(".ui-state-default","mousedown keydown mouseup keyup mouseout",function(a){b(this).toggleClass("ui-state-active ui-state-focus",a.type.substr(-4)==="down")}).delegate(".ui-state-default","mouseover mouseout",function(a){b(this).toggleClass("ui-state-hover",
a.type==="mouseover")});c.content.title.button?N():o.rendered&&o.redraw()}function C(c,e){var d=D.title;if(!o.rendered||!c)return l;b.isFunction(c)&&(c=c.call(a,E.event,o));if(c===l)return R(l);else c.jquery&&c.length>0?d.empty().append(c.css({display:"block"})):d.html(c);o.redraw();e!==l&&o.rendered&&t.is(":visible")&&o.reposition(E.event)}function y(c,e){function d(a){function c(d){d&&(delete j[d.src],clearTimeout(o.timers.img[d.src]),b(d).unbind(G));b.isEmptyObject(j)&&(o.redraw(),e!==l&&o.reposition(E.event),
a())}var h,j={};if((h=g.find("img:not([height]):not([width])")).length===0)return c();h.each(function(a,d){if(j[d.src]===f){var e=0;(function X(){if(d.height||d.width||e>3)return c(d);e+=1;o.timers.img[d.src]=setTimeout(X,700)})();b(d).bind("error"+G+" load"+G,function(){c(this)});j[d.src]=d}})}var g=D.content;if(!o.rendered||!c)return l;b.isFunction(c)&&(c=c.call(a,E.event,o)||"");c.jquery&&c.length>0?g.empty().append(c.css({display:"block"})):g.html(c);o.rendered<0?t.queue("fx",d):(J=0,d(b.noop));
return o}function V(){var f,g,h,k,I;function m(b){if(t.hasClass(z))return l;f.trigger("qtip-"+e+"-inactive");clearTimeout(o.timers.show);clearTimeout(o.timers.hide);var a=function(){o.toggle(r,b)};c.show.delay>0?o.timers.show=setTimeout(a,c.show.delay):a()}function n(a){if(t.hasClass(z)||S||J)return l;var d=b(a.relatedTarget||a.target),e=d.closest(v)[0]===t[0],d=d[0]===f[0];clearTimeout(o.timers.show);clearTimeout(o.timers.hide);if(q.target==="mouse"&&e||c.hide.fixed&&/mouse(out|leave|move)/.test(a.type)&&
(e||d))try{a.preventDefault(),a.stopImmediatePropagation()}catch(g){}else c.hide.delay>0?o.timers.hide=setTimeout(function(){o.hide(a)},c.hide.delay):o.hide(a)}function F(b){if(t.hasClass(z))return l;clearTimeout(o.timers.inactive);o.timers.inactive=setTimeout(function(){o.hide(b)},c.hide.inactive)}function N(b){t.is(":visible")&&o.reposition(b)}var q=c.position;f=c.show.target;g=c.hide.target;h=b(q.viewport);k=b(document);I=b(d);var i=b.trim(""+c.show.event).split(" "),C=b.trim(""+c.hide.event).split(" "),
W=b.browser.msie&&parseInt(b.browser.version,10)===6;t.bind("mouseenter"+G+" mouseleave"+G,function(b){var a=b.type==="mouseenter";a&&o.focus(b);t.toggleClass(P,a)});c.hide.fixed&&(g=g.add(t),t.bind("mouseover"+G,function(){t.hasClass(z)||clearTimeout(o.timers.hide)}));/mouse(out|leave)/i.test(c.hide.event)?c.hide.leave==="window"&&I.bind("mouseout"+G,function(b){/select|option/.test(b.target)&&!b.relatedTarget&&o.hide(b)}):/mouse(over|enter)/i.test(c.show.event)&&g.bind("mouseleave"+G,function(){clearTimeout(o.timers.show)});
(""+c.hide.event).indexOf("unfocus")>-1&&k.bind("mousedown"+G,function(c){var d=b(c.target);!t.hasClass(z)&&t.is(":visible");d[0]!==t[0]&&d.parents(v).length===0&&d.add(a).length>1&&!d.is(":disabled")&&o.hide(c)});"number"===typeof c.hide.inactive&&(f.bind("qtip-"+e+"-inactive",F),b.each(j.inactiveEvents,function(b,a){g.add(D.tooltip).bind(a+G+"-inactive",F)}));b.each(C,function(a,c){var d=b.inArray(c,i),e=b(g);d>-1&&e.add(f).length===e.length||c==="unfocus"?(f.bind(c+G,function(b){t.is(":visible")?
n(b):m(b)}),delete i[d]):g.bind(c+G,n)});b.each(i,function(b,a){f.bind(a+G,m)});"number"===typeof c.hide.distance&&f.add(t).bind("mousemove"+G,function(b){var a=E.origin||{},d=c.hide.distance,e=Math.abs;(e(b.pageX-a.pageX)>=d||e(b.pageY-a.pageY)>=d)&&o.hide(b)});q.target==="mouse"&&(f.bind("mousemove"+G,function(b){u={pageX:b.pageX,pageY:b.pageY,type:"mousemove"}}),q.adjust.mouse&&(c.hide.event&&t.bind("mouseleave"+G,function(b){(b.relatedTarget||b.target)!==f[0]&&o.hide(b)}),k.bind("mousemove"+G,
function(b){!t.hasClass(z)&&t.is(":visible")&&o.reposition(b||u)})));if(q.adjust.resize||h.length)(b.event.special.resize?h:I).bind("resize"+G,N);(h.length||W&&t.css("position")==="fixed")&&h.bind("scroll"+G,N)}function s(){var a=[c.show.target[0],c.hide.target[0],o.rendered&&D.tooltip[0],c.position.container[0],c.position.viewport[0],d,document];o.rendered?b([]).pushStack(b.grep(a,function(b){return typeof b==="object"})).unbind(G):c.show.target.unbind(G+"-create")}var o=this,Y=document.body,x=A+
"-"+e,S=0,J=0,t=b(),G=".qtip-"+e,D,E;o.id=e;o.rendered=l;o.elements=D={target:a};o.timers={img:{}};o.options=c;o.checks={};o.plugins={};o.cache=E={event:{},target:b(),disabled:l,attr:k};o.checks.builtin={"^id$":function(a,c,d){a=d===r?j.nextid:d;c=A+"-"+a;if(a!==l&&a.length>0&&!b("#"+c).length)t[0].id=c,D.content[0].id=c+"-content",D.title[0].id=c+"-title"},"^content.text$":function(b,a,c){y(c)},"^content.title.text$":function(b,a,c){if(!c)return R();!D.title&&c&&I();C(c)},"^content.title.button$":function(b,
a,c){b=D.button;a=D.title;o.rendered&&(c?(a||I(),N()):b.remove())},"^position.(my|at)$":function(b,a,c){"string"===typeof c&&(b[a]=new m.Corner(c))},"^position.container$":function(b,a,c){o.rendered&&t.appendTo(c)},"^show.ready$":function(){o.rendered?o.toggle(r):o.render(1)},"^style.classes$":function(b,a,c){t.attr("class",A+" qtip ui-helper-reset "+c)},"^style.widget|content.title":i,"^events.(render|show|move|hide|focus|blur)$":function(a,c,d){t[(b.isFunction(d)?"":"un")+"bind"]("tooltip"+c,d)},
"^(show|hide|position).(event|target|fixed|inactive|leave|distance|viewport|adjust)":function(){var b=c.position;t.attr("tracking",b.target==="mouse"&&b.adjust.mouse);s();V()}};b.extend(o,{render:function(d){if(o.rendered)return o;var e=c.content.text,f=c.content.title.text,g=c.position,h=b.Event("tooltiprender");b.attr(a[0],"aria-describedby",x);t=D.tooltip=b("<div/>",{id:x,"class":A+" qtip ui-helper-reset "+O+" "+c.style.classes+" "+A+"-pos-"+c.position.my.abbreviation(),width:c.style.width||"",
height:c.style.height||"",tracking:g.target==="mouse"&&g.adjust.mouse,role:"alert","aria-live":"polite","aria-atomic":l,"aria-describedby":x+"-content","aria-hidden":r}).toggleClass(z,E.disabled).data("qtip",o).appendTo(c.position.container).append(D.content=b("<div />",{"class":A+"-content",id:x+"-content","aria-atomic":r}));o.rendered=-1;S=J=1;f&&(I(),b.isFunction(f)||C(f,l));b.isFunction(e)||y(e,l);o.rendered=r;i();b.each(c.events,function(a,c){b.isFunction(c)&&t.bind(a==="toggle"?"tooltipshow tooltiphide":
"tooltip"+a,c)});b.each(m,function(){this.initialize==="render"&&this(o)});V();t.queue("fx",function(b){h.originalEvent=E.event;t.trigger(h,[o]);S=J=0;o.redraw();(c.show.ready||d)&&o.toggle(r,E.event);b()});return o},get:function(b){switch(b.toLowerCase()){case "dimensions":b={height:t.outerHeight(),width:t.outerWidth()};break;case "offset":b=m.offset(t,c.position.container);break;default:b=n(b.toLowerCase()),b=b[0][b[1]],b=b.precedance?b.string():b}return b},set:function(a,d){var e=/^position\.(my|at|adjust|target|container)|style|content|show\.ready/i,
f=/^content\.(title|attr)|style/i,g=l,j=l,k=o.checks,w;"string"===typeof a?(w=a,a={},a[w]=d):a=b.extend(r,{},a);b.each(a,function(c,d){var h=n(c.toLowerCase()),K;K=h[0][h[1]];h[0][h[1]]="object"===typeof d&&d.nodeType?b(d):d;a[c]=[h[0],h[1],d,K];g=e.test(c)||g;j=f.test(c)||j});h(c);S=J=1;b.each(a,function(b,a){var c,d,e;for(c in k)for(d in k[c])if(e=RegExp(d,"i").exec(b))a.push(e),k[c][d].apply(o,a)});S=J=0;t.is(":visible")&&o.rendered&&(g&&o.reposition(c.position.target==="mouse"?B:E.event),j&&o.redraw());
return o},toggle:function(a,d){function f(){a?(b.browser.msie&&t[0].style.removeAttribute("filter"),t.css("overflow",""),"string"===typeof h.autofocus&&b(h.autofocus,t).focus(),m=b.Event("tooltipvisible"),m.originalEvent=d?E.event:B,t.trigger(m,[o])):t.css({display:"",visibility:"",opacity:"",left:"",top:""})}if(!o.rendered)if(a)o.render(1);else return o;var g=a?"show":"hide",h=c[g],j=t.is(":visible"),k=!d||c[g].target.length<2||E.target[0]===d.target,w=c.position,I=c.content,m;(typeof a).search("boolean|number")&&
(a=!j);if(!t.is(":animated")&&j===a&&k)return o;if(d){if(/over|enter/.test(d.type)&&/out|leave/.test(E.event.type)&&d.target===c.show.target[0]&&t.has(d.relatedTarget).length)return o;E.event=b.extend({},d)}m=b.Event("tooltip"+g);m.originalEvent=d?E.event:B;t.trigger(m,[o,90]);if(m.isDefaultPrevented())return o;b.attr(t[0],"aria-hidden",!a);a?(E.origin=b.extend({},u),o.focus(d),b.isFunction(I.text)&&y(I.text,l),b.isFunction(I.title.text)&&C(I.title.text,l),!Q&&w.target==="mouse"&&w.adjust.mouse&&
(b(document).bind("mousemove.qtip",function(b){u={pageX:b.pageX,pageY:b.pageY,type:"mousemove"}}),Q=r),o.reposition(d),(m.solo=!!h.solo)&&b(v,h.solo).not(t).qtip("hide",m)):(clearTimeout(o.timers.show),delete E.origin,Q&&!b(v+'[tracking="true"]:visible',h.solo).not(t).length&&(b(document).unbind("mousemove.qtip"),Q=l),o.blur(d));k&&t.stop(0,1);h.effect===l?(t[g](),f.call(t)):b.isFunction(h.effect)?(h.effect.call(t,o),t.queue("fx",function(b){f();b()})):t.fadeTo(90,a?1:0,f);a&&h.target.trigger("qtip-"+
e+"-inactive");return o},show:function(b){return o.toggle(r,b)},hide:function(b){return o.toggle(l,b)},focus:function(a){if(!o.rendered)return o;var c=b(v),d=parseInt(t[0].style.zIndex,10),e=j.zindex+c.length,a=b.extend({},a),f;if(!t.hasClass(q)&&(f=b.Event("tooltipfocus"),f.originalEvent=a,t.trigger(f,[o,e]),!f.isDefaultPrevented()))d!==e&&(c.each(function(){this.style.zIndex>d&&(this.style.zIndex-=1)}),c.filter("."+q).qtip("blur",a)),t.addClass(q)[0].style.zIndex=e;return o},blur:function(a){var a=
b.extend({},a),c;t.removeClass(q);c=b.Event("tooltipblur");c.originalEvent=a;t.trigger(c,[o]);return o},reposition:function(a,e){if(!o.rendered||S)return o;S=1;var f=c.position.target,g=c.position,h=g.my,j=g.at,k=g.adjust,w=k.method.split(" "),I=t.outerWidth(),n=t.outerHeight(),F=0,r=0,T=b.Event("tooltipmove"),N=t.css("position")==="fixed",q=g.viewport,i={left:0,top:0},G=l,C=o.plugins.tip,J={horizontal:w[0],vertical:w[1]=w[1]||w[0],enabled:q.jquery&&f[0]!==d&&f[0]!==Y&&k.method!=="none",left:function(b){var a=
J.horizontal==="shift",c=q.offset.left+q.scrollLeft,d=h.x==="left"?I:h.x==="right"?-I:-I/2,e=j.x==="left"?F:j.x==="right"?-F:-F/2,f=C&&C.size?C.size.width||0:0,g=C&&C.corner&&C.corner.precedance==="x"&&!a?f:0,K=c-b+g,w=b+I-q.width-c+g,e=d-(h.precedance==="x"||h.x===h.y?e:0),g=h.x==="center";if(a)g=C&&C.corner&&C.corner.precedance==="y"?f:0,e=(h.x==="left"?1:-1)*d-g,i.left+=K>0?K:w>0?-w:0,i.left=Math.max(q.offset.left+(g&&C.corner.x==="center"?C.offset:0),b-e,Math.min(Math.max(q.offset.left+q.width,
b+e),i.left));else{if(K>0&&(h.x!=="left"||w>0))i.left-=e;else if(w>0&&(h.x!=="right"||K>0))i.left-=g?-e:e;i.left!==b&&g&&(i.left-=k.x);if(i.left<c&&-i.left>w)i.left=b}return i.left-b},top:function(b){var a=J.vertical==="shift",c=q.offset.top+q.scrollTop,d=h.y==="top"?n:h.y==="bottom"?-n:-n/2,e=j.y==="top"?r:j.y==="bottom"?-r:-r/2,f=C&&C.size?C.size.height||0:0,g=C&&C.corner&&C.corner.precedance==="y"&&!a?f:0,K=c-b+g,c=b+n-q.height-c+g,e=d-(h.precedance==="y"||h.x===h.y?e:0),g=h.y==="center";if(a)g=
C&&C.corner&&C.corner.precedance==="x"?f:0,e=(h.y==="top"?1:-1)*d-g,i.top+=K>0?K:c>0?-c:0,i.top=Math.max(q.offset.top+(g&&C.corner.x==="center"?C.offset:0),b-e,Math.min(Math.max(q.offset.top+q.height,b+e),i.top));else{if(K>0&&(h.y!=="top"||c>0))i.top-=e;else if(c>0&&(h.y!=="bottom"||K>0))i.top-=g?-e:e;i.top!==b&&g&&(i.top-=k.y);if(i.top<0&&-i.top>c)i.top=b}return i.top-b}};if(b.isArray(f)&&f.length===2)j={x:"left",y:"top"},i={left:f[0],top:f[1]};else if(f==="mouse"&&(a&&a.pageX||E.event.pageX))j=
{x:"left",y:"top"},a=(a&&(a.type==="resize"||a.type==="scroll")?E.event:a&&a.pageX&&a.type==="mousemove"?a:u&&u.pageX&&(k.mouse||!a||!a.pageX)?{pageX:u.pageX,pageY:u.pageY}:!k.mouse&&E.origin&&E.origin.pageX?E.origin:a)||a||E.event||u||{},i={top:a.pageY,left:a.pageX};else{f==="event"?f=a&&a.target&&a.type!=="scroll"&&a.type!=="resize"?E.target=b(a.target):E.target:E.target=b(f);f=b(f).eq(0);if(f.length===0)return o;else f[0]===document||f[0]===d?(F=m.iOS?d.innerWidth:f.width(),r=m.iOS?d.innerHeight:
f.height(),f[0]===d&&(i={top:!N||m.iOS?(q||f).scrollTop():0,left:!N||m.iOS?(q||f).scrollLeft():0})):f.is("area")&&m.imagemap?i=m.imagemap(f,j,J.enabled?w:l):f[0].namespaceURI==="http://www.w3.org/2000/svg"&&m.svg?i=m.svg(f,j):(F=f.outerWidth(),r=f.outerHeight(),i=m.offset(f,g.container));if(i.offset)F=i.width,r=i.height,G=i.flipoffset,i=i.offset;if(m.iOS<4.1&&m.iOS>3.1||m.iOS==4.3||!m.iOS&&N)w=b(d),i.left-=w.scrollLeft(),i.top-=w.scrollTop();i.left+=j.x==="right"?F:j.x==="center"?F/2:0;i.top+=j.y===
"bottom"?r:j.y==="center"?r/2:0}i.left+=k.x+(h.x==="right"?-I:h.x==="center"?-I/2:0);i.top+=k.y+(h.y==="bottom"?-n:h.y==="center"?-n/2:0);J.enabled?(q={elem:q,height:q[(q[0]===d?"h":"outerH")+"eight"](),width:q[(q[0]===d?"w":"outerW")+"idth"](),scrollLeft:N?0:q.scrollLeft(),scrollTop:N?0:q.scrollTop(),offset:q.offset()||{left:0,top:0}},i.adjusted={left:J.horizontal!=="none"?J.left(i.left):0,top:J.vertical!=="none"?J.top(i.top):0},i.adjusted.left+i.adjusted.top&&t.attr("class",function(b,a){return a.replace(/ui-tooltip-pos-\w+/i,
A+"-pos-"+h.abbreviation())}),G&&i.adjusted.left&&(i.left+=G.left),G&&i.adjusted.top&&(i.top+=G.top)):i.adjusted={left:0,top:0};T.originalEvent=b.extend({},a);t.trigger(T,[o,i,q.elem||q]);if(T.isDefaultPrevented())return o;delete i.adjusted;e===l||isNaN(i.left)||isNaN(i.top)||f==="mouse"||!b.isFunction(g.effect)?t.css(i):b.isFunction(g.effect)&&(g.effect.call(t,o,b.extend({},i)),t.queue(function(a){b(this).css({opacity:"",height:""});b.browser.msie&&this.style.removeAttribute("filter");a()}));S=0;
return o},redraw:function(){if(o.rendered<1||J)return o;var b=c.position.container,a,d,e;J=1;c.style.height&&t.css("height",c.style.height);c.style.width?t.css("width",c.style.width):(t.css("width","").addClass(M),a=t.width()+1,d=t.css("max-width")||"",e=t.css("min-width")||"",b=(d+e).indexOf("%")>-1?b.width()/100:0,d=(d.indexOf("%")>-1?b:1)*parseInt(d,10)||a,e=(e.indexOf("%")>-1?b:1)*parseInt(e,10)||0,a=d+e?Math.min(Math.max(a,e),d):a,t.css("width",Math.round(a)).removeClass(M));J=0;return o},disable:function(a){"boolean"!==
typeof a&&(a=!(t.hasClass(z)||E.disabled));o.rendered?(t.toggleClass(z,a),b.attr(t[0],"aria-disabled",a)):E.disabled=!!a;return o},enable:function(){return o.disable(l)},destroy:function(){var d=a[0],f=b.attr(d,L),g=a.data("qtip");o.rendered&&(t.remove(),b.each(o.plugins,function(){this.destroy&&this.destroy()}));clearTimeout(o.timers.show);clearTimeout(o.timers.hide);s();if(!g||o===g)b.removeData(d,"qtip"),c.suppress&&f&&(b.attr(d,"title",f),a.removeAttr(L)),a.removeAttr("aria-describedby");a.unbind(".qtip-"+
e);delete U[o.id];return a}})}function e(d,e){var f,g,k,i,n,q=b(this),I=b(document.body),C=this===document?I:q;g=q.metadata?q.metadata(e.metadata):B;i=e.metadata.type==="html5"&&g?g[e.metadata.name]:B;var y=q.data(e.metadata.name||"qtipopts");try{y=typeof y==="string"?(new Function("return "+y))():y}catch(u){a("Unable to parse HTML5 attribute data: "+y)}i=b.extend(r,{},j.defaults,e,typeof y==="object"?h(y):B,h(i||g));g=i.position;i.id=d;if("boolean"===typeof i.content.text)if(k=q.attr(i.content.attr),
i.content.attr!==l&&k)i.content.text=k;else return a("Unable to locate content for tooltip! Aborting render of tooltip on element: ",q),l;if(g.container===l)g.container=I;if(g.target===l)g.target=C;if(i.show.target===l)i.show.target=C;if(i.show.solo===r)i.show.solo=I;if(i.hide.target===l)i.hide.target=C;if(i.position.viewport===r)i.position.viewport=g.container;g.at=new m.Corner(g.at);g.my=new m.Corner(g.my);if(b.data(this,"qtip"))if(i.overwrite)q.qtip("destroy");else if(i.overwrite===l)return l;
i.suppress&&(n=b.attr(this,"title"))&&b(this).removeAttr("title").attr(L,n);f=new c(q,i,d,!!k);b.data(this,"qtip",f);q.bind("remove.qtip-"+d,function(){f.destroy()});return f}function s(a){var c=this,d=a.elements.tooltip,e=a.options.content.ajax,f=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi;a.checks.ajax={"^content.ajax":function(b,a,f){a==="ajax"&&(e=f);a==="once"?c.init():e&&e.url?c.load():d.unbind(".qtip-ajax")}};b.extend(c,{init:function(){if(e&&e.url)d.unbind(".qtip-ajax")[e.once?"one":
"bind"]("tooltipshow.qtip-ajax",c.load);return c},load:function(d,g){var h=e.url.indexOf(" "),j=e.url,i,k=e.once&&!e.loading&&g;if(k)try{d.preventDefault()}catch(m){}else if(d&&d.isDefaultPrevented())return c;h>-1&&(i=j.substr(h),j=j.substr(0,h));b.ajax(b.extend({success:function(c){i&&(c=b("<div/>").append(c.replace(f,"")).find(i));a.set("content.text",c)},error:function(b,c,d){b.status!==0&&a.set("content.text",c+": "+d)},context:a},e,{url:j,complete:function(){k&&(a.show(d.originalEvent),g=l);
b.isFunction(e.complete)&&e.complete.apply(this,arguments)}}))}});c.init()}function n(b,a,c){var d=Math.ceil(a/2),e=Math.ceil(c/2),a={bottomright:[[0,0],[a,c],[a,0]],bottomleft:[[0,0],[a,0],[0,c]],topright:[[0,c],[a,0],[a,c]],topleft:[[0,0],[0,c],[a,c]],topcenter:[[0,c],[d,0],[a,c]],bottomcenter:[[0,0],[a,0],[d,c]],rightcenter:[[0,0],[a,e],[0,c]],leftcenter:[[a,0],[a,c],[0,e]]};a.lefttop=a.bottomright;a.righttop=a.bottomleft;a.leftbottom=a.topright;a.rightbottom=a.topleft;return a[b.string()]}function k(a){var c,
d,e;function g(h,j,o){if(q.tip){var h=b.extend({},i.corner),j=o.adjusted,m=a.options.position.adjust.method.split(" "),n=m[0],m=m[1]||m[0],s=l,y=l,u=0,v=0,H,R={},x;if(i.corner.fixed!==r){if(n==="shift"&&h.precedance==="x"&&j.left&&h.y!=="center")h.precedance=h.precedance==="x"?"y":"x";else if(n==="flip"&&j.left)h.x=h.x==="center"?j.left>0?"left":"right":h.x==="left"?"right":"left";if(m==="shift"&&h.precedance==="y"&&j.top&&h.x!=="center")h.precedance=h.precedance==="y"?"x":"y";else if(m==="flip"&&
j.top)h.y=h.y==="center"?j.top>0?"top":"bottom":h.y==="top"?"bottom":"top";h.string()!==c&&(d!==j.top||e!==j.left)&&i.update(h,l)}H=i.position(h,j);if(H.right!==f)H.left=-H.right;if(H.bottom!==f)H.top=-H.bottom;H.user=Math.max(0,k.offset);if(s=n==="shift"&&!!j.left)if(h.x==="center")R["margin-left"]=u=H["margin-left"]-j.left;else{x=H.right!==f?[j.left,-H.left]:[-j.left,H.left];if((u=Math.max(x[0],x[1]))>x[0])o.left-=j.left,s=l;R[H.right!==f?"right":"left"]=u}if(y=m==="shift"&&!!j.top)if(h.y==="center")R["margin-top"]=
v=H["margin-top"]-j.top;else{x=H.bottom!==f?[j.top,-H.top]:[-j.top,H.top];if((v=Math.max(x[0],x[1]))>x[0])o.top-=j.top,y=l;R[H.bottom!==f?"bottom":"top"]=v}q.tip.css(R).toggle(!(u&&v||h.x==="center"&&v||h.y==="center"&&u));o.left-=H.left.charAt?H.user:n!=="shift"||y||!s&&!y?H.left:0;o.top-=H.top.charAt?H.user:m!=="shift"||s||!s&&!y?H.top:0;e=j.left;d=j.top;c=h.string()}}function h(a,b,c){var b=!b?a[a.precedance]:b,d=y.hasClass(M),a=q.titlebar&&a.y==="top"?q.titlebar:q.content,b="border-"+b+"-width";
y.addClass(M);a=parseInt(a.css(b),10);a=(c?a||parseInt(y.css(b),10):a)||0;y.toggleClass(M,d);return a}function j(a){var b=a.precedance==="y",c=u[b?"width":"height"],d=u[b?"height":"width"],e=a.string().indexOf("center")>-1,f=c*(e?0.5:1),g=Math.pow,a=Math.round,h=Math.sqrt(g(f,2)+g(d,2)),f=[s/f*h,s/d*h];f[2]=Math.sqrt(g(f[0],2)-g(s,2));f[3]=Math.sqrt(g(f[1],2)-g(s,2));e=(h+f[2]+f[3]+(e?0:f[0]))/h;c=[a(e*d),a(e*c)];return{height:c[b?0:1],width:c[b?1:0]}}var i=this,k=a.options.style.tip,q=a.elements,
y=q.tooltip;d=0;e=0;c="";var u={width:k.width,height:k.height},v,o,s=k.border||0,x=!!(b("<canvas />")[0]||{}).getContext;i.corner=B;i.mimic=B;i.border=s;i.offset=k.offset;i.size=u;a.checks.tip={"^position.my|style.tip.(corner|mimic|border)$":function(){i.init()||i.destroy();a.reposition()},"^style.tip.(height|width)$":function(){u={width:k.width,height:k.height};i.create();i.update();a.reposition()},"^content.title.text|style.(classes|widget)$":function(){q.tip&&i.update()}};b.extend(i,{init:function(){var a=
i.detectCorner()&&(x||b.browser.msie);a&&(i.create(),i.update(),y.unbind(".qtip-tip").bind("tooltipmove.qtip-tip",g));return a},detectCorner:function(){var b=k.corner,c=a.options.position,d=c.at,c=c.my.string?c.my.string():c.my;if(b===l||c===l&&d===l)return l;else if(b===r)i.corner=new m.Corner(c);else if(!b.string)i.corner=new m.Corner(b),i.corner.fixed=r;return i.corner.string()!=="centercenter"},detectColours:function(){var c,d,e=q.tip.css({backgroundColor:"",border:""});c=i.corner;var f=c[c.precedance],
g="border-"+f+"-color";d="border"+f.charAt(0)+f.substr(1)+"Color";var f=/rgba?\(0, 0, 0(, 0)?\)|transparent/i,h=b(document.body).css("color"),j=a.elements.content.css("color"),l=q.titlebar&&(c.y==="top"||c.y==="center"&&e.position().top+u.height/2+k.offset<q.titlebar.outerHeight(1))?q.titlebar:q.content;y.addClass(M);v=c=e.css("background-color");o=d=e[0].style[d]||e.css(g)||y.css(g);if(!c||f.test(c))v=l.css("background-color")||"transparent",f.test(v)&&(v=y.css("background-color")||c);if(!d||f.test(d)||
d===h)if(o=l.css(g)||"transparent",f.test(o)||o===j)o=d;b("*",e).add(e).css("background-color","transparent").css("border","");y.removeClass(M)},create:function(){var a=u.width,c=u.height;q.tip&&q.tip.remove();q.tip=b("<div />",{"class":"ui-tooltip-tip"}).css({width:a,height:c}).prependTo(y);x?b("<canvas />").appendTo(q.tip)[0].getContext("2d").save():q.tip.html('<vml:shape coordorigin="0,0" style="display:inline-block; position:absolute; behavior:url(#default#VML);"></vml:shape><vml:shape coordorigin="0,0" style="display:inline-block; position:absolute; behavior:url(#default#VML);"></vml:shape>')},
update:function(a,c){var d=q.tip,e=d.children(),f=u.width,g=u.height,w=k.mimic,K=Math.round,T,F,y;if(!a)a=i.corner;w===l?w=a:(w=new m.Corner(w),w.precedance=a.precedance,w.x==="inherit"?w.x=a.x:w.y==="inherit"?w.y=a.y:w.x===w.y&&(w[a.precedance]=a[a.precedance]));T=w.precedance;i.detectColours();o!=="transparent"&&o!=="#123456"?(s=h(a,B,r),k.border===0&&s>0&&(v=o),i.border=s=k.border!==r?k.border:s):i.border=s=0;F=n(w,f,g);i.size=y=j(a);d.css(y);d=a.precedance==="y"?[K(w.x==="left"?s:w.x==="right"?
y.width-f-s:(y.width-f)/2),K(w.y==="top"?y.height-g:0)]:[K(w.x==="left"?y.width-f:0),K(w.y==="top"?s:w.y==="bottom"?y.height-g-s:(y.height-g)/2)];x?(e.attr(y),e=e[0].getContext("2d"),e.restore(),e.save(),e.clearRect(0,0,3E3,3E3),e.translate(d[0],d[1]),e.beginPath(),e.moveTo(F[0][0],F[0][1]),e.lineTo(F[1][0],F[1][1]),e.lineTo(F[2][0],F[2][1]),e.closePath(),e.fillStyle=v,e.strokeStyle=o,e.lineWidth=s*2,e.lineJoin="miter",e.miterLimit=100,s&&e.stroke(),e.fill()):(F="m"+F[0][0]+","+F[0][1]+" l"+F[1][0]+
","+F[1][1]+" "+F[2][0]+","+F[2][1]+" xe",d[2]=s&&/^(r|b)/i.test(a.string())?parseFloat(b.browser.version,10)===8?2:1:0,e.css({antialias:""+(w.string().indexOf("center")>-1),left:d[0]-d[2]*Number(T==="x"),top:d[1]-d[2]*Number(T==="y"),width:f+s,height:g+s}).each(function(a){var c=b(this);c[c.prop?"prop":"attr"]({coordsize:f+s+" "+(g+s),path:F,fillcolor:v,filled:!!a,stroked:!a}).css({display:s||a?"block":"none"});!a&&c.html()===""&&c.html('<vml:stroke weight="'+s*2+'px" color="'+o+'" miterlimit="1000" joinstyle="miter"  style="behavior:url(#default#VML); display:inline-block;" />')}));
c!==l&&i.position(a)},position:function(a){var c=q.tip,d={},e=Math.max(0,k.offset),f,g,w;if(k.corner===l||!c)return l;a=a||i.corner;f=a.precedance;g=j(a);w=[a.x,a.y];f==="x"&&w.reverse();b.each(w,function(c,j){var i,k;if(j==="center")i=f==="y"?"left":"top",d[i]="50%",d["margin-"+i]=-Math.round(g[f==="y"?"width":"height"]/2)+e;else{i=h(a,j,r);k=b.browser.mozilla;var w=a.y+(k?"":"-")+a.x;k=(k?"-moz-":b.browser.webkit?"-webkit-":"")+(k?"border-radius-"+w:"border-"+w+"-radius");k=parseInt((q.titlebar&&
a.y==="top"?q.titlebar:q.content).css(k),10)||parseInt(y.css(k),10)||0;d[j]=c?s?h(a,j):0:e+(k>i?k:0)}});d[a[f]]-=g[f==="x"?"width":"height"];c.css({top:"",bottom:"",left:"",right:"",margin:""}).css(d);return d},destroy:function(){q.tip&&q.tip.remove();y.unbind(".qtip-tip")}});i.init()}function i(a){var c=this,e=a.options.show.modal,f=a.elements,g=f.tooltip,h=".qtipmodal"+a.id,j=b(document.body),i;a.checks.modal={"^show.modal.(on|blur)$":function(){c.init();f.overlay.toggle(g.is(":visible"))}};b.extend(c,
{init:function(){if(!e.on)return c;i=c.create();g.attr("is-modal-qtip",r).css("z-index",m.modal.zindex+b(v+"[is-modal-qtip]").length).unbind(".qtipmodal").unbind(h).bind("tooltipshow.qtipmodal tooltiphide.qtipmodal",function(a,d,e){if((d=a.originalEvent)&&a.type==="tooltiphide"&&/mouse(leave|enter)/.test(d.type)&&b(d.relatedTarget).closest(i[0]).length)try{a.preventDefault()}catch(f){}else if(d&&!d.solo)c[a.type.replace("tooltip","")](a,e)}).bind("tooltipfocus.qtipmodal",function(a){if(!a.isDefaultPrevented()){var c=
b(v).filter("[is-modal-qtip]"),d=m.modal.zindex+c.length,e=parseInt(g[0].style.zIndex,10);i[0].style.zIndex=d-1;c.each(function(){this.style.zIndex>e&&(this.style.zIndex-=1)});c.end().filter("."+q).qtip("blur",a.originalEvent);g.addClass(q)[0].style.zIndex=d;try{a.preventDefault()}catch(f){}}}).bind("tooltiphide.qtipmodal",function(a){b("[is-modal-qtip]").filter(":visible").not(g).last().qtip("focus",a)});e.escape&&b(d).unbind(h).bind("keydown"+h,function(b){b.keyCode===27&&g.hasClass(q)&&a.hide(b)});
e.blur&&f.overlay.unbind(h).bind("click"+h,function(b){g.hasClass(q)&&a.hide(b)});return c},create:function(){var a=b("#qtip-overlay");if(a.length)return f.overlay=a.insertAfter(b(v).last());i=f.overlay=b("<div />",{id:"qtip-overlay",html:"<div></div>",mousedown:function(){return l}}).insertAfter(b(v).last());b(d).unbind(".qtipmodal").bind("resize.qtipmodal",function(){i.css({height:b(d).height(),width:b(d).width()})}).triggerHandler("resize");return i},toggle:function(a,d,f){if(a&&a.isDefaultPrevented())return c;
var a=e.effect,k=d?"show":"hide",w=i.is(":visible"),q=b("[is-modal-qtip]").filter(":visible").not(g);i||(i=c.create());if(i.is(":animated")&&w===d||!d&&q.length)return c;d?(i.css({left:0,top:0}),i.toggleClass("blurs",e.blur),j.bind("focusin"+h,function(a){var c=b(a.target).closest(".qtip");!(c.length<1?l:parseInt(c[0].style.zIndex,10)>parseInt(g[0].style.zIndex,10))&&b(a.target).closest(v)[0]!==g[0]&&g.find("input:visible").filter(":first").focus()})):j.undelegate("*","focusin"+h);i.stop(r,l);if(b.isFunction(a))a.call(i,
d);else if(a===l)i[k]();else i.fadeTo(parseInt(f,10)||90,d?1:0,function(){d||b(this).hide()});d||i.queue(function(a){i.css({left:"",top:""});a()});return c},show:function(a,b){return c.toggle(a,r,b)},hide:function(a,b){return c.toggle(a,l,b)},destroy:function(){var c=i;c&&((c=b("[is-modal-qtip]").not(g).length<1)?(f.overlay.remove(),b(d).unbind(".qtipmodal")):f.overlay.unbind(".qtipmodal"+a.id),j.undelegate("*","focusin"+h));return g.removeAttr("is-modal-qtip").unbind(".qtipmodal")}});c.init()}function x(a){var c=
this,d=a.elements,e=d.tooltip,f=".bgiframe-"+a.id;b.extend(c,{init:function(){d.bgiframe=b('<iframe class="ui-tooltip-bgiframe" frameborder="0" tabindex="-1" src="javascript:\'\';"  style="display:block; position:absolute; z-index:-1; filter:alpha(opacity=0); -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";"></iframe>');d.bgiframe.appendTo(e);e.bind("tooltipmove"+f,c.adjust)},adjust:function(){var b=a.get("dimensions"),c=a.plugins.tip,f=d.tip,g;g=parseInt(e.css("border-left-width"),
10)||0;g={left:-g,top:-g};c&&f&&(c=c.corner.precedance==="x"?["width","left"]:["height","top"],g[c[1]]-=f[c[0]]());d.bgiframe.css(g).css(b)},destroy:function(){d.bgiframe.remove();e.unbind(f)}});c.init()}var r=true,l=false,B=null,j,m,u,U={},A="ui-tooltip",g="ui-widget",z="ui-state-disabled",v="div.qtip."+A,O=A+"-default",q=A+"-focus",P=A+"-hover",M=A+"-fluid",L="oldtitle",Q;j=b.fn.qtip=function(a,c,d){var e=(""+a).toLowerCase(),g=B,i=e==="disable"?[r]:b.makeArray(arguments).slice(1),k=i[i.length-
1],q=this[0]?b.data(this[0],"qtip"):B;if(!arguments.length&&q||e==="api")return q;else if("string"===typeof a)return this.each(function(){var a=b.data(this,"qtip");if(!a)return r;if(k&&k.timeStamp)a.cache.event=k;if((e==="option"||e==="options")&&c)if(b.isPlainObject(c)||d!==f)a.set(c,d);else return g=a.get(c),l;else a[e]&&a[e].apply(a[e],i)}),g!==B?g:this;else if("object"===typeof a||!arguments.length)return q=h(b.extend(r,{},a)),j.bind.call(this,q,k)};j.bind=function(a,c){return this.each(function(d){var g,
h,i,k;function q(a){function c(){y.render(typeof a==="object"||n.show.ready);i.add(k).unbind(s)}if(y.cache.disabled)return l;y.cache.event=b.extend({},a);y.cache.target=a?b(a.target):[f];n.show.delay>0?(clearTimeout(y.timers.show),y.timers.show=setTimeout(c,n.show.delay),g!==h&&k.bind(h,function(){clearTimeout(y.timers.show)})):c()}var n,s,y,d=b.isArray(a.id)?a.id[d]:a.id,d=!d||d===l||d.length<1||U[d]?j.nextid++:U[d]=d;s=".qtip-"+d+"-create";y=e.call(this,d,a);if(y===l)return r;n=y.options;b.each(m,
function(){this.initialize==="initialize"&&this(y)});i=n.show.target;k=n.hide.target;g=b.trim(""+n.show.event).replace(/ /g,s+" ")+s;h=b.trim(""+n.hide.event).replace(/ /g,s+" ")+s;/mouse(over|enter)/i.test(g)&&!/mouse(out|leave)/i.test(h)&&(h+=" mouseleave"+s);i.bind("mousemove"+s,function(a){u={pageX:a.pageX,pageY:a.pageY,type:"mousemove"}});i.bind(g,q);(n.show.ready||n.prerender)&&q(c)})};m=j.plugins={Corner:function(a){a=(""+a).replace(/([A-Z])/," $1").replace(/middle/gi,"center").toLowerCase();
this.x=(a.match(/left|right/i)||a.match(/center/)||["inherit"])[0].toLowerCase();this.y=(a.match(/top|bottom|center/i)||["inherit"])[0].toLowerCase();this.precedance=a.charAt(0).search(/^(t|b)/)>-1?"y":"x";this.string=function(){return this.precedance==="y"?this.y+this.x:this.x+this.y};this.abbreviation=function(){var a=this.x.substr(0,1),b=this.y.substr(0,1);return a===b?a:a==="c"||a!=="c"&&b!=="c"?b+a:a+b}},offset:function(a,b){var c=a.offset(),d=b,e=0,f=document.body,g;if(d){do if(d.css("position")!==
"static"&&(g=d[0]===f?{left:parseInt(d.css("left"),10)||0,top:parseInt(d.css("top"),10)||0}:d.position(),c.left-=g.left+(parseInt(d.css("borderLeftWidth"),10)||0)+(parseInt(d.css("marginLeft"),10)||0),c.top-=g.top+(parseInt(d.css("borderTopWidth"),10)||0),g=d.css("overflow"),(g==="scroll"||g==="auto")&&e++),d[0]===f)break;while(d=d.offsetParent());b[0]!==f&&e&&(c.left+=1*b.scrollLeft(),c.top+=1*b.scrollTop())}return c},iOS:parseFloat((""+(/CPU.*OS ([0-9_]{1,3})|(CPU like).*AppleWebKit.*Mobile/i.exec(navigator.userAgent)||
[0,""])[1]).replace("undefined","3_2").replace("_","."))||l,fn:{attr:function(a,c){if(this.length){var d=this[0],e=b.data(d,"qtip");if(a==="title"&&e&&"object"===typeof e&&e.options.suppress)return arguments.length<2?b.attr(d,L):(e&&e.options.content.attr==="title"&&e.cache.attr&&e.set("content.text",c),this.attr(L,c))}return b.fn.attr_replacedByqTip.apply(this,arguments)},clone:function(a){b([]);var c=b.fn.clone_replacedByqTip.apply(this,arguments);a||c.filter("["+L+"]").attr("title",function(){return b.attr(this,
L)}).removeAttr(L);return c},remove:b.ui?B:function(a,c){b(this).each(function(){c||(!a||b.filter(a,[this]).length)&&b("*",this).add(this).each(function(){b(this).triggerHandler("remove")})})}}};b.each(m.fn,function(a,c){if(!c||b.fn[a+"_replacedByqTip"])return r;var d=b.fn[a+"_replacedByqTip"]=b.fn[a];b.fn[a]=function(){return c.apply(this,arguments)||d.apply(this,arguments)}});j.version="nightly";j.nextid=0;j.inactiveEvents="click dblclick mousedown mouseup mousemove mouseleave mouseenter".split(" ");
j.zindex=15E3;j.defaults={prerender:l,id:l,overwrite:r,suppress:r,content:{text:r,attr:"title",title:{text:l,button:l}},position:{my:"top left",at:"bottom right",target:l,container:l,viewport:l,adjust:{x:0,y:0,mouse:r,resize:r,method:"flip flip"},effect:function(a,c){b(this).animate(c,{duration:200,queue:l})}},show:{target:l,event:"mouseenter",effect:r,delay:90,solo:l,ready:l,autofocus:l},hide:{target:l,event:"mouseleave",effect:r,delay:0,fixed:l,inactive:l,leave:"window",distance:l},style:{classes:"",
widget:l,width:l,height:l},events:{render:B,move:B,show:B,hide:B,toggle:B,visible:B,focus:B,blur:B}};m.ajax=function(a){var b=a.plugins.ajax;return"object"===typeof b?b:a.plugins.ajax=new s(a)};m.ajax.initialize="render";m.ajax.sanitize=function(a){var b=a.content;if(b&&"ajax"in b){b=b.ajax;if(typeof b!=="object")b=a.content.ajax={url:b};if("boolean"!==typeof b.once&&b.once)b.once=!!b.once}};b.extend(r,j.defaults,{content:{ajax:{loading:r,once:r}}});m.imagemap=function(a,c,d){function e(a,b,c){for(var d=
0,f=1,g=1,h=0,i=0,j=a.width,k=a.height;j>0&&k>0&&f>0&&g>0;){j=Math.floor(j/2);k=Math.floor(k/2);c.x==="left"?f=j:c.x==="right"?f=a.width-j:f+=Math.floor(j/2);c.y==="top"?g=k:c.y==="bottom"?g=a.height-k:g+=Math.floor(k/2);for(d=b.length;d--;){if(b.length<2)break;h=b[d][0]-a.offset.left;i=b[d][1]-a.offset.top;(c.x==="left"&&h>=f||c.x==="right"&&h<=f||c.x==="center"&&(h<f||h>a.width-f)||c.y==="top"&&i>=g||c.y==="bottom"&&i<=g||c.y==="center"&&(i<g||i>a.height-g))&&b.splice(d,1)}}return{left:b[0][0],
top:b[0][1]}}a.jquery||(a=b(a));var f=a.attr("shape").toLowerCase(),g=a.attr("coords").split(","),h=[],a=b('img[usemap="#'+a.parent("map").attr("name")+'"]'),j=a.offset(),i={width:0,height:0,offset:{top:1E10,right:0,bottom:0,left:1E10}},k=0,q=0;j.left+=Math.ceil((a.outerWidth()-a.width())/2);j.top+=Math.ceil((a.outerHeight()-a.height())/2);if(f==="poly")for(k=g.length;k--;){q=[parseInt(g[--k],10),parseInt(g[k+1],10)];if(q[0]>i.offset.right)i.offset.right=q[0];if(q[0]<i.offset.left)i.offset.left=q[0];
if(q[1]>i.offset.bottom)i.offset.bottom=q[1];if(q[1]<i.offset.top)i.offset.top=q[1];h.push(q)}else h=b.map(g,function(a){return parseInt(a,10)});switch(f){case "rect":i={width:Math.abs(h[2]-h[0]),height:Math.abs(h[3]-h[1]),offset:{left:h[0],top:h[1]}};break;case "circle":i={width:h[2]+2,height:h[2]+2,offset:{left:h[0],top:h[1]}};break;case "poly":b.extend(i,{width:Math.abs(i.offset.right-i.offset.left),height:Math.abs(i.offset.bottom-i.offset.top)});if(c.string()==="centercenter")i.offset={left:i.offset.left+
i.width/2,top:i.offset.top+i.height/2};else if(i.offset=e(i,h.slice(),c),d&&(d[0]==="flip"||d[1]==="flip"))i.flipoffset=e(i,h.slice(),{x:c.x==="left"?"right":c.x==="right"?"left":"center",y:c.y==="top"?"bottom":c.y==="bottom"?"top":"center"}),i.flipoffset.left-=i.offset.left,i.flipoffset.top-=i.offset.top;i.width=i.height=0}i.offset.left+=j.left;i.offset.top+=j.top;return i};m.tip=function(a){var b=a.plugins.tip;return"object"===typeof b?b:a.plugins.tip=new k(a)};m.tip.initialize="render";m.tip.sanitize=
function(a){var b=a.style;if(b&&"tip"in b){b=a.style.tip;if(typeof b!=="object")a.style.tip={corner:b};if(!/string|boolean/i.test(typeof b.corner))b.corner=r;typeof b.width!=="number"&&delete b.width;typeof b.height!=="number"&&delete b.height;typeof b.border!=="number"&&b.border!==r&&delete b.border;typeof b.offset!=="number"&&delete b.offset}};b.extend(r,j.defaults,{style:{tip:{corner:r,mimic:l,width:6,height:6,border:r,offset:0}}});m.svg=function(a){var c=b(document),d=a[0],a={width:0,height:0,
offset:{top:1E10,left:1E10}},e,f,g;if(d.getBBox&&d.parentNode){e=d.getBBox();f=d.getScreenCTM();d=d.farthestViewportElement||d;if(!d.createSVGPoint)return a;d=d.createSVGPoint();d.x=e.x;d.y=e.y;g=d.matrixTransform(f);a.offset.left=g.x;a.offset.top=g.y;d.x+=e.width;d.y+=e.height;g=d.matrixTransform(f);a.width=g.x-a.offset.left;a.height=g.y-a.offset.top;a.offset.left+=c.scrollLeft();a.offset.top+=c.scrollTop()}return a};m.modal=function(a){var b=a.plugins.modal;return"object"===typeof b?b:a.plugins.modal=
new i(a)};m.modal.initialize="render";m.modal.sanitize=function(a){if(a.show)if(typeof a.show.modal!=="object")a.show.modal={on:!!a.show.modal};else if(typeof a.show.modal.on==="undefined")a.show.modal.on=r};m.modal.zindex=j.zindex-=200;b.extend(r,j.defaults,{show:{modal:{on:l,effect:r,blur:r,escape:r}}});m.bgiframe=function(a){var c=b.browser,d=a.plugins.bgiframe;return b("select, object").length<1||!(c.msie&&c.version.charAt(0)==="6")?l:"object"===typeof d?d:a.plugins.bgiframe=new x(a)};m.bgiframe.initialize=
"render"})(jQuery,window);
(function(b){function d(){url=location.href;return hashtag=url.indexOf("#!")!=-1?decodeURI(url.substring(url.indexOf("#!")+2,url.length)):false}function f(a,b){var a=a.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]"),c=RegExp("[\\?&]"+a+"=([^&#]*)").exec(b);return c==null?"":c[1]}b.prettyPhoto={version:"3.1.3"};b.fn.prettyPhoto=function(a){function h(){b(".pp_loaderIcon").hide();projectedTop=scroll_pos.scrollTop+(z/2-j.containerHeight/2);projectedTop<0&&(projectedTop=0);$ppt.fadeTo(settings.animation_speed,1);
$pp_pic_holder.find(".pp_content").animate({height:j.contentHeight,width:j.contentWidth},settings.animation_speed);$pp_pic_holder.animate({top:projectedTop,left:v/2-j.containerWidth/2,width:j.containerWidth},settings.animation_speed,function(){$pp_pic_holder.find(".pp_hoverContainer,#fullResImage").height(j.height).width(j.width);$pp_pic_holder.find(".pp_fade").fadeIn(settings.animation_speed);isSet&&k(pp_images[set_position])=="image"?$pp_pic_holder.find(".pp_hoverContainer").show():$pp_pic_holder.find(".pp_hoverContainer").hide();
j.resized?b("a.pp_expand,a.pp_contract").show():b("a.pp_expand").hide();settings.autoplay_slideshow&&!O&&!m&&b.prettyPhoto.startSlideshow();settings.changepicturecallback();m=true});isSet&&settings.overlay_gallery&&k(pp_images[set_position])=="image"&&settings.ie6_fallback&&!(b.browser.msie&&parseInt(b.browser.version)==6)?(itemWidth=57,navWidth=settings.theme=="facebook"||settings.theme=="pp_default"?50:30,itemsPerPage=Math.floor((j.containerWidth-100-navWidth)/itemWidth),itemsPerPage=itemsPerPage<
pp_images.length?itemsPerPage:pp_images.length,totalPage=Math.ceil(pp_images.length/itemsPerPage)-1,totalPage==0?(navWidth=0,$pp_gallery.find(".pp_arrow_next,.pp_arrow_previous").hide()):$pp_gallery.find(".pp_arrow_next,.pp_arrow_previous").show(),galleryWidth=itemsPerPage*itemWidth,fullGalleryWidth=pp_images.length*itemWidth,$pp_gallery.css("margin-left",-(galleryWidth/2+navWidth/2)).find("div:first").width(galleryWidth+5).find("ul").width(fullGalleryWidth).find("li.selected").removeClass("selected"),
goToPage=Math.floor(set_position/itemsPerPage)<totalPage?Math.floor(set_position/itemsPerPage):totalPage,b.prettyPhoto.changeGalleryPage(goToPage),$pp_gallery_li.filter(":eq("+set_position+")").addClass("selected")):$pp_pic_holder.find(".pp_content").unbind("mouseenter mouseleave")}function c(a){$pp_pic_holder.find("#pp_full_res object,#pp_full_res embed").css("visibility","hidden");$pp_pic_holder.find(".pp_fade").fadeOut(settings.animation_speed,function(){b(".pp_loaderIcon").show();a()})}function e(a){a>
1?b(".pp_nav").show():b(".pp_nav").hide()}function s(a,b){resized=false;n(a,b);imageWidth=a;imageHeight=b;if((g>v||A>z)&&doresize&&settings.allow_resize&&!B){for(resized=true,fitting=false;!fitting;)g>v?(imageWidth=v-200,imageHeight=b/a*imageWidth):A>z?(imageHeight=z-200,imageWidth=a/b*imageHeight):fitting=true,A=imageHeight,g=imageWidth;n(imageWidth,imageHeight);(g>v||A>z)&&s(g,A)}return{width:Math.floor(imageWidth),height:Math.floor(imageHeight),containerHeight:Math.floor(A),containerWidth:Math.floor(g)+
settings.horizontal_padding*2,contentHeight:Math.floor(u),contentWidth:Math.floor(U),resized:resized}}function n(a,c){a=parseFloat(a);c=parseFloat(c);$pp_details=$pp_pic_holder.find(".pp_details");$pp_details.width(a);detailsHeight=parseFloat($pp_details.css("marginTop"))+parseFloat($pp_details.css("marginBottom"));$pp_details=$pp_details.clone().addClass(settings.theme).width(a).appendTo(b("body")).css({position:"absolute",top:-1E4});detailsHeight+=$pp_details.height();detailsHeight=detailsHeight<=
34?36:detailsHeight;b.browser.msie&&b.browser.version==7&&(detailsHeight+=8);$pp_details.remove();$pp_title=$pp_pic_holder.find(".ppt");$pp_title.width(a);titleHeight=parseFloat($pp_title.css("marginTop"))+parseFloat($pp_title.css("marginBottom"));$pp_title=$pp_title.clone().appendTo(b("body")).css({position:"absolute",top:-1E4});titleHeight+=$pp_title.height();$pp_title.remove();u=c+detailsHeight;U=a;A=u+titleHeight+$pp_pic_holder.find(".pp_top").height()+$pp_pic_holder.find(".pp_bottom").height();
g=a}function k(a){return a.match(/youtube\.com\/watch/i)||a.match(/youtu\.be/i)?"youtube":a.match(/vimeo\.com/i)?"vimeo":a.match(/\b.mov\b/i)?"quicktime":a.match(/\b.swf\b/i)?"flash":a.match(/\biframe=true\b/i)?"iframe":a.match(/\bajax=true\b/i)?"ajax":a.match(/\bcustom=true\b/i)?"custom":a.substr(0,1)=="#"?"inline":"image"}function i(){doresize&&typeof $pp_pic_holder!="undefined"&&(scroll_pos=x(),contentHeight=$pp_pic_holder.height(),contentwidth=$pp_pic_holder.width(),projectedTop=z/2+scroll_pos.scrollTop-
contentHeight/2,projectedTop<0&&(projectedTop=0),contentHeight>z||$pp_pic_holder.css({top:projectedTop,left:v/2+scroll_pos.scrollLeft-contentwidth/2}))}function x(){if(self.pageYOffset)return{scrollTop:self.pageYOffset,scrollLeft:self.pageXOffset};else if(document.documentElement&&document.documentElement.scrollTop)return{scrollTop:document.documentElement.scrollTop,scrollLeft:document.documentElement.scrollLeft};else if(document.body)return{scrollTop:document.body.scrollTop,scrollLeft:document.body.scrollLeft}}
function r(){settings.social_tools&&(facebook_like_link=settings.social_tools.replace("{location_href}",encodeURIComponent(location.href)));settings.markup=settings.markup.replace("{pp_social}",settings.social_tools?facebook_like_link:"");b("body").append(settings.markup);$pp_pic_holder=b(".pp_pic_holder");$ppt=b(".ppt");$pp_overlay=b("div.pp_overlay");if(isSet&&settings.overlay_gallery){currentGalleryPage=0;toInject="";for(var a=0;a<pp_images.length;a++)pp_images[a].match(/\b(jpg|jpeg|png|gif)\b/gi)?
(classname="",img_src=pp_images[a]):(classname="default",img_src=""),toInject+="<li class='"+classname+"'><a href='#'><img src='"+img_src+"' width='50' alt='' /></a></li>";toInject=settings.gallery_markup.replace(/{gallery}/g,toInject);$pp_pic_holder.find("#pp_full_res").after(toInject);$pp_gallery=b(".pp_pic_holder .pp_gallery");$pp_gallery_li=$pp_gallery.find("li");$pp_gallery.find(".pp_arrow_next").click(function(){b.prettyPhoto.changeGalleryPage("next");b.prettyPhoto.stopSlideshow();return false});
$pp_gallery.find(".pp_arrow_previous").click(function(){b.prettyPhoto.changeGalleryPage("previous");b.prettyPhoto.stopSlideshow();return false});$pp_pic_holder.find(".pp_content").hover(function(){$pp_pic_holder.find(".pp_gallery:not(.disabled)").fadeIn()},function(){$pp_pic_holder.find(".pp_gallery:not(.disabled)").fadeOut()});itemWidth=57;$pp_gallery_li.each(function(a){b(this).find("a").click(function(){b.prettyPhoto.changePage(a);b.prettyPhoto.stopSlideshow();return false})})}settings.slideshow&&
($pp_pic_holder.find(".pp_nav").prepend('<a href="#" class="pp_play">Play</a>'),$pp_pic_holder.find(".pp_nav .pp_play").click(function(){b.prettyPhoto.startSlideshow();return false}));$pp_pic_holder.attr("class","pp_pic_holder "+settings.theme);$pp_overlay.css({opacity:0,height:b(document).height(),width:b(window).width()}).bind("click",function(){settings.modal||b.prettyPhoto.close()});b("a.pp_close").bind("click",function(){b.prettyPhoto.close();return false});b("a.pp_expand").bind("click",function(){b(this).hasClass("pp_expand")?
(b(this).removeClass("pp_expand").addClass("pp_contract"),doresize=false):(b(this).removeClass("pp_contract").addClass("pp_expand"),doresize=true);c(function(){b.prettyPhoto.open()});return false});$pp_pic_holder.find(".pp_previous, .pp_nav .pp_arrow_previous").bind("click",function(){b.prettyPhoto.changePage("previous");b.prettyPhoto.stopSlideshow();return false});$pp_pic_holder.find(".pp_next, .pp_nav .pp_arrow_next").bind("click",function(){b.prettyPhoto.changePage("next");b.prettyPhoto.stopSlideshow();
return false});i()}var a=jQuery.extend({animation_speed:"fast",slideshow:5E3,autoplay_slideshow:false,opacity:0.8,show_title:true,allow_resize:true,default_width:500,default_height:344,counter_separator_label:"/",theme:"pp_default",horizontal_padding:20,hideflash:false,wmode:"opaque",autoplay:true,modal:false,deeplinking:true,overlay_gallery:true,keyboard_shortcuts:true,changepicturecallback:function(){},callback:function(){},ie6_fallback:true,markup:'<div class="pp_pic_holder"> <div class="ppt">&nbsp;</div> <div class="pp_top"> <div class="pp_left"></div> <div class="pp_middle"></div> <div class="pp_right"></div> </div> <div class="pp_content_container"> <div class="pp_left"> <div class="pp_right"> <div class="pp_content"> <div class="pp_loaderIcon"></div> <div class="pp_fade"> <a href="#" class="pp_expand" title="Expand the image">Expand</a> <div class="pp_hoverContainer"> <a class="pp_next" href="#">next</a> <a class="pp_previous" href="#">previous</a> </div> <div id="pp_full_res"></div> <div class="pp_details"> <div class="pp_nav"> <a href="#" class="pp_arrow_previous">Previous</a> <p class="currentTextHolder">0/0</p> <a href="#" class="pp_arrow_next">Next</a> </div> <p class="pp_description"></p> <div class="pp_social">{pp_social}</div> <a class="pp_close" href="#">Close</a> </div> </div> </div> </div> </div> </div> <div class="pp_bottom"> <div class="pp_left"></div> <div class="pp_middle"></div> <div class="pp_right"></div> </div> </div> <div class="pp_overlay"></div>',
gallery_markup:'<div class="pp_gallery"> <a href="#" class="pp_arrow_previous">Previous</a> <div> <ul> {gallery} </ul> </div> <a href="#" class="pp_arrow_next">Next</a> </div>',image_markup:'<img id="fullResImage" src="{path}" />',flash_markup:'<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="{width}" height="{height}"><param name="wmode" value="{wmode}" /><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="{path}" /><embed src="{path}" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="{width}" height="{height}" wmode="{wmode}"></embed></object>',
quicktime_markup:'<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" height="{height}" width="{width}"><param name="src" value="{path}"><param name="autoplay" value="{autoplay}"><param name="type" value="video/quicktime"><embed src="{path}" height="{height}" width="{width}" autoplay="{autoplay}" type="video/quicktime" pluginspage="http://www.apple.com/quicktime/download/"></embed></object>',iframe_markup:'<iframe src ="{path}" width="{width}" height="{height}" frameborder="no"></iframe>',
inline_markup:'<div class="pp_inline">{content}</div>',custom_markup:"",social_tools:'<div class="twitter"><a href="http://twitter.com/share" class="twitter-share-button" data-count="none">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"><\/script></div><div class="facebook"><iframe src="http://www.facebook.com/plugins/like.php?locale=en_US&href={location_href}&amp;layout=button_count&amp;show_faces=true&amp;width=500&amp;action=like&amp;font&amp;colorscheme=light&amp;height=23" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:500px; height:23px;" allowTransparency="true"></iframe></div>'},
a),l=this,B=false,j,m,u,U,A,g,z=b(window).height(),v=b(window).width(),O;doresize=true;scroll_pos=x();b(window).unbind("resize.prettyphoto").bind("resize.prettyphoto",function(){i();z=b(window).height();v=b(window).width();typeof $pp_overlay!="undefined"&&$pp_overlay.height(b(document).height()).width(v)});a.keyboard_shortcuts&&b(document).unbind("keydown.prettyphoto").bind("keydown.prettyphoto",function(a){if(typeof $pp_pic_holder!="undefined"&&$pp_pic_holder.is(":visible"))switch(a.keyCode){case 37:b.prettyPhoto.changePage("previous");
a.preventDefault();break;case 39:b.prettyPhoto.changePage("next");a.preventDefault();break;case 27:settings.modal||b.prettyPhoto.close(),a.preventDefault()}});b.prettyPhoto.initialize=function(){settings=a;if(settings.theme=="pp_default")settings.horizontal_padding=16;if(settings.ie6_fallback&&b.browser.msie&&parseInt(b.browser.version)==6)settings.theme="light_square";theRel=b(this).attr("rel");galleryRegExp=/\[(?:.*)\]/;pp_images=(isSet=galleryRegExp.exec(theRel)?true:false)?jQuery.map(l,function(a){if(b(a).attr("rel").indexOf(theRel)!=
-1)return b(a).attr("href")}):b.makeArray(b(this).attr("href"));pp_titles=isSet?jQuery.map(l,function(a){if(b(a).attr("rel").indexOf(theRel)!=-1)return b(a).find("img").attr("alt")?b(a).find("img").attr("alt"):""}):b.makeArray(b(this).find("img").attr("alt"));pp_descriptions=isSet?jQuery.map(l,function(a){if(b(a).attr("rel").indexOf(theRel)!=-1)return b(a).attr("title")?b(a).attr("title"):""}):b.makeArray(b(this).attr("title"));if(pp_images.length>30)settings.overlay_gallery=false;set_position=jQuery.inArray(b(this).attr("href"),
pp_images);rel_index=isSet?set_position:b("a[rel^='"+theRel+"']").index(b(this));r(this);settings.allow_resize&&b(window).bind("scroll.prettyphoto",function(){i()});b.prettyPhoto.open();return false};b.prettyPhoto.open=function(c,d,g){if(typeof settings=="undefined"){settings=a;if(b.browser.msie&&b.browser.version==6)settings.theme="light_square";pp_images=b.makeArray(c);pp_titles=d?b.makeArray(d):b.makeArray("");pp_descriptions=g?b.makeArray(g):b.makeArray("");isSet=pp_images.length>1?true:false;
set_position=0;r(c.target)}b.browser.msie&&b.browser.version==6&&b("select").css("visibility","hidden");settings.hideflash&&b("object,embed,iframe[src*=youtube],iframe[src*=vimeo]").css("visibility","hidden");e(b(pp_images).size());b(".pp_loaderIcon").show();if(settings.deeplinking&&typeof theRel!="undefined")location.hash="!"+theRel+"/"+rel_index+"/";settings.social_tools&&(facebook_like_link=settings.social_tools.replace("{location_href}",encodeURIComponent(location.href)),$pp_pic_holder.find(".pp_social").html(facebook_like_link));
$ppt.is(":hidden")&&$ppt.css("opacity",0).show();$pp_overlay.show().fadeTo(settings.animation_speed,settings.opacity);$pp_pic_holder.find(".currentTextHolder").text(set_position+1+settings.counter_separator_label+b(pp_images).size());pp_descriptions[set_position]!=""?$pp_pic_holder.find(".pp_description").show().html(unescape(pp_descriptions[set_position])):$pp_pic_holder.find(".pp_description").hide();movie_width=parseFloat(f("width",pp_images[set_position]))?f("width",pp_images[set_position]):settings.default_width.toString();
movie_height=parseFloat(f("height",pp_images[set_position]))?f("height",pp_images[set_position]):settings.default_height.toString();B=false;movie_height.indexOf("%")!=-1&&(movie_height=parseFloat(b(window).height()*parseFloat(movie_height)/100-150),B=true);movie_width.indexOf("%")!=-1&&(movie_width=parseFloat(b(window).width()*parseFloat(movie_width)/100-150),B=true);$pp_pic_holder.fadeIn(function(){settings.show_title&&pp_titles[set_position]!=""&&typeof pp_titles[set_position]!="undefined"?$ppt.html(unescape(pp_titles[set_position])):
$ppt.html("&nbsp;");imgPreloader="";skipInjection=false;switch(k(pp_images[set_position])){case "image":imgPreloader=new Image;nextImage=new Image;if(isSet&&set_position<b(pp_images).size()-1)nextImage.src=pp_images[set_position+1];prevImage=new Image;if(isSet&&pp_images[set_position-1])prevImage.src=pp_images[set_position-1];$pp_pic_holder.find("#pp_full_res")[0].innerHTML=settings.image_markup.replace(/{path}/g,pp_images[set_position]);imgPreloader.onload=function(){j=s(imgPreloader.width,imgPreloader.height);
h()};imgPreloader.onerror=function(){alert("Image cannot be loaded. Make sure the path is correct and image exist.");b.prettyPhoto.close()};imgPreloader.src=pp_images[set_position];break;case "youtube":j=s(movie_width,movie_height);movie_id=f("v",pp_images[set_position]);movie_id==""&&(movie_id=pp_images[set_position].split("youtu.be/"),movie_id=movie_id[1],movie_id.indexOf("?")>0&&(movie_id=movie_id.substr(0,movie_id.indexOf("?"))),movie_id.indexOf("&")>0&&(movie_id=movie_id.substr(0,movie_id.indexOf("&"))));
movie="http://www.youtube.com/embed/"+movie_id;f("rel",pp_images[set_position])?movie+="?rel="+f("rel",pp_images[set_position]):movie+="?rel=1";settings.autoplay&&(movie+="&autoplay=1");toInject=settings.iframe_markup.replace(/{width}/g,j.width).replace(/{height}/g,j.height).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,movie);break;case "vimeo":j=s(movie_width,movie_height);movie_id=pp_images[set_position];movie="http://player.vimeo.com/video/"+movie_id.match(/http:\/\/(www\.)?vimeo.com\/(\d+)/)[2]+
"?title=0&amp;byline=0&amp;portrait=0";settings.autoplay&&(movie+="&autoplay=1;");vimeo_width=j.width+"/embed/?moog_width="+j.width;toInject=settings.iframe_markup.replace(/{width}/g,vimeo_width).replace(/{height}/g,j.height).replace(/{path}/g,movie);break;case "quicktime":j=s(movie_width,movie_height);j.height+=15;j.contentHeight+=15;j.containerHeight+=15;toInject=settings.quicktime_markup.replace(/{width}/g,j.width).replace(/{height}/g,j.height).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,
pp_images[set_position]).replace(/{autoplay}/g,settings.autoplay);break;case "flash":j=s(movie_width,movie_height);flash_vars=pp_images[set_position];flash_vars=flash_vars.substring(pp_images[set_position].indexOf("flashvars")+10,pp_images[set_position].length);filename=pp_images[set_position];filename=filename.substring(0,filename.indexOf("?"));toInject=settings.flash_markup.replace(/{width}/g,j.width).replace(/{height}/g,j.height).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,filename+"?"+
flash_vars);break;case "iframe":j=s(movie_width,movie_height);frame_url=pp_images[set_position];frame_url=frame_url.substr(0,frame_url.indexOf("iframe")-1);toInject=settings.iframe_markup.replace(/{width}/g,j.width).replace(/{height}/g,j.height).replace(/{path}/g,frame_url);break;case "ajax":doresize=false;j=s(movie_width,movie_height);skipInjection=doresize=true;b.get(pp_images[set_position],function(a){toInject=settings.inline_markup.replace(/{content}/g,a);$pp_pic_holder.find("#pp_full_res")[0].innerHTML=
toInject;h()});break;case "custom":j=s(movie_width,movie_height);toInject=settings.custom_markup;break;case "inline":myClone=b(pp_images[set_position]).clone().append('<br clear="all" />').css({width:settings.default_width}).wrapInner('<div id="pp_full_res"><div class="pp_inline"></div></div>').appendTo(b("body")).show(),doresize=false,j=s(b(myClone).width(),b(myClone).height()),doresize=true,b(myClone).remove(),toInject=settings.inline_markup.replace(/{content}/g,b(pp_images[set_position]).html())}if(!imgPreloader&&
!skipInjection)$pp_pic_holder.find("#pp_full_res")[0].innerHTML=toInject,h()});return false};b.prettyPhoto.changePage=function(a){currentGalleryPage=0;a=="previous"?(set_position--,set_position<0&&(set_position=b(pp_images).size()-1)):a=="next"?(set_position++,set_position>b(pp_images).size()-1&&(set_position=0)):set_position=a;rel_index=set_position;doresize||(doresize=true);b(".pp_contract").removeClass("pp_contract").addClass("pp_expand");c(function(){b.prettyPhoto.open()})};b.prettyPhoto.changeGalleryPage=
function(a){a=="next"?(currentGalleryPage++,currentGalleryPage>totalPage&&(currentGalleryPage=0)):a=="previous"?(currentGalleryPage--,currentGalleryPage<0&&(currentGalleryPage=totalPage)):currentGalleryPage=a;slide_speed=a=="next"||a=="previous"?settings.animation_speed:0;slide_to=currentGalleryPage*itemsPerPage*itemWidth;$pp_gallery.find("ul").animate({left:-slide_to},slide_speed)};b.prettyPhoto.startSlideshow=function(){typeof O=="undefined"?($pp_pic_holder.find(".pp_play").unbind("click").removeClass("pp_play").addClass("pp_pause").click(function(){b.prettyPhoto.stopSlideshow();
return false}),O=setInterval(b.prettyPhoto.startSlideshow,settings.slideshow)):b.prettyPhoto.changePage("next")};b.prettyPhoto.stopSlideshow=function(){$pp_pic_holder.find(".pp_pause").unbind("click").removeClass("pp_pause").addClass("pp_play").click(function(){b.prettyPhoto.startSlideshow();return false});clearInterval(O);O=void 0};b.prettyPhoto.close=function(){$pp_overlay.is(":animated")||(b.prettyPhoto.stopSlideshow(),$pp_pic_holder.stop().find("object,embed").css("visibility","hidden"),b("div.pp_pic_holder,div.ppt,.pp_fade").fadeOut(settings.animation_speed,
function(){b(this).remove()}),$pp_overlay.fadeOut(settings.animation_speed,function(){b.browser.msie&&b.browser.version==6&&b("select").css("visibility","visible");settings.hideflash&&b("object,embed,iframe[src*=youtube],iframe[src*=vimeo]").css("visibility","visible");b(this).remove();b(window).unbind("scroll.prettyphoto");url=location.href;if(hashtag=url.indexOf("#!prettyPhoto")?true:false)location.hash="!prettyPhoto";settings.callback();doresize=true;m=false;delete settings}))};!pp_alreadyInitialized&&
d()&&(pp_alreadyInitialized=true,hashRel=hashIndex=d(),hashIndex=hashIndex.substring(hashIndex.indexOf("/")+1,hashIndex.length-1),hashRel=hashRel.substring(0,hashRel.indexOf("/")),setTimeout(function(){b("a[rel^='"+hashRel+"']:eq("+hashIndex+")").trigger("click")},50));return this.unbind("click.prettyphoto").bind("click.prettyphoto",b.prettyPhoto.initialize)}})(jQuery);var pp_alreadyInitialized=false;
