/**
 *  
 */
(function(a){function b(){if(a.fn.ajaxSubmit.debug&&window.console&&window.console.log)window.console.log("[jquery.form] "+Array.prototype.join.call(arguments,""))}a.fn.ajaxSubmit=function(c){function q(){function s(a,b){if(window.ActiveXObject){b=new ActiveXObject("Microsoft.XMLDOM");b.async="false";b.loadXML(a)}else b=(new DOMParser).parseFromString(a,"text/xml");return b&&b.documentElement&&b.documentElement.tagName!="parsererror"?b:null}function r(){if(m++)return;i.detachEvent?i.detachEvent("onload",r):i.removeEventListener("load",r,false);var c=true;try{if(n)throw"timeout";var d,f;f=i.contentWindow?i.contentWindow.document:i.contentDocument?i.contentDocument:i.document;var g=e.dataType=="xml"||f.XMLDocument||a.isXMLDoc(f);b("isXml="+g);if(!g&&(f.body==null||f.body.innerHTML=="")){if(--q){m=0;setTimeout(r,100);return}b("Could not access iframe DOM after 50 tries.");return}k.responseText=f.body?f.body.innerHTML:null;k.responseXML=f.XMLDocument?f.XMLDocument:f;k.getResponseHeader=function(a){var b={"content-type":e.dataType};return b[a]};if(e.dataType=="json"||e.dataType=="script"){var j=f.getElementsByTagName("textarea")[0];if(j)k.responseText=j.value;else{var o=f.getElementsByTagName("pre")[0];if(o)k.responseText=o.innerHTML}}else if(e.dataType=="xml"&&!k.responseXML&&k.responseText!=null){k.responseXML=s(k.responseText)}d=a.httpData(k,e.dataType)}catch(p){c=false;a.handleError(e,k,"error",p)}if(c){e.success(d,"success");if(l)a.event.trigger("ajaxSuccess",[k,e])}if(l)a.event.trigger("ajaxComplete",[k,e]);if(l&&!--a.active)a.event.trigger("ajaxStop");if(e.complete)e.complete(k,c?"success":"error");setTimeout(function(){h.remove();k.responseXML=null},100)}var d=j[0];if(a(":input[name=submit]",d).length){alert('Error: Form elements must not be named "submit".');return}var e=a.extend({},a.ajaxSettings,c);var f=a.extend(true,{},a.extend(true,{},a.ajaxSettings),e);var g="jqFormIO"+(new Date).getTime();var h=a('<iframe id="'+g+'" name="'+g+'" src="'+e.iframeSrc+'" />');var i=h[0];h.css({position:"absolute",top:"-1000px",left:"-1000px"});var k={aborted:0,responseText:null,responseXML:null,status:0,statusText:"n/a",getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){},abort:function(){this.aborted=1;h.attr("src",e.iframeSrc)}};var l=e.global;if(l&&!(a.active++))a.event.trigger("ajaxStart");if(l)a.event.trigger("ajaxSend",[k,e]);if(f.beforeSend&&f.beforeSend(k,f)===false){f.global&&a.active--;return}if(k.aborted)return;var m=0;var n=0;var o=d.clk;if(o){var p=o.name;if(p&&!o.disabled){c.extraData=c.extraData||{};c.extraData[p]=o.value;if(o.type=="image"){c.extraData[name+".x"]=d.clk_x;c.extraData[name+".y"]=d.clk_y}}}setTimeout(function(){var b=j.attr("target"),f=j.attr("action");d.setAttribute("target",g);if(d.getAttribute("method")!="POST")d.setAttribute("method","POST");if(d.getAttribute("action")!=e.url)d.setAttribute("action",e.url);if(!c.skipEncodingOverride){j.attr({encoding:"multipart/form-data",enctype:"multipart/form-data"})}if(e.timeout)setTimeout(function(){n=true;r()},e.timeout);var k=[];try{if(c.extraData)for(var l in c.extraData)k.push(a('<input type="hidden" name="'+l+'" value="'+c.extraData[l]+'" />').appendTo(d)[0]);h.appendTo("body");i.attachEvent?i.attachEvent("onload",r):i.addEventListener("load",r,false);d.submit()}finally{d.setAttribute("action",f);b?d.setAttribute("target",b):j.removeAttr("target");a(k).remove()}},10);var q=50;}if(!this.length){b("ajaxSubmit: skipping submit process - no element selected");return this}if(typeof c=="function")c={success:c};var d=a.trim(this.attr("action"));if(d){d=(d.match(/^([^#]+)/)||[])[1]}d=d||window.location.href||"";c=a.extend({url:d,type:this.attr("method")||"GET",iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank"},c||{});var e={};this.trigger("form-pre-serialize",[this,c,e]);if(e.veto){b("ajaxSubmit: submit vetoed via form-pre-serialize trigger");return this}if(c.beforeSerialize&&c.beforeSerialize(this,c)===false){b("ajaxSubmit: submit aborted via beforeSerialize callback");return this}var f=this.formToArray(c.semantic);if(c.data){c.extraData=c.data;for(var g in c.data){if(c.data[g]instanceof Array){for(var h in c.data[g])f.push({name:g,value:c.data[g][h]})}else f.push({name:g,value:c.data[g]})}}if(c.beforeSubmit&&c.beforeSubmit(f,this,c)===false){b("ajaxSubmit: submit aborted via beforeSubmit callback");return this}this.trigger("form-submit-validate",[f,this,c,e]);if(e.veto){b("ajaxSubmit: submit vetoed via form-submit-validate trigger");return this}var i=a.param(f);if(c.type.toUpperCase()=="GET"){c.url+=(c.url.indexOf("?")>=0?"&":"?")+i;c.data=null}else c.data=i;var j=this,k=[];if(c.resetForm)k.push(function(){j.resetForm()});if(c.clearForm)k.push(function(){j.clearForm()});if(!c.dataType&&c.target){var l=c.success||function(){};k.push(function(b){a(c.target).html(b).each(l,arguments)})}else if(c.success)k.push(c.success);c.success=function(a,b){for(var d=0,e=k.length;d<e;d++)k[d].apply(c,[a,b,j])};var m=a("input:file",this).fieldValue();var n=false;for(var o=0;o<m.length;o++)if(m[o])n=true;var p=false;if(m.length&&c.iframe!==false||c.iframe||n||p){if(c.closeKeepAlive)a.get(c.closeKeepAlive,q);else q()}else a.ajax(c);this.trigger("form-submit-notify",[this,c]);return this;};a.fn.ajaxForm=function(b){return this.ajaxFormUnbind().bind("submit.form-plugin",function(){a(this).ajaxSubmit(b);return false}).bind("click.form-plugin",function(b){var c=b.target;var d=a(c);if(!d.is(":submit,input:image")){var e=d.closest(":submit");if(e.length==0)return;c=e[0]}var f=this;f.clk=c;if(c.type=="image"){if(b.offsetX!=undefined){f.clk_x=b.offsetX;f.clk_y=b.offsetY}else if(typeof a.fn.offset=="function"){var g=d.offset();f.clk_x=b.pageX-g.left;f.clk_y=b.pageY-g.top}else{f.clk_x=b.pageX-c.offsetLeft;f.clk_y=b.pageY-c.offsetTop}}setTimeout(function(){f.clk=f.clk_x=f.clk_y=null},100)})};a.fn.ajaxFormUnbind=function(){return this.unbind("submit.form-plugin click.form-plugin")};a.fn.formToArray=function(b){var c=[];if(this.length==0)return c;var d=this[0];var e=b?d.getElementsByTagName("*"):d.elements;if(!e)return c;for(var f=0,g=e.length;f<g;f++){var h=e[f];var i=h.name;if(!i)continue;if(b&&d.clk&&h.type=="image"){if(!h.disabled&&d.clk==h){c.push({name:i,value:a(h).val()});c.push({name:i+".x",value:d.clk_x},{name:i+".y",value:d.clk_y})}continue}var j=a.fieldValue(h,true);if(j&&j.constructor==Array){for(var k=0,l=j.length;k<l;k++)c.push({name:i,value:j[k]})}else if(j!==null&&typeof j!="undefined")c.push({name:i,value:j})}if(!b&&d.clk){var m=a(d.clk),n=m[0],i=n.name;if(i&&!n.disabled&&n.type=="image"){c.push({name:i,value:m.val()});c.push({name:i+".x",value:d.clk_x},{name:i+".y",value:d.clk_y})}}return c};a.fn.formSerialize=function(b){return a.param(this.formToArray(b))};a.fn.fieldSerialize=function(b){var c=[];this.each(function(){var d=this.name;if(!d)return;var e=a.fieldValue(this,b);if(e&&e.constructor==Array){for(var f=0,g=e.length;f<g;f++)c.push({name:d,value:e[f]})}else if(e!==null&&typeof e!="undefined")c.push({name:this.name,value:e})});return a.param(c)};a.fn.fieldValue=function(b){for(var c=[],d=0,e=this.length;d<e;d++){var f=this[d];var g=a.fieldValue(f,b);if(g===null||typeof g=="undefined"||g.constructor==Array&&!g.length)continue;g.constructor==Array?a.merge(c,g):c.push(g)}return c};a.fieldValue=function(a,b){var c=a.name,d=a.type,e=a.tagName.toLowerCase();if(typeof b=="undefined")b=true;if(b&&(!c||a.disabled||d=="reset"||d=="button"||(d=="checkbox"||d=="radio")&&!a.checked||(d=="submit"||d=="image")&&a.form&&a.form.clk!=a||e=="select"&&a.selectedIndex==-1))return null;if(e=="select"){var f=a.selectedIndex;if(f<0)return null;var g=[],h=a.options;var i=d=="select-one";var j=i?f+1:h.length;for(var k=i?f:0;k<j;k++){var l=h[k];if(l.selected){var m=l.value;if(!m)m=l.attributes&&l.attributes["value"]&&!l.attributes["value"].specified?l.text:l.value;if(i)return m;g.push(m)}}return g}return a.value};a.fn.clearForm=function(){return this.each(function(){a("input,select,textarea",this).clearFields()})};a.fn.clearFields=a.fn.clearInputs=function(){return this.each(function(){var a=this.type,b=this.tagName.toLowerCase();if(a=="text"||a=="password"||b=="textarea")this.value="";else if(a=="checkbox"||a=="radio")this.checked=false;else if(b=="select")this.selectedIndex=-1})};a.fn.resetForm=function(){return this.each(function(){if(typeof this.reset=="function"||typeof this.reset=="object"&&!this.reset.nodeType)this.reset()})};a.fn.enable=function(a){if(a==undefined)a=true;return this.each(function(){this.disabled=!a})};a.fn.selected=function(b){if(b==undefined)b=true;return this.each(function(){var c=this.type;if(c=="checkbox"||c=="radio")this.checked=b;else if(this.tagName.toLowerCase()=="option"){var d=a(this).parent("select");if(b&&d[0]&&d[0].type=="select-one"){d.find("option").selected(false)}this.selected=b}})};})(jQuery);var grayscale=function(){var a={colorProps:["color","backgroundColor","borderBottomColor","borderTopColor","borderLeftColor","borderRightColor","backgroundImage"],externalImageHandler:{init:function(a,b){if(a.nodeName.toLowerCase()==="img"){}else{d(a).backgroundImageSRC=b;a.style.backgroundImage=""}},reset:function(a){if(a.nodeName.toLowerCase()==="img"){}else{a.style.backgroundImage="url("+(d(a).backgroundImageSRC||"")+")"}}}},b=function(){try{window.console.log.apply(console,arguments)}catch(a){}},c=function(a){return(new RegExp("https?://(?!"+window.location.hostname+")")).test(a)},d=function(){var a=[0],b="data"+ +(new Date);return function(c){var d=c[b],e=a.length;if(!d){d=c[b]=e;a[d]={}}return a[d]}}(),e=function(a,b,c){var f=document.createElement("canvas"),h=f.getContext("2d"),i=a.naturalHeight||a.offsetHeight||a.height,j=a.naturalWidth||a.offsetWidth||a.width,k;f.height=i;f.width=j;h.drawImage(a,0,0);try{k=h.getImageData(0,0,j,i)}catch(l){}if(b){e.preparing=true;var m=0;(function(){if(!e.preparing){return}if(m===i){h.putImageData(k,0,0,0,0,j,i);c?d(c).BGdataURL=f.toDataURL():d(a).dataURL=f.toDataURL()}for(var b=0;b<j;b++){var l=(m*j+b)*4;k.data[l]=k.data[l+1]=k.data[l+2]=g(k.data[l],k.data[l+1],k.data[l+2])}m++;setTimeout(arguments.callee,0)})();return}else{e.preparing=false}for(var m=0;m<i;m++){for(var n=0;n<j;n++){var o=(m*j+n)*4;k.data[o]=k.data[o+1]=k.data[o+2]=g(k.data[o],k.data[o+1],k.data[o+2])}}h.putImageData(k,0,0,0,0,j,i);return f},f=function(a,b){var c=document.defaultView&&document.defaultView.getComputedStyle?document.defaultView.getComputedStyle(a,null)[b]:a.currentStyle[b];if(c&&/^#[A-F0-9]/i.test(c)){var d=c.match(/[A-F0-9]{2}/ig);c="rgb("+parseInt(d[0],16)+","+parseInt(d[1],16)+","+parseInt(d[2],16)+")"}return c},g=function(a,b,c){return parseInt(.2125*a+.7154*b+.0721*c,10)},h=function(a){var b=Array.prototype.slice.call(a.getElementsByTagName("*"));b.unshift(a);return b};var i=function(b){if(b&&b[0]&&b.length&&b[0].nodeName){var j=Array.prototype.slice.call(b),k=-1,l=j.length;while(++k<l){i.call(this,j[k])}return}b=b||document.documentElement;if(!document.createElement("canvas").getContext){b.style.filter="progid:DXImageTransform.Microsoft.BasicImage(grayscale=1)";b.style.zoom=1;return}var m=h(b),n=-1,o=m.length;while(++n<o){var p=m[n];if(p.nodeName.toLowerCase()==="img"){var q=p.getAttribute("src");if(!q){continue}if(c(q)){a.externalImageHandler.init(p,q)}else{d(p).realSRC=q;try{p.src=d(p).dataURL||e(p).toDataURL()}catch(r){a.externalImageHandler.init(p,q)}}}else{for(var s=0,t=a.colorProps.length;s<t;s++){var u=a.colorProps[s],v=f(p,u);if(!v){continue}if(p.style[u]){d(p)[u]=v}if(v.substring(0,4)==="rgb("){var w=g.apply(null,v.match(/\d+/g));p.style[u]=v="rgb("+w+","+w+","+w+")";continue}if(v.indexOf("url(")>-1){var x=/\(['"]?(.+?)['"]?\)/,y=v.match(x)[1];if(c(y)){a.externalImageHandler.init(p,y);d(p).externalBG=true;continue}try{var z=d(p).BGdataURL||function(){var a=document.createElement("img");a.src=y;return e(a).toDataURL()}();p.style[u]=v.replace(x,function(a,b){return"("+z+")"})}catch(r){a.externalImageHandler.init(p,y)}}}}}};i.reset=function(b){if(b&&b[0]&&b.length&&b[0].nodeName){var e=Array.prototype.slice.call(b),f=-1,g=e.length;while(++f<g){i.reset.call(this,e[f])}return}b=b||document.documentElement;if(!document.createElement("canvas").getContext){b.style.filter="progid:DXImageTransform.Microsoft.BasicImage(grayscale=0)";return}var j=h(b),k=-1,l=j.length;while(++k<l){var m=j[k];if(m.nodeName.toLowerCase()==="img"){var n=m.getAttribute("src");if(c(n)){a.externalImageHandler.reset(m,n)}m.src=d(m).realSRC||n}else{for(var o=0,p=a.colorProps.length;o<p;o++){if(d(m).externalBG){a.externalImageHandler.reset(m)}var q=a.colorProps[o];m.style[q]=d(m)[q]||""}}}};i.prepare=function(a){if(a&&a[0]&&a.length&&a[0].nodeName){var b=Array.prototype.slice.call(a),g=-1,j=b.length;while(++g<j){i.prepare.call(null,b[g])}return}a=a||document.documentElement;if(!document.createElement("canvas").getContext){return}var k=h(a),l=-1,m=k.length;while(++l<m){var n=k[l];if(d(n).skip){return}if(n.nodeName.toLowerCase()==="img"){if(n.getAttribute("src")&&!c(n.src)){e(n,true)}}else{var o=f(n,"backgroundImage");if(o.indexOf("url(")>-1){var p=/\(['"]?(.+?)['"]?\)/,q=o.match(p)[1];if(!c(q)){var r=document.createElement("img");r.src=q;e(r,true,n)}}}}};return i}();(function(a){function o(b){function d(b){for(;b&&b.nodeName.toLowerCase()!="html";b=b.parentNode){var d=a.css(b,"background-color");if(d.indexOf("rgb")>=0){var e=d.match(/\d+/g);return"#"+c(e[0])+c(e[1])+c(e[2])}if(d&&d!="transparent")return d}return"#ffffff"}function c(a){a=parseInt(a).toString(16);return a.length<2?"0"+a:a}b.each(function(){a(this).css("background-color",d(this))})}function n(b,c){var d=a(c.pager);a.each(b,function(e,f){a.fn.cycle.createPagerAnchor(e,f,d,b,c)});a.fn.cycle.updateActivePagerLink(c.pager,c.startingSlide)}function m(b,c){var d=b.elements;var e=b.$cont[0],f=e.cycleTimeout;if(f){clearTimeout(f);e.cycleTimeout=0}if(b.random&&c<0){b.randomIndex--;if(--b.randomIndex==-2)b.randomIndex=d.length-2;else if(b.randomIndex==-1)b.randomIndex=d.length-1;b.nextSlide=b.randomMap[b.randomIndex]}else if(b.random){if(++b.randomIndex==d.length)b.randomIndex=0;b.nextSlide=b.randomMap[b.randomIndex]}else{b.nextSlide=b.currSlide+c;if(b.nextSlide<0){if(b.nowrap)return false;b.nextSlide=d.length-1}else if(b.nextSlide>=d.length){if(b.nowrap)return false;b.nextSlide=0}}if(a.isFunction(b.prevNextClick))b.prevNextClick(c>0,b.nextSlide,d[b.nextSlide]);k(d,b,1,c>=0);return false}function l(a,b,d,e){if(d.timeoutFn){var f=d.timeoutFn(a,b,d,e);while(f-d.speed<250)f+=d.speed;c("calculated timeout: "+f+"; speed: "+d.speed);if(f!==false)return f}return d.timeout}function k(b,c,d,e){if(d&&c.busy&&c.manualTrump){a(b).stop(true,true);c.busy=false}if(c.busy)return;var f=c.$cont[0],g=b[c.currSlide],h=b[c.nextSlide];if(f.cycleStop!=c.stopCount||f.cycleTimeout===0&&!d)return;if(!d&&!f.cyclePause&&(c.autostop&&--c.countdown<=0||c.nowrap&&!c.random&&c.nextSlide<c.currSlide)){if(c.end)c.end(c);return}if(d||!f.cyclePause){var i=c.fx;g.cycleH=g.cycleH||a(g).height();g.cycleW=g.cycleW||a(g).width();h.cycleH=h.cycleH||a(h).height();h.cycleW=h.cycleW||a(h).width();if(c.multiFx){if(c.lastFx==undefined||++c.lastFx>=c.fxs.length)c.lastFx=0;i=c.fxs[c.lastFx];c.currFx=i}if(c.oneTimeFx){i=c.oneTimeFx;c.oneTimeFx=null}a.fn.cycle.resetState(c,i);if(c.before.length)a.each(c.before,function(a,b){if(f.cycleStop!=c.stopCount)return;b.apply(h,[g,h,c,e])});var j=function(){a.each(c.after,function(a,b){if(f.cycleStop!=c.stopCount)return;b.apply(h,[g,h,c,e])})};if(c.nextSlide!=c.currSlide){c.busy=1;if(c.fxFn)c.fxFn(g,h,c,j,e);else if(a.isFunction(a.fn.cycle[c.fx]))a.fn.cycle[c.fx](g,h,c,j);else a.fn.cycle.custom(g,h,c,j,d&&c.fastOnEvent)}c.lastSlide=c.currSlide;if(c.random){c.currSlide=c.nextSlide;if(++c.randomIndex==b.length)c.randomIndex=0;c.nextSlide=c.randomMap[c.randomIndex]}else{var m=c.nextSlide+1==b.length;c.nextSlide=m?0:c.nextSlide+1;c.currSlide=m?b.length-1:c.nextSlide-1}if(c.pager)a.fn.cycle.updateActivePagerLink(c.pager,c.currSlide)}var n=0;if(c.timeout&&!c.continuous)n=l(g,h,c,e);else if(c.continuous&&f.cyclePause)n=10;if(n>0)f.cycleTimeout=setTimeout(function(){k(b,c,0,!c.rev)},n)}function j(b,c){b.addSlide=function(d,e){var f=a(d),g=f[0];if(!b.autostopCount)b.countdown++;c[e?"unshift":"push"](g);if(b.els)b.els[e?"unshift":"push"](g);b.slideCount=c.length;f.css("position","absolute");f[e?"prependTo":"appendTo"](b.$cont);if(e){b.currSlide++;b.nextSlide++}if(!a.support.opacity&&b.cleartype&&!b.cleartypeNoBg)o(f);if(b.fit&&b.width)f.width(b.width);if(b.fit&&b.height&&b.height!="auto")$slides.height(b.height);g.cycleH=b.fit&&b.height?b.height:f.height();g.cycleW=b.fit&&b.width?b.width:f.width();f.css(b.cssBefore);if(b.pager)a.fn.cycle.createPagerAnchor(c.length-1,g,a(b.pager),c,b);if(a.isFunction(b.onAddSlide))b.onAddSlide(f);else f.hide()}}function i(b){var e,f,g=a.fn.cycle.transitions;if(b.fx.indexOf(",")>0){b.multiFx=true;b.fxs=b.fx.replace(/\s*/g,"").split(",");for(e=0;e<b.fxs.length;e++){var h=b.fxs[e];f=g[h];if(!f||!g.hasOwnProperty(h)||!a.isFunction(f)){d("discarding unknown transition: ",h);b.fxs.splice(e,1);e--}}if(!b.fxs.length){d("No valid transitions named; slideshow terminating.");return false}}else if(b.fx=="all"){b.multiFx=true;b.fxs=[];for(p in g){f=g[p];if(g.hasOwnProperty(p)&&a.isFunction(f))b.fxs.push(p)}}if(b.multiFx&&b.randomizeEffects){var i=Math.floor(Math.random()*20)+30;for(e=0;e<i;e++){var j=Math.floor(Math.random()*b.fxs.length);b.fxs.push(b.fxs.splice(j,1)[0])}c("randomized fx sequence: ",b.fxs)}return true}function h(b){b.original={before:[],after:[]};b.original.cssBefore=a.extend({},b.cssBefore);b.original.cssAfter=a.extend({},b.cssAfter);b.original.animIn=a.extend({},b.animIn);b.original.animOut=a.extend({},b.animOut);a.each(b.before,function(){b.original.before.push(this)});a.each(b.after,function(){b.original.after.push(this)})}function g(b,c,e,g,l){var p=a.extend({},a.fn.cycle.defaults,g||{},a.metadata?b.metadata():a.meta?b.data():{});if(p.autostop)p.countdown=p.autostopCount||e.length;var q=b[0];b.data("cycle.opts",p);p.$cont=b;p.stopCount=q.cycleStop;p.elements=e;p.before=p.before?[p.before]:[];p.after=p.after?[p.after]:[];p.after.unshift(function(){p.busy=0});if(!a.support.opacity&&p.cleartype)p.after.push(function(){f(this,p)});if(p.continuous)p.after.push(function(){k(e,p,0,!p.rev)});h(p);if(!a.support.opacity&&p.cleartype&&!p.cleartypeNoBg)o(c);if(b.css("position")=="static")b.css("position","relative");if(p.width)b.width(p.width);if(p.height&&p.height!="auto")b.height(p.height);if(p.startingSlide)p.startingSlide=parseInt(p.startingSlide);if(p.random){p.randomMap=[];for(var r=0;r<e.length;r++)p.randomMap.push(r);p.randomMap.sort(function(a,b){return Math.random()-.5});p.randomIndex=0;p.startingSlide=p.randomMap[0]}else if(p.startingSlide>=e.length)p.startingSlide=0;p.currSlide=p.startingSlide=p.startingSlide||0;var s=p.startingSlide;c.css({position:"absolute",top:0,left:0}).hide().each(function(b){var c=s?b>=s?e.length-(b-s):s-b:e.length-b;a(this).css("z-index",c)});a(e[s]).css("opacity",1).show();f(e[s],p);if(p.fit&&p.width)c.width(p.width);if(p.fit&&p.height&&p.height!="auto")c.height(p.height);var t=p.containerResize&&!b.innerHeight();if(t){var u=0,v=0;for(var w=0;w<e.length;w++){var x=a(e[w]),y=x[0],z=x.outerWidth(),A=x.outerHeight();if(!z)z=y.offsetWidth;if(!A)A=y.offsetHeight;u=z>u?z:u;v=A>v?A:v}if(u>0&&v>0)b.css({width:u+"px",height:v+"px"})}if(p.pause)b.hover(function(){this.cyclePause++},function(){this.cyclePause--});if(i(p)===false)return false;var B=false;g.requeueAttempts=g.requeueAttempts||0;c.each(function(){var b=a(this);this.cycleH=p.fit&&p.height?p.height:b.height();this.cycleW=p.fit&&p.width?p.width:b.width();if(b.is("img")){var c=a.browser.msie&&this.cycleW==28&&this.cycleH==30&&!this.complete;var e=a.browser.mozilla&&this.cycleW==34&&this.cycleH==19&&!this.complete;var f=a.browser.opera&&(this.cycleW==42&&this.cycleH==19||this.cycleW==37&&this.cycleH==17)&&!this.complete;var h=this.cycleH==0&&this.cycleW==0&&!this.complete;if(c||e||f||h){if(l.s&&p.requeueOnImageNotLoaded&&++g.requeueAttempts<100){d(g.requeueAttempts," - img slide not loaded, requeuing slideshow: ",this.src,this.cycleW,this.cycleH);setTimeout(function(){a(l.s,l.c).cycle(g)},p.requeueTimeout);B=true;return false}else{d("could not determine size of image: "+this.src,this.cycleW,this.cycleH)}}}return true});if(B)return false;p.cssBefore=p.cssBefore||{};p.animIn=p.animIn||{};p.animOut=p.animOut||{};c.not(":eq("+s+")").css(p.cssBefore);if(p.cssFirst)a(c[s]).css(p.cssFirst);if(p.timeout){p.timeout=parseInt(p.timeout);if(p.speed.constructor==String)p.speed=a.fx.speeds[p.speed]||parseInt(p.speed);if(!p.sync)p.speed=p.speed/2;while(p.timeout-p.speed<250)p.timeout+=p.speed}if(p.easing)p.easeIn=p.easeOut=p.easing;if(!p.speedIn)p.speedIn=p.speed;if(!p.speedOut)p.speedOut=p.speed;p.slideCount=e.length;p.currSlide=p.lastSlide=s;if(p.random){p.nextSlide=p.currSlide;if(++p.randomIndex==e.length)p.randomIndex=0;p.nextSlide=p.randomMap[p.randomIndex]}else p.nextSlide=p.startingSlide>=e.length-1?0:p.startingSlide+1;if(!p.multiFx){var C=a.fn.cycle.transitions[p.fx];if(a.isFunction(C))C(b,c,p);else if(p.fx!="custom"&&!p.multiFx){d("unknown transition: "+p.fx,"; slideshow terminating");return false}}var D=c[s];if(p.before.length)p.before[0].apply(D,[D,D,p,true]);if(p.after.length>1)p.after[1].apply(D,[D,D,p,true]);if(p.next)a(p.next).bind(p.prevNextEvent,function(){return m(p,p.rev?-1:1)});if(p.prev)a(p.prev).bind(p.prevNextEvent,function(){return m(p,p.rev?1:-1)});if(p.pager)n(e,p);j(p,e);return p}function f(b,c){if(!a.support.opacity&&c.cleartype&&b.style.filter){try{b.style.removeAttribute("filter")}catch(d){}}}function e(b,c,e){if(b.cycleStop==undefined)b.cycleStop=0;if(c===undefined||c===null)c={};if(c.constructor==String){switch(c){case"stop":b.cycleStop++;if(b.cycleTimeout)clearTimeout(b.cycleTimeout);b.cycleTimeout=0;a(b).removeData("cycle.opts");return false;case"toggle":b.cyclePause=b.cyclePause===1?0:1;return false;case"pause":b.cyclePause=1;return false;case"resume":b.cyclePause=0;if(e===true){c=a(b).data("cycle.opts");if(!c){d("options not found, can not resume");return false}if(b.cycleTimeout){clearTimeout(b.cycleTimeout);b.cycleTimeout=0}k(c.elements,c,1,1)}return false;case"prev":case"next":var f=a(b).data("cycle.opts");if(!f){d('options not found, "prev/next" ignored');return false}a.fn.cycle[c](f);return false;default:c={fx:c}}return c}else if(c.constructor==Number){var g=c;c=a(b).data("cycle.opts");if(!c){d("options not found, can not advance slide");return false}if(g<0||g>=c.elements.length){d("invalid slide index: "+g);return false}c.nextSlide=g;if(b.cycleTimeout){clearTimeout(b.cycleTimeout);b.cycleTimeout=0}if(typeof e=="string")c.oneTimeFx=e;k(c.elements,c,1,g>=c.currSlide);return false}return c}function d(){if(window.console&&window.console.log)window.console.log("[cycle] "+Array.prototype.join.call(arguments," "))}function c(b){if(a.fn.cycle.debug)d(b)}var b="2.74";if(a.support==undefined){a.support={opacity:!a.browser.msie}}a.fn.cycle=function(b,f){var h={s:this.selector,c:this.context};if(this.length===0&&b!="stop"){if(!a.isReady&&h.s){d("DOM not ready, queuing slideshow");a(function(){a(h.s,h.c).cycle(b,f)});return this}d("terminating; zero elements found by selector"+(a.isReady?"":" (DOM not ready)"));return this}return this.each(function(){var i=e(this,b,f);if(i===false)return;if(this.cycleTimeout)clearTimeout(this.cycleTimeout);this.cycleTimeout=this.cyclePause=0;var j=a(this);var m=i.slideExpr?a(i.slideExpr,this):j.children();var n=m.get();if(n.length<2){d("terminating; too few slides: "+n.length);return}var o=g(j,m,n,i,h);if(o===false)return;var p=o.continuous?10:l(o.currSlide,o.nextSlide,o,!o.rev);if(p){p+=o.delay||0;if(p<10)p=10;c("first timeout: "+p);this.cycleTimeout=setTimeout(function(){k(n,o,0,!o.rev)},p)}})};a.fn.cycle.resetState=function(b,c){c=c||b.fx;b.before=[];b.after=[];b.cssBefore=a.extend({},b.original.cssBefore);b.cssAfter=a.extend({},b.original.cssAfter);b.animIn=a.extend({},b.original.animIn);b.animOut=a.extend({},b.original.animOut);b.fxFn=null;a.each(b.original.before,function(){b.before.push(this)});a.each(b.original.after,function(){b.after.push(this)});var d=a.fn.cycle.transitions[c];if(a.isFunction(d))d(b.$cont,a(b.elements),b)};a.fn.cycle.updateActivePagerLink=function(b,c){a(b).each(function(){a(this).find("a").removeClass("activeSlide").filter("a:eq("+c+")").addClass("activeSlide")})};a.fn.cycle.next=function(a){m(a,a.rev?-1:1)};a.fn.cycle.prev=function(a){m(a,a.rev?1:-1)};a.fn.cycle.createPagerAnchor=function(b,c,d,e,f){var g;if(a.isFunction(f.pagerAnchorBuilder))g=f.pagerAnchorBuilder(b,c);else g='<a href="#">'+(b+1)+"</a>";if(!g)return;var h=a(g);if(h.parents("body").length===0){var i=[];if(d.length>1){d.each(function(){var b=h.clone(true);a(this).append(b);i.push(b[0])});h=a(i)}else{h.appendTo(d)}}h.bind(f.pagerEvent,function(c){c.preventDefault();f.nextSlide=b;var d=f.$cont[0],g=d.cycleTimeout;if(g){clearTimeout(g);d.cycleTimeout=0}if(a.isFunction(f.pagerClick))f.pagerClick(f.nextSlide,e[f.nextSlide]);k(e,f,1,f.currSlide<b);return false});if(f.pagerEvent!="click")h.click(function(){return false});if(f.pauseOnPagerHover)h.hover(function(){f.$cont[0].cyclePause++},function(){f.$cont[0].cyclePause--})};a.fn.cycle.hopsFromLast=function(a,b){var c,d=a.lastSlide,e=a.currSlide;if(b)c=e>d?e-d:a.slideCount-d;else c=e<d?d-e:d+a.slideCount-e;return c};a.fn.cycle.commonReset=function(b,c,d,e,f,g){a(d.elements).not(b).hide();d.cssBefore.opacity=1;d.cssBefore.display="block";if(e!==false&&c.cycleW>0)d.cssBefore.width=c.cycleW;if(f!==false&&c.cycleH>0)d.cssBefore.height=c.cycleH;d.cssAfter=d.cssAfter||{};d.cssAfter.display="none";a(b).css("zIndex",d.slideCount+(g===true?1:0));a(c).css("zIndex",d.slideCount+(g===true?0:1))};a.fn.cycle.custom=function(b,c,d,e,f){var g=a(b),h=a(c);var i=d.speedIn,j=d.speedOut,k=d.easeIn,l=d.easeOut;h.css(d.cssBefore);if(f){if(typeof f=="number")i=j=f;else i=j=1;k=l=null}var m=function(){h.animate(d.animIn,i,k,e)};g.animate(d.animOut,j,l,function(){if(d.cssAfter)g.css(d.cssAfter);if(!d.sync)m()});if(d.sync)m()};a.fn.cycle.transitions={fade:function(b,c,d){c.not(":eq("+d.currSlide+")").css("opacity",0);d.before.push(function(b,c,d){a.fn.cycle.commonReset(b,c,d);d.cssBefore.opacity=0});d.animIn={opacity:1};d.animOut={opacity:0};d.cssBefore={top:0,left:0}}};a.fn.cycle.ver=function(){return b};a.fn.cycle.defaults={fx:"fade",timeout:4e3,timeoutFn:null,continuous:0,speed:1e3,speedIn:null,speedOut:null,next:null,prev:null,prevNextClick:null,prevNextEvent:"click",pager:null,pagerClick:null,pagerEvent:"click",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,pause:0,pauseOnPagerHover:0,autostop:0,autostopCount:0,delay:0,slideExpr:null,cleartype:!a.support.opacity,cleartypeNoBg:false,nowrap:0,fastOnEvent:0,randomizeEffects:1,rev:0,manualTrump:true,requeueOnImageNotLoaded:true,requeueTimeout:250}})(jQuery);(function(a){a.fn.cycle.transitions.none=function(b,c,d){d.fxFn=function(b,c,d,e){a(c).show();a(b).hide();e()}};a.fn.cycle.transitions.scrollUp=function(b,c,d){b.css("overflow","hidden");d.before.push(a.fn.cycle.commonReset);var e=b.height();d.cssBefore={top:e,left:0};d.cssFirst={top:0};d.animIn={top:0};d.animOut={top:-e}};a.fn.cycle.transitions.scrollDown=function(b,c,d){b.css("overflow","hidden");d.before.push(a.fn.cycle.commonReset);var e=b.height();d.cssFirst={top:0};d.cssBefore={top:-e,left:0};d.animIn={top:0};d.animOut={top:e}};a.fn.cycle.transitions.scrollLeft=function(b,c,d){b.css("overflow","hidden");d.before.push(a.fn.cycle.commonReset);var e=b.width();d.cssFirst={left:0};d.cssBefore={left:e,top:0};d.animIn={left:0};d.animOut={left:0-e}};a.fn.cycle.transitions.scrollRight=function(b,c,d){b.css("overflow","hidden");d.before.push(a.fn.cycle.commonReset);var e=b.width();d.cssFirst={left:0};d.cssBefore={left:-e,top:0};d.animIn={left:0};d.animOut={left:e}};a.fn.cycle.transitions.scrollHorz=function(b,c,d){b.css("overflow","hidden").width();d.before.push(function(b,c,d,e){a.fn.cycle.commonReset(b,c,d);d.cssBefore.left=e?c.cycleW-1:1-c.cycleW;d.animOut.left=e?-b.cycleW:b.cycleW});d.cssFirst={left:0};d.cssBefore={top:0};d.animIn={left:0};d.animOut={top:0}};a.fn.cycle.transitions.scrollVert=function(b,c,d){b.css("overflow","hidden");d.before.push(function(b,c,d,e){a.fn.cycle.commonReset(b,c,d);d.cssBefore.top=e?1-c.cycleH:c.cycleH-1;d.animOut.top=e?b.cycleH:-b.cycleH});d.cssFirst={top:0};d.cssBefore={left:0};d.animIn={top:0};d.animOut={left:0}};a.fn.cycle.transitions.slideX=function(b,c,d){d.before.push(function(b,c,d){a(d.elements).not(b).hide();a.fn.cycle.commonReset(b,c,d,false,true);d.animIn.width=c.cycleW});d.cssBefore={left:0,top:0,width:0};d.animIn={width:"show"};d.animOut={width:0}};a.fn.cycle.transitions.slideY=function(b,c,d){d.before.push(function(b,c,d){a(d.elements).not(b).hide();a.fn.cycle.commonReset(b,c,d,true,false);d.animIn.height=c.cycleH});d.cssBefore={left:0,top:0,height:0};d.animIn={height:"show"};d.animOut={height:0}};a.fn.cycle.transitions.shuffle=function(b,c,d){var e,f=b.css("overflow","visible").width();c.css({left:0,top:0});d.before.push(function(b,c,d){a.fn.cycle.commonReset(b,c,d,true,true,true)});if(!d.speedAdjusted){d.speed=d.speed/2;d.speedAdjusted=true}d.random=0;d.shuffle=d.shuffle||{left:-f,top:15};d.els=[];for(e=0;e<c.length;e++)d.els.push(c[e]);for(e=0;e<d.currSlide;e++)d.els.push(d.els.shift());d.fxFn=function(b,c,d,e,f){var g=f?a(b):a(c);a(c).css(d.cssBefore);var h=d.slideCount;g.animate(d.shuffle,d.speedIn,d.easeIn,function(){var c=a.fn.cycle.hopsFromLast(d,f);for(var i=0;i<c;i++)f?d.els.push(d.els.shift()):d.els.unshift(d.els.pop());if(f){for(var j=0,k=d.els.length;j<k;j++)a(d.els[j]).css("z-index",k-j+h)}else{var l=a(b).css("z-index");g.css("z-index",parseInt(l)+1+h)}g.animate({left:0,top:0},d.speedOut,d.easeOut,function(){a(f?this:b).hide();if(e)e()})})};d.cssBefore={display:"block",opacity:1,top:0,left:0}};a.fn.cycle.transitions.turnUp=function(b,c,d){d.before.push(function(b,c,d){a.fn.cycle.commonReset(b,c,d,true,false);d.cssBefore.top=c.cycleH;d.animIn.height=c.cycleH});d.cssFirst={top:0};d.cssBefore={left:0,height:0};d.animIn={top:0};d.animOut={height:0}};a.fn.cycle.transitions.turnDown=function(b,c,d){d.before.push(function(b,c,d){a.fn.cycle.commonReset(b,c,d,true,false);d.animIn.height=c.cycleH;d.animOut.top=b.cycleH});d.cssFirst={top:0};d.cssBefore={left:0,top:0,height:0};d.animOut={height:0}};a.fn.cycle.transitions.turnLeft=function(b,c,d){d.before.push(function(b,c,d){a.fn.cycle.commonReset(b,c,d,false,true);d.cssBefore.left=c.cycleW;d.animIn.width=c.cycleW});d.cssBefore={top:0,width:0};d.animIn={left:0};d.animOut={width:0}};a.fn.cycle.transitions.turnRight=function(b,c,d){d.before.push(function(b,c,d){a.fn.cycle.commonReset(b,c,d,false,true);d.animIn.width=c.cycleW;d.animOut.left=b.cycleW});d.cssBefore={top:0,left:0,width:0};d.animIn={left:0};d.animOut={width:0}};a.fn.cycle.transitions.zoom=function(b,c,d){d.before.push(function(b,c,d){a.fn.cycle.commonReset(b,c,d,false,false,true);d.cssBefore.top=c.cycleH/2;d.cssBefore.left=c.cycleW/2;d.animIn={top:0,left:0,width:c.cycleW,height:c.cycleH};d.animOut={width:0,height:0,top:b.cycleH/2,left:b.cycleW/2}});d.cssFirst={top:0,left:0};d.cssBefore={width:0,height:0}};a.fn.cycle.transitions.fadeZoom=function(b,c,d){d.before.push(function(b,c,d){a.fn.cycle.commonReset(b,c,d,false,false);d.cssBefore.left=c.cycleW/2;d.cssBefore.top=c.cycleH/2;d.animIn={top:0,left:0,width:c.cycleW,height:c.cycleH}});d.cssBefore={width:0,height:0};d.animOut={opacity:0}};a.fn.cycle.transitions.blindX=function(b,c,d){var e=b.css("overflow","hidden").width();d.before.push(function(b,c,d){a.fn.cycle.commonReset(b,c,d);d.animIn.width=c.cycleW;d.animOut.left=b.cycleW});d.cssBefore={left:e,top:0};d.animIn={left:0};d.animOut={left:e}};a.fn.cycle.transitions.blindY=function(b,c,d){var e=b.css("overflow","hidden").height();d.before.push(function(b,c,d){a.fn.cycle.commonReset(b,c,d);d.animIn.height=c.cycleH;d.animOut.top=b.cycleH});d.cssBefore={top:e,left:0};d.animIn={top:0};d.animOut={top:e}};a.fn.cycle.transitions.blindZ=function(b,c,d){var e=b.css("overflow","hidden").height();var f=b.width();d.before.push(function(b,c,d){a.fn.cycle.commonReset(b,c,d);d.animIn.height=c.cycleH;d.animOut.top=b.cycleH});d.cssBefore={top:e,left:f};d.animIn={top:0,left:0};d.animOut={top:e,left:f}};a.fn.cycle.transitions.growX=function(b,c,d){d.before.push(function(b,c,d){a.fn.cycle.commonReset(b,c,d,false,true);d.cssBefore.left=this.cycleW/2;d.animIn={left:0,width:this.cycleW};d.animOut={left:0}});d.cssBefore={width:0,top:0}};a.fn.cycle.transitions.growY=function(b,c,d){d.before.push(function(b,c,d){a.fn.cycle.commonReset(b,c,d,true,false);d.cssBefore.top=this.cycleH/2;d.animIn={top:0,height:this.cycleH};d.animOut={top:0}});d.cssBefore={height:0,left:0}};a.fn.cycle.transitions.curtainX=function(b,c,d){d.before.push(function(b,c,d){a.fn.cycle.commonReset(b,c,d,false,true,true);d.cssBefore.left=c.cycleW/2;d.animIn={left:0,width:this.cycleW};d.animOut={left:b.cycleW/2,width:0}});d.cssBefore={top:0,width:0}};a.fn.cycle.transitions.curtainY=function(b,c,d){d.before.push(function(b,c,d){a.fn.cycle.commonReset(b,c,d,true,false,true);d.cssBefore.top=c.cycleH/2;d.animIn={top:0,height:c.cycleH};d.animOut={top:b.cycleH/2,height:0}});d.cssBefore={left:0,height:0}};a.fn.cycle.transitions.cover=function(b,c,d){var e=d.direction||"left";var f=b.css("overflow","hidden").width();var g=b.height();d.before.push(function(b,c,d){a.fn.cycle.commonReset(b,c,d);if(e=="right")d.cssBefore.left=-f;else if(e=="up")d.cssBefore.top=g;else if(e=="down")d.cssBefore.top=-g;else d.cssBefore.left=f});d.animIn={left:0,top:0};d.animOut={opacity:1};d.cssBefore={top:0,left:0}};a.fn.cycle.transitions.uncover=function(b,c,d){var e=d.direction||"left";var f=b.css("overflow","hidden").width();var g=b.height();d.before.push(function(b,c,d){a.fn.cycle.commonReset(b,c,d,true,true,true);if(e=="right")d.animOut.left=f;else if(e=="up")d.animOut.top=-g;else if(e=="down")d.animOut.top=g;else d.animOut.left=-f});d.animIn={left:0,top:0};d.animOut={opacity:1};d.cssBefore={top:0,left:0}};a.fn.cycle.transitions.toss=function(b,c,d){var e=b.css("overflow","visible").width();var f=b.height();d.before.push(function(b,c,d){a.fn.cycle.commonReset(b,c,d,true,true,true);if(!d.animOut.left&&!d.animOut.top)d.animOut={left:e*2,top:-f/2,opacity:0};else d.animOut.opacity=0});d.cssBefore={left:0,top:0};d.animIn={left:0}};a.fn.cycle.transitions.wipe=function(b,c,d){var e=b.css("overflow","hidden").width();var f=b.height();d.cssBefore=d.cssBefore||{};var g;if(d.clip){if(/l2r/.test(d.clip))g="rect(0px 0px "+f+"px 0px)";else if(/r2l/.test(d.clip))g="rect(0px "+e+"px "+f+"px "+e+"px)";else if(/t2b/.test(d.clip))g="rect(0px "+e+"px 0px 0px)";else if(/b2t/.test(d.clip))g="rect("+f+"px "+e+"px "+f+"px 0px)";else if(/zoom/.test(d.clip)){var h=parseInt(f/2);var i=parseInt(e/2);g="rect("+h+"px "+i+"px "+h+"px "+i+"px)"}}d.cssBefore.clip=d.cssBefore.clip||g||"rect(0px 0px 0px 0px)";var j=d.cssBefore.clip.match(/(\d+)/g);var k=parseInt(j[0]),l=parseInt(j[1]),m=parseInt(j[2]),n=parseInt(j[3]);d.before.push(function(b,c,d){if(b==c)return;var g=a(b),h=a(c);a.fn.cycle.commonReset(b,c,d,true,true,false);d.cssAfter.display="block";var i=1,j=parseInt(d.speedIn/13)-1;(function o(){var a=k?k-parseInt(i*(k/j)):0;var b=n?n-parseInt(i*(n/j)):0;var c=m<f?m+parseInt(i*((f-m)/j||1)):f;var d=l<e?l+parseInt(i*((e-l)/j||1)):e;h.css({clip:"rect("+a+"px "+d+"px "+c+"px "+b+"px)"});i++<=j?setTimeout(o,13):g.css("display","none")})()});d.cssBefore={display:"block",opacity:1,top:0,left:0};d.animIn={left:0};d.animOut={left:0}}})(jQuery);(function(a){function o(d){function h(){b.parent.removeClass(g.extraClass).hide().css("opacity","")}if(a.tooltip.blocked)return;if(e)clearTimeout(e);c=null;var g=i(this);if((!f||!a.fn.bgiframe)&&g.fade){if(b.parent.is(":animated"))b.parent.stop().fadeTo(g.fade,0,h);else b.parent.stop().fadeOut(g.fade,h)}else h();if(i(this).fixPNG)b.parent.unfixPNG()}function n(){return{x:a(window).scrollLeft(),y:a(window).scrollTop(),cx:a(window).width(),cy:a(window).height()}}function m(d){if(a.tooltip.blocked)return;if(d&&d.target.tagName=="OPTION"){return}if(!g&&b.parent.is(":visible")){a(document.body).unbind("mousemove",m)}if(c==null){a(document.body).unbind("mousemove",m);return}b.parent.removeClass("viewport-right").removeClass("viewport-bottom");var e=b.parent[0].offsetLeft;var f=b.parent[0].offsetTop;if(d){e=d.pageX+i(c).left;f=d.pageY+i(c).top;var h="auto";if(i(c).positionLeft){h=a(window).width()-e;e="auto"}b.parent.css({left:e,right:h,top:f})}var j=n(),k=b.parent[0];if(j.x+j.cx<k.offsetLeft+k.offsetWidth){e-=k.offsetWidth+20+i(c).left;b.parent.css({left:e+"px"}).addClass("viewport-right")}if(j.y+j.cy<k.offsetTop+k.offsetHeight){f-=k.offsetHeight+20+i(c).top;b.parent.css({top:f+"px"}).addClass("viewport-bottom")}}function l(){e=null;if((!f||!a.fn.bgiframe)&&i(c).fade){if(b.parent.is(":animated"))b.parent.stop().show().fadeTo(i(c).fade,c.tOpacity);else b.parent.is(":visible")?b.parent.fadeTo(i(c).fade,c.tOpacity):b.parent.fadeIn(i(c).fade)}else{b.parent.show()}m()}function k(){if(a.tooltip.blocked||this==c||!this.tooltipText&&!i(this).bodyHandler)return;c=this;d=this.tooltipText;if(i(this).bodyHandler){b.title.hide();var e=i(this).bodyHandler.call(this);if(e.nodeType||e.jquery){b.body.empty().append(e)}else{b.body.html(e)}b.body.show()}else if(i(this).showBody){var f=d.split(i(this).showBody);b.title.html(f.shift()).show();b.body.empty();for(var g=0,h;h=f[g];g++){if(g>0)b.body.append("<br/>");b.body.append(h)}b.body.hideWhenEmpty()}else{b.title.html(d).show();b.body.hide()}if(i(this).showURL&&a(this).url())b.url.html(a(this).url().replace("http://","")).show();else b.url.hide();b.parent.addClass(i(this).extraClass);if(i(this).fixPNG)b.parent.fixPNG();j.apply(this,arguments)}function j(b){if(i(this).delay)e=setTimeout(l,i(this).delay);else l();g=!!i(this).track;a(document.body).bind("mousemove",m);m(b)}function i(b){return a.data(b,"tooltip")}function h(c){if(b.parent)return;b.parent=a('<div id="'+c.id+'"><h3></h3><div class="body"></div><div class="url"></div></div>').appendTo(document.body).hide();if(a.fn.bgiframe)b.parent.bgiframe();b.title=a("h3",b.parent);b.body=a("div.body",b.parent);b.url=a("div.url",b.parent)}var b={},c,d,e,f=a.browser.msie&&/MSIE\s(5\.5|6\.)/.test(navigator.userAgent),g=false;a.tooltip={blocked:false,defaults:{delay:200,fade:false,showURL:true,extraClass:"",top:15,left:15,id:"tooltip"},block:function(){a.tooltip.blocked=!a.tooltip.blocked}};a.fn.extend({tooltip:function(c){c=a.extend({},a.tooltip.defaults,c);h(c);return this.each(function(){a.data(this,"tooltip",c);this.tOpacity=b.parent.css("opacity");this.tooltipText=this.title;a(this).removeAttr("title");this.alt=""}).mouseover(k).mouseout(o).click(o)},fixPNG:f?function(){return this.each(function(){var b=a(this).css("backgroundImage");if(b.match(/^url\(["']?(.*\.png)["']?\)$/i)){b=RegExp.$1;a(this).css({backgroundImage:"none",filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=crop, src='"+b+"')"}).each(function(){var b=a(this).css("position");if(b!="absolute"&&b!="relative")a(this).css("position","relative")})}})}:function(){return this},unfixPNG:f?function(){return this.each(function(){a(this).css({filter:"",backgroundImage:""})})}:function(){return this},hideWhenEmpty:function(){return this.each(function(){a(this)[a(this).html()?"show":"hide"]()})},url:function(){return this.attr("href")||this.attr("src")}})})(jQuery);jQuery.fn.highlight=function(a){function b(a,c){var d=0;if(a.nodeType==3){var e=a.data.toUpperCase().indexOf(c);if(e>=0){var f=document.createElement("span");f.className="highlight";var g=a.splitText(e);var h=g.splitText(c.length);var i=g.cloneNode(true);f.appendChild(i);g.parentNode.replaceChild(f,g);d=1}}else if(a.nodeType==1&&a.childNodes&&!/(script|style)/i.test(a.tagName)){for(var j=0;j<a.childNodes.length;++j){j+=b(a.childNodes[j],c)}}return d}return this.each(function(){b(this,a.toUpperCase())})};jQuery.fn.removeHighlight=function(){return this.find("span.highlight").each(function(){this.parentNode.firstChild.nodeName;with(this.parentNode){replaceChild(this.firstChild,this);normalize()}}).end()};(function(a){function r(){var a,b,c;a=this;c=a.getDimensions();b='<iframe class="qtip-bgiframe" frameborder="0" tabindex="-1" src="javascript:false" style="display:block; position:absolute; z-index:-1; filter:alpha(opacity=\'0\'); border: 1px solid red; height:'+c.height+"px; width:"+c.width+'px" />';a.elements.bgiframe=a.elements.wrapper.prepend(b).children(".qtip-bgiframe:first")}function q(b){var c;if(a("<canvas>").get(0).getContext){c={topLeft:[b,b],topRight:[0,b],bottomLeft:[b,0],bottomRight:[0,0]}}else{if(a.browser.msie){c={topLeft:[-90,90,0],topRight:[-90,90,-b],bottomLeft:[90,270,0],bottomRight:[90,270,-b]}}}return c}function p(a,b,c){var d={bottomRight:[[0,0],[b,c],[b,0]],bottomLeft:[[0,0],[b,0],[0,c]],topRight:[[0,c],[b,0],[b,c]],topLeft:[[0,0],[0,c],[b,c]],topMiddle:[[0,c],[b/2,0],[b,c]],bottomMiddle:[[0,0],[b,0],[b/2,c]],rightMiddle:[[0,0],[b,c/2],[0,c]],leftMiddle:[[b,0],[b,c],[0,c/2]]};d.leftTop=d.bottomRight;d.rightTop=d.bottomLeft;d.leftBottom=d.topRight;d.rightBottom=d.topLeft;return d[a]}function o(){var b,c,d,e,f,g;b=this;d=[true,{}];for(c=0;c<arguments.length;c++){d.push(arguments[c])}e=[a.extend.apply(a,d)];while(typeof e[0].name=="string"){e.unshift(n(a.fn.qtip.styles[e[0].name]))}e.unshift(true,{classes:{tooltip:"qtip-"+(arguments[0].name||"defaults")}},a.fn.qtip.styles.defaults);f=a.extend.apply(a,e);g=a.browser.msie?1:0;f.tip.size.width+=g;f.tip.size.height+=g;if(f.tip.size.width%2>0){f.tip.size.width+=1}if(f.tip.size.height%2>0){f.tip.size.height+=1}if(f.tip.corner===true){f.tip.corner=b.options.position.corner.tooltip==="center"?false:b.options.position.corner.tooltip}return f}function n(a){if(typeof a.tip!=="object"){a.tip={corner:a.tip}}if(typeof a.tip.size!=="object"){a.tip.size={width:a.tip.size,height:a.tip.size}}if(typeof a.border!=="object"){a.border={width:a.border}}if(typeof a.width!=="object"){a.width={value:a.width}}if(typeof a.width.max=="string"){a.width.max=parseInt(a.width.max.replace(/([0-9]+)/i,"$1"))}if(typeof a.width.min=="string"){a.width.min=parseInt(a.width.min.replace(/([0-9]+)/i,"$1"))}if(typeof a.tip.size.x=="number"){a.tip.size.width=a.tip.size.x;delete a.tip.size.x}if(typeof a.tip.size.y=="number"){a.tip.size.height=a.tip.size.y;delete a.tip.size.y}return a}function m(b,c){var d,e;d=a.extend(true,{},b);for(e in d){if(c===true&&/(tip|classes)/i.test(e)){delete d[e]}else{if(!c&&/(width|border|tip|title|classes|user)/i.test(e)){delete d[e]}}}return d}function l(b,c,d){var e,g,h,i,j,k;e=this;if(d.corner=="center"){return c.position}g=a.extend({},b);i={x:false,y:false};j={left:g.left<a.fn.qtip.cache.screen.scroll.left,right:g.left+d.dimensions.width+2>=a.fn.qtip.cache.screen.width+a.fn.qtip.cache.screen.scroll.left,top:g.top<a.fn.qtip.cache.screen.scroll.top,bottom:g.top+d.dimensions.height+2>=a.fn.qtip.cache.screen.height+a.fn.qtip.cache.screen.scroll.top};h={left:j.left&&(/right/i.test(d.corner)||!j.right),right:j.right&&(/left/i.test(d.corner)||!j.left),top:j.top&&!/top/i.test(d.corner),bottom:j.bottom&&!/bottom/i.test(d.corner)};if(h.left){if(e.options.position.target!=="mouse"){g.left=c.position.left+c.dimensions.width}else{g.left=e.cache.mouse.x}i.x="Left"}else{if(h.right){if(e.options.position.target!=="mouse"){g.left=c.position.left-d.dimensions.width}else{g.left=e.cache.mouse.x-d.dimensions.width}i.x="Right"}}if(h.top){if(e.options.position.target!=="mouse"){g.top=c.position.top+c.dimensions.height}else{g.top=e.cache.mouse.y}i.y="top"}else{if(h.bottom){if(e.options.position.target!=="mouse"){g.top=c.position.top-d.dimensions.height}else{g.top=e.cache.mouse.y-d.dimensions.height}i.y="bottom"}}if(g.left<0){g.left=b.left;i.x=false}if(g.top<0){g.top=b.top;i.y=false}if(e.options.style.tip.corner!==false){g.corner=new String(d.corner);if(g.corner.match(/^(right|left)/)){if(i.x!==false){g.corner=g.corner.replace(/(left|right)/,i.x.toLowerCase())}}else{if(i.x!==false){g.corner=g.corner.replace(/Left|Right|Middle/,i.x)}if(i.y!==false){g.corner=g.corner.replace(/top|bottom/,i.y)}}if(g.corner!==e.elements.tip.attr("rel")){f.call(e,g.corner)}}return g}function k(){function h(c){if(b.status.disabled===true){return}if(b.options.hide.fixed===true&&/mouse(out|leave)/i.test(b.options.hide.when.event)&&a(c.relatedTarget).parents("div.qtip[qtip]").length>0){c.stopPropagation();c.preventDefault();clearTimeout(b.timers.hide);return false}clearTimeout(b.timers.show);clearTimeout(b.timers.hide);b.elements.tooltip.stop(true,true);b.timers.hide=setTimeout(function(){b.hide(c)},b.options.hide.delay)}function g(c){if(b.status.disabled===true){return}if(b.options.hide.when.event=="inactive"){a(e).each(function(){d.bind(this+".qtip-inactive",f);b.elements.content.bind(this+".qtip-inactive",f)});f()}clearTimeout(b.timers.show);clearTimeout(b.timers.hide);if(b.options.show.delay>0){b.timers.show=setTimeout(function(){b.show(c)},b.options.show.delay)}else{b.show(c)}}var b,c,d,e;b=this;c=b.options.show.when.target;d=b.options.hide.when.target;if(b.options.hide.fixed){d=d.add(b.elements.tooltip)}if(b.options.hide.when.event=="inactive"){e=["click","dblclick","mousedown","mouseup","mousemove","mouseout","mouseenter","mouseleave","mouseover"];function f(c){if(b.status.disabled===true){return}clearTimeout(b.timers.inactive);b.timers.inactive=setTimeout(function(){a(e).each(function(){d.unbind(this+".qtip-inactive");b.elements.content.unbind(this+".qtip-inactive")});b.hide(c)},b.options.hide.delay)}}else{if(b.options.hide.fixed===true){b.elements.tooltip.bind("mouseover.qtip",function(){if(b.status.disabled===true){return}clearTimeout(b.timers.hide)})}}if(b.options.show.when.target.add(b.options.hide.when.target).length===1&&b.options.show.when.event==b.options.hide.when.event&&b.options.hide.when.event!=="inactive"||b.options.hide.when.event=="unfocus"){b.cache.toggle=0;c.bind(b.options.show.when.event+".qtip",function(a){if(b.cache.toggle==0){g(a)}else{h(a)}})}else{c.bind(b.options.show.when.event+".qtip",g);if(b.options.hide.when.event!=="inactive"){d.bind(b.options.hide.when.event+".qtip",h)}}if(/(fixed|absolute)/.test(b.options.position.type)){b.elements.tooltip.bind("mouseover.qtip",b.focus)}if(b.options.position.target==="mouse"&&b.options.position.type!=="static"){c.bind("mousemove.qtip",function(a){b.cache.mouse={x:a.pageX,y:a.pageY};if(b.status.disabled===false&&b.options.position.adjust.mouse===true&&b.options.position.type!=="static"&&b.elements.tooltip.css("display")!=="none"){b.updatePosition(a)}})}}function j(){var b=this;if(b.elements.title!==null){b.elements.title.remove()}b.elements.title=a('<div class="'+b.options.style.classes.title+'">').css(m(b.options.style.title,true)).css({zoom:a.browser.msie?1:0}).prependTo(b.elements.contentWrapper);if(b.options.content.title.text){b.updateTitle.call(b,b.options.content.title.text)}if(b.options.content.title.button!==false&&typeof b.options.content.title.button=="string"){b.elements.button=a('<a class="'+b.options.style.classes.button+'" style="float:right; position: relative"></a>').css(m(b.options.style.button,true)).html(b.options.content.title.button).prependTo(b.elements.title).click(function(a){if(!b.status.disabled){b.hide(a)}})}}function h(b){var c,d,e,f,g;c=this;if(c.options.style.tip.corner===false||!c.elements.tip){return}if(!b){b=c.elements.tip.attr("rel")}d=positionAdjust=a.browser.msie?1:0;c.elements.tip.css(b.match(/left|right|top|bottom/)[0],0);if(/top|bottom/.test(b)){if(a.browser.msie){if(parseInt(a.browser.version.charAt(0))===6){positionAdjust=/top/.test(b)?-3:1}else{positionAdjust=/top/.test(b)?1:2}}if(/Middle/.test(b)){c.elements.tip.css({left:"50%",marginLeft:-(c.options.style.tip.size.width/2)})}else{if(/Left/.test(b)){c.elements.tip.css({left:c.options.style.border.radius-d})}else{if(/Right/.test(b)){c.elements.tip.css({right:c.options.style.border.radius+d})}}}if(/top/.test(b)){c.elements.tip.css({top:-positionAdjust})}else{c.elements.tip.css({bottom:positionAdjust})}}else{if(/left|right/.test(b)){if(a.browser.msie){positionAdjust=parseInt(a.browser.version.charAt(0))===6?1:/left/.test(b)?1:2}if(/Middle/.test(b)){c.elements.tip.css({top:"50%",marginTop:-(c.options.style.tip.size.height/2)})}else{if(/Top/.test(b)){c.elements.tip.css({top:c.options.style.border.radius-d})}else{if(/Bottom/.test(b)){c.elements.tip.css({bottom:c.options.style.border.radius+d})}}}if(/left/.test(b)){c.elements.tip.css({left:-positionAdjust})}else{c.elements.tip.css({right:positionAdjust})}}}e="padding-"+b.match(/left|right|top|bottom/)[0];f=c.options.style.tip.size[/left|right/.test(e)?"width":"height"];c.elements.tooltip.css("padding",0);c.elements.tooltip.css(e,f);if(a.browser.msie&&parseInt(a.browser.version.charAt(0))==6){g=parseInt(c.elements.tip.css("margin-top"))||0;g+=parseInt(c.elements.content.css("margin-top"))||0;c.elements.tip.css({marginTop:g})}}function g(a,b,c){var d=a.get(0).getContext("2d");d.fillStyle=c;d.beginPath();d.moveTo(b[0][0],b[0][1]);d.lineTo(b[1][0],b[1][1]);d.lineTo(b[2][0],b[2][1]);d.fill()}function f(b){var c,d,e,f,i,j;c=this;if(c.elements.tip!==null){c.elements.tip.remove()}d=c.options.style.tip.color||c.options.style.border.color;if(c.options.style.tip.corner===false){return}else{if(!b){b=c.options.style.tip.corner}}e=p(b,c.options.style.tip.size.width,c.options.style.tip.size.height);c.elements.tip='<div class="'+c.options.style.classes.tip+'" dir="ltr" rel="'+b+'" style="position:absolute; height:'+c.options.style.tip.size.height+"px; width:"+c.options.style.tip.size.width+'px; margin:0 auto; line-height:0.1px; font-size:1px;"></div>';c.elements.tooltip.prepend(c.elements.tip);if(a("<canvas>").get(0).getContext){j='<canvas height="'+c.options.style.tip.size.height+'" width="'+c.options.style.tip.size.width+'"></canvas>'}else{if(a.browser.msie){f=c.options.style.tip.size.width+","+c.options.style.tip.size.height;i="m"+e[0][0]+","+e[0][1];i+=" l"+e[1][0]+","+e[1][1];i+=" "+e[2][0]+","+e[2][1];i+=" xe";j='<v:shape fillcolor="'+d+'" stroked="false" filled="true" path="'+i+'" coordsize="'+f+'" style="width:'+c.options.style.tip.size.width+"px; height:"+c.options.style.tip.size.height+"px; line-height:0.1px; display:inline-block; behavior:url(#default#VML); vertical-align:"+(/top/.test(b)?"bottom":"top")+'"></v:shape>';j+='<v:image style="behavior:url(#default#VML);"></v:image>';c.elements.contentWrapper.css("position","relative")}}c.elements.tip=c.elements.tooltip.find("."+c.options.style.classes.tip).eq(0);c.elements.tip.html(j);if(a("<canvas>").get(0).getContext){g.call(c,c.elements.tip.find("canvas:first"),e,d)}if(/top/.test(b)&&a.browser.msie&&parseInt(a.browser.version.charAt(0))===6){c.elements.tip.css({marginTop:-4})}h.call(c,b)}function e(a,b,c,d){var e=a.get(0).getContext("2d");e.fillStyle=d;e.beginPath();e.arc(b[0],b[1],c,0,Math.PI*2,false);e.fill()}function d(){var b,c,d,f,g,h,i,j,k,l,m,n,o,p,r;b=this;b.elements.wrapper.find(".qtip-borderBottom, .qtip-borderTop").remove();d=b.options.style.border.width;f=b.options.style.border.radius;g=b.options.style.border.color||b.options.style.tip.color;h=q(f);i={};for(c in h){i[c]='<div rel="'+c+'" style="'+(/Left/.test(c)?"left":"right")+":0; position:absolute; height:"+f+"px; width:"+f+'px; overflow:hidden; line-height:0.1px; font-size:1px">';if(a("<canvas>").get(0).getContext){i[c]+='<canvas height="'+f+'" width="'+f+'" style="vertical-align: top"></canvas>'}else{if(a.browser.msie){j=f*2+3;i[c]+='<v:arc stroked="false" fillcolor="'+g+'" startangle="'+h[c][0]+'" endangle="'+h[c][1]+'" style="width:'+j+"px; height:"+j+"px; margin-top:"+(/bottom/.test(c)?-2:-1)+"px; margin-left:"+(/Right/.test(c)?h[c][2]-3.5:-1)+'px; vertical-align:top; display:inline-block; behavior:url(#default#VML)"></v:arc>'}}i[c]+="</div>"}k=b.getDimensions().width-Math.max(d,f)*2;l='<div class="qtip-betweenCorners" style="height:'+f+"px; width:"+k+"px; overflow:hidden; background-color:"+g+'; line-height:0.1px; font-size:1px;">';m='<div class="qtip-borderTop" dir="ltr" style="height:'+f+"px; margin-left:"+f+'px; line-height:0.1px; font-size:1px; padding:0;">'+i.topLeft+i.topRight+l;b.elements.wrapper.prepend(m);n='<div class="qtip-borderBottom" dir="ltr" style="height:'+f+"px; margin-left:"+f+'px; line-height:0.1px; font-size:1px; padding:0;">'+i.bottomLeft+i.bottomRight+l;b.elements.wrapper.append(n);if(a("<canvas>").get(0).getContext){b.elements.wrapper.find("canvas").each(function(){o=h[a(this).parent("[rel]:first").attr("rel")];e.call(b,a(this),o,f,g)})}else{if(a.browser.msie){b.elements.tooltip.append('<v:image style="behavior:url(#default#VML);"></v:image>')}}p=Math.max(f,f+(d-f));r=Math.max(d-f,0);b.elements.contentWrapper.css({border:"0px solid "+g,borderWidth:r+"px "+p+"px"})}function c(){var b,c,e,g,h,i,l;b=this;b.beforeRender.call(b);b.status.rendered=true;b.elements.tooltip='<div qtip="'+b.id+'" class="qtip '+(b.options.style.classes.tooltip||b.options.style)+'"style="display:none; -moz-border-radius:0; -webkit-border-radius:0; border-radius:0;position:'+b.options.position.type+';">  <div class="qtip-wrapper" style="position:relative; overflow:hidden; text-align:left;">    <div class="qtip-contentWrapper" style="overflow:hidden;">       <div class="qtip-content '+b.options.style.classes.content+'"></div></div></div></div>';b.elements.tooltip=a(b.elements.tooltip);b.elements.tooltip.appendTo(b.options.position.container);b.elements.tooltip.data("qtip",{current:0,interfaces:[b]});b.elements.wrapper=b.elements.tooltip.children("div:first");b.elements.contentWrapper=b.elements.wrapper.children("div:first").css({background:b.options.style.background});b.elements.content=b.elements.contentWrapper.children("div:first").css(m(b.options.style));if(a.browser.msie){b.elements.wrapper.add(b.elements.content).css({zoom:1})}if(/unfocus/i.test(b.options.hide.when.event)){b.elements.tooltip.attr("unfocus",true)}if(typeof b.options.style.width.value=="number"){b.updateWidth()}if(a("<canvas>").get(0).getContext||a.browser.msie){if(b.options.style.border.radius>0){d.call(b)}else{b.elements.contentWrapper.css({border:b.options.style.border.width+"px solid "+b.options.style.border.color})}if(b.options.style.tip.corner!==false){f.call(b)}}else{b.elements.contentWrapper.css({border:b.options.style.border.width+"px solid "+b.options.style.border.color});b.options.style.border.radius=0;b.options.style.tip.corner=false;a.fn.qtip.log.error.call(b,2,a.fn.qtip.constants.CANVAS_VML_NOT_SUPPORTED,"render")}if(typeof b.options.content.text=="string"&&b.options.content.text.length>0||b.options.content.text.jquery&&b.options.content.text.length>0){e=b.options.content.text}else{if(typeof b.elements.target.attr("title")=="string"&&b.elements.target.attr("title").length>0){e=b.elements.target.attr("title").replace("\\n","<br />");b.elements.target.attr("title","")}else{if(typeof b.elements.target.attr("alt")=="string"&&b.elements.target.attr("alt").length>0){e=b.elements.target.attr("alt").replace("\\n","<br />");b.elements.target.attr("alt","")}else{e=" ";a.fn.qtip.log.error.call(b,1,a.fn.qtip.constants.NO_VALID_CONTENT,"render")}}}if(b.options.content.title.text!==false){j.call(b)}b.updateContent(e);k.call(b);if(b.options.show.ready===true){b.show()}if(b.options.content.url!==false){g=b.options.content.url;h=b.options.content.data;i=b.options.content.method||"get";b.loadContent(g,h,i)}b.onRender.call(b);a.fn.qtip.log.error.call(b,1,a.fn.qtip.constants.EVENT_RENDERED,"render")}function b(b,c,d){var f=this;f.id=d;f.options=c;f.status={animated:false,rendered:false,disabled:false,focused:false};f.elements={target:b.addClass(f.options.style.classes.target),tooltip:null,wrapper:null,content:null,contentWrapper:null,title:null,button:null,tip:null,bgiframe:null};f.cache={mouse:{},position:{},toggle:0};f.timers={};a.extend(f,f.options.api,{show:function(b){function e(){a(this).css({opacity:""});if(f.options.position.type!=="static"){f.focus()}f.onShow.call(f,b);if(a.browser.msie){f.elements.tooltip.get(0).style.removeAttribute("filter")}}var c,d;if(!f.status.rendered){return a.fn.qtip.log.error.call(f,2,a.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"show")}if(f.elements.tooltip.css("display")!=="none"){return f}f.elements.tooltip.stop(true,false);c=f.beforeShow.call(f,b);if(c===false){return f}f.cache.toggle=1;if(f.options.position.type!=="static"){f.updatePosition(b,f.options.show.effect.length>0)}if(typeof f.options.show.solo=="object"){d=a(f.options.show.solo)}else{if(f.options.show.solo===true){d=a("div.qtip").not(f.elements.tooltip)}}if(d){d.each(function(){if(a(this).qtip("api").status.rendered===true){a(this).qtip("api").hide()}})}if(typeof f.options.show.effect.type=="function"){f.options.show.effect.type.call(f.elements.tooltip,f.options.show.effect.length);f.elements.tooltip.queue(function(){e();a(this).dequeue()})}else{switch(f.options.show.effect.type.toLowerCase()){case"fade":f.elements.tooltip.fadeIn(f.options.show.effect.length,e);break;case"slide":f.elements.tooltip.slideDown(f.options.show.effect.length,function(){e();if(f.options.position.type!=="static"){f.updatePosition(b,true)}});break;case"grow":f.elements.tooltip.show(f.options.show.effect.length,e);break;default:f.elements.tooltip.show(null,e);f.elements.tooltip.css({opacity:""});break}f.elements.tooltip.addClass(f.options.style.classes.active)}return a.fn.qtip.log.error.call(f,1,a.fn.qtip.constants.EVENT_SHOWN,"show")},hide:function(b){function d(){f.onHide.call(f,b)}var c;if(!f.status.rendered){return a.fn.qtip.log.error.call(f,2,a.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"hide")}else{if(f.elements.tooltip.css("display")==="none"){return f}}clearTimeout(f.timers.show);f.elements.tooltip.stop(true,false);c=f.beforeHide.call(f,b);if(c===false){return f}f.cache.toggle=0;if(typeof f.options.hide.effect.type=="function"){f.options.hide.effect.type.call(f.elements.tooltip,f.options.hide.effect.length);f.elements.tooltip.queue(function(){d();a(this).dequeue()})}else{switch(f.options.hide.effect.type.toLowerCase()){case"fade":f.elements.tooltip.fadeOut(f.options.hide.effect.length,d);break;case"slide":f.elements.tooltip.slideUp(f.options.hide.effect.length,d);break;case"grow":f.elements.tooltip.hide(f.options.hide.effect.length,d);break;default:f.elements.tooltip.hide(null,d);break}f.elements.tooltip.removeClass(f.options.style.classes.active)}return a.fn.qtip.log.error.call(f,1,a.fn.qtip.constants.EVENT_HIDDEN,"hide")},updatePosition:function(b,c){var d,e,g,h,i,j,k,m,n,o,p,q,t,u;if(!f.status.rendered){return a.fn.qtip.log.error.call(f,2,a.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"updatePosition")}else{if(f.options.position.type=="static"){return a.fn.qtip.log.error.call(f,1,a.fn.qtip.constants.CANNOT_POSITION_STATIC,"updatePosition")}}e={position:{left:0,top:0},dimensions:{height:0,width:0},corner:f.options.position.corner.target};g={position:f.getPosition(),dimensions:f.getDimensions(),corner:f.options.position.corner.tooltip};if(f.options.position.target!=="mouse"){if(f.options.position.target.get(0).nodeName.toLowerCase()=="area"){h=f.options.position.target.attr("coords").split(",");for(d=0;d<h.length;d++){h[d]=parseInt(h[d])}i=f.options.position.target.parent("map").attr("name");j=a('img[usemap="#'+i+'"]:first').offset();e.position={left:Math.floor(j.left+h[0]),top:Math.floor(j.top+h[1])};switch(f.options.position.target.attr("shape").toLowerCase()){case"rect":e.dimensions={width:Math.ceil(Math.abs(h[2]-h[0])),height:Math.ceil(Math.abs(h[3]-h[1]))};break;case"circle":e.dimensions={width:h[2]+1,height:h[2]+1};break;case"poly":e.dimensions={width:h[0],height:h[1]};for(d=0;d<h.length;d++){if(d%2==0){if(h[d]>e.dimensions.width){e.dimensions.width=h[d]}if(h[d]<h[0]){e.position.left=Math.floor(j.left+h[d])}}else{if(h[d]>e.dimensions.height){e.dimensions.height=h[d]}if(h[d]<h[1]){e.position.top=Math.floor(j.top+h[d])}}}e.dimensions.width=e.dimensions.width-(e.position.left-j.left);e.dimensions.height=e.dimensions.height-(e.position.top-j.top);break;default:return a.fn.qtip.log.error.call(f,4,a.fn.qtip.constants.INVALID_AREA_SHAPE,"updatePosition");break}e.dimensions.width-=2;e.dimensions.height-=2}else{if(f.options.position.target.add(document.body).length===1){e.position={left:a(document).scrollLeft(),top:a(document).scrollTop()};e.dimensions={height:a(window).height(),width:a(window).width()}}else{if(typeof f.options.position.target.attr("qtip")!=="undefined"){e.position=f.options.position.target.qtip("api").cache.position}else{e.position=f.options.position.target.offset()}e.dimensions={height:f.options.position.target.outerHeight(),width:f.options.position.target.outerWidth()}}}k=a.extend({},e.position);if(/right/i.test(e.corner)){k.left+=e.dimensions.width}if(/bottom/i.test(e.corner)){k.top+=e.dimensions.height}if(/((top|bottom)Middle)|center/.test(e.corner)){k.left+=e.dimensions.width/2}if(/((left|right)Middle)|center/.test(e.corner)){k.top+=e.dimensions.height/2}}else{e.position=k={left:f.cache.mouse.x,top:f.cache.mouse.y};e.dimensions={height:1,width:1}}if(/right/i.test(g.corner)){k.left-=g.dimensions.width}if(/bottom/i.test(g.corner)){k.top-=g.dimensions.height}if(/((top|bottom)Middle)|center/.test(g.corner)){k.left-=g.dimensions.width/2}if(/((left|right)Middle)|center/.test(g.corner)){k.top-=g.dimensions.height/2}m=a.browser.msie?1:0;n=a.browser.msie&&parseInt(a.browser.version.charAt(0))===6?1:0;if(f.options.style.border.radius>0){if(/Left/i.test(g.corner)){k.left-=f.options.style.border.radius}else{if(/Right/i.test(g.corner)){k.left+=f.options.style.border.radius}}if(/Top/i.test(g.corner)){k.top-=f.options.style.border.radius}else{if(/Bottom/i.test(g.corner)){k.top+=f.options.style.border.radius}}}if(m){if(/top/i.test(g.corner)){k.top-=m}else{if(/bottom/i.test(g.corner)){k.top+=m}}if(/left/i.test(g.corner)){k.left-=m}else{if(/right/i.test(g.corner)){k.left+=m}}if(/leftMiddle|rightMiddle/.test(g.corner)){k.top-=1}}if(f.options.position.adjust.screen===true){k=l.call(f,k,e,g)}if(f.options.position.target==="mouse"&&f.options.position.adjust.mouse===true){if(f.options.position.adjust.screen===true&&f.elements.tip){p=f.elements.tip.attr("rel")}else{p=f.options.position.corner.tooltip}k.left+=/right/i.test(p)?-6:6;k.top+=/bottom/i.test(p)?-6:6}if(!f.elements.bgiframe&&a.browser.msie&&parseInt(a.browser.version.charAt(0))==6){a("select, object").each(function(){q=a(this).offset();q.bottom=q.top+a(this).height();q.right=q.left+a(this).width();if(k.top+g.dimensions.height>=q.top&&k.left+g.dimensions.width>=q.left){r.call(f)}})}k.left+=f.options.position.adjust.x;k.top+=f.options.position.adjust.y;t=f.getPosition();if(k.left!=t.left||k.top!=t.top){u=f.beforePositionUpdate.call(f,b);if(u===false){return f}f.cache.position=k;if(c===true){f.status.animated=true;f.elements.tooltip.animate(k,200,"swing",function(){f.status.animated=false})}else{f.elements.tooltip.css(k)}f.onPositionUpdate.call(f,b);if(typeof b!=="undefined"&&b.type&&b.type!=="mousemove"){a.fn.qtip.log.error.call(f,1,a.fn.qtip.constants.EVENT_POSITION_UPDATED,"updatePosition")}}return f},updateWidth:function(b){if(!f.status.rendered){return a.fn.qtip.log.error.call(f,2,a.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"updateWidth")}else{if(b!=undefined&&typeof b!=="number"){return a.fn.qtip.log.error.call(f,2,"newWidth must be of type number","updateWidth")}}var c=f.elements.contentWrapper.siblings().add(f.elements.tip).add(f.elements.button),d=f.elements.wrapper.add(f.elements.contentWrapper.children()),e=f.elements.tooltip,g=f.options.style.width.max,h=f.options.style.width.min;if(!b){if(typeof f.options.style.width.value==="number"){b=f.options.style.width.value}else{f.elements.tooltip.css({width:"auto"});c.hide();if(a.browser.msie){d.css({zoom:""})}b=f.getDimensions().width;if(!f.options.style.width.value){b=Math.min(Math.max(b,h),g)}}}if(b%2){b-=1}f.elements.tooltip.width(b);c.show();if(f.options.style.border.radius){f.elements.tooltip.find(".qtip-betweenCorners").each(function(c){a(this).width(b-f.options.style.border.radius*2)})}if(a.browser.msie){d.css({zoom:1});if(f.elements.bgiframe){f.elements.bgiframe.width(b).height(f.getDimensions.height)}}return a.fn.qtip.log.error.call(f,1,a.fn.qtip.constants.EVENT_WIDTH_UPDATED,"updateWidth")},updateStyle:function(b){var c,d,h,i,j;if(!f.status.rendered){return a.fn.qtip.log.error.call(f,2,a.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"updateStyle")}else{if(typeof b!=="string"||!a.fn.qtip.styles[b]){return a.fn.qtip.log.error.call(f,2,a.fn.qtip.constants.STYLE_NOT_DEFINED,"updateStyle")}}f.options.style=o.call(f,a.fn.qtip.styles[b],f.options.user.style);f.elements.content.css(m(f.options.style));if(f.options.content.title.text!==false){f.elements.title.css(m(f.options.style.title,true))}f.elements.contentWrapper.css({borderColor:f.options.style.border.color});if(f.options.style.tip.corner!==false){if(a("<canvas>").get(0).getContext){c=f.elements.tooltip.find(".qtip-tip canvas:first");h=c.get(0).getContext("2d");h.clearRect(0,0,300,300);i=c.parent("div[rel]:first").attr("rel");j=p(i,f.options.style.tip.size.width,f.options.style.tip.size.height);g.call(f,c,j,f.options.style.tip.color||f.options.style.border.color)}else{if(a.browser.msie){c=f.elements.tooltip.find('.qtip-tip [nodeName="shape"]');c.attr("fillcolor",f.options.style.tip.color||f.options.style.border.color)}}}if(f.options.style.border.radius>0){f.elements.tooltip.find(".qtip-betweenCorners").css({backgroundColor:f.options.style.border.color});if(a("<canvas>").get(0).getContext){d=q(f.options.style.border.radius);f.elements.tooltip.find(".qtip-wrapper canvas").each(function(){h=a(this).get(0).getContext("2d");h.clearRect(0,0,300,300);i=a(this).parent("div[rel]:first").attr("rel");e.call(f,a(this),d[i],f.options.style.border.radius,f.options.style.border.color)})}else{if(a.browser.msie){f.elements.tooltip.find('.qtip-wrapper [nodeName="arc"]').each(function(){a(this).attr("fillcolor",f.options.style.border.color)})}}}return a.fn.qtip.log.error.call(f,1,a.fn.qtip.constants.EVENT_STYLE_UPDATED,"updateStyle")},updateContent:function(b,c){function i(){f.updateWidth();if(c!==false){if(f.options.position.type!=="static"){f.updatePosition(f.elements.tooltip.is(":visible"),true)}if(f.options.style.tip.corner!==false){h.call(f)}}}var d,e,g;if(!f.status.rendered){return a.fn.qtip.log.error.call(f,2,a.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"updateContent")}else{if(!b){return a.fn.qtip.log.error.call(f,2,a.fn.qtip.constants.NO_CONTENT_PROVIDED,"updateContent")}}d=f.beforeContentUpdate.call(f,b);if(typeof d=="string"){b=d}else{if(d===false){return}}if(a.browser.msie){f.elements.contentWrapper.children().css({zoom:"normal"})}if(b.jquery&&b.length>0){b.clone(true).appendTo(f.elements.content).show()}else{f.elements.content.html(b)}g=0;e=f.elements.content.find("img");if(e.length){if(a.fn.qtip.preload){e.each(function(){preloaded=a('body > img[src="'+a(this).attr("src")+'"]:first');if(preloaded.length>0){a(this).attr("width",preloaded.innerWidth()).attr("height",preloaded.innerHeight())}});i()}else{e.bind("load error",function(){if(++g===e.length){i()}})}}else{i()}f.updateWidth();if(c!==false){if(f.options.position.type!=="static"){f.updatePosition(f.elements.tooltip.is(":visible"),true)}if(f.options.style.tip.corner!==false){h.call(f)}}f.onContentUpdate.call(f);return a.fn.qtip.log.error.call(f,1,a.fn.qtip.constants.EVENT_CONTENT_UPDATED,"loadContent")},loadContent:function(b,c,d){function g(b){f.onContentLoad.call(f);a.fn.qtip.log.error.call(f,1,a.fn.qtip.constants.EVENT_CONTENT_LOADED,"loadContent");f.updateContent(b)}var e;if(!f.status.rendered){return a.fn.qtip.log.error.call(f,2,a.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"loadContent")}e=f.beforeContentLoad.call(f);if(e===false){return f}if(d=="post"){a.post(b,c,g)}else{a.get(b,c,g)}return f},updateTitle:function(b){if(!f.status.rendered){return a.fn.qtip.log.error.call(f,2,a.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"updateTitle")}else{if(!b){return a.fn.qtip.log.error.call(f,2,a.fn.qtip.constants.NO_CONTENT_PROVIDED,"updateTitle")}}returned=f.beforeTitleUpdate.call(f);if(returned===false){return f}if(f.elements.button){f.elements.button=f.elements.button.clone(true)}f.elements.title.html(b);if(f.elements.button){f.elements.title.prepend(f.elements.button)}f.onTitleUpdate.call(f);return a.fn.qtip.log.error.call(f,1,a.fn.qtip.constants.EVENT_TITLE_UPDATED,"updateTitle")},focus:function(b){var c,d,e,g;if(!f.status.rendered){return a.fn.qtip.log.error.call(f,2,a.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"focus")}else{if(f.options.position.type=="static"){return a.fn.qtip.log.error.call(f,1,a.fn.qtip.constants.CANNOT_FOCUS_STATIC,"focus")}}c=parseInt(f.elements.tooltip.css("z-index"));d=32001+a("div.qtip[qtip]").length-1;if(!f.status.focused&&c!==d){g=f.beforeFocus.call(f,b);if(g===false){return f}a("div.qtip[qtip]").not(f.elements.tooltip).each(function(){if(a(this).qtip("api").status.rendered===true){e=parseInt(a(this).css("z-index"));if(typeof e=="number"&&e>-1){a(this).css({zIndex:parseInt(a(this).css("z-index"))-1})}a(this).qtip("api").status.focused=false}});f.elements.tooltip.css({zIndex:d});f.status.focused=true;f.onFocus.call(f,b);a.fn.qtip.log.error.call(f,1,a.fn.qtip.constants.EVENT_FOCUSED,"focus")}return f},disable:function(b){if(!f.status.rendered){return a.fn.qtip.log.error.call(f,2,a.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"disable")}if(b){if(!f.status.disabled){f.status.disabled=true;a.fn.qtip.log.error.call(f,1,a.fn.qtip.constants.EVENT_DISABLED,"disable")}else{a.fn.qtip.log.error.call(f,1,a.fn.qtip.constants.TOOLTIP_ALREADY_DISABLED,"disable")}}else{if(f.status.disabled){f.status.disabled=false;a.fn.qtip.log.error.call(f,1,a.fn.qtip.constants.EVENT_ENABLED,"disable")}else{a.fn.qtip.log.error.call(f,1,a.fn.qtip.constants.TOOLTIP_ALREADY_ENABLED,"disable")}}return f},destroy:function(){var b,c,d;c=f.beforeDestroy.call(f);if(c===false){return f}if(f.status.rendered){f.options.show.when.target.unbind("mousemove.qtip",f.updatePosition);f.options.show.when.target.unbind("mouseout.qtip",f.hide);f.options.show.when.target.unbind(f.options.show.when.event+".qtip");f.options.hide.when.target.unbind(f.options.hide.when.event+".qtip");f.elements.tooltip.unbind(f.options.hide.when.event+".qtip");f.elements.tooltip.unbind("mouseover.qtip",f.focus);f.elements.tooltip.remove()}else{f.options.show.when.target.unbind(f.options.show.when.event+".qtip-create")}if(typeof f.elements.target.data("qtip")=="object"){d=f.elements.target.data("qtip").interfaces;if(typeof d=="object"&&d.length>0){for(b=0;b<d.length-1;b++){if(d[b].id==f.id){d.splice(b,1)}}}}a.fn.qtip.interfaces.splice(f.id,1);if(typeof d=="object"&&d.length>0){f.elements.target.data("qtip").current=d.length-1}else{f.elements.target.removeData("qtip")}f.onDestroy.call(f);a.fn.qtip.log.error.call(f,1,a.fn.qtip.constants.EVENT_DESTROYED,"destroy");return f.elements.target},getPosition:function(){var b,c;if(!f.status.rendered){return a.fn.qtip.log.error.call(f,2,a.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"getPosition")}b=f.elements.tooltip.css("display")!=="none"?false:true;if(b){f.elements.tooltip.css({visiblity:"hidden"}).show()}c=f.elements.tooltip.offset();if(b){f.elements.tooltip.css({visiblity:"visible"}).hide()}return c},getDimensions:function(){var b,c;if(!f.status.rendered){return a.fn.qtip.log.error.call(f,2,a.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"getDimensions")}b=!f.elements.tooltip.is(":visible")?true:false;if(b){f.elements.tooltip.css({visiblity:"hidden"}).show()}c={height:f.elements.tooltip.outerHeight(),width:f.elements.tooltip.outerWidth()};if(b){f.elements.tooltip.css({visiblity:"visible"}).hide()}return c}})}a.fn.qtip=function(d,e){var f,g,h,i,j,k,l,m;if(typeof d=="string"){if(a.isPlainObject(a(this).data("qtip"))){a.fn.qtip.log.error.call(self,1,a.fn.qtip.constants.NO_TOOLTIP_PRESENT,false)}if(d=="api"){return a(this).data("qtip").interfaces[a(this).data("qtip").current]}else{if(d=="interfaces"){return a(this).data("qtip").interfaces}}}else{if(!d){d={}}if(typeof d.content!=="object"||d.content.jquery&&d.content.length>0){d.content={text:d.content}}if(typeof d.content.title!=="object"){d.content.title={text:d.content.title}}if(typeof d.position!=="object"){d.position={corner:d.position}}if(typeof d.position.corner!=="object"){d.position.corner={target:d.position.corner,tooltip:d.position.corner}}if(typeof d.show!=="object"){d.show={when:d.show}}if(typeof d.show.when!=="object"){d.show.when={event:d.show.when}}if(typeof d.show.effect!=="object"){d.show.effect={type:d.show.effect}}if(typeof d.hide!=="object"){d.hide={when:d.hide}}if(typeof d.hide.when!=="object"){d.hide.when={event:d.hide.when}}if(typeof d.hide.effect!=="object"){d.hide.effect={type:d.hide.effect}}if(typeof d.style!=="object"){d.style={name:d.style}}d.style=n(d.style);i=a.extend(true,{},a.fn.qtip.defaults,d);i.style=o.call({options:i},i.style);i.user=a.extend(true,{},d)}return a(this).each(function(){if(typeof d=="string"){k=d.toLowerCase();h=a(this).qtip("interfaces");if(typeof h=="object"){if(e===true&&k=="destroy"){while(h.length>0){h[h.length-1].destroy()}}else{if(e!==true){h=[a(this).qtip("api")]}for(f=0;f<h.length;f++){if(k=="destroy"){h[f].destroy()}else{if(h[f].status.rendered===true){if(k=="show"){h[f].show()}else{if(k=="hide"){h[f].hide()}else{if(k=="focus"){h[f].focus()}else{if(k=="disable"){h[f].disable(true)}else{if(k=="enable"){h[f].disable(false)}}}}}}}}}}}else{l=a.extend(true,{},i);l.hide.effect.length=i.hide.effect.length;l.show.effect.length=i.show.effect.length;if(l.position.container===false){l.position.container=a(document.body)}if(l.position.target===false){l.position.target=a(this)}if(l.show.when.target===false){l.show.when.target=a(this)}if(l.hide.when.target===false){l.hide.when.target=a(this)}g=a.fn.qtip.interfaces.length;for(f=0;f<g;f++){if(typeof a.fn.qtip.interfaces[f]=="undefined"){g=f;break}}j=new b(a(this),l,g);a.fn.qtip.interfaces[g]=j;if(a.isPlainObject(a(this).data("qtip"))){if(typeof a(this).attr("qtip")==="undefined"){a(this).data("qtip").current=a(this).data("qtip").interfaces.length}a(this).data("qtip").interfaces.push(j)}else{a(this).data("qtip",{current:0,interfaces:[j]})}if(l.content.prerender===false&&l.show.when.event!==false&&l.show.ready!==true){l.show.when.target.bind(l.show.when.event+".qtip-"+g+"-create",{qtip:g},function(b){m=a.fn.qtip.interfaces[b.data.qtip];m.options.show.when.target.unbind(m.options.show.when.event+".qtip-"+b.data.qtip+"-create");m.cache.mouse={x:b.pageX,y:b.pageY};c.call(m);m.options.show.when.target.trigger(m.options.show.when.event)})}else{j.cache.mouse={x:l.show.when.target.offset().left,y:l.show.when.target.offset().top};c.call(j)}}})};a(document).ready(function(){a.fn.qtip.cache={screen:{scroll:{left:a(window).scrollLeft(),top:a(window).scrollTop()},width:a(window).width(),height:a(window).height()}};var b;a(window).bind("resize scroll",function(c){clearTimeout(b);b=setTimeout(function(){if(c.type==="scroll"){a.fn.qtip.cache.screen.scroll={left:a(window).scrollLeft(),top:a(window).scrollTop()}}else{a.fn.qtip.cache.screen.width=a(window).width();a.fn.qtip.cache.screen.height=a(window).height()}for(i=0;i<a.fn.qtip.interfaces.length;i++){var b=a.fn.qtip.interfaces[i];if(b.status.rendered===true&&(b.options.position.adjust.scroll&&c.type==="scroll"||b.options.position.adjust.resize&&c.type==="resize")){b.updatePosition(c,true)}}},100)});a(document).bind("mousedown.qtip",function(b){if(a(b.target).parents("div.qtip").length===0){a(".qtip[unfocus]").each(function(){var c=a(this).qtip("api");if(a(this).is(":visible")&&!c.status.disabled&&a(b.target).add(c.elements.target).length>1){c.hide(b)}})}})});a.fn.qtip.interfaces=[];a.fn.qtip.log={error:function(){return this}};a.fn.qtip.constants={};a.fn.qtip.defaults={content:{prerender:false,text:false,url:false,data:null,title:{text:false,button:false}},position:{target:false,corner:{target:"bottomRight",tooltip:"topLeft"},adjust:{x:0,y:0,mouse:true,screen:false,scroll:true,resize:true},type:"absolute",container:false},show:{when:{target:false,event:"mouseover"},effect:{type:"fade",length:100},delay:140,solo:false,ready:false},hide:{when:{target:false,event:"mouseout"},effect:{type:"fade",length:100},delay:0,fixed:false},api:{beforeRender:function(){},onRender:function(){},beforePositionUpdate:function(){},onPositionUpdate:function(){},beforeShow:function(){},onShow:function(){},beforeHide:function(){},onHide:function(){},beforeContentUpdate:function(){},onContentUpdate:function(){},beforeContentLoad:function(){},onContentLoad:function(){},beforeTitleUpdate:function(){},onTitleUpdate:function(){},beforeDestroy:function(){},onDestroy:function(){},beforeFocus:function(){},onFocus:function(){}}};a.fn.qtip.styles={defaults:{background:"white",color:"#111",overflow:"hidden",textAlign:"left",width:{min:0,max:250},padding:"5px 9px",border:{width:1,radius:0,color:"#d3d3d3"},tip:{corner:false,color:false,size:{width:13,height:13},opacity:1},title:{background:"#e1e1e1",fontWeight:"bold",padding:"7px 12px"},button:{cursor:"pointer"},classes:{target:"",tip:"qtip-tip",title:"qtip-title",button:"qtip-button",content:"qtip-content",active:"qtip-active"}},cream:{border:{width:3,radius:0,color:"#F9E98E"},title:{background:"#F0DE7D",color:"#A27D35"},background:"#FBF7AA",color:"#A27D35",classes:{tooltip:"qtip-cream"}},light:{border:{width:3,radius:0,color:"#E2E2E2"},title:{background:"#f1f1f1",color:"#454545"},background:"white",color:"#454545",classes:{tooltip:"qtip-light"}},dark:{border:{width:3,radius:0,color:"#303030"},title:{background:"#404040",color:"#f3f3f3"},background:"#505050",color:"#f3f3f3",classes:{tooltip:"qtip-dark"}},red:{border:{width:3,radius:0,color:"#CE6F6F"},title:{background:"#f28279",color:"#9C2F2F"},background:"#F79992",color:"#9C2F2F",classes:{tooltip:"qtip-red"}},green:{border:{width:3,radius:0,color:"#A9DB66"},title:{background:"#b9db8c",color:"#58792E"},background:"#CDE6AC",color:"#58792E",classes:{tooltip:"qtip-green"}},blue:{border:{width:3,radius:0,color:"#ADD9ED"},title:{background:"#D0E9F5",color:"#5E99BD"},background:"#E5F6FE",color:"#4D9FBF",classes:{tooltip:"qtip-blue"}}}})(jQuery);(function(a){function b(a,b){var c,d;d=b?"ig":"i";c=new RegExp("< *[img][^>]*[src] *= *[\"']{0,1}([^\"' >]*)[^>]*>",d);return c.exec(a)}a.fn.qtip.preload=function(c){var d=[],e,f;if(c.jquery&&c.length>0&&c.html){c=c.html()}d=b(c,true);if(d&&d.length>0){e=d.length;while(e--){if(d[e].search(/^</i)<0||d[e].search(/(width|height){1} *= *["']{0,1}([^>]*)/i)>-1){continue}f=b(d[e]);if(f&&f.length>1&&f[1]){a(document.body).append('<img src="'+f[1]+'" style="position: absolute; left: -10000em; " />')}}}}})(jQuery);(function(a){function b(a,b){var c,d;d=b?"ig":"i";c=new RegExp("< *[img][^>]*[src] *= *[\"']{0,1}([^\"' >]*)[^>]*>",d);return c.exec(a)}a.fn.qtip.preload=function(c){var d=[],e,f;if(c.jquery&&c.length>0&&c.html)c=c.html();d=b(c,true);if(d&&d.length>0){e=d.length;while(e--){if(d[e].search(/^</i)<0||d[e].search(/(width|height){1} *= *["']{0,1}([^>]*)/i)>-1)continue;f=b(d[e]);if(f&&f.length>1&&f[1])a(document.body).append('<img src="'+f[1]+'" style="position: absolute; left: -10000em; " />')}}}})(jQuery);(function(a){function b(b){var c=[].slice.call(arguments,1),d=0;b=a.event.fix(b||window.event);b.type="mousewheel";if(b.wheelDelta)d=b.wheelDelta/120;if(b.detail)d=-b.detail/3;c.unshift(b,d);return a.event.handle.apply(this,c)}var c=["DOMMouseScroll","mousewheel"];a.event.special.mousewheel={setup:function(){if(this.addEventListener)for(var a=c.length;a;)this.addEventListener(c[--a],b,false);else this.onmousewheel=b},teardown:function(){if(this.removeEventListener)for(var a=c.length;a;)this.removeEventListener(c[--a],b,false);else this.onmousewheel=null}};a.fn.extend({mousewheel:function(a){return a?this.bind("mousewheel",a):this.trigger("mousewheel")},unmousewheel:function(a){return this.unbind("mousewheel",a)}})})(jQuery);(function(a){var b,c,d,e,f,g,h,i,j,k=0,l={},m=[],n=0,o={},p=[],q=null,r=new Image,s=/\.(jpg|gif|png|bmp|jpeg)(.*)?$/i,t=/[^\.]\.(swf)\s*$/i,u,v=1,w,x,y=false,z=20,A=a.extend(a("<div/>")[0],{prop:0}),B=0,C=!a.support.opacity&&!window.XMLHttpRequest,D=function(){c.hide();r.onerror=r.onload=null;if(q){q.abort()}b.empty()},E=function(){a.fancybox('<p id="fancybox_error">The requested content cannot be loaded.<br />Please try again later.</p>',{scrolling:"no",padding:20,transitionIn:"none",transitionOut:"none"})},F=function(){return[a(window).width(),a(window).height(),a(document).scrollLeft(),a(document).scrollTop()]},G=function(){var a=F(),b={},c=o.margin,d=o.autoScale,e=(z+c)*2,f=(z+c)*2,g=o.padding*2,h;if(o.width.toString().indexOf("%")>-1){b.width=a[0]*parseFloat(o.width)/100-z*2;d=false}else{b.width=o.width+g}if(o.height.toString().indexOf("%")>-1){b.height=a[1]*parseFloat(o.height)/100-z*2;d=false}else{b.height=o.height+g}if(d&&(b.width>a[0]-e||b.height>a[1]-f)){if(l.type=="image"||l.type=="swf"){e+=g;f+=g;h=Math.min(Math.min(a[0]-e,o.width)/o.width,Math.min(a[1]-f,o.height)/o.height);b.width=Math.round(h*(b.width-g))+g;b.height=Math.round(h*(b.height-g))+g}else{b.width=Math.min(b.width,a[0]-e);b.height=Math.min(b.height,a[1]-f)}}b.top=a[3]+(a[1]-(b.height+z*2))*.5;b.left=a[2]+(a[0]-(b.width+z*2))*.5;if(o.autoScale===false){b.top=Math.max(a[3]+c,b.top);b.left=Math.max(a[2]+c,b.left)}return b},H=function(a){if(a&&a.length){switch(o.titlePosition){case"inside":return a;case"over":return'<span id="fancybox-title-over">'+a+"</span>";default:return'<span id="fancybox-title-wrap"><span id="fancybox-title-left"></span><span id="fancybox-title-main">'+a+'</span><span id="fancybox-title-right"></span></span>'}}return false},I=function(){var b=o.title,c=x.width-o.padding*2,d="fancybox-title-"+o.titlePosition;a("#fancybox-title").remove();B=0;if(o.titleShow===false){return}b=a.isFunction(o.titleFormat)?o.titleFormat(b,p,n,o):H(b);if(!b||b===""){return}a('<div id="fancybox-title" class="'+d+'" />').css({width:c,paddingLeft:o.padding,paddingRight:o.padding}).html(b).appendTo("body");switch(o.titlePosition){case"inside":B=a("#fancybox-title").outerHeight(true)-o.padding;x.height+=B;break;case"over":a("#fancybox-title").css("bottom",o.padding);break;default:a("#fancybox-title").css("bottom",a("#fancybox-title").outerHeight(true)*-1);break}a("#fancybox-title").appendTo(f).hide()},J=function(){a(document).unbind("keydown.fb").bind("keydown.fb",function(b){if(b.keyCode==27&&o.enableEscapeButton){b.preventDefault();a.fancybox.close()}else if(b.keyCode==37){b.preventDefault();a.fancybox.prev()}else if(b.keyCode==39){b.preventDefault();a.fancybox.next()}});if(a.fn.mousewheel){e.unbind("mousewheel.fb");if(p.length>1){e.bind("mousewheel.fb",function(b,c){b.preventDefault();if(y||c===0){return}if(c>0){a.fancybox.prev()}else{a.fancybox.next()}})}}if(!o.showNavArrows){return}if(o.cyclic&&p.length>1||n!==0){i.show()}if(o.cyclic&&p.length>1||n!=p.length-1){j.show()}},K=function(){var a,b;if(p.length-1>n){a=p[n+1].href;if(typeof a!=="undefined"&&a.match(s)){b=new Image;b.src=a}}if(n>0){a=p[n-1].href;if(typeof a!=="undefined"&&a.match(s)){b=new Image;b.src=a}}},L=function(){g.css("overflow",o.scrolling=="auto"?o.type=="image"||o.type=="iframe"||o.type=="swf"?"hidden":"auto":o.scrolling=="yes"?"auto":"visible");if(!a.support.opacity){g.get(0).style.removeAttribute("filter");e.get(0).style.removeAttribute("filter")}a("#fancybox-title").show();if(o.hideOnContentClick){g.one("click",a.fancybox.close)}if(o.hideOnOverlayClick){d.one("click",a.fancybox.close)}if(o.showCloseButton){h.show()}J();a(window).bind("resize.fb",a.fancybox.center);if(o.centerOnScroll){a(window).bind("scroll.fb",a.fancybox.center)}else{a(window).unbind("scroll.fb")}if(a.isFunction(o.onComplete)){o.onComplete(p,n,o)}y=false;K()},M=function(a){var b=Math.round(w.width+(x.width-w.width)*a),c=Math.round(w.height+(x.height-w.height)*a),d=Math.round(w.top+(x.top-w.top)*a),f=Math.round(w.left+(x.left-w.left)*a);e.css({width:b+"px",height:c+"px",top:d+"px",left:f+"px"});b=Math.max(b-o.padding*2,0);c=Math.max(c-(o.padding*2+B*a),0);g.css({width:b+"px",height:c+"px"});if(typeof x.opacity!=="undefined"){e.css("opacity",a<.5?.5:a)}},N=function(a){var b=a.offset();b.top+=parseFloat(a.css("paddingTop"))||0;b.left+=parseFloat(a.css("paddingLeft"))||0;b.top+=parseFloat(a.css("border-top-width"))||0;b.left+=parseFloat(a.css("border-left-width"))||0;b.width=a.width();b.height=a.height();return b},O=function(){var b=l.orig?a(l.orig):false,c={},d,e;if(b&&b.length){d=N(b);c={width:d.width+o.padding*2,height:d.height+o.padding*2,top:d.top-o.padding-z,left:d.left-o.padding-z}}else{e=F();c={width:1,height:1,top:e[3]+e[1]*.5,left:e[2]+e[0]*.5}}return c},P=function(){c.hide();if(e.is(":visible")&&a.isFunction(o.onCleanup)){if(o.onCleanup(p,n,o)===false){a.event.trigger("fancybox-cancel");y=false;return}}p=m;n=k;o=l;g.get(0).scrollTop=0;g.get(0).scrollLeft=0;if(o.overlayShow){if(C){a("select:not(#fancybox-tmp select)").filter(function(){return this.style.visibility!=="hidden"}).css({visibility:"hidden"}).one("fancybox-cleanup",function(){this.style.visibility="inherit"})}d.css({"background-color":o.overlayColor,opacity:o.overlayOpacity}).unbind().show()}x=G();I();if(e.is(":visible")){a(h.add(i).add(j)).hide();var f=e.position(),q;w={top:f.top,left:f.left,width:e.width(),height:e.height()};q=w.width==x.width&&w.height==x.height;g.fadeOut(o.changeFade,function(){var c=function(){g.html(b.contents()).fadeIn(o.changeFade,L)};a.event.trigger("fancybox-change");g.empty().css("overflow","hidden");if(q){g.css({top:o.padding,left:o.padding,width:Math.max(x.width-o.padding*2,1),height:Math.max(x.height-o.padding*2-B,1)});c()}else{g.css({top:o.padding,left:o.padding,width:Math.max(w.width-o.padding*2,1),height:Math.max(w.height-o.padding*2,1)});A.prop=0;a(A).animate({prop:1},{duration:o.changeSpeed,easing:o.easingChange,step:M,complete:c})}});return}e.css("opacity",1);if(o.transitionIn=="elastic"){w=O();g.css({top:o.padding,left:o.padding,width:Math.max(w.width-o.padding*2,1),height:Math.max(w.height-o.padding*2,1)}).html(b.contents());e.css(w).show();if(o.opacity){x.opacity=0}A.prop=0;a(A).animate({prop:1},{duration:o.speedIn,easing:o.easingIn,step:M,complete:L})}else{g.css({top:o.padding,left:o.padding,width:Math.max(x.width-o.padding*2,1),height:Math.max(x.height-o.padding*2-B,1)}).html(b.contents());e.css(x).fadeIn(o.transitionIn=="none"?0:o.speedIn,L)}},Q=function(){b.width(l.width);b.height(l.height);if(l.width=="auto"){l.width=b.width()}if(l.height=="auto"){l.height=b.height()}P()},R=function(){y=true;l.width=r.width;l.height=r.height;a("<img />").attr({id:"fancybox-img",src:r.src,alt:l.title}).appendTo(b);P()},S=function(){D();var c=m[k],d,e,f,h,i,j,n;l=a.extend({},a.fn.fancybox.defaults,typeof a(c).data("fancybox")=="undefined"?l:a(c).data("fancybox"));f=c.title||a(c).title||l.title||"";if(c.nodeName&&!l.orig){l.orig=a(c).children("img:first").length?a(c).children("img:first"):a(c)}if(f===""&&l.orig){f=l.orig.attr("alt")}if(c.nodeName&&/^(?:javascript|#)/i.test(c.href)){d=l.href||null}else{d=l.href||c.href||null}if(l.type){e=l.type;if(!d){d=l.content}}else if(l.content){e="html"}else if(d){if(d.match(s)){e="image"}else if(d.match(t)){e="swf"}else if(a(c).hasClass("iframe")){e="iframe"}else if(d.match(/#/)){c=d.substr(d.indexOf("#"));e=a(c).length>0?"inline":"ajax"}else{e="ajax"}}else{e="inline"}l.type=e;l.href=d;l.title=f;if(l.autoDimensions&&l.type!=="iframe"&&l.type!=="swf"){l.width="auto";l.height="auto"}if(l.modal){l.overlayShow=true;l.hideOnOverlayClick=false;l.hideOnContentClick=false;l.enableEscapeButton=false;l.showCloseButton=false}if(a.isFunction(l.onStart)){if(l.onStart(m,k,l)===false){y=false;return}}b.css("padding",z+l.padding+l.margin);a(".fancybox-inline-tmp").unbind("fancybox-cancel").bind("fancybox-change",function(){a(this).replaceWith(g.children())});switch(e){case"html":b.html(l.content);Q();break;case"inline":a('<div class="fancybox-inline-tmp" />').hide().insertBefore(a(c)).bind("fancybox-cleanup",function(){a(this).replaceWith(g.children())}).bind("fancybox-cancel",function(){a(this).replaceWith(b.children())});a(c).appendTo(b);Q();break;case"image":y=false;a.fancybox.showActivity();r=new Image;r.onerror=function(){E()};r.onload=function(){r.onerror=null;r.onload=null;R()};r.src=d;break;case"swf":h='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+l.width+'" height="'+l.height+'"><param name="movie" value="'+d+'"></param>';i="";a.each(l.swf,function(a,b){h+='<param name="'+a+'" value="'+b+'"></param>';i+=" "+a+'="'+b+'"'});h+='<embed src="'+d+'" type="application/x-shockwave-flash" width="'+l.width+'" height="'+l.height+'"'+i+"></embed></object>";b.html(h);Q();break;case"ajax":j=d.split("#",2);n=l.ajax.data||{};if(j.length>1){d=j[0];if(typeof n=="string"){n+="&selector="+j[1]}else{n.selector=j[1]}}y=false;a.fancybox.showActivity();q=a.ajax(a.extend(l.ajax,{url:d,data:n,error:E,success:function(a,c,d){if(q.status==200){b.html(a);Q()}}}));break;case"iframe":a('<iframe id="fancybox-frame" name="fancybox-frame'+(new Date).getTime()+'" frameborder="0" hspace="0" scrolling="'+l.scrolling+'" src="'+l.href+'"></iframe>').appendTo(b);P();break}},T=function(){if(!c.is(":visible")){clearInterval(u);return}a("div",c).css("top",v*-40+"px");v=(v+1)%12},U=function(){if(a("#fancybox-wrap").length){return}a("body").append(b=a('<div id="fancybox-tmp"></div>'),c=a('<div id="fancybox-loading"><div></div></div>'),d=a('<div id="fancybox-overlay"></div>'),e=a('<div id="fancybox-wrap"></div>'));if(!a.support.opacity){e.addClass("fancybox-ie");c.addClass("fancybox-ie")}f=a('<div id="fancybox-outer"></div>').append('<div class="fancy-bg" id="fancy-bg-n"></div><div class="fancy-bg" id="fancy-bg-ne"></div><div class="fancy-bg" id="fancy-bg-e"></div><div class="fancy-bg" id="fancy-bg-se"></div><div class="fancy-bg" id="fancy-bg-s"></div><div class="fancy-bg" id="fancy-bg-sw"></div><div class="fancy-bg" id="fancy-bg-w"></div><div class="fancy-bg" id="fancy-bg-nw"></div>').appendTo(e);f.append(g=a('<div id="fancybox-inner"></div>'),h=a('<a id="fancybox-close"></a>'),i=a('<a href="javascript:;" id="fancybox-left"><span class="fancy-ico" id="fancybox-left-ico"></span></a>'),j=a('<a href="javascript:;" id="fancybox-right"><span class="fancy-ico" id="fancybox-right-ico"></span></a>'));h.click(a.fancybox.close);c.click(a.fancybox.cancel);i.click(function(b){b.preventDefault();a.fancybox.prev()});j.click(function(b){b.preventDefault();a.fancybox.next()});if(C){d.get(0).style.setExpression("height","document.body.scrollHeight > document.body.offsetHeight ? document.body.scrollHeight : document.body.offsetHeight + 'px'");c.get(0).style.setExpression("top","(-20 + (document.documentElement.clientHeight ? document.documentElement.clientHeight/2 : document.body.clientHeight/2 ) + ( ignoreMe = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop )) + 'px'");f.prepend('<iframe id="fancybox-hide-sel-frame" src="javascript:\'\';" scrolling="no" frameborder="0" ></iframe>')}};a.fn.fancybox=function(b){a(this).data("fancybox",a.extend({},b,a.metadata?a(this).metadata():{})).unbind("click.fb").bind("click.fb",function(b){b.preventDefault();if(y){return}y=true;a(this).blur();m=[];k=0;var c=a(this).attr("rel")||"";if(!c||c==""||c==="nofollow"){m.push(this)}else{m=a("a[rel="+c+"], area[rel="+c+"]");k=m.index(this)}S();return false});return this};a.fancybox=function(b){if(y){return}y=true;var c=typeof arguments[1]!=="undefined"?arguments[1]:{};m=[];k=c.index||0;if(a.isArray(b)){for(var d=0,e=b.length;d<e;d++){if(typeof b[d]=="object"){a(b[d]).data("fancybox",a.extend({},c,b[d]))}else{b[d]=a({}).data("fancybox",a.extend({content:b[d]},c))}}m=jQuery.merge(m,b)}else{if(typeof b=="object"){a(b).data("fancybox",a.extend({},c,b))}else{b=a({}).data("fancybox",a.extend({content:b},c))}m.push(b)}if(k>m.length||k<0){k=0}S()};a.fancybox.showActivity=function(){clearInterval(u);c.show();u=setInterval(T,66)};a.fancybox.hideActivity=function(){c.hide()};a.fancybox.next=function(){return a.fancybox.pos(n+1)};a.fancybox.prev=function(){return a.fancybox.pos(n-1)};a.fancybox.pos=function(a){if(y){return}a=parseInt(a,10);if(a>-1&&p.length>a){k=a;S()}if(o.cyclic&&p.length>1&&a<0){k=p.length-1;S()}if(o.cyclic&&p.length>1&&a>=p.length){k=0;S()}return};a.fancybox.cancel=function(){if(y){return}y=true;a.event.trigger("fancybox-cancel");D();if(l&&a.isFunction(l.onCancel)){l.onCancel(m,k,l)}y=false};a.fancybox.close=function(){function b(){d.fadeOut("fast");e.hide();a.event.trigger("fancybox-cleanup");g.empty();if(a.isFunction(o.onClosed)){o.onClosed(p,n,o)}p=l=[];n=k=0;o=l={};y=false}if(y||e.is(":hidden")){return}y=true;if(o&&a.isFunction(o.onCleanup)){if(o.onCleanup(p,n,o)===false){y=false;return}}D();a(h.add(i).add(j)).hide();a("#fancybox-title").remove();e.add(g).add(d).unbind();a(window).unbind("resize.fb scroll.fb");a(document).unbind("keydown.fb");g.css("overflow","hidden");if(o.transitionOut=="elastic"){w=O();var c=e.position();x={top:c.top,left:c.left,width:e.width(),height:e.height()};if(o.opacity){x.opacity=1}A.prop=1;a(A).animate({prop:0},{duration:o.speedOut,easing:o.easingOut,step:M,complete:b})}else{e.fadeOut(o.transitionOut=="none"?0:o.speedOut,b)}};a.fancybox.resize=function(){var b,c;if(y||e.is(":hidden")){return}y=true;b=g.wrapInner("<div style='overflow:auto'></div>").children();c=b.height();e.css({height:c+o.padding*2+B});g.css({height:c});b.replaceWith(b.children());a.fancybox.center()};a.fancybox.center=function(){y=true;var a=F(),b=o.margin,c={};c.top=a[3]+(a[1]-(e.height()-B+z*2))*.5;c.left=a[2]+(a[0]-(e.width()+z*2))*.5;c.top=Math.max(a[3]+b,c.top);c.left=Math.max(a[2]+b,c.left);e.css(c);y=false};a.fn.fancybox.defaults={padding:10,margin:20,opacity:false,modal:false,cyclic:false,scrolling:"auto",width:560,height:340,autoScale:true,autoDimensions:true,centerOnScroll:false,ajax:{},swf:{wmode:"transparent"},hideOnOverlayClick:true,hideOnContentClick:false,overlayShow:true,overlayOpacity:.3,overlayColor:"#666",titleShow:true,titlePosition:"outside",titleFormat:null,transitionIn:"fade",transitionOut:"fade",speedIn:300,speedOut:300,changeSpeed:300,changeFade:"fast",easingIn:"swing",easingOut:"swing",showCloseButton:true,showNavArrows:true,enableEscapeButton:true,onStart:null,onCancel:null,onComplete:null,onCleanup:null,onClosed:null};a(document).ready(function(){U()})})(jQuery);$(document).ready(function(){$("a.m_btn_detalhes").click(function(){var a=$("#m_destaque");var b=$("#modelos").find(".modelos");var c=b.find(".modelos_int");var d=c.find(".m_list");var e=$(this);var f=e.closest("div");if(!c.find("div.m_list").is(":animated")){d.each(function(b){$(this).find("#m_info"+e.attr("id")).fadeOut(0);$(this).animate({width:parseInt(a.css("marginLeft"),10)==0||isNaN(parseInt(a.css("marginLeft"),10))?$(this).outerWidth()+(a.outerWidth()-26):$(this).outerWidth()-(a.outerWidth()-26)});if("m_info"+e.attr("id")!=$(this).children("div").attr("id")){$(this).children("div").hide();$(this).animate({height:$(this).outerHeight()==25?206:25},{complete:function(){$(this).find(".m_btn_abrir").append("<span>+</span>");Cufon.replace(".subtitulo_destaque",{fontFamily:"aller",hover:true})}})}else{$(this).animate({height:$(this).outerHeight()+140},{duration:1e3,complete:function(){$(this).find(".m_list_img_border").hide();$(this).find(".m_list_gimg_pos").fadeIn("slow");$(this).find("#pager").fadeIn("slow");$(this).find("#m_info"+e.attr("id")).fadeIn("slow");$(this).find(".m_list_info").css("height",$(this).find(".m_list_info").outerHeight()+160);$(this).find(".m_list_info").removeClass("mli_extra");$(this).find(".mli_grad").css("display","none");$(this).find(".m_btn_detalhes").hide();$(this).find(".m_btn_fechar").show();$("html,body").animate({scrollTop:$(this).offset().top-70},"slow")}})}});var g=b.outerWidth()-28;var h=c.outerWidth()-28;b.animate({width:parseInt(a.css("marginLeft"),10)==0||isNaN(parseInt(a.css("marginLeft"),10))?g+(a.outerWidth()-26):g-(a.outerWidth()-26)});c.animate({width:parseInt(a.css("marginLeft"),10)==0||isNaN(parseInt(a.css("marginLeft"),10))?h+(a.outerWidth()-26):h-(a.outerWidth()-26)});$(".nav").animate({width:802});a.animate({marginLeft:parseInt(a.css("marginLeft"),10)==0||isNaN(parseInt(a.css("marginLeft"),10))?a.outerWidth()-26:0},{complete:function(){a.find(".more a").toggle()}})}return false});$("a.m_btn_fechar").click(function(){var a=$("#m_destaque");var b=$("#modelos").find(".modelos");var c=b.find(".modelos_int");var d=c.find(".m_list");var e=$(this);if(!c.find("div.m_list").is(":animated")){d.each(function(b){$(this).find("#m_info"+e.attr("id")).fadeOut(0);$(this).animate({width:$(this).outerWidth()-(a.outerWidth()-26),height:196},{complete:function(){$(this).find(".more a").hide();$(this).find(".m_btn_abrir span").remove();$(this).find(".m_list_gimg_pos").hide();$(this).find(".m_list_img_border").fadeIn("slow");$(this).find("#m_info"+e.attr("id")).fadeIn("slow");$(this).find(".m_list_info").css("height",$(this).find(".m_list_info").outerHeight()-160);$(this).find(".m_list_info").addClass("mli_extra");$(this).find(".m_btn_fechar").hide();$(this).find(".m_btn_detalhes").show();$(this).find(".mli_grad").css("display","block")}});$(this).children("div").show()});var f=b.outerWidth()-28;var g=c.outerWidth()-28;a.hide();b.animate({width:f-(a.outerWidth()-26)});c.animate({width:g-(a.outerWidth()-26)},{complete:function(){a.animate({marginLeft:0},{complete:function(){a.fadeIn(100);a.find(".more a").hide()}})}});$(".nav").animate({width:553})}return false});$("a.m_btn_abrir").click(function(a){var b=$("#m_destaque");var c=$("#modelos").find(".modelos");var d=c.find(".modelos_int");var e=d.find(".m_list");var f=$(this);var g=f.closest("div");if(!d.find("div.m_list").is(":animated")&&!g.is(":animated")){if(g.outerWidth()==753&&g.outerHeight()<356){e.each(function(a){$(this).find(".m_btn_abrir span").remove();$(this).find("#m_info"+f.attr("id")).fadeOut(0);if("m_info"+f.attr("id")!=$(this).children("div").attr("id")){$(this).children("div").hide();$(this).animate({height:$(this).outerHeight()==25?206:25},{complete:function(){$(this).find(".m_btn_abrir").append("<span>+</span>");Cufon.replace(".subtitulo_destaque",{fontFamily:"aller",hover:true})}})}else{$(this).animate({height:$(this).outerHeight()+311},{duration:1e3,complete:function(){$(this).find(".m_list_img_border").hide();$(this).find(".m_list_gimg_pos").fadeIn("slow");$(this).find("#pager").fadeIn("slow");$(this).find("#m_info"+f.attr("id")).fadeIn("slow");$(this).find(".m_list_info").css("height",$(this).find(".m_list_info").outerHeight()==300?$(this).find(".m_list_info").outerHeight():$(this).find(".m_list_info").outerHeight()+160);$(this).find(".m_list_info").removeClass("mli_extra");$(this).find(".mli_grad").css("display","none");$(this).find(".m_btn_detalhes").hide();$(this).find(".m_btn_fechar").show();$("html,body").animate({scrollTop:$(this).offset().top-70},"slow")}})}})}else if(g.outerHeight()==356){e.each(function(a){$(this).find("#m_info"+f.attr("id")).fadeOut(0);$(this).animate({width:$(this).outerWidth()-(b.outerWidth()-26),height:196},{complete:function(){$(this).find(".more a").hide();$(this).find(".m_btn_abrir span").remove();$(this).find(".m_list_gimg_pos").hide();$(this).find(".m_list_img_border").fadeIn("slow");$(this).find("#m_info"+f.attr("id")).fadeIn("slow");$(this).find(".m_list_info").css("height",$(this).find(".m_list_info").outerHeight()-160);$(this).find(".m_list_info").addClass("mli_extra");$(this).find(".m_btn_fechar").hide();$(this).find(".m_btn_detalhes").show();$(this).find(".mli_grad").css("display","block")}});$(this).children("div").show()});var h=c.outerWidth()-28;var i=d.outerWidth()-28;b.hide();c.animate({width:h-(b.outerWidth()-26)});d.animate({width:i-(b.outerWidth()-26)},{complete:function(){b.animate({marginLeft:0},{complete:function(){b.fadeIn(100);b.find(".more a").hide()}})}});$(".nav").animate({width:553})}else{e.each(function(a){$(this).find("#m_info"+f.attr("id")).fadeOut(0);$(this).animate({width:parseInt(b.css("marginLeft"),10)==0||isNaN(parseInt(b.css("marginLeft"),10))?$(this).outerWidth()+(b.outerWidth()-26):$(this).outerWidth()-(b.outerWidth()-26)});if("m_info"+f.attr("id")!=$(this).children("div").attr("id")){$(this).children("div").hide();$(this).animate({height:$(this).outerHeight()==25?206:25},{complete:function(){$(this).find(".m_btn_abrir").append("<span>+</span>");Cufon.replace(".subtitulo_destaque",{fontFamily:"aller",hover:true})}})}else{$(this).animate({height:$(this).outerHeight()+140},{duration:1e3,complete:function(){$(this).find(".m_list_img_border").hide();$(this).find(".m_list_gimg_pos").fadeIn("slow");$(this).find("#pager").fadeIn("slow");$(this).find("#m_info"+f.attr("id")).fadeIn("slow");$(this).find(".m_list_info").css("height",$(this).find(".m_list_info").outerHeight()+160);$(this).find(".m_list_info").removeClass("mli_extra");$(this).find(".mli_grad").css("display","none");$(this).find(".m_btn_detalhes").hide();$(this).find(".m_btn_fechar").show();$("html,body").animate({scrollTop:$(this).offset().top-70},"slow")}})}});var h=c.outerWidth()-28;var i=d.outerWidth()-28;c.animate({width:parseInt(b.css("marginLeft"),10)==0||isNaN(parseInt(b.css("marginLeft"),10))?h+(b.outerWidth()-26):h-(b.outerWidth()-26)});d.animate({width:parseInt(b.css("marginLeft"),10)==0||isNaN(parseInt(b.css("marginLeft"),10))?i+(b.outerWidth()-26):i-(b.outerWidth()-26)});$(".nav").animate({width:802});b.animate({marginLeft:parseInt(b.css("marginLeft"),10)==0||isNaN(parseInt(b.css("marginLeft"),10))?b.outerWidth()-26:0},{complete:function(){b.find(".more a").toggle()}})}}return false});$("#m_destaque .m_list_img_border").tooltip({track:true,delay:0,showURL:false,showBody:" - ",fade:250});$("a.group").find(".m_list_gimg").tooltip({track:true,delay:0,showURL:false,showBody:" - ",fade:250});$("a.group").find(".g_pimg").tooltip({track:true,delay:0,showURL:false,showBody:" - ",fade:250});$("#vd").find(".g_pimg").tooltip({track:true,delay:0,showURL:false,showBody:" - ",fade:250});$("#m_destaque .m_btn_fechar").tooltip({track:true,delay:0,showURL:false,showBody:" - ",fade:250});$(".model_opts a").tooltip({track:true,delay:0,showURL:false,showBody:" - ",fade:250});$("a.group").fancybox({transitionIn:"fade",transitionOut:"fade",speedIn:600,speedOut:200,titlePosition:"outside",titleFormat:function(a,b,c,d){if(a.length>0){return'<div class="fancybox-title-outside" id="fancybox-title" style="margin: 0 0 -35px 0; width: 100%; text-align: center;"><span id="fancybox-title-wrap"><span id="fancybox-title-left"></span><span id="fancybox-title-main">'+a+'</span><span id="fancybox-title-right"></span></span></div>'}}});$(".pedirinfo").fancybox({scrolling:"no",titleShow:false,hideOnOverlayClick:false,enableEscapeButton:false});$(".downficha").fancybox({scrolling:"no",titleShow:false,hideOnOverlayClick:false,enableEscapeButton:false});$(".pedirinfo").click(function(){$("input#item").val($(this).prev().find("#item").text());$("input#href").val($(this).prev().find("#href").text());return false});$(".downficha").click(function(){$("#downForm").find("#file").val($(this).attr("id"));return false});$("#downForm").bind("submit",function(){$.fancybox.close()});$(".caminho").hover(function(){var a=$(this).find("a");Cufon.replace(a,{color:"#dc3c19",fontFamily:"aller light"})},function(){var a=$(this).find("span");Cufon.replace(a,{color:"#222",fontFamily:"aller light"})});$("#cForm").bind("submit",function(){$(this).ajaxSubmit({target:"#log_res",beforeSubmit:function(){$("#log_res").hide();$(".loading").show()},complete:function(){$(".loading").hide();$("#log_res").show()}});return false});$("#mForm").bind("submit",function(){$.fancybox.showActivity();$(this).ajaxSubmit({target:"#log_res1",complete:function(){$("#log_res1").hide();if($("#log_res1").find(".success").text()!=""){$.fancybox($("#log_res1").html())}else{$("#log_res1").show();$.fancybox.hideActivity()}}});return false});$(".refresh").click(function(){$(this).prev().attr("src",$(this).prev().attr("src")+"?"+Math.random());return false});$("a#mapcontent").fancybox({frameWidth:600,frameHeight:360,hideOnContentClick:false,callbackOnClose:function(){$("#fancy_content").empty()}});var a={padding:0,cyclic:true,autoScale:false,transitionIn:"fade",transitionOut:"fade",width:680,height:495,type:"swf",showNavArrows:false,titlePosition:"outside",titleFormat:function(a,b,c,d){if(a.length>0){return'<div class="fancybox-title-outside" id="fancybox-title" style="margin: 0 0 -35px 0; width: 100%; text-align: center;"><span id="fancybox-title-wrap"><span id="fancybox-title-left"></span><span id="fancybox-title-main">'+a+'</span><span id="fancybox-title-right"></span></span></div>'}},swf:{wmode:"transparent",allowfullscreen:"true"}};$("a#vimeo").each(function(){$(this).fancybox($.extend(a,{href:"http://vimeo.com/moogaloop.swf?clip_id="+$(this).find(".g_pimg").attr("id")+"&fullscreen=1"}))});$("a#youtube").each(function(){$(this).fancybox({transitionIn:"fade",transitionOut:"fade",width:640,height:360,href:this.href.replace(new RegExp("watch\\?v=","i"),"v/"),type:"swf",swf:{wmode:"transparent",allowfullscreen:"true"}})});})
