q=true;ba=false;bd=top;bi=parseInt;bo=window;bv=undefined;bw=parent;by=document;cv=String;cz=Date;ea=cz.parse;ef=alert;eh=Array;ei=Math;ej=ei.random;ek=ei.floor;et=Number;ey=RegExp;fp=navigator;fq=fp.userAgent;jc=eval;je=isNaN;﻿(function($){var globalTags=[];bo.setGlobalTags=function(tags){globalTags=getTags(tags);};function getTags(tags){var tag,i,goodTags=[];for(i=0;i<tags.length;i++){tag=tags[i];if(typeof tags[i]=='object'){tag=tags[i].tag}goodTags.push(tag.toLowerCase());}return goodTags}$.fn.tagSuggest=function(options){var defaults={'matchClass':'tagMatches','tagContainer':'span','tagWrap':'span','sort':q,'tags':null,'url':null,'delay':0,'separator':' '};var i,tag,userTags=[],settings=$.extend({},defaults,options);if(settings.tags){userTags=getTags(settings.tags);}else{userTags=globalTags}return this.each(function(){var tagsElm=$(this);var cq=this;var bu,ee=ba;var suggestionsShow=ba;var cc=[];var cr={"position":0,tag:""};var tagMatches=by.createElement(settings.tagContainer);function showSuggestionsDelayed(el,bz){if(settings.delay){if(cq.timer)clearTimeout(cq.timer);cq.timer=setTimeout(function(){showSuggestions(el,bz);},settings.delay);}else{showSuggestions(el,bz);}}function showSuggestions(el,bz){cc=el.value.split(settings.separator);bu=[];var i,html='',fg={},tagSelected=ba;cr={position:ci.length-1,tag:''};for(i=0;i<ci.length&&i<cc.length;i++){if(!tagSelected&&ci[i].toLowerCase()!=cc[i].toLowerCase()){cr={position:i,tag:cc[i].toLowerCase()};tagSelected=q}fg[ci[i].toLowerCase()]=q}if(cr.tag){if(settings.url){$.ajax({'url':settings.url,'dataType':'json','data':{'tag':cr.tag},'async':ba,'success':function(m){bu=m}});}else{for(i=0;i<userTags.length;i++){if(userTags[i].indexOf(cr.tag)===0){bu.push(userTags[i]);}}}bu=$.grep(bu,function(v,i){return!fg[v.toLowerCase()]});if(settings.sort){bu=bu.sort();}for(i=0;i<bu.length;i++){html+='<'+settings.tagWrap+' class="_tag_suggestion">'+bu[i]+'</'+settings.tagWrap+'>'}tagMatches.html(html);suggestionsShow=!!(bu.length);}else{cs();}};function cs(){tagMatches.empty();bu=[];suggestionsShow=ba}function setSelection(){var v=tagsElm.val();if(v==tagsElm.attr('title')&&tagsElm.is('.hint'))v='';ci=v.split(settings.separator);cs();}function fh(tag){var i,index;for(i=0;i<ci.length;i++){if(ci[i].toLowerCase()!=cc[i].toLowerCase()){index=i;break}}if(index==cc.length-1)tag+=settings.separator;cc[i]=tag;tagsElm.val(cc.join(settings.separator));tagsElm.blur().focus();setSelection();}function fi(cd){ee=ba;var type=cd.type;var resetSelection=ba;switch(cd.keyCode){case 37:case 38:case 39:case 40:{cs();return q}case 224:case 17:case 16:case 18:{return q}case 8:{if(this.value==''){cs();setSelection();return q}else{type='keyup';resetSelection=q;showSuggestionsDelayed(this);}break}case 9:case 13:{if(suggestionsShow){fh(bu[0]);ee=q;return ba}else{return q}}case 27:{cs();setSelection();return q}case 32:{setSelection();return q}}if(type=='keyup'){switch(cd.charCode){case 9:case 13:{return q}}if(resetSelection){setSelection();}showSuggestionsDelayed(this,cd.charCode);}}tagsElm.after(tagMatches).keypress(fi).keyup(fi).blur(function(){if(ee==q||suggestionsShow){ee=ba;tagsElm.focus();}});tagMatches=$(tagMatches).click(function(cd){if(cd.target.nodeName==settings.tagWrap.toUpperCase()&&$(cd.target).is('._tag_suggestion')){fh(cd.target.innerHTML);}}).addClass(settings.matchClass);setSelection();});}})(jQuery);(function($){var ct=function(e){if(!e)var e=bo.event;e.cancelBubble=q;if(e.stopPropagation)e.stopPropagation();};$.fn.checkbox=function(options){try{by.execCommand('BackgroundImageCache',ba,q);}catch(e){}var settings={cls:'jquery-checkbox',empty:'/content/css/tridonkey/images/empty.png'};settings=$.extend(settings,options||{});var addEvents=function(object){var checked=object.checked;var disabled=object.disabled;var $object=$(object);if(object.stateInterval)clearInterval(object.stateInterval);object.stateInterval=setInterval(function(){if(object.disabled!=disabled)$object.trigger((disabled=!!object.disabled)?'disable':'enable');if(object.checked!=checked)$object.trigger((checked=!!object.checked)?'check':'uncheck');},10);return $object};return this.each(function(){var bk=this;var $ch=addEvents(bk);if(bk.wrapper)bk.wrapper.remove();bk.wrapper=$('<span class="'+settings.cls+'"><span class="mark"><img src="'+settings.empty+'" /></span></span>');bk.wrapperInner=bk.wrapper.children('span:eq(0)');bk.wrapper.hover(function(e){bk.wrapperInner.addClass(settings.cls+'-hover');ct(e);},function(e){bk.wrapperInner.removeClass(settings.cls+'-hover');ct(e);});$ch.css({position:'absolute',zIndex:-1,visibility:'hidden'}).after(bk.wrapper);var label=ba;if($ch.attr('id')){label=$('label[for='+$ch.attr('id')+']');if(!label.length)label=ba}if(!label){label=$ch.closest?$ch.closest('label'):$ch.parents('label:eq(0)');if(!label.length)label=ba}if(label){label.hover(function(e){bk.wrapper.trigger('mouseover',[e]);},function(e){bk.wrapper.trigger('mouseout',[e]);});label.click(function(e){$ch.trigger('click',[e]);ct(e);return ba});}bk.wrapper.click(function(e){$ch.trigger('click',[e]);ct(e);return ba});$ch.click(function(e){ct(e);});$ch.bind('disable',function(){bk.wrapperInner.addClass(settings.cls+'-disabled');}).bind('enable',function(){bk.wrapperInner.removeClass(settings.cls+'-disabled');});$ch.bind('check',function(){bk.wrapper.addClass(settings.cls+'-checked');}).bind('uncheck',function(){bk.wrapper.removeClass(settings.cls+'-checked');});$('img',bk.wrapper).bind('dragstart',function(){return ba}).bind('mousedown',function(){return ba});if(bo.getSelection)bk.wrapper.css('MozUserSelect','none');if(bk.checked)bk.wrapper.addClass(settings.cls+'-checked');if(bk.disabled)bk.wrapperInner.addClass(settings.cls+'-disabled');});}})(jQuery);﻿(function(jQuery){jQuery.fn.typeWatch=function(o){var options=jQuery.extend({wait:750,callback:function(){},highlight:q,captureLength:2},o);function checkElement(timer,hg){var cu=jQuery(timer.el).val();if((cu.length>options.captureLength&&cu.toUpperCase()!=timer.text)||(hg&&cu.length>options.captureLength)){timer.text=cu.toUpperCase();timer.cb(cu);}};function hh(bj){if(bj.type.toUpperCase()=="TEXT"||bj.nodeName.toUpperCase()=="TEXTAREA"){var timer={timer:null,text:jQuery(bj).val().toUpperCase(),cb:options.callback,el:bj,wait:options.wait};if(options.highlight){jQuery(bj).focus(function(){this.select();});}var startWatch=function(hi){var timerWait=timer.wait;var fj=ba;if(hi.keyCode==13&&this.type.toUpperCase()=="TEXT"){timerWait=1;fj=q}var timerCallbackFx=function(){checkElement(timer,fj)};clearTimeout(timer.timer);timer.timer=setTimeout(timerCallbackFx,timerWait);};jQuery(bj).keydown(startWatch);}};return this.each(function(index){hh(this);});}})(jQuery);﻿jQuery.preloadCssImages=function(settings){settings=jQuery.extend({statusTextEl:null,statusBarEl:null,errorDelay:999,simultaneousCacheLoading:2},settings);var allImgs=[],bx=0,imgUrls=[],thisSheetRules,errorTimer;function onImgComplete(){clearTimeout(errorTimer);if(imgUrls&&imgUrls.length&&imgUrls[bx]){bx++;if(settings.statusTextEl){var nowloading=(imgUrls[bx])?'Now Loading: <span>'+imgUrls[bx].split('/')[imgUrls[bx].split('/').length-1]:'Loading complete';jQuery(settings.statusTextEl).html('<span class="numLoaded">'+bx+'</span> of <span class="numTotal">'+imgUrls.length+'</span> loaded (<span class="percentLoaded">'+(bx/imgUrls.length*100).toFixed(0)+'%</span>) <span class="currentImg">'+nowloading+'</span></span>');}if(settings.statusBarEl){var barWidth=jQuery(settings.statusBarEl).width();jQuery(settings.statusBarEl).css('background-position',-(barWidth-(barWidth*bx/imgUrls.length).toFixed(0))+'px 50%');}fk();}}function fk(){if(imgUrls&&imgUrls.length&&imgUrls[bx]){var img=new Image();img.src=imgUrls[bx];if(!img.complete){jQuery(img).bind('error load onreadystatechange',onImgComplete);}else{onImgComplete();}errorTimer=setTimeout(onImgComplete,settings.errorDelay);}}function fl(sheets,urls){var fm=ba,imported=[],importedSrc=[],cj;var sheetIndex=sheets.length;while(sheetIndex--){var cssPile='';if(urls&&urls[sheetIndex]){cj=urls[sheetIndex]}else{var csshref=(sheets[sheetIndex].href)?sheets[sheetIndex].href:'window.location.href';var fo=csshref.split('/');fo.pop();cj=fo.join('/');if(cj){cj+='/';}}if(sheets[sheetIndex].cssRules||sheets[sheetIndex].rules){thisSheetRules=(sheets[sheetIndex].cssRules)?sheets[sheetIndex].cssRules:sheets[sheetIndex].rules;var ck=thisSheetRules.length;while(ck--){if(thisSheetRules[ck].style&&thisSheetRules[ck].style.cssText){var text=thisSheetRules[ck].style.cssText;if(text.toLowerCase().indexOf('url')!=-1){cssPile+=text;}}else if(thisSheetRules[ck].styleSheet){imported.push(thisSheetRules[ck].styleSheet);fm=q}}}var tmpImage=cssPile.match(/[^\("]+\.(gif|jpg|jpeg|png)/g);if(tmpImage){var i=tmpImage.length;while(i--){var imgSrc=(tmpImage[i].charAt(0)=='/'||tmpImage[i].match('://'))?tmpImage[i]:cj+tmpImage[i];if(jQuery.inArray(imgSrc,imgUrls)==-1){imgUrls.push(imgSrc);}}}if(!fm&&sheets[sheetIndex].imports&&sheets[sheetIndex].imports.length){for(var iImport=0,importLen=sheets[sheetIndex].imports.length;iImport<importLen;iImport++){var iHref=sheets[sheetIndex].imports[iImport].href;iHref=iHref.split('/');iHref.pop();iHref=iHref.join('/');if(iHref){iHref+='/';}var iSrc=(iHref.charAt(0)=='/'||iHref.match('://'))?iHref:cj+iHref;importedSrc.push(iSrc);imported.push(sheets[sheetIndex].imports[iImport]);}}}if(imported.length){fl(imported,importedSrc);return ba}var downloads=settings.simultaneousCacheLoading;while(downloads--){setTimeout(fk,downloads);}}fl(by.styleSheets);return imgUrls};﻿;(function($){if(/1\.(0|1|2)\.(0|1|2)/.test($.fn.jquery)||/^1.1/.test($.fn.jquery)){ef('blockUI requires jQuery v1.2.3 or later!  You are using v'+$.fn.jquery);return}$.blockUI=function(opts){install(bo,opts);};$.unblockUI=function(opts){remove(bo,opts);};$.fn.block=function(opts){return this.each(function(){if($.css(this,'position')=='static')this.style.position='relative';if($.browser.msie)this.style.zoom=1;install(this,opts);});};$.fn.unblock=function(opts){return this.each(function(){remove(this,opts);});};$.blockUI.version=2.09;$.blockUI.defaults={message:'<h1>Please wait...</h1>',css:{padding:0,margin:0,width:'30%',bd:'40%',left:'35%',textAlign:'center',color:'#000',border:'3px solid #aaa',backgroundColor:'#fff',cursor:'wait'},overlayCSS:{backgroundColor:'#000',opacity:'0.6'},baseZ:1000,centerX:q,centerY:q,allowBodyStretch:q,constrainTabKey:q,fadeOut:400,focusInput:q,applyPlatformOpacityRules:q,onUnblock:null,quirksmodeOffsetHack:4};var ie6=$.browser.msie&&/MSIE 6.0/.test(fq);var cl=null;var cm=[];function install(el,opts){var bp=(el==bo);var br=opts&&opts.message!==bv?opts.message:bv;opts=$.extend({},$.blockUI.defaults,opts||{});opts.overlayCSS=$.extend({},$.blockUI.defaults.overlayCSS,opts.overlayCSS||{});var css=$.extend({},$.blockUI.defaults.css,opts.css||{});br=br===bv?opts.message:br;if(bp&&cl)remove(bo,{fadeOut:0});if(br&&typeof br!='string'&&(br.parentNode||br.jquery)){var node=br.jquery?br[0]:br;var data={};$(el).data('blockUI.history',data);data.el=node;data.parent=node.parentNode;data.display=node.style.display;data.position=node.style.position;data.parent.removeChild(node);}var z=opts.baseZ;var es=($.browser.msie)?$('<iframe class="blockUI" style="z-index:'+z+++';border:none;margin:0;padding:0;position:absolute;width:100%;height:100%;top:0;left:0" src="javascript:false;"></iframe>'):$('<div class="blockUI" style="display:none"></div>');var eg=$('<div class="blockUI blockOverlay" style="z-index:'+z+++';cursor:wait;border:none;margin:0;padding:0;width:100%;height:100%;top:0;left:0"></div>');var cn=bp?$('<div class="blockUI blockMsg blockPage" style="z-index:'+z+';position:fixed"></div>'):$('<div class="blockUI blockMsg blockElement" style="z-index:'+z+';display:none;position:absolute"></div>');if(br)cn.css(css);if(!opts.applyPlatformOpacityRules||!($.browser.mozilla&&/Linux/.test(fp.platform)))eg.css(opts.overlayCSS);eg.css('position',bp?'fixed':'absolute');if($.browser.msie)es.css('opacity','0.0');$([es[0],eg[0],cn[0]]).appendTo(bp?'body':el);var expr=$.browser.msie&&(!$.boxModel||$('object,embed',bp?null:el).length>0);if(ie6||expr){if(bp&&opts.allowBodyStretch&&$.boxModel)$('html,body').css('height','100%');if((ie6||!$.boxModel)&&!bp){var t=sz(el,'borderTopWidth'),l=sz(el,'borderLeftWidth');var fr=t?'(0 - '+t+')':0;var fs=l?'(0 - '+l+')':0}$.each([es,eg,cn],function(i,o){var s=o[0].style;s.position='absolute';if(i<2){bp?s.setExpression('height','Math.max(document.body.scrollHeight, document.body.offsetHeight) - (jQuery.boxModel?0:'+opts.quirksmodeOffsetHack+') + "px"'):s.setExpression('height','this.parentNode.offsetHeight + "px"');bp?s.setExpression('width','jQuery.boxModel && document.documentElement.clientWidth || document.body.clientWidth + "px"'):s.setExpression('width','this.parentNode.offsetWidth + "px"');if(fs)s.setExpression('left',fs);if(fr)s.setExpression('top',fr);}else if(opts.centerY){if(bp)s.setExpression('top','(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"');s.marginTop=0}});}cn.append(br).show();if(br&&(br.jquery||br.nodeType))$(br).show();bind(1,el,opts);if(bp){cl=cn[0];cm=$(':input:enabled:visible',cl);if(opts.focusInput)setTimeout(focus,20);}else center(cn[0],opts.centerX,opts.centerY);};function remove(el,opts){var bp=el==bo;var data=$(el).data('blockUI.history');opts=$.extend({},$.blockUI.defaults,opts||{});bind(0,el,opts);var els=bp?$('body').children().filter('.blockUI'):$('.blockUI',el);if(bp)cl=cm=null;if(opts.fadeOut){els.fadeOut(opts.fadeOut);setTimeout(function(){reset(els,data,opts,el);},opts.fadeOut);}else reset(els,data,opts,el);};function reset(els,data,opts,el){els.each(function(i,o){if(this.parentNode)this.parentNode.removeChild(this);});if(data&&data.el){data.el.style.display=data.display;data.el.style.position=data.position;data.parent.appendChild(data.el);$(data.el).removeData('blockUI.history');}if(typeof opts.onUnblock=='function')opts.onUnblock(el,opts);};function bind(b,el,opts){var bp=el==bo,$el=$(el);if(!b&&(bp&&!cl||!bp&&!$el.data('blockUI.isBlocked')))return;if(!bp)$el.data('blockUI.isBlocked',b);var ft='mousedown mouseup keydown keypress click';b?$(by).bind(ft,opts,handler):$(by).unbind(ft,handler);};function handler(e){if(e.keyCode&&e.keyCode==9){if(cl&&e.data.constrainTabKey){var els=cm;var bl=!e.shiftKey&&e.target==els[els.length-1];var back=e.shiftKey&&e.target==els[0];if(bl||back){setTimeout(function(){focus(back)},10);return ba}}}if($(e.target).parents('div.blockMsg').length>0)return q;return $(e.target).parents().children().filter('div.blockUI').length==0};function focus(back){if(!cm)return;var e=cm[back===q?cm.length-1:0];if(e)e.focus();};function center(el,x,y){var p=el.parentNode,s=el.style;var l=((p.offsetWidth-el.offsetWidth)/2)-sz(p,'borderLeftWidth');var t=((p.offsetHeight-el.offsetHeight)/2)-sz(p,'borderTopWidth');if(x)s.left=l>0?(l+'px'):'0';if(y)s.top=t>0?(t+'px'):'0'};function sz(el,p){return bi($.css(el,p))||0}})(jQuery);﻿(function($){var ver="2.56";if($.support==bv){$.support={opacity:!($.browser.msie)}}function log(){if(bo.console&&bo.console.log){bo.console.log("[cycle] "+eh.prototype.join.call(arguments,""));}}$.fn.cycle=function(options,arg2){if(this.length==0&&options!="stop"){if(!$.isReady&&this.selector){log("DOM not ready, queuing slideshow");var o={s:this.selector,c:this.context};$(function(){$(o.s,o.c).cycle(options,arg2);});return this}log("terminating; zero elements found by selector"+($.isReady?"":" (DOM not ready)"));return this}return this.each(function(){options=hj(this,options,arg2);if(options===ba){return}if(this.cycleTimeout){clearTimeout(this.cycleTimeout);}this.cycleTimeout=this.cyclePause=0;var $cont=$(this);var $slides=options.slideExpr?$(options.slideExpr,this):$cont.children();var els=$slides.get();if(els.length<2){log("terminating; too few slides: "+els.length);return}var opts=hk($cont,$slides,els,options);if(opts===ba){return}if(opts.timeout||opts.continuous){this.cycleTimeout=setTimeout(function(){go(els,opts,0,!opts.rev);},opts.continuous?10:opts.timeout+(opts.delay||0));}});};function hj(bq,options,arg2){if(bq.cycleStop==bv){bq.cycleStop=0}if(options===bv||options===null){options={}}if(options.constructor==cv){switch(options){case"stop":bq.cycleStop++;if(bq.cycleTimeout){clearTimeout(bq.cycleTimeout);}bq.cycleTimeout=0;$(bq).removeData("cycle.opts");return ba;case"pause":bq.cyclePause=1;return ba;case"resume":bq.cyclePause=0;if(arg2===q){options=$(bq).data("cycle.opts");if(!options){log("options not found, can not resume");return}if(bq.cycleTimeout){clearTimeout(bq.cycleTimeout);bq.cycleTimeout=0}go(options.elements,options,1,1);}return ba;default:options={fx:options}}}else{if(options.constructor==et){var num=options;options=$(bq).data("cycle.opts");if(!options){log("options not found, can not advance slide");return ba}if(num<0||num>=options.elements.length){log("invalid slide index: "+num);return ba}options.nextSlide=num;if(bq.cycleTimeout){clearTimeout(this.cycleTimeout);bq.cycleTimeout=0}if(typeof arg2=="string"){options.oneTimeFx=arg2}go(options.elements,options,1,num>=options.currSlide);return ba}}return options}function hk($cont,$slides,els,options){var opts=$.extend({},$.fn.cycle.defaults,options||{},$.metadata?$cont.metadata():$.meta?$cont.data():{});if(opts.autostop){opts.countdown=opts.autostopCount||els.length}var bq=$cont[0];$cont.data("cycle.opts",opts);opts.$cont=$cont;opts.stopCount=bq.cycleStop;opts.elements=els;opts.before=opts.before?[opts.before]:[];opts.after=opts.after?[opts.after]:[];opts.after.unshift(function(){opts.busy=0});if(!$.support.opacity&&opts.cleartype){opts.after.push(function(){this.style.removeAttribute("filter");});}if(opts.continuous){opts.after.push(function(){go(els,opts,0,!opts.rev);});}saveOriginalOpts(opts);if(!$.support.opacity&&opts.cleartype&&!opts.cleartypeNoBg){fu($slides);}if($cont.css("position")=="static"){$cont.css("position","relative");}if(opts.width){$cont.width(opts.width);}if(opts.height&&opts.height!="auto"){$cont.height(opts.height);}if(opts.startingSlide){opts.startingSlide=bi(opts.startingSlide);}if(opts.random){opts.randomMap=[];for(var i=0;i<els.length;i++){opts.randomMap.push(i);}opts.randomMap.sort(function(a,b){return ej()-0.5});opts.randomIndex=0;opts.startingSlide=opts.randomMap[0]}else{if(opts.startingSlide>=els.length){opts.startingSlide=0}}opts.currSlide=opts.startingSlide=opts.startingSlide||0;var first=opts.startingSlide;$slides.css({position:"absolute",bd:0,left:0}).hide().each(function(i){var z=first?i>=first?els.length-(i-first):first-i:els.length-i;$(this).css("z-index",z);});$(els[first]).css("opacity",1).show();if(!$.support.opacity&&opts.cleartype){els[first].style.removeAttribute("filter");}if(opts.fit&&opts.width){$slides.width(opts.width);}if(opts.fit&&opts.height&&opts.height!="auto"){$slides.height(opts.height);}var hl=opts.containerResize&&!$cont.innerHeight();if(hl){var maxw=0,maxh=0;for(var i=0;i<els.length;i++){var $e=$(els[i]),e=$e[0],w=$e.outerWidth(),h=$e.outerHeight();if(!w){w=e.offsetWidth}if(!h){h=e.offsetHeight}maxw=w>maxw?w:maxw;maxh=h>maxh?h:maxh}if(maxw>0&&maxh>0){$cont.css({width:maxw+"px",height:maxh+"px"});}}if(opts.pause){$cont.hover(function(){this.cyclePause++},function(){this.cyclePause--});}supportMultiTransitions(opts);if(!opts.multiFx){var init=$.fn.cycle.transitions[opts.fx];if($.isFunction(init)){init($cont,$slides,opts);}else{if(opts.fx!="custom"&&!opts.multiFx){log("unknown transition: "+opts.fx,"; slideshow terminating");return ba}}}$slides.each(function(){var $el=$(this);this.cycleH=(opts.fit&&opts.height)?opts.height:$el.height();this.cycleW=(opts.fit&&opts.width)?opts.width:$el.width();});opts.cssBefore=opts.cssBefore||{};opts.animIn=opts.animIn||{};opts.animOut=opts.animOut||{};$slides.not(":eq("+first+")").css(opts.cssBefore);if(opts.cssFirst){$($slides[first]).css(opts.cssFirst);}if(opts.timeout){opts.timeout=bi(opts.timeout);if(opts.speed.constructor==cv){opts.speed=$.fx.speeds[opts.speed]||bi(opts.speed);}if(!opts.sync){opts.speed=opts.speed/2}while((opts.timeout-opts.speed)<250){opts.timeout+=opts.speed}}if(opts.easing){opts.easeIn=opts.easeOut=opts.easing}if(!opts.speedIn){opts.speedIn=opts.speed}if(!opts.speedOut){opts.speedOut=opts.speed}opts.slideCount=els.length;opts.currSlide=opts.lastSlide=first;if(opts.random){opts.nextSlide=opts.currSlide;if(++opts.randomIndex==els.length){opts.randomIndex=0}opts.nextSlide=opts.randomMap[opts.randomIndex]}else{opts.nextSlide=opts.startingSlide>=(els.length-1)?0:opts.startingSlide+1}var co=$slides[first];if(opts.before.length){opts.before[0].apply(co,[co,co,opts,q]);}if(opts.after.length>1){opts.after[1].apply(co,[co,co,opts,q]);}if(opts.next){$(opts.next).click(function(){return advance(opts,opts.rev?-1:1);});}if(opts.prev){$(opts.prev).click(function(){return advance(opts,opts.rev?1:-1);});}if(opts.pager){hm(els,opts);}hn(opts,els);return opts}function saveOriginalOpts(opts){opts.original={before:[],after:[]};opts.original.cssBefore=$.extend({},opts.cssBefore);opts.original.cssAfter=$.extend({},opts.cssAfter);opts.original.animIn=$.extend({},opts.animIn);opts.original.animOut=$.extend({},opts.animOut);$.each(opts.before,function(){opts.original.before.push(this);});$.each(opts.after,function(){opts.original.after.push(this);});}function supportMultiTransitions(opts){var txs=$.fn.cycle.transitions;if(opts.fx.indexOf(",")>0){opts.multiFx=q;opts.fxs=opts.fx.replace(/\s*/g,"").split(",");for(var i=0;i<opts.fxs.length;i++){var fx=opts.fxs[i];var tx=txs[fx];if(!tx||!txs.hasOwnProperty(fx)||!$.isFunction(tx)){log("discarding unknowtn transition: ",fx);opts.fxs.splice(i,1);i--}}if(!opts.fxs.length){log("No valid transitions named; slideshow terminating.");return ba}}else{if(opts.fx=="all"){opts.multiFx=q;opts.fxs=[];for(p in txs){var tx=txs[p];if(txs.hasOwnProperty(p)&&$.isFunction(tx)){opts.fxs.push(p);}}}}if(opts.multiFx&&opts.randomizeEffects){var ho=ek(ej()*20)+30;for(var i=0;i<ho;i++){var hp=ek(ej()*opts.fxs.length);opts.fxs.push(opts.fxs.splice(hp,1)[0]);}log("randomized fx sequence: ",opts.fxs);}}function hn(opts,els){opts.addSlide=function(newSlide,en){var $s=$(newSlide),s=$s[0];if(!opts.autostopCount){opts.countdown++}els[en?"unshift":"push"](s);if(opts.els){opts.els[en?"unshift":"push"](s);}opts.slideCount=els.length;$s.css("position","absolute");$s[en?"prependTo":"appendTo"](opts.$cont);if(en){opts.currSlide++;opts.nextSlide++}if(!$.support.opacity&&opts.cleartype&&!opts.cleartypeNoBg){fu($s);}if(opts.fit&&opts.width){$s.width(opts.width);}if(opts.fit&&opts.height&&opts.height!="auto"){$slides.height(opts.height);}s.cycleH=(opts.fit&&opts.height)?opts.height:$s.height();s.cycleW=(opts.fit&&opts.width)?opts.width:$s.width();$s.css(opts.cssBefore);if(opts.pager){$.fn.cycle.createPagerAnchor(els.length-1,s,$(opts.pager),els,opts);}if($.isFunction(opts.onAddSlide)){opts.onAddSlide($s);}else{$s.hide();}}}$.fn.cycle.resetState=function(opts,fx){var fx=fx||opts.fx;opts.before=[];opts.after=[];opts.cssBefore=$.extend({},opts.original.cssBefore);opts.cssAfter=$.extend({},opts.original.cssAfter);opts.animIn=$.extend({},opts.original.animIn);opts.animOut=$.extend({},opts.original.animOut);opts.fxFn=null;$.each(opts.original.before,function(){opts.before.push(this);});$.each(opts.original.after,function(){opts.after.push(this);});var init=$.fn.cycle.transitions[fx];if($.isFunction(init)){init(opts.$cont,$(opts.elements),opts);}};function go(els,opts,cw,bl){if(cw&&opts.busy){$(els).stop(q,q);opts.busy=ba}if(opts.busy){return}var p=opts.$cont[0],bc=els[opts.currSlide],next=els[opts.nextSlide];if(p.cycleStop!=opts.stopCount||p.cycleTimeout===0&&!cw){return}if(!cw&&!p.cyclePause&&((opts.autostop&&(--opts.countdown<=0))||(opts.nowrap&&!opts.random&&opts.nextSlide<opts.currSlide))){if(opts.end){opts.end(opts);}return}if(cw||!p.cyclePause){var fx=opts.fx;bc.cycleH=bc.cycleH||bc.offsetHeight;bc.cycleW=bc.cycleW||bc.offsetWidth;next.cycleH=next.cycleH||next.offsetHeight;next.cycleW=next.cycleW||next.offsetWidth;if(opts.multiFx){if(opts.lastFx==bv||++opts.lastFx>=opts.fxs.length){opts.lastFx=0}fx=opts.fxs[opts.lastFx];opts.currFx=fx}if(opts.oneTimeFx){fx=opts.oneTimeFx;opts.oneTimeFx=null}$.fn.cycle.resetState(opts,fx);if(opts.before.length){$.each(opts.before,function(i,o){if(p.cycleStop!=opts.stopCount){return}o.apply(next,[bc,next,opts,bl]);});}var after=function(){$.each(opts.after,function(i,o){if(p.cycleStop!=opts.stopCount){return}o.apply(next,[bc,next,opts,bl]);});};if(opts.nextSlide!=opts.currSlide){opts.busy=1;if(opts.fxFn){opts.fxFn(bc,next,opts,after,bl);}else{if($.isFunction($.fn.cycle[opts.fx])){$.fn.cycle[opts.fx](bc,next,opts,after);}else{$.fn.cycle.custom(bc,next,opts,after,cw&&opts.fastOnEvent);}}}opts.lastSlide=opts.currSlide;if(opts.random){opts.currSlide=opts.nextSlide;if(++opts.randomIndex==els.length){opts.randomIndex=0}opts.nextSlide=opts.randomMap[opts.randomIndex]}else{var fv=(opts.nextSlide+1)==els.length;opts.nextSlide=fv?0:opts.nextSlide+1;opts.currSlide=fv?els.length-1:opts.nextSlide-1}if(opts.pager){$.fn.cycle.updateActivePagerLink(opts.pager,opts.currSlide);}}var eo=0;if(opts.timeout&&!opts.continuous){eo=getTimeout(bc,next,opts,bl);}else{if(opts.continuous&&p.cyclePause){eo=10}}if(eo>0){p.cycleTimeout=setTimeout(function(){go(els,opts,0,!opts.rev);},eo);}}$.fn.cycle.updateActivePagerLink=function(pager,currSlide){$(pager).find("a").removeClass("activeSlide").filter("a:eq("+currSlide+")").addClass("activeSlide");};function getTimeout(bc,next,opts,bl){if(opts.timeoutFn){var t=opts.timeoutFn(bc,next,opts,bl);if(t!==ba){return t}}return opts.timeout}$.fn.cycle.next=function(opts){advance(opts,opts.rev?-1:1);};$.fn.cycle.prev=function(opts){advance(opts,opts.rev?1:-1);};function advance(opts,val){var els=opts.elements;var p=opts.$cont[0],timeout=p.cycleTimeout;if(timeout){clearTimeout(timeout);p.cycleTimeout=0}if(opts.random&&val<0){opts.randomIndex--;if(--opts.randomIndex==-2){opts.randomIndex=els.length-2}else{if(opts.randomIndex==-1){opts.randomIndex=els.length-1}}opts.nextSlide=opts.randomMap[opts.randomIndex]}else{if(opts.random){if(++opts.randomIndex==els.length){opts.randomIndex=0}opts.nextSlide=opts.randomMap[opts.randomIndex]}else{opts.nextSlide=opts.currSlide+val;if(opts.nextSlide<0){if(opts.nowrap){return ba}opts.nextSlide=els.length-1}else{if(opts.nextSlide>=els.length){if(opts.nowrap){return ba}opts.nextSlide=0}}}}if($.isFunction(opts.prevNextClick)){opts.prevNextClick(val>0,opts.nextSlide,els[opts.nextSlide]);}go(els,opts,1,val>=0);return ba}function hm(els,opts){var $p=$(opts.pager);$.each(els,function(i,o){$.fn.cycle.createPagerAnchor(i,o,$p,els,opts);});$.fn.cycle.updateActivePagerLink(opts.pager,opts.startingSlide);}$.fn.cycle.createPagerAnchor=function(i,el,$p,els,opts){var a=($.isFunction(opts.pagerAnchorBuilder))?opts.pagerAnchorBuilder(i,el):'<a href="#">'+(i+1)+"</a>";if(!a){return}var $a=$(a);if($a.parents("body").length==0){$a.appendTo($p);}$a.bind(opts.pagerEvent,function(){opts.nextSlide=i;var p=opts.$cont[0],timeout=p.cycleTimeout;if(timeout){clearTimeout(timeout);p.cycleTimeout=0}if($.isFunction(opts.pagerClick)){opts.pagerClick(opts.nextSlide,els[opts.nextSlide]);}go(els,opts,1,opts.currSlide<i);return ba});if(opts.pauseOnPagerHover){$a.hover(function(){opts.$cont[0].cyclePause++},function(){opts.$cont[0].cyclePause--});}};$.fn.cycle.hopsFromLast=function(opts,bl){var cx,l=opts.lastSlide,c=opts.currSlide;if(bl){cx=c>l?c-l:opts.slideCount-l}else{cx=c<l?l-c:l+opts.slideCount-c}return cx};function fu($slides){function eu(s){var s=bi(s).toString(16);return s.length<2?"0"+s:s}function getBg(e){for(;e&&e.nodeName.toLowerCase()!="html";e=e.parentNode){var v=$.css(e,"background-color");if(v.indexOf("rgb")>=0){var rgb=v.match(/\d+/g);return"#"+eu(rgb[0])+eu(rgb[1])+eu(rgb[2]);}if(v&&v!="transparent"){return v}}return"#ffffff"}$slides.each(function(){$(this).css("background-color",getBg(this));});}$.fn.cycle.commonReset=function(bc,next,opts,w,h,rev){$(opts.elements).not(bc).hide();opts.cssBefore.opacity=1;opts.cssBefore.display="block";if(w!==ba&&next.cycleW>0){opts.cssBefore.width=next.cycleW}if(h!==ba&&next.cycleH>0){opts.cssBefore.height=next.cycleH}opts.cssAfter=opts.cssAfter||{};opts.cssAfter.display="none";$(bc).css("zIndex",opts.slideCount+(rev===q?1:0));$(next).css("zIndex",opts.slideCount+(rev===q?0:1));};$.fn.cycle.custom=function(bc,next,opts,cb,speedOverride){var $l=$(bc),$n=$(next);var speedIn=opts.speedIn,speedOut=opts.speedOut,easeIn=opts.easeIn,easeOut=opts.easeOut;$n.css(opts.cssBefore);if(speedOverride){if(typeof speedOverride=="number"){speedIn=speedOut=speedOverride}else{speedIn=speedOut=1}easeIn=easeOut=null}var fn=function(){$n.animate(opts.animIn,speedIn,easeIn,cb);};$l.animate(opts.animOut,speedOut,easeOut,function(){if(opts.cssAfter){$l.css(opts.cssAfter);}if(!opts.sync){fn();}});if(opts.sync){fn();}};$.fn.cycle.transitions={fade:function($cont,$slides,opts){$slides.not(":eq("+opts.currSlide+")").css("opacity",0);opts.before.push(function(bc,next,opts){$.fn.cycle.commonReset(bc,next,opts);opts.cssBefore.opacity=0});opts.animIn={opacity:1};opts.animOut={opacity:0};opts.cssBefore={bd:0,left:0}}};$.fn.cycle.ver=function(){return ver};$.fn.cycle.defaults={fx:"fade",timeout:4000,timeoutFn:null,continuous:0,speed:1000,speedIn:null,speedOut:null,next:null,prev:null,prevNextClick:null,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:!$.support.opacity,nowrap:0,fastOnEvent:0,randomizeEffects:1,rev:0}})(jQuery);(function($){$.fn.cycle.transitions.scrollUp=function($cont,$slides,opts){$cont.css("overflow","hidden");opts.before.push($.fn.cycle.commonReset);var h=$cont.height();opts.cssBefore={bd:h,left:0};opts.cssFirst={bd:0};opts.animIn={bd:0};opts.animOut={bd:-h}};$.fn.cycle.transitions.scrollDown=function($cont,$slides,opts){$cont.css("overflow","hidden");opts.before.push($.fn.cycle.commonReset);var h=$cont.height();opts.cssFirst={bd:0};opts.cssBefore={bd:-h,left:0};opts.animIn={bd:0};opts.animOut={bd:h}};$.fn.cycle.transitions.scrollLeft=function($cont,$slides,opts){$cont.css("overflow","hidden");opts.before.push($.fn.cycle.commonReset);var w=$cont.width();opts.cssFirst={left:0};opts.cssBefore={left:w,bd:0};opts.animIn={left:0};opts.animOut={left:0-w}};$.fn.cycle.transitions.scrollRight=function($cont,$slides,opts){$cont.css("overflow","hidden");opts.before.push($.fn.cycle.commonReset);var w=$cont.width();opts.cssFirst={left:0};opts.cssBefore={left:-w,bd:0};opts.animIn={left:0};opts.animOut={left:w}};$.fn.cycle.transitions.scrollHorz=function($cont,$slides,opts){$cont.css("overflow","hidden").width();opts.before.push(function(bc,next,opts,bl){$.fn.cycle.commonReset(bc,next,opts);opts.cssBefore.left=bl?(next.cycleW-1):(1-next.cycleW);opts.animOut.left=bl?-bc.cycleW:bc.cycleW});opts.cssFirst={left:0};opts.cssBefore={bd:0};opts.animIn={left:0};opts.animOut={bd:0}};$.fn.cycle.transitions.scrollVert=function($cont,$slides,opts){$cont.css("overflow","hidden");opts.before.push(function(bc,next,opts,bl){$.fn.cycle.commonReset(bc,next,opts);opts.cssBefore.top=bl?(1-next.cycleH):(next.cycleH-1);opts.animOut.top=bl?bc.cycleH:-bc.cycleH});opts.cssFirst={bd:0};opts.cssBefore={left:0};opts.animIn={bd:0};opts.animOut={left:0}};$.fn.cycle.transitions.slideX=function($cont,$slides,opts){opts.before.push(function(bc,next,opts){$(opts.elements).not(bc).hide();$.fn.cycle.commonReset(bc,next,opts,ba,q);opts.animIn.width=next.cycleW});opts.cssBefore={left:0,bd:0,width:0};opts.animIn={width:"show"};opts.animOut={width:0}};$.fn.cycle.transitions.slideY=function($cont,$slides,opts){opts.before.push(function(bc,next,opts){$(opts.elements).not(bc).hide();$.fn.cycle.commonReset(bc,next,opts,q,ba);opts.animIn.height=next.cycleH});opts.cssBefore={left:0,bd:0,height:0};opts.animIn={height:"show"};opts.animOut={height:0}};$.fn.cycle.transitions.shuffle=function($cont,$slides,opts){var w=$cont.css("overflow","visible").width();$slides.css({left:0,bd:0});opts.before.push(function(bc,next,opts){$.fn.cycle.commonReset(bc,next,opts,q,q,q);});opts.speed=opts.speed/2;opts.random=0;opts.shuffle=opts.shuffle||{left:-w,bd:15};opts.els=[];for(var i=0;i<$slides.length;i++){opts.els.push($slides[i]);}for(var i=0;i<opts.currSlide;i++){opts.els.push(opts.els.shift());}opts.fxFn=function(bc,next,opts,cb,bl){var $el=bl?$(bc):$(next);$(next).css(opts.cssBefore);var count=opts.slideCount;$el.animate(opts.shuffle,opts.speedIn,opts.easeIn,function(){var cx=$.fn.cycle.hopsFromLast(opts,bl);for(var k=0;k<cx;k++){bl?opts.els.push(opts.els.shift()):opts.els.unshift(opts.els.pop());}if(bl){for(var i=0,fw=opts.els.length;i<fw;i++){$(opts.els[i]).css("z-index",fw-i+count);}}else{var z=$(bc).css("z-index");$el.css("z-index",bi(z)+1+count);}$el.animate({left:0,bd:0},opts.speedOut,opts.easeOut,function(){$(bl?this:bc).hide();if(cb){cb();}});});};opts.cssBefore={display:"block",opacity:1,bd:0,left:0}};$.fn.cycle.transitions.turnUp=function($cont,$slides,opts){opts.before.push(function(bc,next,opts){$.fn.cycle.commonReset(bc,next,opts,q,ba);opts.cssBefore.top=next.cycleH;opts.animIn.height=next.cycleH});opts.cssFirst={bd:0};opts.cssBefore={left:0,height:0};opts.animIn={bd:0};opts.animOut={height:0}};$.fn.cycle.transitions.turnDown=function($cont,$slides,opts){opts.before.push(function(bc,next,opts){$.fn.cycle.commonReset(bc,next,opts,q,ba);opts.animIn.height=next.cycleH;opts.animOut.top=bc.cycleH});opts.cssFirst={bd:0};opts.cssBefore={left:0,bd:0,height:0};opts.animOut={height:0}};$.fn.cycle.transitions.turnLeft=function($cont,$slides,opts){opts.before.push(function(bc,next,opts){$.fn.cycle.commonReset(bc,next,opts,ba,q);opts.cssBefore.left=next.cycleW;opts.animIn.width=next.cycleW});opts.cssBefore={bd:0,width:0};opts.animIn={left:0};opts.animOut={width:0}};$.fn.cycle.transitions.turnRight=function($cont,$slides,opts){opts.before.push(function(bc,next,opts){$.fn.cycle.commonReset(bc,next,opts,ba,q);opts.animIn.width=next.cycleW;opts.animOut.left=bc.cycleW});opts.cssBefore={bd:0,left:0,width:0};opts.animIn={left:0};opts.animOut={width:0}};$.fn.cycle.transitions.zoom=function($cont,$slides,opts){opts.before.push(function(bc,next,opts){$.fn.cycle.commonReset(bc,next,opts,ba,ba,q);opts.cssBefore.top=next.cycleH/2;opts.cssBefore.left=next.cycleW/2;opts.animIn={bd:0,left:0,width:next.cycleW,height:next.cycleH};opts.animOut={width:0,height:0,bd:bc.cycleH/2,left:bc.cycleW/2}});opts.cssFirst={bd:0,left:0};opts.cssBefore={width:0,height:0}};$.fn.cycle.transitions.fadeZoom=function($cont,$slides,opts){opts.before.push(function(bc,next,opts){$.fn.cycle.commonReset(bc,next,opts,ba,ba);opts.cssBefore.left=next.cycleW/2;opts.cssBefore.top=next.cycleH/2;opts.animIn={bd:0,left:0,width:next.cycleW,height:next.cycleH}});opts.cssBefore={width:0,height:0};opts.animOut={opacity:0}};$.fn.cycle.transitions.blindX=function($cont,$slides,opts){var w=$cont.css("overflow","hidden").width();opts.before.push(function(bc,next,opts){$.fn.cycle.commonReset(bc,next,opts);opts.animIn.width=next.cycleW;opts.animOut.left=bc.cycleW});opts.cssBefore={left:w,bd:0};opts.animIn={left:0};opts.animOut={left:w}};$.fn.cycle.transitions.blindY=function($cont,$slides,opts){var h=$cont.css("overflow","hidden").height();opts.before.push(function(bc,next,opts){$.fn.cycle.commonReset(bc,next,opts);opts.animIn.height=next.cycleH;opts.animOut.top=bc.cycleH});opts.cssBefore={bd:h,left:0};opts.animIn={bd:0};opts.animOut={bd:h}};$.fn.cycle.transitions.blindZ=function($cont,$slides,opts){var h=$cont.css("overflow","hidden").height();var w=$cont.width();opts.before.push(function(bc,next,opts){$.fn.cycle.commonReset(bc,next,opts);opts.animIn.height=next.cycleH;opts.animOut.top=bc.cycleH});opts.cssBefore={bd:h,left:w};opts.animIn={bd:0,left:0};opts.animOut={bd:h,left:w}};$.fn.cycle.transitions.growX=function($cont,$slides,opts){opts.before.push(function(bc,next,opts){$.fn.cycle.commonReset(bc,next,opts,ba,q);opts.cssBefore.left=this.cycleW/2;opts.animIn={left:0,width:this.cycleW};opts.animOut={left:0}});opts.cssBefore={width:0,bd:0}};$.fn.cycle.transitions.growY=function($cont,$slides,opts){opts.before.push(function(bc,next,opts){$.fn.cycle.commonReset(bc,next,opts,q,ba);opts.cssBefore.top=this.cycleH/2;opts.animIn={bd:0,height:this.cycleH};opts.animOut={bd:0}});opts.cssBefore={height:0,left:0}};$.fn.cycle.transitions.curtainX=function($cont,$slides,opts){opts.before.push(function(bc,next,opts){$.fn.cycle.commonReset(bc,next,opts,ba,q,q);opts.cssBefore.left=next.cycleW/2;opts.animIn={left:0,width:this.cycleW};opts.animOut={left:bc.cycleW/2,width:0}});opts.cssBefore={bd:0,width:0}};$.fn.cycle.transitions.curtainY=function($cont,$slides,opts){opts.before.push(function(bc,next,opts){$.fn.cycle.commonReset(bc,next,opts,q,ba,q);opts.cssBefore.top=next.cycleH/2;opts.animIn={bd:0,height:next.cycleH};opts.animOut={bd:bc.cycleH/2,height:0}});opts.cssBefore={left:0,height:0}};$.fn.cycle.transitions.cover=function($cont,$slides,opts){var d=opts.direction||"left";var w=$cont.css("overflow","hidden").width();var h=$cont.height();opts.before.push(function(bc,next,opts){$.fn.cycle.commonReset(bc,next,opts);if(d=="right"){opts.cssBefore.left=-w}else{if(d=="up"){opts.cssBefore.top=h}else{if(d=="down"){opts.cssBefore.top=-h}else{opts.cssBefore.left=w}}}});opts.animIn={left:0,bd:0};opts.animOut={opacity:1};opts.cssBefore={bd:0,left:0}};$.fn.cycle.transitions.uncover=function($cont,$slides,opts){var d=opts.direction||"left";var w=$cont.css("overflow","hidden").width();var h=$cont.height();opts.before.push(function(bc,next,opts){$.fn.cycle.commonReset(bc,next,opts,q,q,q);if(d=="right"){opts.animOut.left=w}else{if(d=="up"){opts.animOut.top=-h}else{if(d=="down"){opts.animOut.top=h}else{opts.animOut.left=-w}}}});opts.animIn={left:0,bd:0};opts.animOut={opacity:1};opts.cssBefore={bd:0,left:0}};$.fn.cycle.transitions.toss=function($cont,$slides,opts){var w=$cont.css("overflow","visible").width();var h=$cont.height();opts.before.push(function(bc,next,opts){$.fn.cycle.commonReset(bc,next,opts,q,q,q);if(!opts.animOut.left&&!opts.animOut.top){opts.animOut={left:w*2,bd:-h/2,opacity:0}}else{opts.animOut.opacity=0}});opts.cssBefore={left:0,bd:0};opts.animIn={left:0}};$.fn.cycle.transitions.wipe=function($cont,$slides,opts){var w=$cont.css("overflow","hidden").width();var h=$cont.height();opts.cssBefore=opts.cssBefore||{};var clip;if(opts.clip){if(/l2r/.test(opts.clip)){clip="rect(0px 0px "+h+"px 0px)"}else{if(/r2l/.test(opts.clip)){clip="rect(0px "+w+"px "+h+"px "+w+"px)"}else{if(/t2b/.test(opts.clip)){clip="rect(0px "+w+"px 0px 0px)"}else{if(/b2t/.test(opts.clip)){clip="rect("+h+"px "+w+"px "+h+"px 0px)"}else{if(/zoom/.test(opts.clip)){var t=bi(h/2);var l=bi(w/2);clip="rect("+t+"px "+l+"px "+t+"px "+l+"px)"}}}}}}opts.cssBefore.clip=opts.cssBefore.clip||clip||"rect(0px 0px 0px 0px)";var d=opts.cssBefore.clip.match(/(\d+)/g);var t=bi(d[0]),r=bi(d[1]),b=bi(d[2]),l=bi(d[3]);opts.before.push(function(bc,next,opts){if(bc==next){return}var $curr=$(bc),$next=$(next);$.fn.cycle.commonReset(bc,next,opts,q,q,ba);opts.cssAfter.display="block";var step=1,count=bi((opts.speedIn/13))-1;(function f(){var tt=t?t-bi(step*(t/count)):0;var hq=l?l-bi(step*(l/count)):0;var hr=b<h?b+bi(step*((h-b)/count||1)):h;var hs=r<w?r+bi(step*((w-r)/count||1)):w;$next.css({clip:"rect("+tt+"px "+hs+"px "+hr+"px "+hq+"px)"});(step++<=count)?setTimeout(f,13):$curr.css("display","none");})();});opts.cssBefore={display:"block",opacity:1,bd:0,left:0};opts.animIn={left:0};opts.animOut={left:0}}})(jQuery);(function($){function Simpletip(bj,be){var self=this;bj=jQuery(bj);var tooltip=jQuery(by.createElement('div')).addClass(be.baseClass).addClass((be.fixed)?be.fixedClass:'').addClass((be.persistent)?be.persistentClass:'').html(be.content).appendTo(bj);if(!be.hidden)tooltip.show();else tooltip.hide();if(!be.persistent){bj.hover(function(event){self.show(event)},function(){self.hide()});if(!be.fixed){bj.mousemove(function(event){if(tooltip.css('display')!=='none')self.updatePos(event);});}}else{bj.click(function(event){if(event.target===bj.get(0)){if(tooltip.css('display')!=='none')self.hide();else self.show();}});jQuery(bo).mousedown(function(event){if(tooltip.css('display')!=='none'){var check=(be.focus)?jQuery(event.target).parents('.tooltip').andSelf().filter(function(){return this===tooltip.get(0)}).length:0;if(check===0)self.hide();}});};jQuery.extend(self,{getVersion:function(){return[1,2,0]},getParent:function(){return bj},getTooltip:function(){return tooltip},getPos:function(){return tooltip.offset();},setPos:function(bm,bn){var bt=bj.offset();if(typeof bm=='string')bm=bi(bm)+bt.left;if(typeof bn=='string')bn=bi(bn)+bt.top;tooltip.css({left:bm,bd:bn});return self},show:function(event){be.onBeforeShow.call(self);self.updatePos((be.fixed)?null:event);switch(be.showEffect){case'fade':tooltip.fadeIn(be.showTime);break;case'slide':tooltip.slideDown(be.showTime,self.updatePos);break;case'custom':be.showCustom.call(tooltip,be.showTime);break;default:case'none':tooltip.show();break};tooltip.addClass(be.activeClass);be.onShow.call(self);return self},hide:function(){be.onBeforeHide.call(self);switch(be.hideEffect){case'fade':tooltip.fadeOut(be.hideTime);break;case'slide':tooltip.slideUp(be.hideTime);break;case'custom':be.hideCustom.call(tooltip,be.hideTime);break;default:case'none':tooltip.hide();break};tooltip.removeClass(be.activeClass);be.onHide.call(self);return self},update:function(content){tooltip.html(content);be.content=content;return self},load:function(uri,data){be.beforeContentLoad.call(self);tooltip.load(uri,data,function(){be.onContentLoad.call(self);});return self},boundryCheck:function(bm,bn){var newX=bm+tooltip.outerWidth();var newY=bn+tooltip.outerHeight();var windowWidth=jQuery(bo).width()+jQuery(bo).scrollLeft();var windowHeight=jQuery(bo).height()+jQuery(bo).scrollTop();return[(newX>=windowWidth),(newY>=windowHeight)]},updatePos:function(event){var tooltipWidth=tooltip.outerWidth();var tooltipHeight=tooltip.outerHeight();if(!event&&be.fixed){if(be.position.constructor==eh){bm=bi(be.position[0]);bn=bi(be.position[1]);}else if(jQuery(be.position).attr('nodeType')===1){var offset=jQuery(be.position).offset();bm=offset.left;bn=offset.top}else{var bt=bj.offset();var ep=bj.outerWidth();var ew=bj.outerHeight();switch(be.position){case'top':var bm=bt.left-(tooltipWidth/2)+(ep/2);var bn=bt.top-tooltipHeight;break;case'bottom':var bm=bt.left-(tooltipWidth/2)+(ep/2);var bn=bt.top+ew;break;case'left':var bm=bt.left-tooltipWidth;var bn=bt.top-(tooltipHeight/2)+(ew/2);break;case'right':var bm=bt.left+ep;var bn=bt.top-(tooltipHeight/2)+(ew/2);break;default:case'default':var bm=(ep/2)+bt.left+20;var bn=bt.top;break}}}else{var bm=event.pageX;var bn=event.pageY};if(typeof be.position!='object'){bm+=be.offset[0];bn+=be.offset[1];if(be.boundryCheck){var overflow=self.boundryCheck(bm,bn);if(overflow[0])bm-=(tooltipWidth/2)-(2*be.offset[0]);if(overflow[1])bn-=(tooltipHeight/2)-(2*be.offset[1]);}}else{if(typeof be.position[0]=="string")bm=cv(bm);if(typeof be.position[1]=="string")bn=cv(bn);};self.setPos(bm,bn);return self}});};jQuery.fn.simpletip=function(be){var api=jQuery(this).eq(typeof be=='number'?be:0).data("simpletip");if(api)return api;var defaultConf={content:'A simple tooltip',persistent:ba,focus:ba,hidden:q,position:'default',offset:[0,0],boundryCheck:q,fixed:q,showEffect:'fade',showTime:150,showCustom:null,hideEffect:'fade',hideTime:150,hideCustom:null,baseClass:'tooltip',activeClass:'active',fixedClass:'fixed',persistentClass:'persistent',focusClass:'focus',onBeforeShow:function(){},onShow:function(){},onBeforeHide:function(){},onHide:function(){},beforeContentLoad:function(){},onContentLoad:function(){}};jQuery.extend(defaultConf,be);this.each(function(){var el=new Simpletip(jQuery(this),defaultConf);jQuery(this).data("simpletip",el);});return this}})();﻿$.fn.disableOnSubmit=function(disableList){if(disableList==null){var $list='input[type=submit],input[type=button],input[type=reset],button'}else{var $list=disableList}$(this).find($list).removeAttr('disabled');$(this).submit(function(){$(this).find($list).attr('disabled','disabled');});return this};(function($){var f={};var g={};var h={};var j=[];jQuery.fn.jBreadCrumb=function(a){f=$.extend({},$.fn.jBreadCrumb.defaults,a);return this.each(function(){g=$(this);setupBreadCrumb()})};function setupBreadCrumb(){h=jQuery(g).find('li');jQuery(g).find('ul').wrap('<div style="overflow:hidden; position:relative;  width: '+jQuery(g).css("width")+';"><div>');jQuery(g).find('ul').width(5000);if(h.length>0){jQuery(h[h.length-1]).addClass('last');jQuery(h[0]).addClass('first');if(h.length>f.minimumCompressionElements){ht()}}};function ht(){var c=jQuery(h[h.length-1]);if(jQuery(c).width()>f.maxFinalElementLength){if(f.beginingElementsToLeaveOpen>0){f.beginingElementsToLeaveOpen--}if(f.endElementsToLeaveOpen>0){f.endElementsToLeaveOpen--}}if(jQuery(c).width()<f.maxFinalElementLength&&jQuery(c).width()>f.minFinalElementLength){if(f.beginingElementsToLeaveOpen>0){f.beginingElementsToLeaveOpen--}}var d=h.length-1-f.endElementsToLeaveOpen;jQuery(h[h.length-1]).css({background:'none'});$(h).each(function(i,a){if(i>f.beginingElementsToLeaveOpen&&i<d){jQuery(a).find('a').wrap('<span></span>').width(jQuery(a).find('a').width()+10);jQuery(a).append(jQuery(f.overlayClass+'.main').clone().removeClass('main').css({display:'block'})).css({background:'none'});if(isIE6OrLess()){hu(jQuery(a).find(f.overlayClass).css({width:'20px',right:"-1px"}))}var b={id:i,width:jQuery(a).width(),listElement:jQuery(a).find('span'),isAnimating:ba,element:jQuery(a).find('span')};jQuery(a).bind('mouseover',b,fy).bind('mouseout',b,shrinkBreadCrumb);jQuery(a).find('a').unbind('mouseover',fy).unbind('mouseout',shrinkBreadCrumb);a.autoInterval=setInterval(function(){clearInterval(a.autoInterval);jQuery(a).find('span').animate({width:f.previewWidth},f.timeInitialCollapse,f.easing)},(150*(i-2)))}})};function fy(e){var a=e.data.id;var b=e.data.width;jQuery(e.data.element).stop();jQuery(e.data.element).animate({width:b},{duration:f.timeExpansionAnimation,easing:f.easing,hv:ba});return ba};function shrinkBreadCrumb(e){var a=e.data.id;jQuery(e.data.element).stop();jQuery(e.data.element).animate({width:f.previewWidth},{duration:f.timeCompressionAnimation,easing:f.easing,hv:ba});return ba};function isIE6OrLess(){var a=$.browser.msie&&/MSIE\s(5\.5|6\.)/.test(fq);return a};function hu(a){var b;if(jQuery(a).is('img')){b=jQuery(a).attr('src')}else{b=$(a).css('backgroundImage');b.match(/^url\(["']?(.*\.png)["']?\)$/i);b=ey.$1}$(a).css({'backgroundImage':'none','filter':"progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=scale, src='"+b+"')"})};jQuery.fn.jBreadCrumb.defaults={maxFinalElementLength:400,minFinalElementLength:200,minimumCompressionElements:4,endElementsToLeaveOpen:1,beginingElementsToLeaveOpen:1,minElementsToCollapse:4,timeExpansionAnimation:800,timeCompressionAnimation:500,timeInitialCollapse:600,easing:'easeOutQuad',overlayClass:'.chevronOverlay',previewWidth:5}})(jQuery);(function($){$.extend($.fn,{validate:function(options){if(!this.length){options&&options.debug&&bo.console&&console.warn("nothing selected, can't validate, returning nothing");return}var validator=$.data(this[0],'validator');if(validator){return validator}validator=new $.validator(options,this[0]);$.data(this[0],'validator',validator);if(validator.settings.onsubmit){this.find("input, button").filter(".cancel").click(function(){validator.cancelSubmit=q});this.submit(function(event){if(validator.settings.debug)event.preventDefault();function handle(){if(validator.settings.submitHandler){validator.settings.submitHandler.call(validator,validator.currentForm);return ba}return q}if(validator.cancelSubmit){validator.cancelSubmit=ba;return handle();}if(validator.form()){if(validator.pendingRequest){validator.formSubmitted=q;return ba}return handle();}else{validator.focusInvalid();return ba}});}return validator},valid:function(){if($(this[0]).is('form')){return this.validate().form();}else{var valid=ba;var validator=$(this[0].form).validate();this.each(function(){valid|=validator.element(this);});return valid}},removeAttrs:function(attributes){var bs={},$element=this;$.each(attributes.split(/\s/),function(index,value){bs[value]=$element.attr(value);$element.removeAttr(value);});return bs},rules:function(fz,argument){var element=this[0];if(fz){var settings=$.data(element.form,'validator').settings;var staticRules=settings.rules;var cy=$.validator.staticRules(element);switch(fz){case"add":$.extend(cy,$.validator.normalizeRule(argument));staticRules[element.name]=cy;if(argument.messages)settings.messages[element.name]=$.extend(settings.messages[element.name],argument.messages);break;case"remove":if(!argument){delete staticRules[element.name];return cy}var filtered={};$.each(argument.split(/\s/),function(index,method){filtered[method]=cy[method];delete cy[method]});return filtered}}var data=$.validator.normalizeRules($.extend({},$.validator.metadataRules(element),$.validator.classRules(element),$.validator.attributeRules(element),$.validator.staticRules(element)),element);if(data.required){var param=data.required;delete data.required;data=$.extend({required:param},data);}return data}});$.extend($.expr[":"],{jl:function(a){return!$.trim(a.value);},jm:function(a){return!!$.trim(a.value);},unchecked:function(a){return!a.checked}});$.format=function(source,bf){if(arguments.length==1)return function(){var args=$.makeArray(arguments);args.unshift(source);return $.format.apply(this,args);};if(arguments.length>2&&bf.constructor!=eh){bf=$.makeArray(arguments).slice(1);}if(bf.constructor!=eh){bf=[bf]}$.each(bf,function(i,n){source=source.replace(new ey("\\{"+i+"\\}","g"),n);});return source};$.validator=function(options,form){this.settings=$.extend({},$.validator.defaults,options);this.currentForm=form;this.init();};$.extend($.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",errorElement:"label",focusInvalid:q,errorContainer:$([]),errorLabelContainer:$([]),onsubmit:q,ignore:[],ignoreTitle:ba,onfocusin:function(element){this.lastActive=element;if(this.settings.focusCleanup&&!this.blockFocusCleanup){this.settings.unhighlight&&this.settings.unhighlight.call(this,element,this.settings.errorClass);this.errorsFor(element).hide();}},onfocusout:function(element){if(!this.checkable(element)&&(element.name in this.submitted||!this.optional(element))){this.element(element);}},onkeyup:function(element){if(element.name in this.submitted||element==this.lastElement){this.element(element);}},onclick:function(element){if(element.name in this.submitted)this.element(element);},highlight:function(element,errorClass){$(element).addClass(errorClass);},unhighlight:function(element,errorClass){$(element).removeClass(errorClass);}},setDefaults:function(settings){$.extend($.validator.defaults,settings);},messages:{required:"This field is required.",remote:"Please fix this field.",email:"Please enter a valid email address.",url:"Please enter a valid URL.",date:"Please enter a valid date.",dateISO:"Please enter a valid date (ISO).",dateDE:"Bitte geben Sie ein gültiges Datum ein.",number:"Please enter a valid number.",numberDE:"Bitte geben Sie eine Nummer ein.",digits:"Please enter only digits",ez:"Please enter a valid credit card number.",equalTo:"Please enter the same value again.",accept:"Please enter a value with a valid extension.",maxlength:$.format("Please enter no more than {0} characters."),minlength:$.format("Please enter at least {0} characters."),rangelength:$.format("Please enter a value between {0} and {1} characters long."),range:$.format("Please enter a value between {0} and {1}."),max:$.format("Please enter a value less than or equal to {0}."),min:$.format("Please enter a value greater than or equal to {0}.")},autoCreateRanges:ba,prototype:{init:function(){this.labelContainer=$(this.settings.errorLabelContainer);this.errorContext=this.labelContainer.length&&this.labelContainer||$(this.currentForm);this.containers=$(this.settings.errorContainer).add(this.settings.errorLabelContainer);this.submitted={};this.valueCache={};this.pendingRequest=0;this.pending={};this.invalid={};this.reset();var groups=(this.groups={});$.each(this.settings.groups,function(bz,value){$.each(value.split(/\s/),function(index,name){groups[name]=bz});});var rules=this.settings.rules;$.each(rules,function(bz,value){rules[bz]=$.validator.normalizeRule(value);});function delegate(event){var validator=$.data(this[0].form,"validator");validator.settings["on"+event.type]&&validator.settings["on"+event.type].call(validator,this[0]);}$(this.currentForm).delegate("focusin focusout keyup",":text, :password, :file, select, textarea",delegate).delegate("click",":radio, :checkbox",delegate);if(this.settings.invalidHandler)$(this.currentForm).bind("invalid-form.validate",this.settings.invalidHandler);},form:function(){this.checkForm();$.extend(this.submitted,this.errorMap);this.invalid=$.extend({},this.errorMap);if(!this.valid())$(this.currentForm).triggerHandler("invalid-form",[this]);this.showErrors();return this.valid();},checkForm:function(){this.prepareForm();for(var i=0,elements=(this.currentElements=this.elements());elements[i];i++){this.check(elements[i]);}return this.valid();},element:function(element){element=this.clean(element);this.lastElement=element;this.prepareElement(element);this.currentElements=$(element);var bs=this.check(element);if(bs){delete this.invalid[element.name]}else{this.invalid[element.name]=q}if(!this.numberOfInvalids()){this.toHide=this.toHide.add(this.containers);}this.showErrors();return bs},showErrors:function(errors){if(errors){$.extend(this.errorMap,errors);this.errorList=[];for(var name in errors){this.errorList.push({message:errors[name],element:this.findByName(name)[0]});}this.successList=$.grep(this.successList,function(element){return!(element.name in errors);});}this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors();},resetForm:function(){if($.fn.resetForm)$(this.currentForm).resetForm();this.submitted={};this.prepareForm();this.hideErrors();this.elements().removeClass(this.settings.errorClass);},numberOfInvalids:function(){return this.objectLength(this.invalid);},objectLength:function(hw){var count=0;for(var i in hw)count++;return count},hideErrors:function(){this.addWrapper(this.toHide).hide();},valid:function(){return this.size()==0},size:function(){return this.errorList.length},focusInvalid:function(){if(this.settings.focusInvalid){try{$(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").focus();}catch(e){}}},findLastActive:function(){var lastActive=this.lastActive;return lastActive&&$.grep(this.errorList,function(n){return n.element.name==lastActive.name}).length==1&&lastActive},elements:function(){var validator=this,ha={};return $([]).add(this.currentForm.elements).filter(":input").not(":submit, :reset, :image, [disabled]").not(this.settings.ignore).filter(function(){!this.name&&validator.settings.debug&&bo.console&&console.error("%o has no name assigned",this);if(this.name in ha||!validator.objectLength($(this).rules()))return ba;ha[this.name]=q;return q});},clean:function(selector){return $(selector)[0]},errors:function(){return $(this.settings.errorElement+"."+this.settings.errorClass,this.errorContext);},reset:function(){this.successList=[];this.errorList=[];this.errorMap={};this.toShow=$([]);this.toHide=$([]);this.formSubmitted=ba;this.currentElements=$([]);},prepareForm:function(){this.reset();this.toHide=this.errors().add(this.containers);},prepareElement:function(element){this.reset();this.toHide=this.errorsFor(element);},check:function(element){element=this.clean(element);if(this.checkable(element)){element=this.findByName(element.name)[0]}var rules=$(element).rules();var dependencyMismatch=ba;for(method in rules){var ce={method:method,parameters:rules[method]};try{var bs=$.validator.methods[method].call(this,element.value,element,ce.parameters);if(bs=="dependency-mismatch"){dependencyMismatch=q;continue}dependencyMismatch=ba;if(bs=="pending"){this.toHide=this.toHide.not(this.errorsFor(element));return}if(!bs){this.formatAndAdd(element,ce);return ba}}catch(e){this.settings.debug&&bo.console&&console.log("exception occured when checking element "+element.id+", check the '"+ce.method+"' method");throw e}}if(dependencyMismatch)return;if(this.objectLength(rules))this.successList.push(element);return q},customMetaMessage:function(element,method){if(!$.metadata)return;var meta=this.settings.meta?$(element).metadata()[this.settings.meta]:$(element).metadata();return meta&&meta.messages&&meta.messages[method]},customMessage:function(name,method){var m=this.settings.messages[name];return m&&(m.constructor==cv?m:m[method]);},findDefined:function(){for(var i=0;i<arguments.length;i++){if(arguments[i]!==bv)return arguments[i]}return bv},defaultMessage:function(element,method){return this.findDefined(this.customMessage(element.name,method),this.customMetaMessage(element,method),!this.settings.ignoreTitle&&element.title||bv,$.validator.messages[method],"<strong>Warning: No message defined for "+element.name+"</strong>");},formatAndAdd:function(element,ce){var message=this.defaultMessage(element,ce.method);if(typeof message=="function")message=message.call(this,ce.parameters,element);this.errorList.push({message:message,element:element});this.errorMap[element.name]=message;this.submitted[element.name]=message},addWrapper:function(toToggle){if(this.settings.wrapper)toToggle=toToggle.add(toToggle.parents(this.settings.wrapper));return toToggle},defaultShowErrors:function(){for(var i=0;this.errorList[i];i++){var error=this.errorList[i];this.settings.highlight&&this.settings.highlight.call(this,error.element,this.settings.errorClass);this.showLabel(error.element,error.message);}if(this.errorList.length){this.toShow=this.toShow.add(this.containers);}if(this.settings.success){for(var i=0;this.successList[i];i++){this.showLabel(this.successList[i]);}}if(this.settings.unhighlight){for(var i=0,elements=this.validElements();elements[i];i++){this.settings.unhighlight.call(this,elements[i],this.settings.errorClass);}}this.toHide=this.toHide.not(this.toShow);this.hideErrors();this.addWrapper(this.toShow).show();},validElements:function(){return this.currentElements.not(this.invalidElements());},invalidElements:function(){return $(this.errorList).map(function(){return this.element});},showLabel:function(element,message){var label=this.errorsFor(element);if(label.length){label.removeClass().addClass(this.settings.errorClass);label.attr("generated")&&label.html(message);}else{label=$("<"+this.settings.errorElement+"/>").attr({"for":this.idOrName(element),generated:q}).addClass(this.settings.errorClass).html(message||"");if(this.settings.wrapper){label=label.hide().show().wrap("<"+this.settings.wrapper+"/>").parent();}if(!this.labelContainer.append(label).length)this.settings.errorPlacement?this.settings.errorPlacement(label,$(element)):label.insertAfter(element);}if(!message&&this.settings.success){label.text("");typeof this.settings.success=="string"?label.addClass(this.settings.success):this.settings.success(label);}this.toShow=this.toShow.add(label);},errorsFor:function(element){return this.errors().filter("[for='"+this.idOrName(element)+"']");},idOrName:function(element){return this.groups[element.name]||(this.checkable(element)?element.name:element.id||element.name);},checkable:function(element){return/radio|checkbox/i.test(element.type);},findByName:function(name){var form=this.currentForm;return $(by.getElementsByName(name)).map(function(index,element){return element.form==form&&element.name==name&&element||null});},getLength:function(value,element){switch(element.nodeName.toLowerCase()){case'select':return $("option:selected",element).length;case'input':if(this.checkable(element))return this.findByName(element.name).filter(':checked').length}return value.length},depend:function(param,element){return this.dependTypes[typeof param]?this.dependTypes[typeof param](param,element):q},dependTypes:{"boolean":function(param,element){return param},"string":function(param,element){return!!$(param,element.form).length},"function":function(param,element){return param(element);}},optional:function(element){return!$.validator.methods.required.call(this,$.trim(element.value),element)&&"dependency-mismatch"},startRequest:function(element){if(!this.pending[element.name]){this.pendingRequest++;this.pending[element.name]=q}},stopRequest:function(element,valid){this.pendingRequest--;if(this.pendingRequest<0)this.pendingRequest=0;delete this.pending[element.name];if(valid&&this.pendingRequest==0&&this.formSubmitted&&this.form()){$(this.currentForm).submit();}else if(!valid&&this.pendingRequest==0&&this.formSubmitted){$(this.currentForm).triggerHandler("invalid-form",[this]);}},previousValue:function(element){return $.data(element,"previousValue")||$.data(element,"previousValue",cf={old:null,valid:q,message:this.defaultMessage(element,"remote")});}},classRuleSettings:{required:{required:q},email:{email:q},url:{url:q},date:{date:q},dateISO:{dateISO:q},dateDE:{dateDE:q},number:{number:q},numberDE:{numberDE:q},digits:{digits:q},ez:{ez:q}},addClassRules:function(className,rules){className.constructor==cv?this.classRuleSettings[className]=rules:$.extend(this.classRuleSettings,className);},classRules:function(element){rules={};var classes=$(element).attr('class');classes&&$.each(classes.split(' '),function(){if(this in $.validator.classRuleSettings){$.extend(rules,$.validator.classRuleSettings[this]);}});return rules},attributeRules:function(element){rules={};$element=$(element);for(method in $.validator.methods){var value=$element.attr(method);if(value){rules[method]=value}}if(rules.maxlength&&/-1|2147483647|524288/.test(rules.maxlength)){delete rules.maxlength}return rules},metadataRules:function(element){if(!$.metadata)return{};meta=$.data(element.form,'validator').settings.meta;return meta?$(element).metadata()[meta]:$(element).metadata();},staticRules:function(element){rules={};validator=$.data(element.form,'validator');if(validator.settings.rules){rules=$.validator.normalizeRule(validator.settings.rules[element.name])||{}}return rules},normalizeRules:function(rules,element){$.each(rules,function(fa,val){if(val===ba){delete rules[fa];return}if(val.param||val.depends){var fb=q;switch(typeof val.depends){case"string":fb=!!$(val.depends,element.form).length;break;case"function":fb=val.depends.call(element,element);break}if(fb){rules[fa]=val.param!==bv?val.param:q}else{delete rules[fa]}}});$.each(rules,function(ce,fc){rules[ce]=$.isFunction(fc)?fc(element):fc});$.each(['minlength','maxlength','min','max'],function(){if(rules[this]){rules[this]=et(rules[this]);}});$.each(['rangelength','range'],function(){if(rules[this]){rules[this]=[et(rules[this][0]),et(rules[this][1])]}});if($.validator.autoCreateRanges){if(rules.min&&rules.max){rules.range=[rules.min,rules.max];delete rules.min;delete rules.max}if(rules.minlength&&rules.maxlength){rules.rangelength=[rules.minlength,rules.maxlength];delete rules.minlength;delete rules.maxlength}}if(rules.messages){delete rules.messages}return rules},normalizeRule:function(data){if(typeof data=="string"){transformed={};$.each(data.split(/\s/),function(){transformed[this]=q});data=transformed}return data},addMethod:function(name,method,message){$.validator.methods[name]=method;$.validator.messages[name]=message;if(method.length<3){$.validator.addClassRules(name,$.validator.normalizeRule(name));}},methods:{required:function(value,element,param){if(!this.depend(param,element))return"dependency-mismatch";switch(element.nodeName.toLowerCase()){case'select':var options=$("option:selected",element);return options.length>0&&(element.type=="select-multiple"||($.browser.msie&&!(options[0].attributes['value'].specified)?options[0].text:options[0].value).length>0);case'input':if(this.checkable(element))return this.getLength(value,element)>0;default:return $.trim(value).length>0}},remote:function(value,element,param){if(this.optional(element))return"dependency-mismatch";cf=this.previousValue(element);if(!this.settings.messages[element.name])this.settings.messages[element.name]={};this.settings.messages[element.name].remote=typeof cf.message=="function"?cf.message(value):cf.message;param=typeof param=="string"&&{url:param}||param;if(cf.old!==value){cf.old=value;validator=this;this.startRequest(element);var data={};data[element.name]=value;$.ajax($.extend(q,{url:param,mode:"abort",port:"validate"+element.name,dataType:"json",data:data,success:function(er){if(er){var submitted=validator.formSubmitted;validator.prepareElement(element);validator.formSubmitted=submitted;validator.successList.push(element);validator.showErrors();}else{var errors={};errors[element.name]=er||validator.defaultMessage(element,"remote");validator.showErrors(errors);}cf.valid=er;validator.stopRequest(element,er);}},param));return"pending"}else if(this.pending[element.name]){return"pending"}return cf.valid},minlength:function(value,element,param){return this.optional(element)||this.getLength($.trim(value),element)>=param},maxlength:function(value,element,param){return this.optional(element)||this.getLength($.trim(value),element)<=param},rangelength:function(value,element,param){var length=this.getLength($.trim(value),element);return this.optional(element)||(length>=param[0]&&length<=param[1]);},min:function(value,element,param){return this.optional(element)||value>=param},max:function(value,element,param){return this.optional(element)||value<=param},range:function(value,element,param){return this.optional(element)||(value>=param[0]&&value<=param[1]);},email:function(value,element){return this.optional(element)||/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i.test(value);},url:function(value,element){return this.optional(element)||/^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i.test(value);},date:function(value,element){return this.optional(element)||!/Invalid|NaN/.test(new cz(value));},dateISO:function(value,element){return this.optional(element)||/^\d{4}[\/-]\d{1,2}[\/-]\d{1,2}$/.test(value);},dateDE:function(value,element){return this.optional(element)||/^\d\d?\.\d\d?\.\d\d\d?\d?$/.test(value);},number:function(value,element){return this.optional(element)||/^-?(?:\d+|\d{1,3}(?:,\d{3})+)(?:\.\d+)?$/.test(value);},numberDE:function(value,element){return this.optional(element)||/^-?(?:\d+|\d{1,3}(?:\.\d{3})+)(?:,\d+)?$/.test(value);},digits:function(value,element){return this.optional(element)||/^\d+$/.test(value);},ez:function(value,element){if(this.optional(element))return"dependency-mismatch";if(/[^0-9-]+/.test(value))return ba;var nCheck=0,nDigit=0,fd=ba;value=value.replace(/\D/g,"");for(n=value.length-1;n>=0;n--){hx=value.charAt(n);nDigit=bi(hx,10);if(fd){if((nDigit*=2)>9)nDigit-=9}nCheck+=nDigit;fd=!fd}return(nCheck%10)==0},accept:function(value,element,param){param=typeof param=="string"?param:"png|jpe?g|gif";return this.optional(element)||value.match(new ey(".("+param+")$","i"));},equalTo:function(value,element,param){return value==$(param).val();}}});})(jQuery);;(function($){var ajax=$.ajax;var pendingRequests={};$.ajax=function(settings){settings=$.extend(settings,$.extend({},$.ajaxSettings,settings));var port=settings.port;if(settings.mode=="abort"){if(pendingRequests[port]){pendingRequests[port].abort();}return(pendingRequests[port]=ajax.apply(this,arguments));}return ajax.apply(this,arguments);}})(jQuery);;(function($){$.each({focus:'focusin',blur:'focusout'},function(original,fix){$.event.special[fix]={setup:function(){if($.browser.msie)return ba;this.addEventListener(original,$.event.special[fix].handler,q);},teardown:function(){if($.browser.msie)return ba;this.removeEventListener(original,$.event.special[fix].handler,q);},handler:function(e){arguments[0]=$.event.fix(e);arguments[0].type=fix;return $.event.handle.apply(this,arguments);}}});$.extend($.fn,{delegate:function(type,delegate,handler){return this.bind(type,function(event){var target=$(event.target);if(target.is(delegate)){return handler.apply(target,arguments);}});},triggerEvent:function(type,target){return this.triggerHandler(type,[$.event.fix({type:type,target:target})]);}})})(jQuery);﻿var bh=bh||{};bh.Plugins=bh.Plugins||{};bh.Messages=bh.Messages||{};bh.AttachValidator=function(ca,cp,hb){if(hb!=null)this.Plugins[hb].AttachValidator(ca,cp);else for(var bz in this.Plugins){this.Plugins[bz].AttachValidator(ca,cp);return}};(function($){bh.Plugins["jquery.validate"]={AttachValidator:function(ca,cp){this._ensureCustomFunctionsRegistered();for(var i=0;i<cp.Fields.length;i++){var fieldName=cp.Fields[i].FieldName;var fieldRules=cp.Fields[i].FieldRules;var hy=this._makeAspNetMvcHtmlHelperID((ca?ca+".":"")+fieldName);var bj=by.getElementById(hy);if(bj){for(var j=0;j<fieldRules.length;j++){var fe=fieldRules[j].RuleName;var bg=fieldRules[j].RuleParameters;var errorText=(typeof(fieldRules[j].Message)=='undefined'?null:fieldRules[j].Message);this._attachRuleToDOMElement(fe,bg,errorText,$(bj),ca);}}}},_makeAspNetMvcHtmlHelperID:function(hz){return hz.replace(".","_");},_attachRuleToDOMElement:function(fe,bg,errorText,element,ca){var hc=element.parents("form");if(hc.length!=1)ef("Error: Element "+element.attr("id")+" is not in a form");this._ensureFormIsMarkedForValidation($(hc[0]));this._associateNearbyValidationMessageSpanWithElement(element);var options={};switch(fe){case"Required":options.required=q;options.messages={required:errorText||bh.Messages.Required};break;case"Range":if(bg.Type=="string"){options.xVal_stringRange=[bg.Min,bg.Max];if(errorText!=null)options.messages={xVal_stringRange:$.format(errorText)}}else if(bg.Type=="datetime"){var minDate,maxDate;if(typeof(bg.MinYear)!='undefined')minDate=new cz(bg.MinYear,bg.MinMonth-1,bg.MinDay,bg.MinHour,bg.MinMinute,bg.MinSecond);else if(typeof(bg.MaxYear)!='undefined')maxDate=new cz(bg.MaxYear,bg.MaxMonth-1,bg.MaxDay,bg.MaxHour,bg.MaxMinute,bg.MaxSecond);options.xVal_dateRange=[minDate,maxDate];if(errorText!=null)options.messages={xVal_dateRange:$.format(errorText)}}else if(typeof(bg.Min)=='undefined'){options.max=bg.Max;errorText=errorText||bh.Messages.Range_Numeric_Max;if(errorText!=null)options.messages={max:$.format(errorText)}}else if(typeof(bg.Max)=='undefined'){options.min=bg.Min;errorText=errorText||bh.Messages.Range_Numeric_Min;if(errorText!=null)options.messages={min:$.format(errorText)}}else{options.range=[bg.Min,bg.Max];errorText=errorText||bh.Messages.Range_Numeric_MinMax;if(errorText!=null)options.messages={range:$.format(errorText)}}break;case"StringLength":if(typeof(bg.MinLength)=='undefined'){options.maxlength=bg.MaxLength;errorText=errorText||bh.Messages.StringLength_Max;if(errorText!=null)options.messages={maxlength:$.format(errorText)}}else if(typeof(bg.MaxLength)=='undefined'){options.minlength=bg.MinLength;errorText=errorText||bh.Messages.StringLength_Min;if(errorText!=null)options.messages={minlength:$.format(errorText)}}else{options.rangelength=[bg.MinLength,bg.MaxLength];errorText=errorText||bh.Messages.StringLength_MinMax;if(errorText!=null)options.messages={rangelength:$.format(errorText)}}break;case"DataType":switch(bg.Type){case"EmailAddress":options.email=q;options.messages={email:errorText||bh.Messages.DataType_EmailAddress};break;case"Integer":options.xVal_regex=["^\\-?\\d+$",""];options.messages={xVal_regex:errorText||bh.Messages.DataType_Integer||"Please enter a whole number."};break;case"Decimal":options.number=q;options.messages={number:errorText||bh.Messages.DataType_Decimal};break;case"Date":options.date=q;options.messages={date:errorText||bh.Messages.DataType_Date};break;case"DateTime":options.xVal_regex=["^\\d{1,2}/\\d{1,2}/(\\d{2}|\\d{4})\\s+\\d{1,2}\\:\\d{2}(\\:\\d{2})?$",""];options.messages={xVal_regex:errorText||bh.Messages.DataType_DateTime||"Please enter a valid date and time."};break;case"Currency":options.xVal_regex=["^\\D?\\s?([0-9]{1,3},([0-9]{3},)*[0-9]{3}|[0-9]+)(.[0-9][0-9])?$",""];options.messages={xVal_regex:errorText||bh.Messages.DataType_Currency||"Please enter a currency value."};break;case"CreditCardLuhn":options.xVal_creditCardLuhn=q;if(errorText!=null)options.messages={xVal_creditCardLuhn:errorText};break}break;case"RegEx":options.xVal_regex=[bg.Pattern,bg.Options];if(errorText!=null)options.messages={xVal_regex:errorText};break;case"Comparison":var ja=this._makeAspNetMvcHtmlHelperID((ca?ca+".":"")+bg.PropertyToCompare);var eb=by.getElementById(ja);if(eb!=null){options.xVal_comparison=[bg.PropertyToCompare,eb,bg.ComparisonOperator];if(errorText!=null)options.messages={xVal_comparison:errorText}}break;case"Custom":var hd=this._parseAsFunctionWithWarnings(bg.Function);if(hd!=null){var customFunctionName=this._registerCustomValidationFunction(hd);var jb=bg.Parameters=="null"?null:jc("("+bg.Parameters+")");options[customFunctionName]=jb||q;options.messages=[];options.messages[customFunctionName]=errorText}break}element.rules("add",options);},_parseAsFunctionWithWarnings:function(functionString){var bs;try{bs=jc("("+functionString+")")}catch(jn){ef("Custom rule error: Could not find or could not parse the function '"+functionString+"'");return null}if(typeof(bs)!='function'){ef("Custom rule error: The JavaScript object '"+functionString+"' is not a function.");return null}return bs},_associateNearbyValidationMessageSpanWithElement:function(element){var nearbyMessages=element.nextAll("span.field-validation-error");if(nearbyMessages.length>0){$(nearbyMessages[0]).attr("generated","true").attr("htmlfor",element.attr("id"));}},_ensureFormIsMarkedForValidation:function(formElement){if(!formElement.data("isMarkedForValidation")){formElement.data("isMarkedForValidation",q);formElement.validate({errorClass:"field-validation-error",errorElement:"span",highlight:function(element){$(element).addClass("input-validation-error");},unhighlight:function(element){$(element).removeClass("input-validation-error");}});}},_registerCustomValidationFunction:function(jd){jQuery.validator.xValCustomFunctionCount=(jQuery.validator.xValCustomFunctionCount||0)+1;var functionName="xVal_customFunction_"+jQuery.validator.xValCustomFunctionCount;jQuery.validator.addMethod(functionName,function(value,element,bf){if(this.optional(element))return q;return jd(value,element,bf);});return functionName},_ensureCustomFunctionsRegistered:function(){if(!jQuery.validator.xValFunctionsRegistered){jQuery.validator.xValFunctionsRegistered=q;jQuery.validator.addMethod("xVal_stringRange",function(value,element,bf){if(this.optional(element))return q;if(bf[0]!=null)if(value<bf[0])return ba;if(bf[1]!=null)if(value>bf[1])return ba;return q},function(bf){if((bf[0]!=null)&&(bf[1]!=null))return $.format(bh.Messages.Range_String_MinMax||"Please enter a value alphabetically between '{0}' and '{1}'.",bf[0],bf[1]);else if(bf[0]!=null)return $.format(bh.Messages.Range_String_Min||"Please enter a value not alphabetically before '{0}'.",bf[0]);else return $.format(bh.Messages.Range_String_Max||"Please enter a value not alphabetically after '{0}'.",bf[1]);});jQuery.validator.addMethod("xVal_dateRange",function(value,element,bf){if(this.optional(element))return q;var ec=ea(value);if(je(ec))return ba;else ec=new cz(ec);if(bf[0]!=null)if(ec<bf[0])return ba;if(bf[1]!=null)if(ec>bf[1])return ba;return q},function(bf,bj){if(je(ea(bj.value)))return bh.Messages.DataType_Date||"Please enter a valid date in yyyy/mm/dd format.";var formatDate=function(date){var bs=date.getFullYear()+"-"+(date.getMonth()+1)+"-"+date.getDate();if(date.getHours()+date.getMinutes()+date.getSeconds()!=0)bs+=" "+date.getHours()+":"+date.getMinutes()+":"+date.getSeconds();return bs.replace(/\b(\d)\b/g,'0$1');};if((bf[0]!=null)&&(bf[1]!=null))return $.format(bh.Messages.Range_DateTime_MinMax||"Please enter a date between {0} and {1}.",formatDate(bf[0]),formatDate(bf[1]));else if(bf[0]!=null)return $.format(bh.Messages.Range_DateTime_Min||"Please enter a date no earlier than {0}.",formatDate(bf[0]));else return $.format(bh.Messages.Range_DateTime_Max||"Please enter a date no later than {0}.",formatDate(bf[1]));});jQuery.validator.addMethod("xVal_regex",function(value,element,bf){if(this.optional(element))return q;var jf=bf[0];var options=bf[1];var regex=new ey(jf,options);return regex.test(value);},function(bf){return bh.Messages.Regex||"This value is invalid.";});jQuery.validator.addMethod("xVal_creditCardLuhn",function(value,element,bf){if(this.optional(element))return q;value=value.replace(/\D/g,"");if(value=="")return ba;var sum=0;for(var i=value.length-2;i>=0;i-=2)sum+=eh(0,2,4,6,8,1,3,5,7,9)[bi(value.charAt(i),10)];for(var i=value.length-1;i>=0;i-=2)sum+=bi(value.charAt(i),10);return(sum%10)==0},function(bf){return bh.Messages.DataType_CreditCardLuhn||"Please enter a valid credit card number."});jQuery.validator.addMethod("xVal_comparison",function(value,element,bf){if(this.optional(element))return q;var eb=bf[1];var comparisonOperator=bf[2];switch(comparisonOperator){case"Equals":return value==eb.value;case"DoesNotEqual":return value!=eb.value}return q;},function(bf){var he=bf[0];var comparisonOperator=bf[2];switch(comparisonOperator){case"Equals":return $.format(bh.Messages.Comparison_Equals||"This value must be the same as {0}.",he);case"DoesNotEqual":return $.format(bh.Messages.Comparison_DoesNotEqual||"This value must be different from {0}.",he);}});}}}})(jQuery);﻿function UpVote(threadid,link){try{DoVote(threadid,link,"UpVote",1);}catch(e){}return ba}function DownVote(threadid,link){try{DoVote(threadid,link,"DownVote",-1);}catch(e){}return ba}function DoVote(threadid,link,jg,jh){var cg=$(link).parent().siblings(".count")[0];var cg=$(cg);var ed=bi(cg.html());cg.html("<img src='/content/img/loading-grey-16.gif' alt='...' />");if(ji()){var userID=$("#u")[0].value;var hash=$("#uhash")[0].value;var jj="/userpost/Voting/"+jg+"/"+userID+"/"+hash+"/?t="+threadid;$.ajax({url:jj,jo:ba,success:function(html){if(html=="0"){$.blockUI({message:"<br/><h1><img src='/content/img/info.gif' alt='' style='margin-right: 12px' />You have already voted on this thread</h1></br/><a href='#' onclick='$.unblockUI(); return false;'>Close</a>"});}else{ed=(bi(jh)+ed);}cg.html(ed);},error:function(jk){ef("Error: "+jk);cg.html(ed);}});}else cg.html(ed);return ba}function ji(){var hash=$("#uhash")[0].value;var isLoggedIn=(hash.length>0)&&(hash!='0');if(!isLoggedIn)$.blockUI({message:"<br/><h1>Please <a href='/account/login/?ReturnUrl="+location.href+"'>login</a> or <a href='/account/register/'>register</a> to vote.</h1><br/><a href='#' onclick='$.unblockUI(); return false;'>Close</a>"});return isLoggedIn}﻿;(function($){$.fn.supersubs=function(options){var opts=$.extend({},$.fn.supersubs.defaults,options);return this.each(function(){var $$=$(this);var o=$.meta?$.extend({},opts,$$.data()):opts;var fontsize=$('<li id="menu-fontsize">&#8212;</li>').css({'padding':0,'position':'absolute','top':'-999em','width':'auto'}).appendTo($$).width();$('#menu-fontsize').remove();$ULs=$$.find('ul');$ULs.each(function(i){var $ul=$ULs.eq(i);var $LIs=$ul.children();var $As=$LIs.children('a');var liFloat=$LIs.css('white-space','nowrap').css('float');var emWidth=$ul.add($LIs).add($As).css({'float':'none','width':'auto'}).end().end()[0].clientWidth/fontsize;emWidth+=o.extraWidth;if(emWidth>o.maxWidth){emWidth=o.maxWidth}else if(emWidth<o.minWidth){emWidth=o.minWidth}emWidth+='em';$ul.css('width',emWidth);$LIs.css({'float':liFloat,'width':'100%','white-space':'normal'}).each(function(){var $childUl=$('>ul',this);var offsetDirection=$childUl.css('left')!==bv?'left':'right';$childUl.css(offsetDirection,emWidth);});});});};$.fn.supersubs.defaults={minWidth:9,maxWidth:25,extraWidth:0}})(jQuery);﻿;(function($){$.fn.superfish=function(op){var sf=$.fn.superfish,c=sf.c,$arrow=$(['<span class="',c.arrowClass,'"> &#187;</span>'].join('')),ff=function(){var $$=$(this),menu=getMenu($$);clearTimeout(menu.sfTimer);$$.showSuperfishUl().siblings().hideSuperfishUl();},hf=function(){var $$=$(this),menu=getMenu($$),o=sf.op;clearTimeout(menu.sfTimer);menu.sfTimer=setTimeout(function(){o.retainPath=($.inArray($$[0],o.$path)>-1);$$.hideSuperfishUl();if(o.$path.length&&$$.parents(['li.',o.hoverClass].join('')).length<1){ff.call(o.$path);}},o.delay);},getMenu=function($menu){var menu=$menu.parents(['ul.',c.menuClass,':first'].join(''))[0];sf.op=sf.o[menu.serial];return menu},addArrow=function($a){$a.addClass(c.anchorClass).append($arrow.clone());};return this.each(function(){var s=this.serial=sf.o.length;var o=$.extend({},sf.defaults,op);o.$path=$('li.'+o.pathClass,this).slice(0,o.pathLevels).each(function(){$(this).addClass([o.hoverClass,c.bcClass].join(' ')).filter('li:has(ul)').removeClass(o.pathClass);});sf.o[s]=sf.op=o;$('li:has(ul)',this)[($.fn.hoverIntent&&!o.disableHI)?'hoverIntent':'hover'](ff,hf).each(function(){if(o.autoArrows)addArrow($('>a:first-child',this));}).not('.'+c.bcClass).hideSuperfishUl();var $a=$('a',this);$a.each(function(i){var $li=$a.eq(i).parents('li');$a.eq(i).focus(function(){ff.call($li);}).blur(function(){hf.call($li);});});o.onInit.call(this);}).each(function(){var menuClasses=[c.menuClass];if(sf.op.dropShadows&&!($.browser.msie&&$.browser.version<7))menuClasses.push(c.shadowClass);$(this).addClass(menuClasses.join(' '));});};var sf=$.fn.superfish;sf.o=[];sf.op={};sf.IE7fix=function(){var o=sf.op;if($.browser.msie&&$.browser.version>6&&o.dropShadows&&o.animation.opacity!=bv)this.toggleClass(sf.c.shadowClass+'-off');};sf.c={bcClass:'sf-breadcrumb',menuClass:'sf-js-enabled',anchorClass:'sf-with-ul',arrowClass:'sf-sub-indicator',shadowClass:'sf-shadow'};sf.defaults={hoverClass:'sfHover',pathClass:'overideThisToUse',pathLevels:1,delay:800,animation:{opacity:'show'},speed:'normal',autoArrows:q,dropShadows:q,disableHI:ba,onInit:function(){},onBeforeShow:function(){},onShow:function(){},onHide:function(){}};$.fn.extend({hideSuperfishUl:function(){var o=sf.op,not=(o.retainPath===q)?o.$path:'';o.retainPath=ba;var $ul=$(['li.',o.hoverClass].join(''),this).add(this).not(not).removeClass(o.hoverClass).find('>ul').hide().css('visibility','hidden');o.onHide.call($ul);return this},showSuperfishUl:function(){var o=sf.op,sh=sf.c.shadowClass+'-off',$ul=this.addClass(o.hoverClass).find('>ul:hidden').css('visibility','visible');sf.IE7fix.call($ul);o.onBeforeShow.call($ul);$ul.animate(o.animation,o.speed,function(){sf.IE7fix.call($ul);o.onShow.call($ul);});return this}});})(jQuery);$(by).ready(function(){$("ul.superfish").supersubs({minWidth:12,maxWidth:27,extraWidth:1}).superfish({hoverClass:'ui-state-hover'});$("#paragraphs").hide();$('#loading').hide();$('#ajax-content').hide();$(".ui-collapsebar").click(function(event){var titleBar=$(this);var arrowImg=titleBar.find(".ui-icon");if(arrowImg.hasClass("ui-icon-circle-triangle-n")){arrowImg.removeClass("ui-icon-circle-triangle-n").addClass("ui-icon-circle-triangle-s");}else{arrowImg.removeClass("ui-icon-circle-triangle-s").addClass("ui-icon-circle-triangle-n");}$(this).next().slideToggle();});$("#mainBreadCrumb").jBreadCrumb({easing:'easeOutQuad'});$(".init-focus").focus();$(".user-bar-link").click(function(){ToggleUserBarLink(this);}).next().hide().click(function(){ToggleUserBarLink(this);});$(".flash-highlight").effect("highlight",{},1200);$(".close").click(function(){$(this).parent().slideUp(500);});$('form').submit(function(){$('.disable-on-submit').attr('disabled',q);return q});$.preloadCssImages();});function ToggleUserBarLink(cq){var bw=$(cq).parent();bw.toggleClass("selected").find(".popup").toggle();if(bw.hasClass("selected")){var url="/userpost/Default/FriendsOnline/"+$("#u")[0].value+"/"+$("#uhash")[0].value+"/";bw.find(".popup").load(url);}}function UpopTabClick(link,idx){$("ul.upop-tabs li").removeClass("active");$(link).parent().addClass("active");$(".upop-tabbed-area").find(".upop-content").hide();$(".upop-tabbed-area").find(".upop-content:eq("+idx+")").show();}