// NOTE: plugins in this file are alphabetized by their method name

/**
 * jQuery Form Field Hint Text Pre-Filler v1.1
 * by Adam Messinger (www.zenscope.com) for Arsetta, Inc. (readysetauction.com)
 * @requires jQuery 1.4.2 or later
 */
jQuery.fn.addFieldHints=function(c){var d=jQuery.extend({hint_text:'Required',hint_class:'field-hinted'},c||{});return this.each(function(){if(this.type!='text'&&this.type!='password'&&this.type!='textarea'&&(!jQuery(this).is('select')||jQuery(this).attr('multiple')===true)){return}else{}var b=this;if(jQuery(this).is('select')){if(jQuery.trim(jQuery(this).children(':selected').text())===d.hint_text){jQuery(this).addClass(d.hint_class)}jQuery(this).change(function(){var a,selected_text=jQuery.trim(jQuery(this).children(':selected').text());jQuery(this).children().each(function(){if(jQuery.trim(jQuery(this).text())===d.hint_text){a=jQuery(this).val()}});if(selected_text===d.hint_text||selected_text===''){jQuery(this).addClass(d.hint_class).val(a)}else{jQuery(this).removeClass(d.hint_class)}})}else{if(jQuery(this).val()===d.hint_text||jQuery(this).val()===''){jQuery(this).addClass(d.hint_class).val(d.hint_text)}jQuery(this).focus(function(){if(this.value===d.hint_text||this.value===''){jQuery(this).val('').removeClass(d.hint_class)}});jQuery(this).bind('blur change',function(){if(this.value===d.hint_text||this.value===''){jQuery(this).addClass(d.hint_class).val(d.hint_text)}})}jQuery(this).parents('form').each(function(){jQuery(this).submit(function(){if(b.value===d.hint_text&&!jQuery(b).is('select')){b.value=''}})})})};


/** NOTE: remove if home2 loses A/B test
 * AnythingSlider v1.5.12 minified using Google Closure Compiler
 * By Chris Coyier: http://css-tricks.com
 * with major improvements by Doug Neiner: http://pixelgraphics.us/
 * based on work by Remy Sharp: http://jqueryfordesigners.com/
*/
(function(c){c.anythingSlider=function(h,i){var a=this;a.$el=c(h).addClass("anythingBase").wrap('<div class="anythingSlider"><div class="anythingWindow" /></div>');a.$el.data("AnythingSlider",a);a.init=function(){a.options=c.extend({},c.anythingSlider.defaults,i);c.isFunction(a.options.onBeforeInitialize)&&a.$el.bind("before_initialize",a.options.onBeforeInitialize);a.$el.trigger("before_initialize",a);a.$wrapper=a.$el.parent().closest("div.anythingSlider").addClass("anythingSlider-"+a.options.theme); a.$window=a.$el.closest("div.anythingWindow");a.$controls=c('<div class="anythingControls"></div>').appendTo(a.options.appendControlsTo!==null&&c(a.options.appendControlsTo).length?c(a.options.appendControlsTo):a.$wrapper);a.win=window;a.$win=c(a.win);a.$nav=c('<ul class="thumbNav" />').appendTo(a.$controls);a.timer=null;a.flag=!1;a.playing=!1;a.slideshow=!1;a.hovered=!1;a.panelSize=[];a.currentPage=a.options.startPanel;a.adjustLimit=a.options.infiniteSlides?0:1;a.options.playRtl&&a.$wrapper.addClass("rtl"); a.easingMargin=a.options.easing.match("swing|linear")?0:100;a.$el.css("margin-left",a.easingMargin+"px");a.original=[a.options.autoPlay,a.options.buildNavigation,a.options.buildArrows];a.updateSlider();a.$lastPage=a.$currentPage;a.runTimes=c("div.anythingSlider").index(a.$wrapper)+1;a.regex=RegExp("panel"+a.runTimes+"-(\\d+)","i");if(!c.isFunction(c.easing[a.options.easing]))a.options.easing="swing";a.options.theme!=="default"&&!c("link[href*="+a.options.theme+"]").length&&c("head").append('<link rel="stylesheet" href="'+ a.options.themeDirectory.replace(/\{themeName\}/g,a.options.theme)+'" type="text/css" />');a.options.pauseOnHover&&a.$wrapper.hover(function(){a.playing&&(a.$el.trigger("slideshow_paused",a),a.clearTimer(!0))},function(){a.playing&&(a.$el.trigger("slideshow_unpaused",a),a.startStop(a.playing,!0))});var b,e=a.options.hashTags?a.gotoHash()||a.options.startPanel:a.options.startPanel;a.setCurrentPage(e,!1);a.slideControls(!1);a.$wrapper.bind("mouseenter mouseleave",function(b){a.hovered=b.type==="mouseenter"? !0:!1;a.slideControls(a.hovered,!1)});a.options.enableKeyboard&&c(document).keyup(function(b){if(a.$wrapper.is(".activeSlider")&&!b.target.tagName.match("TEXTAREA|INPUT|SELECT"))switch(b.which){case 39:a.goForward();break;case 37:a.goBack()}});b="slideshow_paused slideshow_unpaused slide_init slide_begin slideshow_stop slideshow_start initialized swf_completed".split(" ");c.each("onShowPause onShowUnpause onSlideInit onSlideBegin onShowStop onShowStart onInitialized onSWFComplete".split(" "),function(e, f){c.isFunction(a.options[f])&&a.$el.bind(b[e],a.options[f])});c.isFunction(a.options.onSlideComplete)&&a.$el.bind("slide_complete",function(){setTimeout(function(){a.options.onSlideComplete(a)},0)});a.$el.trigger("initialized",a)};a.updateSlider=function(){a.$el.find("li.cloned").remove();a.$nav.empty();a.$items=a.$el.find("> li");a.pages=a.$items.length;a.options.resizeContents&&(a.options.width&&a.$wrapper.add(a.$items).css("width",a.options.width),a.options.height&&a.$wrapper.add(a.$items).css("height", a.options.height));a.pages===1?(a.options.autoPlay=!1,a.options.buildNavigation=!1,a.options.buildArrows=!1,a.$controls.hide(),a.$nav.hide(),a.$forward&&a.$forward.add(a.$back).hide()):(a.options.autoPlay=a.original[0],a.options.buildNavigation=a.original[1],a.options.buildArrows=a.original[2],a.$controls.show(),a.$nav.show(),a.$forward&&a.$forward.add(a.$back).show());a.buildNavigation();if(a.options.autoPlay)a.playing=!a.options.startStopped,a.buildAutoPlay();a.options.buildArrows&&a.buildNextBackButtons(); a.options.infiniteSlides&&(a.$el.prepend(a.$items.filter(":last").clone().addClass("cloned").removeAttr("id")),a.$el.append(a.$items.filter(":first").clone().addClass("cloned").removeAttr("id")),a.$el.find("li.cloned").each(function(){c(this).find("a").attr("disabled","disabled");c(this).find("[id]").removeAttr("id")}));a.$items=a.$el.find("> li").addClass("panel");a.setDimensions();a.options.resizeContents||a.$win.load(function(){a.setDimensions()});if(a.currentPage>a.pages)a.currentPage=a.pages, a.setCurrentPage(a.pages,!1);a.$nav.find("a").eq(a.currentPage-1).addClass("cur");a.$controls.show();a.hasEmb=a.$items.find("embed[src*=youtube]").length;a.hasSwfo=typeof swfobject!=="undefined"&&swfobject.hasOwnProperty("embedSWF")&&c.isFunction(swfobject.embedSWF)?!0:!1;a.hasEmb&&a.hasSwfo&&a.$items.find("embed[src*=youtube]").each(function(b){var e=c(this).parent()[0].tagName==="OBJECT"?c(this).parent():c(this);e.wrap('<div id="ytvideo'+b+'"></div>');swfobject.embedSWF(c(this).attr("src")+"&enablejsapi=1&version=3&playerapiid=ytvideo"+ b,"ytvideo"+b,e.attr("width"),e.attr("height"),"10",null,null,{allowScriptAccess:"always",wmode:a.options.addWmodeToObject,allowfullscreen:!0},{"class":e.attr("class"),style:e.attr("style")},function(){b>=a.hasEmb-1&&a.$el.trigger("swf_completed",a)})});a.$items.find("a").unbind("focus").bind("focus",function(b){a.$items.find(".focusedLink").removeClass("focusedLink");c(this).addClass("focusedLink");var e=c(this).closest(".panel");e.is(".activePage")||(a.gotoPage(a.$items.index(e)),b.preventDefault())})}; a.buildNavigation=function(){var b,e,d;a.options.buildNavigation&&a.pages>1&&a.$items.filter(":not(.cloned)").each(function(f){var g=f+1;e=(g===1?"first":"")+(g===a.pages?"last":"");d=c('<a href="#"></a>').addClass("panel"+g).wrap('<li class="'+e+'" />');a.$nav.append(d.parent());c.isFunction(a.options.navigationFormatter)?(b=a.options.navigationFormatter(g,c(this)),d.html("<span>"+b+"</span>"),parseInt(d.find("span").css("text-indent"),10)<0&&d.addClass(a.options.tooltipClass).attr("title",b)):d.html("<span>"+ g+"</span>");d.bind(a.options.clickControls,function(b){if(!a.flag&&a.options.enableNavigation)a.flag=!0,setTimeout(function(){a.flag=!1},100),a.gotoPage(g),a.options.hashTags&&a.setHash(g);b.preventDefault()})})};a.buildNextBackButtons=function(){if(!a.$forward)a.$forward=c('<span class="arrow forward"><a href="#"><span>'+a.options.forwardText+"</span></a></span>"),a.$back=c('<span class="arrow back"><a href="#"><span>'+a.options.backText+"</span></a></span>"),a.$back.bind(a.options.clickArrows, function(b){a.goBack();b.preventDefault()}),a.$forward.bind(a.options.clickArrows,function(b){a.goForward();b.preventDefault()}),a.$back.add(a.$forward).find("a").bind("focusin focusout",function(){c(this).toggleClass("hover")}),a.$wrapper.prepend(a.$forward).prepend(a.$back),a.$arrowWidth=a.$forward.width()};a.buildAutoPlay=function(){if(!a.$startStop)a.$startStop=c("<a href='#' class='start-stop'></a>").html("<span>"+(a.playing?a.options.stopText:a.options.startText)+"</span>"),a.$controls.prepend(a.$startStop), a.$startStop.bind(a.options.clickSlideshow,function(b){a.options.enablePlay&&(a.startStop(!a.playing),a.playing&&(a.options.playRtl?a.goBack(!0):a.goForward(!0)));b.preventDefault()}).bind("focusin focusout",function(){c(this).toggleClass("hover")}),a.startStop(a.playing)};a.setDimensions=function(){var b,e,d,f,g,h=a.easingMargin,i=a.$window.width(),j=a.$win.width();a.$items.each(function(k){d=c(this).children("*");a.options.resizeContents?(b=parseInt(a.options.width,10)||i,e=parseInt(a.options.height, 10)||a.$window.height(),c(this).css({width:b,height:e}),d.length===1&&(d.css({width:"100%",height:"100%"}),d[0].tagName==="OBJECT"&&d.find("embed").andSelf().attr({width:"100%",height:"100%"}))):(b=c(this).width(),g=b>=j?!0:!1,d.length===1&&g&&(f=d.width()>=j?i:d.width(),c(this).css("width",f),d.css("max-width",f),b=f),b=g?a.options.width||i:b,c(this).css("width",b),e=c(this).outerHeight(),c(this).css("height",e));a.panelSize[k]=[b,e,h];h+=b});a.$el.css("width",h<a.options.maxOverallWidth?h:a.options.maxOverallWidth)}; a.gotoPage=function(b,c,d){if(a.pages!==1){a.$lastPage=a.$currentPage;if(typeof b!=="number")b=a.options.startPage,a.setCurrentPage(a.options.startPage);if(!a.hasEmb||!a.checkVideo(a.playing))b>a.pages+1-a.adjustLimit&&(b=!a.options.infiniteSlides&&!a.options.stopAtEnd?1:a.pages),b<a.adjustLimit&&(b=!a.options.infiniteSlides&&!a.options.stopAtEnd?a.pages:1),a.currentPage=b>a.pages?a.pages:b<1?1:a.currentPage,a.$currentPage=a.$items.eq(a.currentPage-1),a.exactPage=b,a.$el.trigger("slide_init",a),a.slideControls(!0, !1),c!==!0&&(c=!1),(!c||a.options.stopAtEnd&&b===a.pages)&&a.startStop(!1),a.$el.trigger("slide_begin",a),a.options.resizeContents||a.$wrapper.filter(":not(:animated)").animate({width:a.panelSize[a.options.infiniteSlides?b:b-1][0],height:a.panelSize[a.options.infiniteSlides?b:b-1][1]},{queue:!1,duration:a.options.animationTime,easing:a.options.easing}),a.$window.filter(":not(:animated)").animate({scrollLeft:a.panelSize[a.options.infiniteSlides?b:b-1][2]},{queue:!1,duration:a.options.animationTime, easing:a.options.easing,complete:function(){a.endAnimation(b,d)}})}};a.endAnimation=function(b,e){b===0?(a.$window.scrollLeft(a.panelSize[a.pages][2]),b=a.pages):b>a.pages&&(a.$window.scrollLeft(a.panelSize[1][2]),b=1);a.exactPage=b;a.setCurrentPage(b,!1);a.$items.removeClass("activePage").eq(b-a.adjustLimit).addClass("activePage");a.hovered||a.slideControls(!1);if(a.hasEmb){var d=a.$currentPage.find("object[id*=ytvideo], embed[id*=ytvideo]");d.length&&c.isFunction(d[0].getPlayerState)&&d[0].getPlayerState()> 0&&d[0].getPlayerState()!==5&&d[0].playVideo()}a.$el.trigger("slide_complete",a);typeof e==="function"&&e(a);a.options.autoPlayLocked&&!a.playing&&setTimeout(function(){a.startStop(!0)},a.options.resumeDelay-a.options.delay)};a.setCurrentPage=function(b,e){b>a.pages+1-a.adjustLimit&&(b=a.pages-a.adjustLimit);b<a.adjustLimit&&(b=1);a.options.buildNavigation&&(a.$nav.find(".cur").removeClass("cur"),a.$nav.find("a").eq(b-1).addClass("cur"));!a.options.infiniteSlides&&a.options.stopAtEnd&&(a.$wrapper.find("span.forward")[b=== a.pages?"addClass":"removeClass"]("disabled"),a.$wrapper.find("span.back")[b===1?"addClass":"removeClass"]("disabled"),b===a.pages&&a.playing&&a.startStop());e||(a.$wrapper.css({width:a.panelSize[a.options.infiniteSlides?b:b-1][0],height:a.panelSize[a.options.infiniteSlides?b:b-1][1]}),a.$wrapper.scrollLeft(0),a.$window.scrollLeft(a.panelSize[a.options.infiniteSlides?b:b-1][2]));a.currentPage=b;a.$currentPage=a.$items.eq(b).addClass("activePage");a.$wrapper.is(".activeSlider")||(c(".activeSlider").removeClass("activeSlider"), a.$wrapper.addClass("activeSlider"))};a.goForward=function(b){b!==!0&&(b=!1,a.startStop(!1));a.gotoPage(a.currentPage+1,b)};a.goBack=function(b){b!==!0&&(b=!1,a.startStop(!1));a.gotoPage(a.currentPage-1,b)};a.gotoHash=function(){var b=a.win.location.hash.match(a.regex);return b===null?"":parseInt(b[1],10)};a.setHash=function(b){var c="panel"+a.runTimes+"-",d=a.win.location.hash;if(typeof d!=="undefined")a.win.location.hash=d.indexOf(c)>0?d.replace(a.regex,c+b):d+"&"+c+b};a.slideControls=function(b){var c= b?0:a.options.animationTime,d=b?a.options.animationTime:0,f=b?1:0,g=b?0:1;a.options.toggleControls&&a.$controls.stop(!0,!0).delay(c)[b?"slideDown":"slideUp"](a.options.animationTime/2).delay(d);a.options.buildArrows&&a.options.toggleArrows&&(!a.hovered&&a.playing&&(g=1,f=0),a.$forward.stop(!0,!0).delay(c).animate({right:g*a.$arrowWidth,opacity:f},a.options.animationTime/2),a.$back.stop(!0,!0).delay(c).animate({left:g*a.$arrowWidth,opacity:f},a.options.animationTime/2))};a.clearTimer=function(b){if(a.timer&& (a.win.clearInterval(a.timer),!b&&a.slideshow))a.$el.trigger("slideshow_stop",a),a.slideshow=!1};a.startStop=function(b,c){b!==!0&&(b=!1);if(b&&!c)a.$el.trigger("slideshow_start",a),a.slideshow=!0;a.playing=b;a.options.autoPlay&&(a.$startStop.toggleClass("playing",b).html("<span>"+(b?a.options.stopText:a.options.startText)+"</span>"),parseInt(a.$startStop.find("span").css("text-indent"),10)<0&&a.$startStop.addClass(a.options.tooltipClass).attr("title",b?"Stop":"Start"));b?(a.clearTimer(!0),a.timer= a.win.setInterval(function(){if(!a.hasEmb||!a.checkVideo(b))a.options.playRtl?a.goBack(!0):a.goForward(!0)},a.options.delay)):a.clearTimer()};a.checkVideo=function(b){var e,d,f=!1;a.$items.find("object[id*=ytvideo], embed[id*=ytvideo]").each(function(){e=c(this);e.length&&c.isFunction(e[0].getPlayerState)&&(d=e[0].getPlayerState(),b&&(d===1||d>2)&&a.$items.index(e.closest("li.panel"))===a.currentPage&&a.options.resumeOnVideoEnd?f=!0:d>0&&e[0].pauseVideo())});return f};a.init()};c.anythingSlider.defaults= {width:null,height:null,resizeContents:!0,tooltipClass:"tooltip",theme:"default",themeDirectory:"css/theme-{themeName}.css",startPanel:1,hashTags:!0,infiniteSlides:!0,enableKeyboard:!0,buildArrows:!0,toggleArrows:!1,buildNavigation:!0,enableNavigation:!0,toggleControls:!1,appendControlsTo:null,navigationFormatter:null,forwardText:"&raquo;",backText:"&laquo;",enablePlay:!0,autoPlay:!0,autoPlayLocked:!1,startStopped:!1,pauseOnHover:!0,resumeOnVideoEnd:!0,stopAtEnd:!1,playRtl:!1,startText:"Start",stopText:"Stop", delay:3E3,resumeDelay:15E3,animationTime:600,easing:"swing",clickArrows:"click",clickControls:"click focusin",clickSlideshow:"click",addWmodeToObject:"opaque",maxOverallWidth:32766};c.fn.anythingSlider=function(h,i){return this.each(function(){var a,b=c(this).data("AnythingSlider");(typeof h).match("object|undefined")?b?b.updateSlider():new c.anythingSlider(this,h):/\d/.test(h)&&!isNaN(h)&&b&&(a=typeof h==="number"?h:parseInt(c.trim(h),10),a>=1&&a<=b.pages&&b.gotoPage(a,!1,i))})}})(jQuery);


/**
 * jQuery clueTip plugin
 * Version 1.1pre  (May 16, 2010)
 * @requires jQuery v1.3+
 *
 * Dual licensed under the MIT and GPL licenses
 */
(function($){$.cluetip={version:'1.1pre'};var I,$cluetipInner,$cluetipOuter,$cluetipTitle,$cluetipArrows,$cluetipWait,$dropShadow,imgCount;var J='appendTo',insertionElement='body';$.fn.cluetip=function(E,F){if(typeof E=='object'){F=E;E=null}if(E=='destroy'){return this.removeData('cluetip').unbind('.cluetip')}F=$.extend(true,{},$.fn.cluetip.defaults,F||{});if(!$('#cluetip').length){$(['<div id="cluetip">','<div id="cluetip-outer">','<h3 id="cluetip-title"></h3>','<div id="cluetip-inner"></div>','</div>','<div id="cluetip-extra"></div>','<div id="cluetip-arrows" class="cluetip-arrows"></div>','</div>'].join(''))[J](insertionElement).hide();var G=+F.cluezIndex;I=$('#cluetip').css({position:'absolute'});$cluetipOuter=$('#cluetip-outer').css({position:'relative',zIndex:G});$cluetipInner=$('#cluetip-inner');$cluetipTitle=$('#cluetip-title');$cluetipArrows=$('#cluetip-arrows');$cluetipWait=$('<div id="cluetip-waitimage"></div>').css({position:'absolute'}).insertBefore(I).hide()}var H=(parseInt(I.css('paddingLeft'),10)||0)+(parseInt(I.css('paddingRight'),10)||0);this.each(function(m){var n=this,$this=$(this);var o=$.extend(true,{},F,$.metadata?$this.metadata():$.meta?$this.data():{});var p=false;G=+o.cluezIndex;$this.data('cluetip',{title:n.title,zIndex:G});var q=false,closeOnDelay=0;var r=$this.attr(o.attribute),ctClass=o.cluetipClass;if(!r&&!o.splitTitle&&!E){return true}if(o.local&&o.localPrefix){r=o.localPrefix+r}if(o.local&&o.hideLocal){$(r+':first').hide()}var s=parseInt(o.topOffset,10),lOffset=parseInt(o.leftOffset,10);var t,wHeight,defHeight=isNaN(parseInt(o.height,10))?'auto':(/\D/g).test(o.height)?o.height:o.height+'px';var u,linkTop,posY,tipY,mouseY,baseline;var v=parseInt(o.width,10)||275,tipWidth=v+H+o.dropShadowSteps,linkWidth=this.offsetWidth,linkLeft,posX,tipX,mouseX,winWidth;var w;var x=(o.attribute!='title')?$this.attr(o.titleAttribute):'';if(o.splitTitle){if(x==undefined){x=''}w=x.split(o.splitTitle);x=w.shift()}if(o.escapeTitle){x=x.replace(/&/g,'&amp;').replace(/>/g,'&gt;').replace(/</g,'&lt;')}var y;function returnFalse(){return false}var z=function(d){if(!o.onActivate($this)){return false}q=true;I.removeClass().css({width:v});if(r==$this.attr('href')){$this.css('cursor',o.cursor)}if(o.hoverClass){$this.addClass(o.hoverClass)}linkTop=posY=$this.offset().top;linkLeft=$this.offset().left;mouseX=d.pageX;mouseY=d.pageY;if(n.tagName.toLowerCase()!='area'){u=$(document).scrollTop();winWidth=$(window).width()}if(o.positionBy=='fixed'){posX=linkWidth+linkLeft+lOffset;I.css({left:posX})}else{posX=(linkWidth>linkLeft&&linkLeft>tipWidth)||linkLeft+linkWidth+tipWidth+lOffset>winWidth?linkLeft-tipWidth-lOffset:linkWidth+linkLeft+lOffset;if(n.tagName.toLowerCase()=='area'||o.positionBy=='mouse'||linkWidth+tipWidth>winWidth){if(mouseX+20+tipWidth>winWidth){I.addClass(' cluetip-'+ctClass);posX=(mouseX-tipWidth-lOffset)>=0?mouseX-tipWidth-lOffset-parseInt(I.css('marginLeft'),10)+parseInt($cluetipInner.css('marginRight'),10):mouseX-(tipWidth/2)}else{posX=mouseX+lOffset}}var e=posX<0?d.pageY+s:d.pageY;I.css({left:(posX>0&&o.positionBy!='bottomTop')?posX:(mouseX+(tipWidth/2)>winWidth)?winWidth/2-tipWidth/2:Math.max(mouseX-(tipWidth/2),0),zIndex:$this.data('cluetip').zIndex});$cluetipArrows.css({zIndex:$this.data('cluetip').zIndex+1})}wHeight=$(window).height();if(E){if(typeof E=='function'){E=E.call(n)}$cluetipInner.html(E);A(e)}else if(w){var f=w.length;$cluetipInner.html(f?w[0]:'');if(f>1){for(var i=1;i<f;i++){$cluetipInner.append('<div class="split-body">'+w[i]+'</div>')}}A(e)}else if(!o.local&&r.indexOf('#')!==0){if(/\.(jpe?g|tiff?|gif|png)$/i.test(r)){$cluetipInner.html('<img src="'+r+'" alt="'+x+'" />');A(e)}else if(p&&o.ajaxCache){$cluetipInner.html(p);A(e)}else{var g=o.ajaxSettings.beforeSend,optionError=o.ajaxSettings.error,optionSuccess=o.ajaxSettings.success,optionComplete=o.ajaxSettings.complete;var h={cache:false,url:r,beforeSend:function(a){if(g){g.call(n,a,I,$cluetipInner)}$cluetipOuter.children().empty();if(o.waitImage){$cluetipWait.css({top:mouseY+20,left:mouseX+20,zIndex:$this.data('cluetip').zIndex-1}).show()}},error:function(a,b){if(q){if(optionError){optionError.call(n,a,b,I,$cluetipInner)}else{$cluetipInner.html('<i>sorry, the contents could not be loaded</i>')}}},success:function(a,b){p=o.ajaxProcess.call(n,a);if(q){if(optionSuccess){optionSuccess.call(n,a,b,I,$cluetipInner)}$cluetipInner.html(p)}},complete:function(a,b){if(optionComplete){optionComplete.call(n,a,b,I,$cluetipInner)}var c=$cluetipInner[0].getElementsByTagName('img');imgCount=c.length;for(var i=0,l=c.length;i<l;i++){if(c[i].complete){imgCount--}}if(imgCount&&!$.browser.opera){$(c).bind('load error',function(){imgCount--;if(imgCount<1){$cluetipWait.hide();if(q){A(e)}}})}else{$cluetipWait.hide();if(q){A(e)}}}};var j=$.extend(true,{},o.ajaxSettings,h);$.ajax(j)}}else if(o.local){var k=$(r+(/#\S+$/.test(r)?'':':eq('+m+')')).clone(true).show();if(o.localIdSuffix){k.attr('id',k[0].id+o.localIdSuffix)}$cluetipInner.html(k);A(e)}};var A=function(a){I.addClass('cluetip-'+ctClass);if(o.truncate){var b=$cluetipInner.text().slice(0,o.truncate)+'...';$cluetipInner.html(b)}function doNothing(){};x?$cluetipTitle.show().html(x):(o.showTitle)?$cluetipTitle.show().html('&nbsp;'):$cluetipTitle.hide();if(o.sticky){var c=$('<div id="cluetip-close"><a href="#">'+o.closeText+'</a></div>');(o.closePosition=='bottom')?c.appendTo($cluetipInner):(o.closePosition=='title')?c.prependTo($cluetipTitle):c.prependTo($cluetipInner);c.bind('click.cluetip',function(){C();return false});if(o.mouseOutClose){I.bind('mouseleave.cluetip',function(){C()})}else{I.unbind('mouseleave.cluetip')}}var d='';$cluetipOuter.css({zIndex:$this.data('cluetip').zIndex,overflow:defHeight=='auto'?'visible':'auto',height:defHeight});t=defHeight=='auto'?Math.max(I.outerHeight(),I.height()):parseInt(defHeight,10);tipY=posY;baseline=u+wHeight;if(o.positionBy=='fixed'){tipY=posY-o.dropShadowSteps+s}else if((posX<mouseX&&Math.max(posX,0)+tipWidth>mouseX)||o.positionBy=='bottomTop'){if(posY+t+s>baseline&&mouseY-u>t+s){tipY=mouseY-t-s;d='top'}else{tipY=mouseY+s;d='bottom'}}else if(posY+t+s>baseline){tipY=(t>=wHeight)?u:baseline-t-s}else if($this.css('display')=='block'||n.tagName.toLowerCase()=='area'||o.positionBy=="mouse"){tipY=a-s}else{tipY=posY-o.dropShadowSteps}if(d==''){posX<linkLeft?d='left':d='right'}I.css({top:tipY+'px'}).removeClass().addClass('clue-'+d+'-'+ctClass).addClass(' cluetip-'+ctClass);if(o.arrows){var e=(posY-tipY-o.dropShadowSteps);$cluetipArrows.css({top:(/(left|right)/.test(d)&&posX>=0&&e>0)?e+'px':/(left|right)/.test(d)?0:''}).show()}else{$cluetipArrows.hide()}$dropShadow=createDropShadows(o);if($dropShadow&&$dropShadow.length){$dropShadow.hide().css({height:t,width:v,zIndex:$this.data('cluetip').zIndex-1}).show()}I.hide()[o.fx.open](o.fx.openSpeed||0);if($.fn.bgiframe){I.bgiframe()}if(o.delayedClose>0){closeOnDelay=setTimeout(C,o.delayedClose)}o.onShow.call(n,I,$cluetipInner)};var B=function(a){q=false;$cluetipWait.hide();if(!o.sticky||(/click|toggle/).test(o.activation)){C();clearTimeout(closeOnDelay)}if(o.hoverClass){$this.removeClass(o.hoverClass)}};var C=function(){$cluetipOuter.parent().hide().removeClass();o.onHide.call(n,I,$cluetipInner);$this.removeClass('cluetip-clicked');if(x){$this.attr(o.titleAttribute,x)}$this.css('cursor','');if(o.arrows){$cluetipArrows.css({top:''})}};$(document).bind('hideCluetip',function(e){C()});if((/click|toggle/).test(o.activation)){$this.bind('click.cluetip',function(a){if(I.is(':hidden')||!$this.is('.cluetip-clicked')){z(a);$('.cluetip-clicked').removeClass('cluetip-clicked');$this.addClass('cluetip-clicked')}else{B(a)}this.blur();return false})}else if(o.activation=='focus'){$this.bind('focus.cluetip',function(a){z(a)});$this.bind('blur.cluetip',function(a){B(a)})}else{$this[o.clickThrough?'unbind':'bind']('click',returnFalse);var D=function(b){if(o.tracking==true){var c=posX-b.pageX;var d=tipY?tipY-b.pageY:posY-b.pageY;$this.bind('mousemove.cluetip',function(a){I.css({left:a.pageX+c,top:a.pageY+d})})}};if($.fn.hoverIntent&&o.hoverIntent){$this.hoverIntent({sensitivity:o.hoverIntent.sensitivity,interval:o.hoverIntent.interval,over:function(a){z(a);D(a)},timeout:o.hoverIntent.timeout,out:function(a){B(a);$this.unbind('mousemove.cluetip')}})}else{$this.bind('mouseenter.cluetip',function(a){z(a);D(a)}).bind('mouseleave.cluetip',function(a){B(a);$this.unbind('mousemove.cluetip')})}$this.bind('mouseover.cluetip',function(a){$this.attr('title','')}).bind('mouseleave.cluetip',function(a){$this.attr('title',$this.data('cluetip').title)})}});function createDropShadows(a,b){var c=(a.dropShadow&&a.dropShadowSteps)?+a.dropShadowSteps:0;if($.support.boxShadow){var d=c===0?'0 0 ':'1px 1px ';$('#cluetip').css($.support.boxShadow,d+c+'px rgba(0,0,0,0.5)');return false}var e=$('#cluetip .cluetip-drop-shadow');if(c==e.length){return e}e.remove();var f=[];for(var i=0;i<c;){f[i++]='<div style="top:'+i+'px;left:'+i+'px;"></div>'}b=$(f.join('')).css({position:'absolute',backgroundColor:'#000',zIndex:G-1,opacity:.1}).addClass('cluetip-drop-shadow').prependTo('#cluetip');return b}return this};(function(){$.support=$.support||{};var a=document.createElement('div'),divStyle=a.style,styleProps=['boxShadow'],prefixes=['moz','Moz','webkit','o'];for(var i=0,sl=styleProps.length;i<sl;i++){var b=styleProps[i],uProp=b.charAt(0).toUpperCase()+b.slice(1);if(typeof divStyle[b]!=='undefined'){$.support[b]=b}else{for(var j=0,pl=prefixes.length;j<pl;j++){if(typeof divStyle[prefixes[j]+uProp]!=='undefined'){$.support[b]=prefixes[j]+uProp;break}}}}a=null;delete a})();$.fn.cluetip.defaults={width:275,height:'auto',cluezIndex:97,positionBy:'auto',topOffset:15,leftOffset:15,local:false,localPrefix:null,localIdSuffix:null,hideLocal:true,attribute:'rel',titleAttribute:'title',splitTitle:'',escapeTitle:false,showTitle:true,cluetipClass:'default',hoverClass:'',waitImage:true,cursor:'help',arrows:false,dropShadow:true,dropShadowSteps:6,sticky:false,mouseOutClose:false,activation:'hover',clickThrough:false,tracking:false,delayedClose:0,closePosition:'top',closeText:'Close',truncate:0,fx:{open:'show',openSpeed:''},hoverIntent:{sensitivity:3,interval:50,timeout:0},onActivate:function(e){return true},onShow:function(a,b){},onHide:function(a,b){},ajaxCache:true,ajaxProcess:function(a){a=a.replace(/<(script|style|title)[^<]+<\/(script|style|title)>/gm,'').replace(/<(link|meta)[^>]+>/g,'');return a},ajaxSettings:{dataType:'html'},debug:false};var J='appendTo',insertionElement='body';$.cluetip.setup=function(a){if(a&&a.insertionType&&(a.insertionType).match(/appendTo|prependTo|insertBefore|insertAfter/)){J=a.insertionType}if(a&&a.insertionElement){insertionElement=a.insertionElement}}})(jQuery);


/**
* hoverIntent r5 // 2007.03.27 // jQuery 1.1.2+
* <http://cherne.net/brian/resources/jquery.hoverIntent.html>
*
* @param  f  onMouseOver function || An object with configuration options
* @param  g  onMouseOut function  || Nothing (use configuration options object)
* @author    Brian Cherne <brian@cherne.net>
*/
(function($){$.fn.hoverIntent=function(f,g){var c={sensitivity:7,interval:100,timeout:0};c=$.extend(c,g?{over:f,out:g}:f);var d,cY,pX,pY;var h=function(a){d=a.pageX;cY=a.pageY};var i=function(a,b){b.hoverIntent_t=clearTimeout(b.hoverIntent_t);if((Math.abs(pX-d)+Math.abs(pY-cY))<c.sensitivity){$(b).unbind("mousemove",h);b.hoverIntent_s=1;return c.over.apply(b,[a])}else{pX=d;pY=cY;b.hoverIntent_t=setTimeout(function(){i(a,b)},c.interval)}};var j=function(a,b){b.hoverIntent_t=clearTimeout(b.hoverIntent_t);b.hoverIntent_s=0;return c.out.apply(b,[a])};var k=function(e){var p=(e.type=="mouseover"?e.fromElement:e.toElement)||e.relatedTarget;while(p&&p!=this){try{p=p.parentNode}catch(e){p=this}}if(p==this){return false}var a=jQuery.extend({},e);var b=this;if(b.hoverIntent_t){b.hoverIntent_t=clearTimeout(b.hoverIntent_t)}if(e.type=="mouseover"){pX=a.pageX;pY=a.pageY;$(b).bind("mousemove",h);if(b.hoverIntent_s!=1){b.hoverIntent_t=setTimeout(function(){i(a,b)},c.interval)}}else{$(b).unbind("mousemove",h);if(b.hoverIntent_s==1){b.hoverIntent_t=setTimeout(function(){j(a,b)},c.timeout)}}};return this.mouseover(k).mouseout(k)}})(jQuery);


/**
 * jQuery Multi-Toggler v1.0.1
 * Copyright (c) 2010-2011 Adam Messinger (www.zenscope.com)
 * Distributed under the MIT License:
 *   http://www.opensource.org/licenses/mit-license.php
 * @requires jQuery 1.4.2 or later
 */
(function($){var h;$.fn.multiToggler=function(g){h=$.extend({speed:'fast',toggle_target:'.toggle-target',detail_toggler:'.detail-toggler',all_toggler_tag:'<p></p>',all_toggler_showtext:'show all',all_toggler_hidetext:'hide all',all_toggler_location:'[[this]]',all_toggler_placement:'before',toggler_class_hidden:'toggler-hidden',toggler_class_shown:'toggler-shown',toggler_title_hidden:'Click to show details',toggler_title_shown:'Click to hide details',tracking_on:false,tracking_category:'Toggle Interactions',tracking_all_action:'Toggle All',tracking_detail_action:'Toggle Details',tracking_all_label:'',tracking_detail_label:'',debug:false},g||{});h.all_toggler_placement=$.trim(String(h.all_toggler_placement).toLowerCase());return this.each(function(){var b=this;var c=$(this).find(h.detail_toggler);var d=(h.all_toggler_tag&&h.all_toggler_hidetext&&h.all_toggler_showtext)?$(h.all_toggler_tag,{text:h.all_toggler_showtext,'class':h.toggler_class_hidden,title:h.toggler_title_hidden}):false;var e=i(c);$(e).filter(':visible').hide();$(c).addClass(h.toggler_class_hidden).attr('title',h.toggler_title_hidden);if(d){var f=(h.all_toggler_location==='[[this]]')?this:$(this).find(h.all_toggler_location);if(h.all_toggler_placement==='after'){$(f).after(d)}else{$(f).before(d)}}$(c).click(function(){var a=i(this);if($(a).css('display')==='none'){k(this,a,true)}else{l(this,a,true)}if(h.tracking_on===true){m(this,h.tracking_category,h.tracking_detail_action,h.tracking_detail_label)}});$(d).toggle(function(){if(h.tracking_on===true){m(this,h.tracking_category,h.tracking_all_action,h.tracking_all_label)}var a=$(b).find(h.toggle_target).filter(':hidden');k(this,a,false)},function(){if(h.tracking_on===true){m(this,h.tracking_category,h.tracking_all_action,h.tracking_all_label)}var a=$(b).find(h.toggle_target).filter(':visible');l(this,a,false)})})};var i=function(a){var b=$(a).find(h.toggle_target);return(b.length>0)?b:$(a).siblings(h.toggle_target)};var j=function(a){var b=$(a).closest(h.detail_toggler);return(b.length>0)?b:$(a).siblings(h.detail_toggler)};var k=function(b,c,d){if($(c).is('tr')){$(c).fadeIn(h.speed)}else{$(c).slideDown(h.speed)}$(b).removeClass(h.toggler_class_hidden).addClass(h.toggler_class_shown).attr('title',h.toggler_title_shown);if(d===false){$(b).text(h.all_toggler_hidetext);$(c).each(function(){var a=j(this);$(a).removeClass(h.toggler_class_hidden).addClass(h.toggler_class_shown).attr('title',h.toggler_title_shown)})}};var l=function(b,c,d){if($(c).is('tr')){$(c).fadeOut(h.speed)}else{$(c).slideUp(h.speed)}$(b).removeClass(h.toggler_class_shown).addClass(h.toggler_class_hidden).attr('title',h.toggler_title_hidden);if(d===false){$(b).text(h.all_toggler_showtext);$(c).each(function(){var a=j(this);$(a).removeClass(h.toggler_class_shown).addClass(h.toggler_class_hidden).attr('title',h.toggler_title_hidden)})}};var m=function(a,b,c,d){if(b&&c&&typeof(_gaq)!=='undefined'){if(d==='[[text_content]]'){d=$.trim($(a).text());if(h.debug){alert('Tracking label: '+d)}}else if(d.substr(0,12)==='[[selector]]'){var e=d.substr(12,(d.length-1));d=$.trim($(a).find(e).text());if(h.debug===true){alert('Label selector: '+e+'\n'+'Tracking label: '+d)}}else if(h.debug===true){alert('Tracking label: '+d)}_gaq.push(['_trackEvent',b,c,d])}else if(h.debug===true&&typeof(_gaq)==='undefined'){$('body').prepend('<p><strong><span style="color:red">jQuery Multi-Toggler Event Tracking Error:</span> Google Analytics asynchronous tracking snippet not initialized.</strong> <a href="http://goo.gl/1yjA">more info</a></p>')}else if(h.debug===true&&(!b||!c)){$('body').prepend('<p><strong><span style="color:red">jQuery Multi-Toggler Event Tracking Error:</span> required argument(s) missing.</strong> <a href="http://goo.gl/9DcZ">more info</a></p>')}return}})(jQuery);


/**
 * jQuery SuperBox! 0.9.1
 * Copyright (c) 2009 Pierre Bertet (pierrebertet.net)
 * Licensed under the MIT (MIT-LICENSE.txt)
 * @requires jQuery 1.3 or later
 */
(function(i){var l,t,r,q,a,p,h,o,j,w,b={boxId:"superbox",boxClasses:"",overlayOpacity:0.65,boxWidth:"600",boxHeight:"400",loadTxt:"Loading...",closeTxt:"Close",prevTxt:"Previous",nextTxt:"Next",beforeShow:function(){}},x={},m=false,s=i([]);
i.superbox=function(){w=i.extend({},b,i.superbox.settings);if(i.browser.msie&&i.browser.version<7){s=s.add("select")
}n();z()};function z(){i("a[rel^=superbox],area[rel^=superbox]").each(function(){var D=i(this),F=D.attr("rel"),B=F.match(/^superbox\[([^#\.\]]+)/)[1],E=F.replace("superbox","").match(/([#\.][^#\.\]]+)/g)||[],C=w.boxId,A=w.boxClasses;
this._relSettings=F.replace("superbox["+B+E.join("")+"]","");i.each(E,function(G,H){if(H.substr(0,1)=="#"){C=H.substr(1)
}else{if(H.substr(0,1)=="."){A+=" "+H.substr(1)}}});if(B.search(/^image|gallery|iframe|content|ajax$/)!=-1){D.superbox(B,{boxId:C,boxClasses:A})
}})}i.fn.superbox=function(B,A){A=i.extend({},w,A);i.superbox[B](this,A)};i.extend(i.superbox,{image:function(C,A,B){var E=f(C.get(0)),D=false;
if(E&&B=="gallery"){D=E[1]}else{if(E){D=E[0]}}C.click(function(F){F.preventDefault();
k();if(B=="gallery"){c(C,E[0])}y(function(){var H=false,G;if(D){H=D.split("x")}G=i('<img src="'+C.attr("href")+'" title="'+(C.attr("title")||C.text())+'" />');
G.load(function(){g(G,H);e({boxClasses:"image "+A.boxClasses,boxId:A.boxId});u()}).appendTo($innerbox)
})})},gallery:function(B,A){var C=f(B.get(0));if(!x[C[0]]){x[C[0]]=[]}x[C[0]].push(B);
B.get(0)._superboxGroupKey=(x[C[0]].length-1);i.superbox.image(B,A,"gallery")},iframe:function(B,A){var C=f(B.get(0));
B.click(function(D){D.preventDefault();k();y(function(){var F=false,E;if(C){F=C[0].split("x")
}A=i.extend({},A,{boxWidth:F[0]||A.boxWidth,boxHeight:F[1]||A.boxHeight});E=i('<iframe src="'+B.attr("href")+'" name="'+B.attr("href")+'" frameborder="0" scrolling="auto" hspace="0" width="'+A.boxWidth+'" height="'+A.boxHeight+'"></iframe>');
E.load(function(){q.width(A.boxWidth+"px");$innerbox.height(A.boxHeight+"px");e({boxClasses:"iframe "+A.boxClasses,boxId:A.boxId});
u()}).appendTo($innerbox)})})},content:function(B,A){var C=f(B.get(0));B.click(function(D){D.preventDefault();
k();y(function(){var E=false;if(C){E=C[0].split("x")}A=i.extend({},A,{boxWidth:E[0]||A.boxWidth,boxHeight:E[1]||A.boxHeight});
q.width(A.boxWidth+"px");$innerbox.height(A.boxHeight+"px");i(B.attr("href")).clone().appendTo($innerbox).show();
e({boxClasses:"content "+A.boxClasses,boxId:A.boxId});u()})})},ajax:function(B,A){var C=f(B.get(0));
B.click(function(D){D.preventDefault();k();y(function(){var E=false;if(C&&C[3]){E=C[3].split("x")
}A=i.extend({},A,{boxWidth:E[0]||A.boxWidth,boxHeight:E[1]||A.boxHeight});q.width(A.boxWidth+"px");
$innerbox.height(A.boxHeight+"px");i.get(C[2],function(F){i(F).appendTo($innerbox)
});e({boxClasses:"ajax "+A.boxClasses,boxId:A.boxId});u()})})}});function f(A){return A._relSettings.match(/([^\[\]]+)/g)
}function g(A,B){q.width(A.width()+($innerbox.css("paddingLeft").slice(0,-2)-0)+($innerbox.css("paddingRight").slice(0,-2)-0));
$innerbox.height(A.height());if(B&&B[0]!=""){q.width(B[0]+"px")}if(B&&B[1]!=""&&B[1]>A.height()){$innerbox.height(B[1]+"px")
}}function c(C,D){h.show();m=true;var A=C.get(0)._superboxGroupKey+1,B=A-2;if(x[D][A]){o.removeClass("disabled").unbind("click").bind("click",function(){x[D][A].click()
})}else{o.addClass("disabled").unbind("click")}if(x[D][B]){j.removeClass("disabled").unbind("click").bind("click",function(){x[D][B].click()
})}else{j.addClass("disabled").unbind("click")}}function e(A){q.attr("id",A.boxId).attr("class",A.boxClasses)
}function d(){i(document).unbind("keydown");p.hide();h.hide();t.hide().css({position:"fixed",top:0});
$innerbox.empty()}function v(A){d();l.fadeOut(300,function(){s.show()});m=false}function y(B){var A=function(){if(i.browser.msie&&i.browser.version<7){t.css({position:"absolute",top:"50%"})
}s.hide();p.show();B()};if(m){l.css("opacity",w.overlayOpacity).show();A()}else{l.css("opacity",0).show().fadeTo(300,w.overlayOpacity,A)
}}function k(){t.show();$innerbox.empty();q.css({position:"absolute",top:"-99999px"})
}function u(A,B){p.hide();i(document).unbind("keydown").bind("keydown",function(C){if(C.keyCode==27){v()
}if(C.keyCode==39&&o.is(":visible")){o.click()}if(C.keyCode==37&&j.is(":visible")){j.click()
}});q.css({position:"static",top:0,opacity:0});if(i.browser.msie&&i.browser.version<8){q.css({position:"relative",top:"-50%"});
if(i.browser.msie&&i.browser.version<7){t.css({position:"absolute",top:"50%"})}}if(i(window).height()<t.height()){t.css({position:"absolute",top:(t.offset().top+10)+"px"})
}w.beforeShow();q.fadeTo(300,1)}function n(){if(!i.superbox.elementsReady){l=i('<div id="superbox-overlay"></div>').appendTo("body").hide();
t=i('<div id="superbox-wrapper"></div>').appendTo("body").hide();r=i('<div id="superbox-container"></div>').appendTo(t);
q=i('<div id="superbox"></div>').appendTo(r);$innerbox=i('<div id="superbox-innerbox"></div>').appendTo(q);
h=i('<p class="nextprev"></p>').appendTo(q).hide();j=i('<a class="prev"><strong><span>'+w.prevTxt+"</span></strong></a>").appendTo(h);
o=i('<a class="next"><strong><span>'+w.nextTxt+"</span></strong></a>").appendTo(h);
a=i('<p class="close"><a><strong><span>'+w.closeTxt+"</span></strong></a></p>").prependTo(q).find("a");
p=i('<p class="loading">'+w.loadTxt+"</p>").appendTo(r).hide();l.add(t).add(a).click(function(){v()
});q.click(function(A){A.stopPropagation()});i.superbox.elementsReady=true}}})(jQuery);
