(function(a){a.fn.hoverIntent=function(j,k){var b={sensitivity:7,interval:100,timeout:0};b=a.extend(b,k?{over:j,out:k}:j);var d,e,m,n;var o=function(f){d=f.pageX;e=f.pageY};var c=function(f,g){g.hoverIntent_t=clearTimeout(g.hoverIntent_t);if((Math.abs(m-d)+Math.abs(n-e))<b.sensitivity){a(g).unbind("mousemove",o);g.hoverIntent_s=1;return b.over.apply(g,[f])}else{m=d;n=e;g.hoverIntent_t=setTimeout(function(){c(f,g)},b.interval)}};var h=function(f,g){g.hoverIntent_t=clearTimeout(g.hoverIntent_t);g.hoverIntent_s=0;return b.out.apply(g,[f])};var l=function(f){var r=(f.type=="mouseover"?f.fromElement:f.toElement)||f.relatedTarget;while(r&&r!=this){try{r=r.parentNode}catch(f){r=this}}if(r==this){return false}var g=jQuery.extend({},f);var q=this;if(q.hoverIntent_t){q.hoverIntent_t=clearTimeout(q.hoverIntent_t)}if(f.type=="mouseover"){m=g.pageX;n=g.pageY;a(q).bind("mousemove",o);if(q.hoverIntent_s!=1){q.hoverIntent_t=setTimeout(function(){c(g,q)},b.interval)}}else{a(q).unbind("mousemove",o);if(q.hoverIntent_s==1){q.hoverIntent_t=setTimeout(function(){h(g,q)},b.timeout)}}};return this.mouseover(l).mouseout(l)}})(jQuery);var $pp_pic_holder;var $ppt;(function(a){a.fn.prettyPhoto=function(A){var g=true;var n=false;var s=[];var f=0;var v;var w;var z;var aa;var h="image";var ab;var q=j();a(window).scroll(function(){q=j();e()});a(window).resize(function(){e();y()});a(document).keypress(function(C){switch(C.keyCode){case 37:if(f==1){return}r("previous");break;case 39:if(f==setCount){return}r("next");break;case 27:o();break}});A=jQuery.extend({animationSpeed:"normal",padding:40,opacity:0.8,showTitle:true,allowresize:true,counter_separator_label:"/",theme:"light_rounded",callback:function(){}},A);if(a.browser.msie&&a.browser.version==6){A.theme="light_square"}a(this).each(function(){var E=false;var D=false;var F=0;var C=0;s[s.length]=this;a(this).bind("click",function(){m(this);return false})});function m(C){ab=a(C);theRel=ab.attr("rel");galleryRegExp=/\[(?:.*)\]/;theGallery=galleryRegExp.exec(theRel);isSet=false;setCount=0;d();for(i=0;i<s.length;i++){if(a(s[i]).attr("rel").indexOf(theGallery)!=-1){setCount++;if(setCount>1){isSet=true}if(a(s[i]).attr("href")==ab.attr("href")){f=setCount;arrayPosition=i}}}B();$pp_pic_holder.find("p.currentTextHolder").text(f+A.counter_separator_label+setCount);e();a("#pp_full_res").hide();$pp_pic_holder.find(".pp_loaderIcon").show()}showimage=function(F,C,I,H,G,D,E){a(".pp_loaderIcon").hide();if(a.browser.opera){windowHeight=window.innerHeight;windowWidth=window.innerWidth}else{windowHeight=a(window).height();windowWidth=a(window).width()}$pp_pic_holder.find(".pp_content").animate({height:G},A.animationSpeed);projectedTop=q.scrollTop+((windowHeight/2)-(H/2));if(projectedTop<0){projectedTop=0+$pp_pic_holder.find(".ppt").height()}$pp_pic_holder.animate({top:projectedTop,left:((windowWidth/2)-(I/2)),width:I},A.animationSpeed,function(){$pp_pic_holder.width(I);$pp_pic_holder.find(".pp_hoverContainer,#fullResImage").height(C).width(F);$pp_pic_holder.find("#pp_full_res").fadeIn(A.animationSpeed,function(){a(this).find("object,embed").css("visibility","visible")});l();if(E){a("a.pp_expand,a.pp_contract").fadeIn(A.animationSpeed)}})};function l(){if(isSet&&h=="image"){$pp_pic_holder.find(".pp_hoverContainer").fadeIn(A.animationSpeed)}else{$pp_pic_holder.find(".pp_hoverContainer").hide()}$pp_pic_holder.find(".pp_details").fadeIn(A.animationSpeed);if(A.showTitle&&hasTitle){$ppt.css({top:$pp_pic_holder.offset().top-22,left:$pp_pic_holder.offset().left+(A.padding/2),display:"none"});$ppt.fadeIn(A.animationSpeed)}}function u(){$pp_pic_holder.find(".pp_hoverContainer,.pp_details").fadeOut(A.animationSpeed);$pp_pic_holder.find("#pp_full_res object,#pp_full_res embed").css("visibility","hidden");$pp_pic_holder.find("#pp_full_res").fadeOut(A.animationSpeed,function(){a(".pp_loaderIcon").show();c()});$ppt.fadeOut(A.animationSpeed)}function r(C){if(C=="previous"){arrayPosition--;f--}else{arrayPosition++;f++}if(!g){g=true}u();a("a.pp_expand,a.pp_contract").fadeOut(A.animationSpeed,function(){a(this).removeClass("pp_contract").addClass("pp_expand")})}function o(){$pp_pic_holder.find("object,embed").css("visibility","hidden");a("div.pp_pic_holder,div.ppt").fadeOut(A.animationSpeed);a("div.pp_overlay").fadeOut(A.animationSpeed,function(){a("div.pp_overlay,div.pp_pic_holder,div.ppt").remove();if(a.browser.msie&&a.browser.version==6){a("select").css("visibility","visible")}A.callback()});g=true}function k(){if(f==setCount){$pp_pic_holder.find("a.pp_next").css("visibility","hidden");$pp_pic_holder.find("a.pp_arrow_next").addClass("disabled").unbind("click")}else{$pp_pic_holder.find("a.pp_next").css("visibility","visible");$pp_pic_holder.find("a.pp_arrow_next.disabled").removeClass("disabled").bind("click",function(){r("next");return false})}if(f==1){$pp_pic_holder.find("a.pp_previous").css("visibility","hidden");$pp_pic_holder.find("a.pp_arrow_previous").addClass("disabled").unbind("click")}else{$pp_pic_holder.find("a.pp_previous").css("visibility","visible");$pp_pic_holder.find("a.pp_arrow_previous.disabled").removeClass("disabled").bind("click",function(){r("previous");return false})}$pp_pic_holder.find("p.currentTextHolder").text(f+A.counter_separator_label+setCount);ab=(isSet)?a(s[arrayPosition]):ab;d();if(ab.attr("title")){$pp_pic_holder.find(".pp_description").show().html(unescape(ab.attr("title")))}else{$pp_pic_holder.find(".pp_description").hide().text("")}if(ab.find("img").attr("alt")&&A.showTitle){hasTitle=true;$ppt.html(unescape(ab.find("img").attr("alt")))}else{hasTitle=false}}function t(D,C){hasBeenResized=false;x(D,C);imageWidth=D;imageHeight=C;windowHeight=a(window).height();windowWidth=a(window).width();if(((aa>windowWidth)||(z>windowHeight))&&g&&A.allowresize&&!n){hasBeenResized=true;notFitting=true;while(notFitting){if((aa>windowWidth)){imageWidth=(windowWidth-200);imageHeight=(C/D)*imageWidth}else{if((z>windowHeight)){imageHeight=(windowHeight-200);imageWidth=(D/C)*imageHeight}else{notFitting=false}}z=imageHeight;aa=imageWidth}x(imageWidth,imageHeight)}return{width:imageWidth,height:imageHeight,containerHeight:z,containerWidth:aa,contentHeight:v,contentWidth:w,resized:hasBeenResized}}function x(D,C){$pp_pic_holder.find(".pp_details").width(D).find(".pp_description").width(D-parseFloat($pp_pic_holder.find("a.pp_close").css("width")));v=C+$pp_pic_holder.find(".pp_details").height()+parseFloat($pp_pic_holder.find(".pp_details").css("marginTop"))+parseFloat($pp_pic_holder.find(".pp_details").css("marginBottom"));w=D;z=v+$pp_pic_holder.find(".ppt").height()+$pp_pic_holder.find(".pp_top").height()+$pp_pic_holder.find(".pp_bottom").height();aa=D+A.padding}function d(){if(ab.attr("href").match(/youtube\.com\/watch/i)){h="youtube"}else{if(ab.attr("href").indexOf(".mov")!=-1){h="quicktime"}else{if(ab.attr("href").indexOf(".swf")!=-1){h="flash"}else{if(ab.attr("href").indexOf("iframe")!=-1){h="iframe"}else{h="image"}}}}}function e(){if($pp_pic_holder){if($pp_pic_holder.size()==0){return}}else{return}if(a.browser.opera){windowHeight=window.innerHeight;windowWidth=window.innerWidth}else{windowHeight=a(window).height();windowWidth=a(window).width()}if(g){$pHeight=$pp_pic_holder.height();$pWidth=$pp_pic_holder.width();$tHeight=$ppt.height();projectedTop=(windowHeight/2)+q.scrollTop-($pHeight/2);if(projectedTop<0){projectedTop=0+$tHeight}$pp_pic_holder.css({top:projectedTop,left:(windowWidth/2)+q.scrollLeft-($pWidth/2)});$ppt.css({top:projectedTop-$tHeight,left:(windowWidth/2)+q.scrollLeft-($pWidth/2)+(A.padding/2)})}}function c(){k();if(h=="image"){imgPreloader=new Image();nextImage=new Image();if(isSet&&f>setCount){nextImage.src=a(s[arrayPosition+1]).attr("href")}prevImage=new Image();if(isSet&&s[arrayPosition-1]){prevImage.src=a(s[arrayPosition-1]).attr("href")}pp_typeMarkup='<img id="fullResImage" src="" />';$pp_pic_holder.find("#pp_full_res")[0].innerHTML=pp_typeMarkup;$pp_pic_holder.find(".pp_content").css("overflow","hidden");$pp_pic_holder.find("#fullResImage").attr("src",ab.attr("href"));imgPreloader.onload=function(){var C=t(imgPreloader.width,imgPreloader.height);imgPreloader.width=C.width;imgPreloader.height=C.height;showimage(imgPreloader.width,imgPreloader.height,C.containerWidth,C.containerHeight,C.contentHeight,C.contentWidth,C.resized)};imgPreloader.src=ab.attr("href")}else{movie_width=(parseFloat(b("width",ab.attr("href"))))?b("width",ab.attr("href")):"425";movie_height=(parseFloat(b("height",ab.attr("href"))))?b("height",ab.attr("href")):"344";if(movie_width.indexOf("%")!=-1||movie_height.indexOf("%")!=-1){movie_height=(a(window).height()*parseFloat(movie_height)/100)-100;movie_width=(a(window).width()*parseFloat(movie_width)/100)-100;parsentBased=true}else{movie_height=parseFloat(movie_height);movie_width=parseFloat(movie_width)}if(h=="quicktime"){movie_height+=13}correctSizes=t(movie_width,movie_height);if(h=="youtube"){pp_typeMarkup='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+correctSizes.width+'" height="'+correctSizes.height+'"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://www.youtube.com/v/'+b("v",ab.attr("href"))+'" /><embed src="http://www.youtube.com/v/'+b("v",ab.attr("href"))+'" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="'+correctSizes.width+'" height="'+correctSizes.height+'"></embed></object>'}else{if(h=="quicktime"){pp_typeMarkup='<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" height="'+correctSizes.height+'" width="'+correctSizes.width+'"><param name="src" value="'+ab.attr("href")+'"><param name="autoplay" value="true"><param name="type" value="video/quicktime"><embed src="'+ab.attr("href")+'" height="'+correctSizes.height+'" width="'+correctSizes.width+'" autoplay="true" type="video/quicktime" pluginspage="http://www.apple.com/quicktime/download/"></embed></object>'}else{if(h=="flash"){flash_vars=ab.attr("href");flash_vars=flash_vars.substring(ab.attr("href").indexOf("flashvars")+10,ab.attr("href").length);filename=ab.attr("href");filename=filename.substring(0,filename.indexOf("?"));pp_typeMarkup='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+correctSizes.width+'" height="'+correctSizes.height+'"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="'+filename+"?"+flash_vars+'" /><embed src="'+filename+"?"+flash_vars+'" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="'+correctSizes.width+'" height="'+correctSizes.height+'"></embed></object>'}else{if(h=="iframe"){movie_url=ab.attr("href");movie_url=movie_url.substr(0,movie_url.indexOf("iframe")-1);pp_typeMarkup='<iframe src ="'+movie_url+'" width="'+(correctSizes.width-10)+'" height="'+(correctSizes.height-10)+'" frameborder="no"></iframe>'}}}}$pp_pic_holder.find("#pp_full_res")[0].innerHTML=pp_typeMarkup;showimage(correctSizes.width,correctSizes.height,correctSizes.containerWidth,correctSizes.containerHeight,correctSizes.contentHeight,correctSizes.contentWidth,correctSizes.resized)}}function j(){if(self.pageYOffset){scrollTop=self.pageYOffset;scrollLeft=self.pageXOffset}else{if(document.documentElement&&document.documentElement.scrollTop){scrollTop=document.documentElement.scrollTop;scrollLeft=document.documentElement.scrollLeft}else{if(document.body){scrollTop=document.body.scrollTop;scrollLeft=document.body.scrollLeft}}}return{scrollTop:scrollTop,scrollLeft:scrollLeft}}function y(){a("div.pp_overlay").css({height:a(document).height(),width:a(window).width()})}function B(){toInject="";toInject+="<div class='pp_overlay'></div>";if(h=="image"){pp_typeMarkup='<img id="fullResImage" src="" />'}else{pp_typeMarkup=""}toInject+='<div class="pp_pic_holder"><div class="pp_top"><div class="pp_left"></div><div class="pp_middle"></div><div class="pp_right"></div></div><div class="pp_content"><a href="#" class="pp_expand" title="Expand the image">Expand</a><div class="pp_loaderIcon"></div><div class="pp_hoverContainer"><a class="pp_next" href="#">next</a><a class="pp_previous" href="#">previous</a></div><div id="pp_full_res">'+pp_typeMarkup+'</div><div class="pp_details clearfix"><a class="pp_close" href="#">Close</a><p class="pp_description"></p><div class="pp_nav"><a href="#" class="pp_arrow_previous">Previous</a><p class="currentTextHolder">0'+A.counter_separator_label+'0</p><a href="#" class="pp_arrow_next">Next</a></div></div></div><div class="pp_bottom"><div class="pp_left"></div><div class="pp_middle"></div><div class="pp_right"></div></div></div>';toInject+='<div class="ppt"></div>';a("body").append(toInject);$pp_pic_holder=a(".pp_pic_holder");$ppt=a(".ppt");a("div.pp_overlay").css("height",a(document).height()).bind("click",function(){o()});$pp_pic_holder.css({opacity:0}).addClass(A.theme);a("a.pp_close").bind("click",function(){o();return false});a("a.pp_expand").bind("click",function(){$this=a(this);if($this.hasClass("pp_expand")){$this.removeClass("pp_expand").addClass("pp_contract");g=false}else{$this.removeClass("pp_contract").addClass("pp_expand");g=true}u();$pp_pic_holder.find(".pp_hoverContainer, #pp_full_res, .pp_details").fadeOut(A.animationSpeed,function(){c()});return false});$pp_pic_holder.find(".pp_previous, .pp_arrow_previous").bind("click",function(){r("previous");return false});$pp_pic_holder.find(".pp_next, .pp_arrow_next").bind("click",function(){r("next");return false});$pp_pic_holder.find(".pp_hoverContainer").css({"margin-left":A.padding/2});if(!isSet){$pp_pic_holder.find(".pp_hoverContainer,.pp_nav").hide()}if(a.browser.msie&&a.browser.version==6){a("body").addClass("ie6");a("select").css("visibility","hidden")}a("div.pp_overlay").css("opacity",0).fadeTo(A.animationSpeed,A.opacity,function(){$pp_pic_holder.css("opacity",0).fadeIn(A.animationSpeed,function(){$pp_pic_holder.attr("style","left:"+$pp_pic_holder.css("left")+";top:"+$pp_pic_holder.css("top")+";");c()})})}};function b(e,d){e=e.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var c="[\\?&]"+e+"=([^&#]*)";var g=new RegExp(c);var f=g.exec(d);if(f==null){return""}else{return f[1]}}})(jQuery);(function(b){function a(){this._curHash="";this._callback=function(c){}}b.extend(a.prototype,{init:function(d){this._callback=d;this._curHash=location.hash;if(b.browser.msie){if(this._curHash==""){this._curHash="#"}b("body").prepend('<iframe id="jQuery_history" style="display: none;"></iframe>');var c=b("#jQuery_history")[0].contentWindow.document;c.open();c.close();c.location.hash=this._curHash}else{if(b.browser.safari){this._historyBackStack=[];this._historyBackStack.length=history.length;this._historyForwardStack=[];this._isFirst=true;this._dontCheck=false}}this._callback(this._curHash.replace(/^#/,""));setInterval(this._check,100)},add:function(c){this._historyBackStack.push(c);this._historyForwardStack.length=0;this._isFirst=true},_check:function(){if(b.browser.msie){var c=b("#jQuery_history")[0];var f=c.contentDocument||c.contentWindow.document;var h=f.location.hash;if(h!=b.history._curHash){location.hash=h;b.history._curHash=h;b.history._callback(h.replace(/^#/,""))}}else{if(b.browser.safari){if(!b.history._dontCheck){var d=history.length-b.history._historyBackStack.length;if(d){b.history._isFirst=false;if(d<0){for(var e=0;e<Math.abs(d);e++){b.history._historyForwardStack.unshift(b.history._historyBackStack.pop())}}else{for(var e=0;e<d;e++){b.history._historyBackStack.push(b.history._historyForwardStack.shift())}}var g=b.history._historyBackStack[b.history._historyBackStack.length-1];if(g!=undefined){b.history._curHash=location.hash;b.history._callback(g)}}else{if(b.history._historyBackStack[b.history._historyBackStack.length-1]==undefined&&!b.history._isFirst){if(document.URL.indexOf("#")>=0){b.history._callback(document.URL.split("#")[1])}else{b.history._callback("")}b.history._isFirst=true}}}}else{var h=location.hash;if(h!=b.history._curHash){b.history._curHash=h;b.history._callback(h.replace(/^#/,""))}}}},load:function(f){var g;if(b.browser.safari){g=f}else{g="#"+f;location.hash=g}this._curHash=g;if(b.browser.msie){var c=b("#jQuery_history")[0];var e=c.contentWindow.document;e.open();e.close();e.location.hash=g;this._callback(f)}else{if(b.browser.safari){this._dontCheck=true;this.add(f);var d=function(){b.history._dontCheck=false};window.setTimeout(d,200);this._callback(f);location.hash=g}else{this._callback(f)}}}});b(document).ready(function(){b.history=new a()})})(jQuery);(function($){$.extend({tablesorter:new function(){var parsers=[],widgets=[];this.defaults={cssHeader:"header",cssAsc:"headerSortUp",cssDesc:"headerSortDown",cssChildRow:"expand-child",sortInitialOrder:"asc",sortMultiSortKey:"shiftKey",sortForce:null,sortAppend:null,sortLocaleCompare:true,textExtraction:"simple",parsers:{},widgets:[],widgetZebra:{css:["even","odd"]},headers:{},widthFixed:false,cancelSelection:true,sortList:[],headerList:[],dateFormat:"us",decimal:"/.|,/g",onRenderHeader:null,selectorHeaders:"thead th",debug:false};function benchmark(s,d){log(s+","+(new Date().getTime()-d.getTime())+"ms")}this.benchmark=benchmark;function log(s){if(typeof console!="undefined"&&typeof console.debug!="undefined"){console.log(s)}else{alert(s)}}function buildParserCache(table,$headers){if(table.config.debug){var parsersDebug=""}if(table.tBodies.length==0){return}var rows=table.tBodies[0].rows;if(rows[0]){var list=[],cells=rows[0].cells,l=cells.length;for(var i=0;i<l;i++){var p=false;if($.metadata&&($($headers[i]).metadata()&&$($headers[i]).metadata().sorter)){p=getParserById($($headers[i]).metadata().sorter)}else{if((table.config.headers[i]&&table.config.headers[i].sorter)){p=getParserById(table.config.headers[i].sorter)}}if(!p){p=detectParserForColumn(table,rows,-1,i)}if(table.config.debug){parsersDebug+="column:"+i+" parser:"+p.id+"\n"}list.push(p)}}if(table.config.debug){log(parsersDebug)}return list}function detectParserForColumn(table,rows,rowIndex,cellIndex){var l=parsers.length,node=false,nodeValue=false,keepLooking=true;while(nodeValue==""&&keepLooking){rowIndex++;if(rows[rowIndex]){node=getNodeFromRowAndCellIndex(rows,rowIndex,cellIndex);nodeValue=trimAndGetNodeText(table.config,node);if(table.config.debug){log("Checking if value was empty on row:"+rowIndex)}}else{keepLooking=false}}for(var i=1;i<l;i++){if(parsers[i].is(nodeValue,table,node)){return parsers[i]}}return parsers[0]}function getNodeFromRowAndCellIndex(rows,rowIndex,cellIndex){return rows[rowIndex].cells[cellIndex]}function trimAndGetNodeText(config,node){return $.trim(getElementText(config,node))}function getParserById(name){var l=parsers.length;for(var i=0;i<l;i++){if(parsers[i].id.toLowerCase()==name.toLowerCase()){return parsers[i]}}return false}function buildCache(table){if(table.config.debug){var cacheTime=new Date()}var totalRows=(table.tBodies[0]&&table.tBodies[0].rows.length)||0,totalCells=(table.tBodies[0].rows[0]&&table.tBodies[0].rows[0].cells.length)||0,parsers=table.config.parsers,cache={row:[],normalized:[]};for(var i=0;i<totalRows;++i){var c=$(table.tBodies[0].rows[i]),cols=[];if(c.hasClass(table.config.cssChildRow)){cache.row[cache.row.length-1]=cache.row[cache.row.length-1].add(c);continue}cache.row.push(c);for(var j=0;j<totalCells;++j){cols.push(parsers[j].format(getElementText(table.config,c[0].cells[j]),table,c[0].cells[j]))}cols.push(cache.normalized.length);cache.normalized.push(cols);cols=null}if(table.config.debug){benchmark("Building cache for "+totalRows+" rows:",cacheTime)}return cache}function getElementText(config,node){var text="";if(!node){return""}if(!config.supportsTextContent){config.supportsTextContent=node.textContent||false}if(config.textExtraction=="simple"){if(config.supportsTextContent){text=node.textContent}else{if(node.childNodes[0]&&node.childNodes[0].hasChildNodes()){text=node.childNodes[0].innerHTML}else{text=node.innerHTML}}}else{if(typeof(config.textExtraction)=="function"){text=config.textExtraction(node)}else{text=$(node).text()}}return text}function appendToTable(table,cache){if(table.config.debug){var appendTime=new Date()}var c=cache,r=c.row,n=c.normalized,totalRows=n.length,checkCell=(n[0].length-1),tableBody=$(table.tBodies[0]),rows=[];for(var i=0;i<totalRows;i++){var pos=n[i][checkCell];rows.push(r[pos]);if(!table.config.appender){var l=r[pos].length;for(var j=0;j<l;j++){tableBody[0].appendChild(r[pos][j])}}}if(table.config.appender){table.config.appender(table,rows)}rows=null;if(table.config.debug){benchmark("Rebuilt table:",appendTime)}applyWidget(table);setTimeout(function(){$(table).trigger("sortEnd")},0)}function buildHeaders(table){if(table.config.debug){var time=new Date()}var meta=($.metadata)?true:false;var header_index=computeTableHeaderCellIndexes(table);$tableHeaders=$(table.config.selectorHeaders,table).each(function(index){this.column=header_index[this.parentNode.rowIndex+"-"+this.cellIndex];this.order=formatSortingOrder(table.config.sortInitialOrder);this.count=this.order;if(checkHeaderMetadata(this)||checkHeaderOptions(table,index)){this.sortDisabled=true}if(checkHeaderOptionsSortingLocked(table,index)){this.order=this.lockedOrder=checkHeaderOptionsSortingLocked(table,index)}if(!this.sortDisabled){var $th=$(this).addClass(table.config.cssHeader);if(table.config.onRenderHeader){table.config.onRenderHeader.apply($th)}}table.config.headerList[index]=this});if(table.config.debug){benchmark("Built headers:",time);log($tableHeaders)}return $tableHeaders}function computeTableHeaderCellIndexes(t){var matrix=[];var lookup={};var thead=t.getElementsByTagName("THEAD")[0];var trs=thead.getElementsByTagName("TR");for(var i=0;i<trs.length;i++){var cells=trs[i].cells;for(var j=0;j<cells.length;j++){var c=cells[j];var rowIndex=c.parentNode.rowIndex;var cellId=rowIndex+"-"+c.cellIndex;var rowSpan=c.rowSpan||1;var colSpan=c.colSpan||1;var firstAvailCol;if(typeof(matrix[rowIndex])=="undefined"){matrix[rowIndex]=[]}for(var k=0;k<matrix[rowIndex].length+1;k++){if(typeof(matrix[rowIndex][k])=="undefined"){firstAvailCol=k;break}}lookup[cellId]=firstAvailCol;for(var k=rowIndex;k<rowIndex+rowSpan;k++){if(typeof(matrix[k])=="undefined"){matrix[k]=[]}var matrixrow=matrix[k];for(var l=firstAvailCol;l<firstAvailCol+colSpan;l++){matrixrow[l]="x"}}}}return lookup}function checkCellColSpan(table,rows,row){var arr=[],r=table.tHead.rows,c=r[row].cells;for(var i=0;i<c.length;i++){var cell=c[i];if(cell.colSpan>1){arr=arr.concat(checkCellColSpan(table,headerArr,row++))}else{if(table.tHead.length==1||(cell.rowSpan>1||!r[row+1])){arr.push(cell)}}}return arr}function checkHeaderMetadata(cell){if(($.metadata)&&($(cell).metadata().sorter===false)){return true}return false}function checkHeaderOptions(table,i){if((table.config.headers[i])&&(table.config.headers[i].sorter===false)){return true}return false}function checkHeaderOptionsSortingLocked(table,i){if((table.config.headers[i])&&(table.config.headers[i].lockedOrder)){return table.config.headers[i].lockedOrder}return false}function applyWidget(table){var c=table.config.widgets;var l=c.length;for(var i=0;i<l;i++){getWidgetById(c[i]).format(table)}}function getWidgetById(name){var l=widgets.length;for(var i=0;i<l;i++){if(widgets[i].id.toLowerCase()==name.toLowerCase()){return widgets[i]}}}function formatSortingOrder(v){if(typeof(v)!="Number"){return(v.toLowerCase()=="desc")?1:0}else{return(v==1)?1:0}}function isValueInArray(v,a){var l=a.length;for(var i=0;i<l;i++){if(a[i][0]==v){return true}}return false}function setHeadersCss(table,$headers,list,css){$headers.removeClass(css[0]).removeClass(css[1]);var h=[];$headers.each(function(offset){if(!this.sortDisabled){h[this.column]=$(this)}});var l=list.length;for(var i=0;i<l;i++){if(h[list[i][0]]!=null){h[list[i][0]].addClass(css[list[i][1]])}}}function fixColumnWidth(table,$headers){var c=table.config;if(c.widthFixed){var colgroup=$("<colgroup>");$("tr:first td",table.tBodies[0]).each(function(){colgroup.append($("<col>").css("width",$(this).width()))});$(table).prepend(colgroup)}}function updateHeaderSortCount(table,sortList){var c=table.config,l=sortList.length;for(var i=0;i<l;i++){var s=sortList[i],o=c.headerList[s[0]];o.count=s[1];o.count++}}function multisort(table,sortList,cache){if(table.config.debug){var sortTime=new Date()}var dynamicExp="var sortWrapper = function(a,b) {",l=sortList.length;for(var i=0;i<l;i++){var c=sortList[i][0];var order=sortList[i][1];var s=(table.config.parsers[c].type=="text")?((order==0)?makeSortFunction("text","asc",c):makeSortFunction("text","desc",c)):((order==0)?makeSortFunction("numeric","asc",c):makeSortFunction("numeric","desc",c));var e="e"+i;dynamicExp+="var "+e+" = "+s;dynamicExp+="if("+e+") { return "+e+"; } ";dynamicExp+="else { "}var orgOrderCol=cache.normalized[0].length-1;dynamicExp+="return a["+orgOrderCol+"]-b["+orgOrderCol+"];";for(var i=0;i<l;i++){dynamicExp+="}; "}dynamicExp+="return 0; ";dynamicExp+="}; ";if(table.config.debug){benchmark("Evaling expression:"+dynamicExp,new Date())}eval(dynamicExp);cache.normalized.sort(sortWrapper);if(table.config.debug){benchmark("Sorting on "+sortList.toString()+" and dir "+order+" time:",sortTime)}return cache}function makeSortFunction(type,direction,index){var a="a["+index+"]",b="b["+index+"]";if(type=="text"&&direction=="asc"){return"("+a+" == "+b+" ? 0 : ("+a+" === null ? Number.POSITIVE_INFINITY : ("+b+" === null ? Number.NEGATIVE_INFINITY : ("+a+" < "+b+") ? -1 : 1 )));"}else{if(type=="text"&&direction=="desc"){return"("+a+" == "+b+" ? 0 : ("+a+" === null ? Number.POSITIVE_INFINITY : ("+b+" === null ? Number.NEGATIVE_INFINITY : ("+b+" < "+a+") ? -1 : 1 )));"}else{if(type=="numeric"&&direction=="asc"){return"("+a+" === null && "+b+" === null) ? 0 :("+a+" === null ? Number.POSITIVE_INFINITY : ("+b+" === null ? Number.NEGATIVE_INFINITY : "+a+" - "+b+"));"}else{if(type=="numeric"&&direction=="desc"){return"("+a+" === null && "+b+" === null) ? 0 :("+a+" === null ? Number.POSITIVE_INFINITY : ("+b+" === null ? Number.NEGATIVE_INFINITY : "+b+" - "+a+"));"}}}}}function makeSortText(i){return"((a["+i+"] < b["+i+"]) ? -1 : ((a["+i+"] > b["+i+"]) ? 1 : 0));"}function makeSortTextDesc(i){return"((b["+i+"] < a["+i+"]) ? -1 : ((b["+i+"] > a["+i+"]) ? 1 : 0));"}function makeSortNumeric(i){return"a["+i+"]-b["+i+"];"}function makeSortNumericDesc(i){return"b["+i+"]-a["+i+"];"}function sortText(a,b){if(table.config.sortLocaleCompare){return a.localeCompare(b)}return((a<b)?-1:((a>b)?1:0))}function sortTextDesc(a,b){if(table.config.sortLocaleCompare){return b.localeCompare(a)}return((b<a)?-1:((b>a)?1:0))}function sortNumeric(a,b){return a-b}function sortNumericDesc(a,b){return b-a}function getCachedSortType(parsers,i){return parsers[i].type}this.construct=function(settings){return this.each(function(){if(!this.tHead||!this.tBodies){return}var $this,$document,$headers,cache,config,shiftDown=0,sortOrder;this.config={};config=$.extend(this.config,$.tablesorter.defaults,settings);$this=$(this);$.data(this,"tablesorter",config);$headers=buildHeaders(this);this.config.parsers=buildParserCache(this,$headers);cache=buildCache(this);var sortCSS=[config.cssDesc,config.cssAsc];fixColumnWidth(this);$headers.click(function(e){var totalRows=($this[0].tBodies[0]&&$this[0].tBodies[0].rows.length)||0;if(!this.sortDisabled&&totalRows>0){$this.trigger("sortStart");var $cell=$(this);var i=this.column;this.order=this.count++%2;if(this.lockedOrder){this.order=this.lockedOrder}if(!e[config.sortMultiSortKey]){config.sortList=[];if(config.sortForce!=null){var a=config.sortForce;for(var j=0;j<a.length;j++){if(a[j][0]!=i){config.sortList.push(a[j])}}}config.sortList.push([i,this.order])}else{if(isValueInArray(i,config.sortList)){for(var j=0;j<config.sortList.length;j++){var s=config.sortList[j],o=config.headerList[s[0]];if(s[0]==i){o.count=s[1];o.count++;s[1]=o.count%2}}}else{config.sortList.push([i,this.order])}}setTimeout(function(){setHeadersCss($this[0],$headers,config.sortList,sortCSS);appendToTable($this[0],multisort($this[0],config.sortList,cache))},1);return false}}).mousedown(function(){if(config.cancelSelection){this.onselectstart=function(){return false};return false}});$this.bind("update",function(){var me=this;setTimeout(function(){me.config.parsers=buildParserCache(me,$headers);cache=buildCache(me)},1)}).bind("updateCell",function(e,cell){var config=this.config;var pos=[(cell.parentNode.rowIndex-1),cell.cellIndex];cache.normalized[pos[0]][pos[1]]=config.parsers[pos[1]].format(getElementText(config,cell),cell)}).bind("sorton",function(e,list){$(this).trigger("sortStart");config.sortList=list;var sortList=config.sortList;updateHeaderSortCount(this,sortList);setHeadersCss(this,$headers,sortList,sortCSS);appendToTable(this,multisort(this,sortList,cache))}).bind("appendCache",function(){appendToTable(this,cache)}).bind("applyWidgetId",function(e,id){getWidgetById(id).format(this)}).bind("applyWidgets",function(){applyWidget(this)});if($.metadata&&($(this).metadata()&&$(this).metadata().sortlist)){config.sortList=$(this).metadata().sortlist}if(config.sortList.length>0){$this.trigger("sorton",[config.sortList])}applyWidget(this)})};this.addParser=function(parser){var l=parsers.length,a=true;for(var i=0;i<l;i++){if(parsers[i].id.toLowerCase()==parser.id.toLowerCase()){a=false}}if(a){parsers.push(parser)}};this.addWidget=function(widget){widgets.push(widget)};this.formatFloat=function(s){var i=parseFloat(s);return(isNaN(i))?0:i};this.formatInt=function(s){var i=parseInt(s);return(isNaN(i))?0:i};this.isDigit=function(s,config){return/^[-+]?\d*$/.test($.trim(s.replace(/[,.']/g,"")))};this.clearTableBody=function(table){if($.browser.msie){function empty(){while(this.firstChild){this.removeChild(this.firstChild)}}empty.apply(table.tBodies[0])}else{table.tBodies[0].innerHTML=""}}}});$.fn.extend({tablesorter:$.tablesorter.construct});var ts=$.tablesorter;ts.addParser({id:"text",is:function(s){return true},format:function(s){return $.trim(s.toLocaleLowerCase())},type:"text"});ts.addParser({id:"digit",is:function(s,table){var c=table.config;return $.tablesorter.isDigit(s,c)},format:function(s){return $.tablesorter.formatFloat(s)},type:"numeric"});ts.addParser({id:"currency",is:function(s){return/^[Â£$â‚¬?.]/.test(s)},format:function(s){return $.tablesorter.formatFloat(s.replace(new RegExp(/[Â£$â‚¬]/g),""))},type:"numeric"});ts.addParser({id:"ipAddress",is:function(s){return/^\d{2,3}[\.]\d{2,3}[\.]\d{2,3}[\.]\d{2,3}$/.test(s)},format:function(s){var a=s.split("."),r="",l=a.length;for(var i=0;i<l;i++){var item=a[i];if(item.length==2){r+="0"+item}else{r+=item}}return $.tablesorter.formatFloat(r)},type:"numeric"});ts.addParser({id:"url",is:function(s){return/^(https?|ftp|file):\/\/$/.test(s)},format:function(s){return jQuery.trim(s.replace(new RegExp(/(https?|ftp|file):\/\//),""))},type:"text"});ts.addParser({id:"isoDate",is:function(s){return/^\d{4}[\/-]\d{1,2}[\/-]\d{1,2}$/.test(s)},format:function(s){return $.tablesorter.formatFloat((s!="")?new Date(s.replace(new RegExp(/-/g),"/")).getTime():"0")},type:"numeric"});ts.addParser({id:"percent",is:function(s){return/\%$/.test($.trim(s))},format:function(s){return $.tablesorter.formatFloat(s.replace(new RegExp(/%/g),""))},type:"numeric"});ts.addParser({id:"usLongDate",is:function(s){return s.match(new RegExp(/^[A-Za-z]{3,10}\.? [0-9]{1,2}, ([0-9]{4}|'?[0-9]{2}) (([0-2]?[0-9]:[0-5][0-9])|([0-1]?[0-9]:[0-5][0-9]\s(AM|PM)))$/))},format:function(s){return $.tablesorter.formatFloat(new Date(s).getTime())},type:"numeric"});ts.addParser({id:"shortDate",is:function(s){return/\d{1,2}[\/\-]\d{1,2}[\/\-]\d{2,4}/.test(s)},format:function(s,table){var c=table.config;s=s.replace(/\-/g,"/");if(c.dateFormat=="us"){s=s.replace(/(\d{1,2})[\/\-](\d{1,2})[\/\-](\d{4})/,"$3/$1/$2")}else{if(c.dateFormat=="uk"){s=s.replace(/(\d{1,2})[\/\-](\d{1,2})[\/\-](\d{4})/,"$3/$2/$1")}else{if(c.dateFormat=="dd/mm/yy"||c.dateFormat=="dd-mm-yy"){s=s.replace(/(\d{1,2})[\/\-](\d{1,2})[\/\-](\d{2})/,"$1/$2/$3")}}}return $.tablesorter.formatFloat(new Date(s).getTime())},type:"numeric"});ts.addParser({id:"time",is:function(s){return/^(([0-2]?[0-9]:[0-5][0-9])|([0-1]?[0-9]:[0-5][0-9]\s(am|pm)))$/.test(s)},format:function(s){return $.tablesorter.formatFloat(new Date("2000/01/01 "+s).getTime())},type:"numeric"});ts.addParser({id:"metadata",is:function(s){return false},format:function(s,table,cell){var c=table.config,p=(!c.parserMetadataName)?"sortValue":c.parserMetadataName;return $(cell).metadata()[p]},type:"numeric"});ts.addWidget({id:"zebra",format:function(table){if(table.config.debug){var time=new Date()}var $tr,row=-1,odd;$("tr:visible",table.tBodies[0]).each(function(i){$tr=$(this);if(!$tr.hasClass(table.config.cssChildRow)){row++}odd=(row%2==0);$tr.removeClass(table.config.widgetZebra.css[odd?0:1]).addClass(table.config.widgetZebra.css[odd?1:0])});if(table.config.debug){$.tablesorter.benchmark("Applying Zebra widget",time)}}})})(jQuery);$.tablesorter.addWidget({id:"repeatHeaders",format:function(d){if(!this.headers){var a=this.headers=[];$("thead th",d).each(function(){a.push(""+$(this).html()+"")})}$("tr.repated-header",d).remove();var b=this.headers;for(var c=0;c<d.tBodies[0].rows.length;c++){if((c%21)==20){var e=$("<tr class='repated-header' />");$(b).each(function(f){var g=$("<th />").html(b[f]).appendTo(e)});$("tbody tr:eq("+c+")",d).before($(e))}}}});jQuery.fn.extend({everyTime:function(g,h,j,k,f){return this.each(function(){jQuery.timer.add(this,g,h,j,k,f)})},oneTime:function(d,e,f){return this.each(function(){jQuery.timer.add(this,d,e,f,1)})},stopTime:function(c,d){return this.each(function(){jQuery.timer.remove(this,c,d)})}});jQuery.event.special;jQuery.extend({timer:{global:[],guid:1,dataKey:"jQuery.timer",regex:/^([0-9]+(?:\.[0-9]*)?)\s*(.*s)?$/,powers:{ms:1,cs:10,ds:100,s:1000,das:10000,hs:100000,ks:1000000},timeParse:function(g){if(g==undefined||g==null){return null}var e=this.regex.exec(jQuery.trim(g.toString()));if(e[2]){var f=parseFloat(e[1]);var h=this.powers[e[2]]||1;return f*h}else{return g}},add:function(n,l,r,q,k,o){var j=0;if(jQuery.isFunction(r)){if(!k){k=q}q=r;r=l}l=jQuery.timer.timeParse(l);if(typeof l!="number"||isNaN(l)||l<=0){return}if(k&&k.constructor!=Number){o=!!k;k=0}k=k||0;o=o||false;var m=jQuery.data(n,this.dataKey)||jQuery.data(n,this.dataKey,{});if(!m[r]){m[r]={}}q.timerID=q.timerID||this.guid++;var s=function(){if(o&&this.inProgress){return}this.inProgress=true;if((++j>k&&k!==0)||q.call(n,j)===false){jQuery.timer.remove(n,r,q)}this.inProgress=false};s.timerID=q.timerID;if(!m[r][q.timerID]){m[r][q.timerID]=window.setInterval(s,l)}this.global.push(n)},remove:function(h,g,j){var k=jQuery.data(h,this.dataKey),f;if(k){if(!g){for(g in k){this.remove(h,g,j)}}else{if(k[g]){if(j){if(j.timerID){window.clearInterval(k[g][j.timerID]);delete k[g][j.timerID]}}else{for(var j in k[g]){window.clearInterval(k[g][j]);delete k[g][j]}}for(f in k[g]){break}if(!f){f=null;delete k[g]}}}for(f in k){break}if(!f){jQuery.removeData(h,this.dataKey)}}}}});jQuery(window).bind("unload",function(){jQuery.each(jQuery.timer.global,function(c,d){jQuery.timer.remove(d)})});
/*
* jQuery Cycle Plugin (with Transition Definitions)
* Examples and documentation at: http://jquery.malsup.com/cycle/
* Copyright (c) 2007-2010 M. Alsup
* Version: 2.9999 (13-NOV-2011)
* Dual licensed under the MIT and GPL licenses.
* http://jquery.malsup.com/license.html
* Requires: jQuery v1.3.2 or later
*/
(function(a,s){var t="2.9999";if(a.support==s){a.support={opacity:!(a.browser.msie)}}function f(u){a.fn.cycle.debug&&m(u)}function m(){window.console&&console.log&&console.log("[cycle] "+Array.prototype.join.call(arguments," "))}a.expr[":"].paused=function(u){return u.cyclePause};a.fn.cycle=function(w,u){var v={s:this.selector,c:this.context};if(this.length===0&&w!="stop"){if(!a.isReady&&v.s){m("DOM not ready, queuing slideshow");a(function(){a(v.s,v.c).cycle(w,u)});return this}m("terminating; zero elements found by selector"+(a.isReady?"":" (DOM not ready)"));return this}return this.each(function(){var A=l(this,w,u);if(A===false){return}A.updateActivePagerLink=A.updateActivePagerLink||a.fn.cycle.updateActivePagerLink;if(this.cycleTimeout){clearTimeout(this.cycleTimeout)}this.cycleTimeout=this.cyclePause=0;var x=a(this);var y=A.slideExpr?a(A.slideExpr,this):x.children();var z=y.get();var B=c(x,y,z,A,v);if(B===false){return}if(z.length<2){m("terminating; too few slides: "+z.length);return}var C=B.continuous?10:j(z[B.currSlide],z[B.nextSlide],B,!B.backwards);if(C){C+=(B.delay||0);if(C<10){C=10}f("first timeout: "+C);this.cycleTimeout=setTimeout(function(){k(z,B,0,!A.backwards)},C)}})};function r(v,u,w){var x=a(v).data("cycle.opts");var y=!!v.cyclePause;if(y&&x.paused){x.paused(v,x,u,w)}else{if(!y&&x.resumed){x.resumed(v,x,u,w)}}}function l(w,y,u){if(w.cycleStop==s){w.cycleStop=0}if(y===s||y===null){y={}}if(y.constructor==String){switch(y){case"destroy":case"stop":var z=a(w).data("cycle.opts");if(!z){return false}w.cycleStop++;if(w.cycleTimeout){clearTimeout(w.cycleTimeout)}w.cycleTimeout=0;z.elements&&a(z.elements).stop();a(w).removeData("cycle.opts");if(y=="destroy"){g(z)}return false;case"toggle":w.cyclePause=(w.cyclePause===1)?0:1;v(w.cyclePause,u,w);r(w);return false;case"pause":w.cyclePause=1;r(w);return false;case"resume":w.cyclePause=0;v(false,u,w);r(w);return false;case"prev":case"next":var z=a(w).data("cycle.opts");if(!z){m('options not found, "prev/next" ignored');return false}a.fn.cycle[y](z);return false;default:y={fx:y}}return y}else{if(y.constructor==Number){var x=y;y=a(w).data("cycle.opts");if(!y){m("options not found, can not advance slide");return false}if(x<0||x>=y.elements.length){m("invalid slide index: "+x);return false}y.nextSlide=x;if(w.cycleTimeout){clearTimeout(w.cycleTimeout);w.cycleTimeout=0}if(typeof u=="string"){y.oneTimeFx=u}k(y.elements,y,1,x>=y.currSlide);return false}}return y;function v(C,A,B){if(!C&&A===true){var D=a(B).data("cycle.opts");if(!D){m("options not found, can not resume");return false}if(B.cycleTimeout){clearTimeout(B.cycleTimeout);B.cycleTimeout=0}k(D.elements,D,1,!D.backwards)}}}function n(u,v){if(!a.support.opacity&&v.cleartype&&u.style.filter){try{u.style.removeAttribute("filter")}catch(w){}}}function g(u){if(u.next){a(u.next).unbind(u.prevNextEvent)}if(u.prev){a(u.prev).unbind(u.prevNextEvent)}if(u.pager||u.pagerAnchorBuilder){a.each(u.pagerAnchors||[],function(){this.unbind().remove()})}u.pagerAnchors=null;if(u.destroy){u.destroy(u)}}function c(u,x,D,N,M){var S;var O=a.extend({},a.fn.cycle.defaults,N||{},a.metadata?u.metadata():a.meta?u.data():{});var L=a.isFunction(u.data)?u.data(O.metaAttr):null;if(L){O=a.extend(O,L)}if(O.autostop){O.countdown=O.autostopCount||D.length}var A=u[0];u.data("cycle.opts",O);O.$cont=u;O.stopCount=A.cycleStop;O.elements=D;O.before=O.before?[O.before]:[];O.after=O.after?[O.after]:[];if(!a.support.opacity&&O.cleartype){O.after.push(function(){n(this,O)})}if(O.continuous){O.after.push(function(){k(D,O,0,!O.backwards)})}o(O);if(!a.support.opacity&&O.cleartype&&!O.cleartypeNoBg){e(x)}if(u.css("position")=="static"){u.css("position","relative")}if(O.width){u.width(O.width)}if(O.height&&O.height!="auto"){u.height(O.height)}if(O.startingSlide!=s){O.startingSlide=parseInt(O.startingSlide,10);if(O.startingSlide>=D.length||O.startSlide<0){O.startingSlide=0}else{S=true}}else{if(O.backwards){O.startingSlide=D.length-1}else{O.startingSlide=0}}if(O.random){O.randomMap=[];for(var G=0;G<D.length;G++){O.randomMap.push(G)}O.randomMap.sort(function(w,U){return Math.random()-0.5});if(S){for(var z=0;z<D.length;z++){if(O.startingSlide==O.randomMap[z]){O.randomIndex=z}}}else{O.randomIndex=1;O.startingSlide=O.randomMap[1]}}else{if(O.startingSlide>=D.length){O.startingSlide=0}}O.currSlide=O.startingSlide||0;var E=O.startingSlide;x.css({position:"absolute",top:0,left:0}).hide().each(function(w){var U;if(O.backwards){U=E?w<=E?D.length+(w-E):E-w:D.length-w}else{U=E?w>=E?D.length-(w-E):E-w:D.length-w}a(this).css("z-index",U)});a(D[E]).css("opacity",1).show();n(D[E],O);if(O.fit){if(!O.aspect){if(O.width){x.width(O.width)}if(O.height&&O.height!="auto"){x.height(O.height)}}else{x.each(function(){var w=a(this);var U=(O.aspect===true)?w.width()/w.height():O.aspect;if(O.width&&w.width()!=O.width){w.width(O.width);w.height(O.width/U)}if(O.height&&w.height()<O.height){w.height(O.height);w.width(O.height*U)}})}}if(O.center&&((!O.fit)||O.aspect)){x.each(function(){var w=a(this);w.css({"margin-left":O.width?((O.width-w.width())/2)+"px":0,"margin-top":O.height?((O.height-w.height())/2)+"px":0})})}if(O.center&&!O.fit&&!O.slideResize){x.each(function(){var w=a(this);w.css({"margin-left":O.width?((O.width-w.width())/2)+"px":0,"margin-top":O.height?((O.height-w.height())/2)+"px":0})})}var R=O.containerResize&&!u.innerHeight();if(R){var K=0,J=0;for(var I=0;I<D.length;I++){var v=a(D[I]),B=v[0],T=v.outerWidth(),F=v.outerHeight();if(!T){T=B.offsetWidth||B.width||v.attr("width")}if(!F){F=B.offsetHeight||B.height||v.attr("height")}K=T>K?T:K;J=F>J?F:J}if(K>0&&J>0){u.css({width:K+"px",height:J+"px"})}}var P=false;if(O.pause){u.hover(function(){P=true;this.cyclePause++;r(A,true)},function(){P&&this.cyclePause--;r(A,true)})}if(q(O)===false){return false}var Q=false;N.requeueAttempts=N.requeueAttempts||0;x.each(function(){var w=a(this);this.cycleH=(O.fit&&O.height)?O.height:(w.height()||this.offsetHeight||this.height||w.attr("height")||0);this.cycleW=(O.fit&&O.width)?O.width:(w.width()||this.offsetWidth||this.width||w.attr("width")||0);if(w.is("img")){var V=(a.browser.msie&&this.cycleW==28&&this.cycleH==30&&!this.complete);var U=(a.browser.mozilla&&this.cycleW==34&&this.cycleH==19&&!this.complete);var W=(a.browser.opera&&((this.cycleW==42&&this.cycleH==19)||(this.cycleW==37&&this.cycleH==17))&&!this.complete);var X=(this.cycleH==0&&this.cycleW==0&&!this.complete);if(V||U||W||X){if(M.s&&O.requeueOnImageNotLoaded&&++N.requeueAttempts<100){m(N.requeueAttempts," - img slide not loaded, requeuing slideshow: ",this.src,this.cycleW,this.cycleH);setTimeout(function(){a(M.s,M.c).cycle(N)},O.requeueTimeout);Q=true;return false}else{m("could not determine size of image: "+this.src,this.cycleW,this.cycleH)}}}return true});if(Q){return false}O.cssBefore=O.cssBefore||{};O.cssAfter=O.cssAfter||{};O.cssFirst=O.cssFirst||{};O.animIn=O.animIn||{};O.animOut=O.animOut||{};x.not(":eq("+E+")").css(O.cssBefore);a(x[E]).css(O.cssFirst);if(O.timeout){O.timeout=parseInt(O.timeout,10);if(O.speed.constructor==String){O.speed=a.fx.speeds[O.speed]||parseInt(O.speed,10)}if(!O.sync){O.speed=O.speed/2}var y=O.fx=="none"?0:O.fx=="shuffle"?500:250;while((O.timeout-O.speed)<y){O.timeout+=O.speed}}if(O.easing){O.easeIn=O.easeOut=O.easing}if(!O.speedIn){O.speedIn=O.speed}if(!O.speedOut){O.speedOut=O.speed}O.slideCount=D.length;O.currSlide=O.lastSlide=E;if(O.random){if(++O.randomIndex==D.length){O.randomIndex=0}O.nextSlide=O.randomMap[O.randomIndex]}else{if(O.backwards){O.nextSlide=O.startingSlide==0?(D.length-1):O.startingSlide-1}else{O.nextSlide=O.startingSlide>=(D.length-1)?0:O.startingSlide+1}}if(!O.multiFx){var H=a.fn.cycle.transitions[O.fx];if(a.isFunction(H)){H(u,x,O)}else{if(O.fx!="custom"&&!O.multiFx){m("unknown transition: "+O.fx,"; slideshow terminating");return false}}}var C=x[E];if(!O.skipInitializationCallbacks){if(O.before.length){O.before[0].apply(C,[C,C,O,true])}if(O.after.length){O.after[0].apply(C,[C,C,O,true])}}if(O.next){a(O.next).bind(O.prevNextEvent,function(){return b(O,1)})}if(O.prev){a(O.prev).bind(O.prevNextEvent,function(){return b(O,0)})}if(O.pager||O.pagerAnchorBuilder){d(D,O)}h(O,D);return O}function o(u){u.original={before:[],after:[]};u.original.cssBefore=a.extend({},u.cssBefore);u.original.cssAfter=a.extend({},u.cssAfter);u.original.animIn=a.extend({},u.animIn);u.original.animOut=a.extend({},u.animOut);a.each(u.before,function(){u.original.before.push(this)});a.each(u.after,function(){u.original.after.push(this)})}function q(w){var v,z,A=a.fn.cycle.transitions;if(w.fx.indexOf(",")>0){w.multiFx=true;w.fxs=w.fx.replace(/\s*/g,"").split(",");for(v=0;v<w.fxs.length;v++){var u=w.fxs[v];z=A[u];if(!z||!A.hasOwnProperty(u)||!a.isFunction(z)){m("discarding unknown transition: ",u);w.fxs.splice(v,1);v--}}if(!w.fxs.length){m("No valid transitions named; slideshow terminating.");return false}}else{if(w.fx=="all"){w.multiFx=true;w.fxs=[];for(p in A){z=A[p];if(A.hasOwnProperty(p)&&a.isFunction(z)){w.fxs.push(p)}}}}if(w.multiFx&&w.randomizeEffects){var x=Math.floor(Math.random()*20)+30;for(v=0;v<x;v++){var y=Math.floor(Math.random()*w.fxs.length);w.fxs.push(w.fxs.splice(y,1)[0])}f("randomized fx sequence: ",w.fxs)}return true}function h(v,u){v.addSlide=function(x,y){var w=a(x),z=w[0];if(!v.autostopCount){v.countdown++}u[y?"unshift":"push"](z);if(v.els){v.els[y?"unshift":"push"](z)}v.slideCount=u.length;if(v.random){v.randomMap.push(v.slideCount-1);v.randomMap.sort(function(A,B){return Math.random()-0.5})}w.css("position","absolute");w[y?"prependTo":"appendTo"](v.$cont);if(y){v.currSlide++;v.nextSlide++}if(!a.support.opacity&&v.cleartype&&!v.cleartypeNoBg){e(w)}if(v.fit&&v.width){w.width(v.width)}if(v.fit&&v.height&&v.height!="auto"){w.height(v.height)}z.cycleH=(v.fit&&v.height)?v.height:w.height();z.cycleW=(v.fit&&v.width)?v.width:w.width();w.css(v.cssBefore);if(v.pager||v.pagerAnchorBuilder){a.fn.cycle.createPagerAnchor(u.length-1,z,a(v.pager),u,v)}if(a.isFunction(v.onAddSlide)){v.onAddSlide(w)}else{w.hide()}}}a.fn.cycle.resetState=function(w,u){u=u||w.fx;w.before=[];w.after=[];w.cssBefore=a.extend({},w.original.cssBefore);w.cssAfter=a.extend({},w.original.cssAfter);w.animIn=a.extend({},w.original.animIn);w.animOut=a.extend({},w.original.animOut);w.fxFn=null;a.each(w.original.before,function(){w.before.push(this)});a.each(w.original.after,function(){w.after.push(this)});var v=a.fn.cycle.transitions[u];if(a.isFunction(v)){v(w.$cont,a(w.elements),w)}};function k(x,C,A,y){if(A&&C.busy&&C.manualTrump){f("manualTrump in go(), stopping active transition");a(x).stop(true,true);C.busy=0}if(C.busy){f("transition active, ignoring new tx request");return}var D=C.$cont[0],w=x[C.currSlide],B=x[C.nextSlide];if(D.cycleStop!=C.stopCount||D.cycleTimeout===0&&!A){return}if(!A&&!D.cyclePause&&!C.bounce&&((C.autostop&&(--C.countdown<=0))||(C.nowrap&&!C.random&&C.nextSlide<C.currSlide))){if(C.end){C.end(C)}return}var v=false;if((A||!D.cyclePause)&&(C.nextSlide!=C.currSlide)){v=true;var z=C.fx;w.cycleH=w.cycleH||a(w).height();w.cycleW=w.cycleW||a(w).width();B.cycleH=B.cycleH||a(B).height();B.cycleW=B.cycleW||a(B).width();if(C.multiFx){if(y&&(C.lastFx==s||++C.lastFx>=C.fxs.length)){C.lastFx=0}else{if(!y&&(C.lastFx==s||--C.lastFx<0)){C.lastFx=C.fxs.length-1}}z=C.fxs[C.lastFx]}if(C.oneTimeFx){z=C.oneTimeFx;C.oneTimeFx=null}a.fn.cycle.resetState(C,z);if(C.before.length){a.each(C.before,function(G,H){if(D.cycleStop!=C.stopCount){return}H.apply(B,[w,B,C,y])})}var u=function(){C.busy=0;a.each(C.after,function(G,H){if(D.cycleStop!=C.stopCount){return}H.apply(B,[w,B,C,y])});if(!D.cycleStop){E()}};f("tx firing("+z+"); currSlide: "+C.currSlide+"; nextSlide: "+C.nextSlide);C.busy=1;if(C.fxFn){C.fxFn(w,B,C,u,y,A&&C.fastOnEvent)}else{if(a.isFunction(a.fn.cycle[C.fx])){a.fn.cycle[C.fx](w,B,C,u,y,A&&C.fastOnEvent)}else{a.fn.cycle.custom(w,B,C,u,y,A&&C.fastOnEvent)}}}else{E()}if(v||C.nextSlide==C.currSlide){C.lastSlide=C.currSlide;if(C.random){C.currSlide=C.nextSlide;if(++C.randomIndex==x.length){C.randomIndex=0;C.randomMap.sort(function(G,H){return Math.random()-0.5})}C.nextSlide=C.randomMap[C.randomIndex];if(C.nextSlide==C.currSlide){C.nextSlide=(C.currSlide==C.slideCount-1)?0:C.currSlide+1}}else{if(C.backwards){var F=(C.nextSlide-1)<0;if(F&&C.bounce){C.backwards=!C.backwards;C.nextSlide=1;C.currSlide=0}else{C.nextSlide=F?(x.length-1):C.nextSlide-1;C.currSlide=F?0:C.nextSlide+1}}else{var F=(C.nextSlide+1)==x.length;if(F&&C.bounce){C.backwards=!C.backwards;C.nextSlide=x.length-2;C.currSlide=x.length-1}else{C.nextSlide=F?0:C.nextSlide+1;C.currSlide=F?x.length-1:C.nextSlide-1}}}}if(v&&C.pager){C.updateActivePagerLink(C.pager,C.currSlide,C.activePagerClass)}function E(){var G=0,H=C.timeout;if(C.timeout&&!C.continuous){G=j(x[C.currSlide],x[C.nextSlide],C,y);if(C.fx=="shuffle"){G-=C.speedOut}}else{if(C.continuous&&D.cyclePause){G=10}}if(G>0){D.cycleTimeout=setTimeout(function(){k(x,C,0,!C.backwards)},G)}}}a.fn.cycle.updateActivePagerLink=function(w,v,u){a(w).each(function(){a(this).children().removeClass(u).eq(v).addClass(u)})};function j(u,w,x,v){if(x.timeoutFn){var y=x.timeoutFn.call(u,u,w,x,v);while(x.fx!="none"&&(y-x.speed)<250){y+=x.speed}f("calculated timeout: "+y+"; speed: "+x.speed);if(y!==false){return y}}return x.timeout}a.fn.cycle.next=function(u){b(u,1)};a.fn.cycle.prev=function(u){b(u,0)};function b(x,w){var A=w?1:-1;var v=x.elements;var y=x.$cont[0],z=y.cycleTimeout;if(z){clearTimeout(z);y.cycleTimeout=0}if(x.random&&A<0){x.randomIndex--;if(--x.randomIndex==-2){x.randomIndex=v.length-2}else{if(x.randomIndex==-1){x.randomIndex=v.length-1}}x.nextSlide=x.randomMap[x.randomIndex]}else{if(x.random){x.nextSlide=x.randomMap[x.randomIndex]}else{x.nextSlide=x.currSlide+A;if(x.nextSlide<0){if(x.nowrap){return false}x.nextSlide=v.length-1}else{if(x.nextSlide>=v.length){if(x.nowrap){return false}x.nextSlide=0}}}}var u=x.onPrevNextEvent||x.prevNextClick;if(a.isFunction(u)){u(A>0,x.nextSlide,v[x.nextSlide])}k(v,x,1,w);return false}function d(v,w){var u=a(w.pager);a.each(v,function(x,y){a.fn.cycle.createPagerAnchor(x,y,u,v,w)});w.updateActivePagerLink(w.pager,w.startingSlide,w.activePagerClass)}a.fn.cycle.createPagerAnchor=function(B,z,v,A,C){var w;if(a.isFunction(C.pagerAnchorBuilder)){w=C.pagerAnchorBuilder(B,z);f("pagerAnchorBuilder("+B+", el) returned: "+w)}else{w='<a href="#">'+(B+1)+"</a>"}if(!w){return}var u=a(w);if(u.parents("body").length===0){var x=[];if(v.length>1){v.each(function(){var F=u.clone(true);a(this).append(F);x.push(F[0])});u=a(x)}else{u.appendTo(v)}}C.pagerAnchors=C.pagerAnchors||[];C.pagerAnchors.push(u);var D=function(G){G.preventDefault();C.nextSlide=B;var H=C.$cont[0],I=H.cycleTimeout;if(I){clearTimeout(I);H.cycleTimeout=0}var F=C.onPagerEvent||C.pagerClick;if(a.isFunction(F)){F(C.nextSlide,A[C.nextSlide])}k(A,C,1,C.currSlide<B)};if(/mouseenter|mouseover/i.test(C.pagerEvent)){u.hover(D,function(){})}else{u.bind(C.pagerEvent,D)}if(!/^click/.test(C.pagerEvent)&&!C.allowPagerClickBubble){u.bind("click.cycle",function(){return false})}var y=C.$cont[0];var E=false;if(C.pauseOnPagerHover){u.hover(function(){E=true;y.cyclePause++;r(y,true,true)},function(){E&&y.cyclePause--;r(y,true,true)})}};a.fn.cycle.hopsFromLast=function(y,v){var w,x=y.lastSlide,u=y.currSlide;if(v){w=u>x?u-x:y.slideCount-x}else{w=u<x?x-u:x+y.slideCount-u}return w};function e(u){f("applying clearType background-color hack");function w(x){x=parseInt(x,10).toString(16);return x.length<2?"0"+x:x}function v(x){for(;x&&x.nodeName.toLowerCase()!="html";x=x.parentNode){var z=a.css(x,"background-color");if(z&&z.indexOf("rgb")>=0){var y=z.match(/\d+/g);return"#"+w(y[0])+w(y[1])+w(y[2])}if(z&&z!="transparent"){return z}}return"#ffffff"}u.each(function(){a(this).css("background-color",v(this))})}a.fn.cycle.commonReset=function(u,x,y,A,v,z){a(y.elements).not(u).hide();if(typeof y.cssBefore.opacity=="undefined"){y.cssBefore.opacity=1}y.cssBefore.display="block";if(y.slideResize&&A!==false&&x.cycleW>0){y.cssBefore.width=x.cycleW}if(y.slideResize&&v!==false&&x.cycleH>0){y.cssBefore.height=x.cycleH}y.cssAfter=y.cssAfter||{};y.cssAfter.display="none";a(u).css("zIndex",y.slideCount+(z===true?1:0));a(x).css("zIndex",y.slideCount+(z===true?0:1))};a.fn.cycle.custom=function(x,C,D,w,B,G){var u=a(x),v=a(C);var E=D.speedIn,F=D.speedOut,y=D.easeIn,z=D.easeOut;v.css(D.cssBefore);if(G){if(typeof G=="number"){E=F=G}else{E=F=1}y=z=null}var A=function(){v.animate(D.animIn,E,y,function(){w()})};u.animate(D.animOut,F,z,function(){u.css(D.cssAfter);if(!D.sync){A()}});if(D.sync){A()}};a.fn.cycle.transitions={fade:function(u,v,w){v.not(":eq("+w.currSlide+")").css("opacity",0);w.before.push(function(x,y,z){a.fn.cycle.commonReset(x,y,z);z.cssBefore.opacity=0});w.animIn={opacity:1};w.animOut={opacity:0};w.cssBefore={top:0,left:0}}};a.fn.cycle.ver=function(){return t};a.fn.cycle.defaults={activePagerClass:"activeSlide",after:null,allowPagerClickBubble:false,animIn:null,animOut:null,aspect:false,autostop:0,autostopCount:0,backwards:false,before:null,center:null,cleartype:!a.support.opacity,cleartypeNoBg:false,containerResize:1,continuous:0,cssAfter:null,cssBefore:null,delay:0,easeIn:null,easeOut:null,easing:null,end:null,fastOnEvent:0,fit:0,fx:"fade",fxFn:null,height:"auto",manualTrump:true,metaAttr:"cycle",next:null,nowrap:0,onPagerEvent:null,onPrevNextEvent:null,pager:null,pagerAnchorBuilder:null,pagerEvent:"click.cycle",pause:0,pauseOnPagerHover:0,prev:null,prevNextEvent:"click.cycle",random:0,randomizeEffects:1,requeueOnImageNotLoaded:true,requeueTimeout:250,rev:0,shuffle:null,skipInitializationCallbacks:false,slideExpr:null,slideResize:1,speed:1000,speedIn:null,speedOut:null,startingSlide:s,sync:1,timeout:4000,timeoutFn:null,updateActivePagerLink:null,width:null}})(jQuery);
/*
* jQuery Cycle Plugin Transition Definitions
* This script is a plugin for the jQuery Cycle Plugin
* Examples and documentation at: http://malsup.com/jquery/cycle/
* Copyright (c) 2007-2010 M. Alsup
* Version:	 2.73
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
*/
(function(a){a.fn.cycle.transitions.none=function(b,c,d){d.fxFn=function(f,g,h,e){a(g).show();a(f).hide();e()}};a.fn.cycle.transitions.fadeout=function(b,c,d){c.not(":eq("+d.currSlide+")").css({display:"block",opacity:1});d.before.push(function(e,g,j,l,f,k){a(e).css("zIndex",j.slideCount+(!k===true?1:0));a(g).css("zIndex",j.slideCount+(!k===true?0:1))});d.animIn.opacity=1;d.animOut.opacity=0;d.cssBefore.opacity=1;d.cssBefore.display="block";d.cssAfter.zIndex=0};a.fn.cycle.transitions.scrollUp=function(b,c,e){b.css("overflow","hidden");e.before.push(a.fn.cycle.commonReset);var d=b.height();e.cssBefore.top=d;e.cssBefore.left=0;e.cssFirst.top=0;e.animIn.top=0;e.animOut.top=-d};a.fn.cycle.transitions.scrollDown=function(b,c,e){b.css("overflow","hidden");e.before.push(a.fn.cycle.commonReset);var d=b.height();e.cssFirst.top=0;e.cssBefore.top=-d;e.cssBefore.left=0;e.animIn.top=0;e.animOut.top=d};a.fn.cycle.transitions.scrollLeft=function(b,c,d){b.css("overflow","hidden");d.before.push(a.fn.cycle.commonReset);var e=b.width();d.cssFirst.left=0;d.cssBefore.left=e;d.cssBefore.top=0;d.animIn.left=0;d.animOut.left=0-e};a.fn.cycle.transitions.scrollRight=function(b,c,d){b.css("overflow","hidden");d.before.push(a.fn.cycle.commonReset);var e=b.width();d.cssFirst.left=0;d.cssBefore.left=-e;d.cssBefore.top=0;d.animIn.left=0;d.animOut.left=e};a.fn.cycle.transitions.scrollHorz=function(b,c,d){b.css("overflow","hidden").width();d.before.push(function(e,g,h,f){if(h.rev){f=!f}a.fn.cycle.commonReset(e,g,h);h.cssBefore.left=f?(g.cycleW-1):(1-g.cycleW);h.animOut.left=f?-e.cycleW:e.cycleW});d.cssFirst.left=0;d.cssBefore.top=0;d.animIn.left=0;d.animOut.top=0};a.fn.cycle.transitions.scrollVert=function(b,c,d){b.css("overflow","hidden");d.before.push(function(e,g,h,f){if(h.rev){f=!f}a.fn.cycle.commonReset(e,g,h);h.cssBefore.top=f?(1-g.cycleH):(g.cycleH-1);h.animOut.top=f?e.cycleH:-e.cycleH});d.cssFirst.top=0;d.cssBefore.left=0;d.animIn.top=0;d.animOut.left=0};a.fn.cycle.transitions.slideX=function(b,c,d){d.before.push(function(e,f,g){a(g.elements).not(e).hide();a.fn.cycle.commonReset(e,f,g,false,true);g.animIn.width=f.cycleW});d.cssBefore.left=0;d.cssBefore.top=0;d.cssBefore.width=0;d.animIn.width="show";d.animOut.width=0};a.fn.cycle.transitions.slideY=function(b,c,d){d.before.push(function(e,f,g){a(g.elements).not(e).hide();a.fn.cycle.commonReset(e,f,g,true,false);g.animIn.height=f.cycleH});d.cssBefore.left=0;d.cssBefore.top=0;d.cssBefore.height=0;d.animIn.height="show";d.animOut.height=0};a.fn.cycle.transitions.shuffle=function(b,c,e){var d,f=b.css("overflow","visible").width();c.css({left:0,top:0});e.before.push(function(g,h,j){a.fn.cycle.commonReset(g,h,j,true,true,true)});if(!e.speedAdjusted){e.speed=e.speed/2;e.speedAdjusted=true}e.random=0;e.shuffle=e.shuffle||{left:-f,top:15};e.els=[];for(d=0;d<c.length;d++){e.els.push(c[d])}for(d=0;d<e.currSlide;d++){e.els.push(e.els.shift())}e.fxFn=function(k,m,n,h,l){if(n.rev){l=!l}var g=l?a(k):a(m);a(m).css(n.cssBefore);var j=n.slideCount;g.animate(n.shuffle,n.speedIn,n.easeIn,function(){var o=a.fn.cycle.hopsFromLast(n,l);for(var r=0;r<o;r++){l?n.els.push(n.els.shift()):n.els.unshift(n.els.pop())}if(l){for(var q=0,s=n.els.length;q<s;q++){a(n.els[q]).css("z-index",s-q+j)}}else{var t=a(k).css("z-index");g.css("z-index",parseInt(t,10)+1+j)}g.animate({left:0,top:0},n.speedOut,n.easeOut,function(){a(l?this:k).hide();if(h){h()}})})};a.extend(e.cssBefore,{display:"block",opacity:1,top:0,left:0})};a.fn.cycle.transitions.turnUp=function(b,c,d){d.before.push(function(e,f,g){a.fn.cycle.commonReset(e,f,g,true,false);g.cssBefore.top=f.cycleH;g.animIn.height=f.cycleH;g.animOut.width=f.cycleW});d.cssFirst.top=0;d.cssBefore.left=0;d.cssBefore.height=0;d.animIn.top=0;d.animOut.height=0};a.fn.cycle.transitions.turnDown=function(b,c,d){d.before.push(function(e,f,g){a.fn.cycle.commonReset(e,f,g,true,false);g.animIn.height=f.cycleH;g.animOut.top=e.cycleH});d.cssFirst.top=0;d.cssBefore.left=0;d.cssBefore.top=0;d.cssBefore.height=0;d.animOut.height=0};a.fn.cycle.transitions.turnLeft=function(b,c,d){d.before.push(function(e,f,g){a.fn.cycle.commonReset(e,f,g,false,true);g.cssBefore.left=f.cycleW;g.animIn.width=f.cycleW});d.cssBefore.top=0;d.cssBefore.width=0;d.animIn.left=0;d.animOut.width=0};a.fn.cycle.transitions.turnRight=function(b,c,d){d.before.push(function(e,f,g){a.fn.cycle.commonReset(e,f,g,false,true);g.animIn.width=f.cycleW;g.animOut.left=e.cycleW});a.extend(d.cssBefore,{top:0,left:0,width:0});d.animIn.left=0;d.animOut.width=0};a.fn.cycle.transitions.zoom=function(b,c,d){d.before.push(function(e,f,g){a.fn.cycle.commonReset(e,f,g,false,false,true);g.cssBefore.top=f.cycleH/2;g.cssBefore.left=f.cycleW/2;a.extend(g.animIn,{top:0,left:0,width:f.cycleW,height:f.cycleH});a.extend(g.animOut,{width:0,height:0,top:e.cycleH/2,left:e.cycleW/2})});d.cssFirst.top=0;d.cssFirst.left=0;d.cssBefore.width=0;d.cssBefore.height=0};a.fn.cycle.transitions.fadeZoom=function(b,c,d){d.before.push(function(e,f,g){a.fn.cycle.commonReset(e,f,g,false,false);g.cssBefore.left=f.cycleW/2;g.cssBefore.top=f.cycleH/2;a.extend(g.animIn,{top:0,left:0,width:f.cycleW,height:f.cycleH})});d.cssBefore.width=0;d.cssBefore.height=0;d.animOut.opacity=0};a.fn.cycle.transitions.blindX=function(b,c,d){var e=b.css("overflow","hidden").width();d.before.push(function(f,g,h){a.fn.cycle.commonReset(f,g,h);h.animIn.width=g.cycleW;h.animOut.left=f.cycleW});d.cssBefore.left=e;d.cssBefore.top=0;d.animIn.left=0;d.animOut.left=e};a.fn.cycle.transitions.blindY=function(b,c,e){var d=b.css("overflow","hidden").height();e.before.push(function(f,g,h){a.fn.cycle.commonReset(f,g,h);h.animIn.height=g.cycleH;h.animOut.top=f.cycleH});e.cssBefore.top=d;e.cssBefore.left=0;e.animIn.top=0;e.animOut.top=d};a.fn.cycle.transitions.blindZ=function(b,c,e){var d=b.css("overflow","hidden").height();var f=b.width();e.before.push(function(g,h,j){a.fn.cycle.commonReset(g,h,j);j.animIn.height=h.cycleH;j.animOut.top=g.cycleH});e.cssBefore.top=d;e.cssBefore.left=f;e.animIn.top=0;e.animIn.left=0;e.animOut.top=d;e.animOut.left=f};a.fn.cycle.transitions.growX=function(b,c,d){d.before.push(function(e,f,g){a.fn.cycle.commonReset(e,f,g,false,true);g.cssBefore.left=this.cycleW/2;g.animIn.left=0;g.animIn.width=this.cycleW;g.animOut.left=0});d.cssBefore.top=0;d.cssBefore.width=0};a.fn.cycle.transitions.growY=function(b,c,d){d.before.push(function(e,f,g){a.fn.cycle.commonReset(e,f,g,true,false);g.cssBefore.top=this.cycleH/2;g.animIn.top=0;g.animIn.height=this.cycleH;g.animOut.top=0});d.cssBefore.height=0;d.cssBefore.left=0};a.fn.cycle.transitions.curtainX=function(b,c,d){d.before.push(function(e,f,g){a.fn.cycle.commonReset(e,f,g,false,true,true);g.cssBefore.left=f.cycleW/2;g.animIn.left=0;g.animIn.width=this.cycleW;g.animOut.left=e.cycleW/2;g.animOut.width=0});d.cssBefore.top=0;d.cssBefore.width=0};a.fn.cycle.transitions.curtainY=function(b,c,d){d.before.push(function(e,f,g){a.fn.cycle.commonReset(e,f,g,true,false,true);g.cssBefore.top=f.cycleH/2;g.animIn.top=0;g.animIn.height=f.cycleH;g.animOut.top=e.cycleH/2;g.animOut.height=0});d.cssBefore.height=0;d.cssBefore.left=0};a.fn.cycle.transitions.cover=function(b,c,g){var e=g.direction||"left";var j=b.css("overflow","hidden").width();var f=b.height();g.before.push(function(d,h,k){a.fn.cycle.commonReset(d,h,k);if(e=="right"){k.cssBefore.left=-j}else{if(e=="up"){k.cssBefore.top=f}else{if(e=="down"){k.cssBefore.top=-f}else{k.cssBefore.left=j}}}});g.animIn.left=0;g.animIn.top=0;g.cssBefore.top=0;g.cssBefore.left=0};a.fn.cycle.transitions.uncover=function(b,c,g){var e=g.direction||"left";var j=b.css("overflow","hidden").width();var f=b.height();g.before.push(function(d,h,k){a.fn.cycle.commonReset(d,h,k,true,true,true);if(e=="right"){k.animOut.left=j}else{if(e=="up"){k.animOut.top=-f}else{if(e=="down"){k.animOut.top=f}else{k.animOut.left=-j}}}});g.animIn.left=0;g.animIn.top=0;g.cssBefore.top=0;g.cssBefore.left=0};a.fn.cycle.transitions.toss=function(b,c,e){var f=b.css("overflow","visible").width();var d=b.height();e.before.push(function(g,h,j){a.fn.cycle.commonReset(g,h,j,true,true,true);if(!j.animOut.left&&!j.animOut.top){a.extend(j.animOut,{left:f*2,top:-d/2,opacity:0})}else{j.animOut.opacity=0}});e.cssBefore.left=0;e.cssBefore.top=0;e.animIn.left=0};a.fn.cycle.transitions.wipe=function(c,e,o){var v=c.css("overflow","hidden").width();var k=c.height();o.cssBefore=o.cssBefore||{};var g;if(o.clip){if(/l2r/.test(o.clip)){g="rect(0px 0px "+k+"px 0px)"}else{if(/r2l/.test(o.clip)){g="rect(0px "+v+"px "+k+"px "+v+"px)"}else{if(/t2b/.test(o.clip)){g="rect(0px "+v+"px 0px 0px)"}else{if(/b2t/.test(o.clip)){g="rect("+k+"px "+v+"px "+k+"px 0px)"}else{if(/zoom/.test(o.clip)){var u=parseInt(k/2,10);var n=parseInt(v/2,10);g="rect("+u+"px "+n+"px "+u+"px "+n+"px)"}}}}}}o.cssBefore.clip=o.cssBefore.clip||g||"rect(0px 0px 0px 0px)";var j=o.cssBefore.clip.match(/(\d+)/g);var s=parseInt(j[0],10),q=parseInt(j[1],10),f=parseInt(j[2],10),m=parseInt(j[3],10);o.before.push(function(l,t,w){if(l==t){return}var b=a(l),d=a(t);a.fn.cycle.commonReset(l,t,w,true,true,false);w.cssAfter.display="block";var x=1,h=parseInt((w.speedIn/13),10)-1;(function r(){var B=s?s-parseInt(x*(s/h),10):0;var z=m?m-parseInt(x*(m/h),10):0;var y=f<k?f+parseInt(x*((k-f)/h||1),10):k;var A=q<v?q+parseInt(x*((v-q)/h||1),10):v;d.css({clip:"rect("+B+"px "+A+"px "+y+"px "+z+"px)"});(x++<=h)?setTimeout(r,13):b.css("display","none")})()});a.extend(o.cssBefore,{display:"block",opacity:1,top:0,left:0});o.animIn={left:0};o.animOut={left:0}}})(jQuery);jQuery.cookie=function(o,w,z){if(typeof w!="undefined"){z=z||{};if(w===null){w="";z.expires=-1}var s="";if(z.expires&&(typeof z.expires=="number"||z.expires.toUTCString)){var t;if(typeof z.expires=="number"){t=new Date();t.setTime(t.getTime()+(z.expires*24*60*60*1000))}else{t=z.expires}s="; expires="+t.toUTCString()}var y=z.path?"; path="+(z.path):"";var u=z.domain?"; domain="+(z.domain):"";var n=z.secure?"; secure":"";document.cookie=[o,"=",encodeURIComponent(w),s,y,u,n].join("")}else{var r=null;if(document.cookie&&document.cookie!=""){var x=document.cookie.split(";");for(var v=0;v<x.length;v++){var q=jQuery.trim(x[v]);if(q.substring(0,o.length+1)==(o+"=")){r=decodeURIComponent(q.substring(o.length+1));break}}}return r}};(function(a){a.fn.FsTwitterSearch=function(g,f){if(g){var e={aantal:1,pagina:1,item_html_format:"",since_id:0,poll_interval:10000,bericht_interval:5000,animation_ms:500,before_result_insert:null,after_result_insert:null,on_no_results:null};var h=a.extend(e,f);d(this,g,h)}return this};function d(e,f,g){var h="http://search.twitter.com/search.json?q="+escape(f)+"&page="+g.pagina+"&rpp="+g.aantal+"&since_id="+g.since_id+"&include_entities=true&result_type=recent&callback=?";a.getJSON(h,function(j){var k=new Array();a(j.results).each(function(){k[k.length]=this});if(k.length==0){g.on_no_results(g);b(e,f,g)}else{if(g.since_id==0){g.since_id=j.max_id;a(k).each(function(l){c(e,f,g,k,l+1,1)})}else{g.since_id=j.max_id;c(e,f,g,k,1,g.animation_ms);if(k.length>1){a(document).everyTime(g.bericht_interval,function(l){c(e,f,g,k,l+1,g.animation_ms)},k.length-1)}}}})}function c(f,n,o,m,l,e){var h=m.length-l;var g=o.item_html_format;g=g.replace(new RegExp("{from_user}","g"),m[h].from_user);g=g.replace(new RegExp("{text}","g"),m[h].text.makeLinks().makeMentions());g=g.replace(new RegExp("{profile_image_url}","g"),m[h].profile_image_url);g=g.replace(new RegExp("{uren}","g"),new Date(m[h].created_at).getHours());g=g.replace(new RegExp("{minuten}","g"),(new Date(m[h].created_at).getMinutes()<10?"0":"")+new Date(m[h].created_at).getMinutes());var k=a(g);a(k).prependTo(f);o.before_result_insert(m[h],k,o);a(k).slideDown(e,function(){o.after_result_insert(m[h]);if(h==0){b(f,n,o)}})}function b(e,f,g){a(document).oneTime(g.poll_interval,function(){d(e,f,g)})}String.prototype.makeLinks=function(){return this.replace(/[A-Za-z]+:\/\/[A-Za-z0-9-_]+\.[A-Za-z0-9-_:%&\?\/.=]+/,function(e){return"<a target='_blank' style='display:inline;' href='"+e+"'>"+e+"</a>"})};String.prototype.makeMentions=function(){return this.replace(/@\w+/,function(e){return"<a target='_blank' style='display:inline;' href='http://twitter.com/#!/"+e.replace("@","")+"'>"+e+"</a>"})}})(jQuery);var Cufon=(function(){var O=function(){return O.replace.apply(null,arguments)};var Z=O.DOM={ready:(function(){var b=false,d={loaded:1,complete:1};var a=[],c=function(){if(b){return}b=true;for(var e;e=a.shift();e()){}};if(document.addEventListener){document.addEventListener("DOMContentLoaded",c,false);window.addEventListener("pageshow",c,false)}if(!window.opera&&document.readyState){(function(){d[document.readyState]?c():setTimeout(arguments.callee,10)})()}if(document.readyState&&document.createStyleSheet){(function(){try{document.body.doScroll("left");c()}catch(e){setTimeout(arguments.callee,1)}})()}S(window,"load",c);return function(e){if(!arguments.length){c()}else{b?e():a.push(e)}}})(),root:function(){return document.documentElement||document.body}};var P=O.CSS={Size:function(b,a){this.value=parseFloat(b);this.unit=String(b).match(/[a-z%]*$/)[0]||"px";this.convert=function(c){return c/a*this.value};this.convertFrom=function(c){return c/this.value*a};this.toString=function(){return this.value+this.unit}},addClass:function(b,a){var c=b.className;b.className=c+(c&&" ")+a;return b},color:L(function(b){var a={};a.color=b.replace(/^rgba\((.*?),\s*([\d.]+)\)/,function(d,c,e){a.opacity=parseFloat(e);return"rgb("+c+")"});return a}),fontStretch:L(function(a){if(typeof a=="number"){return a}if(/%$/.test(a)){return parseFloat(a)/100}return{"ultra-condensed":0.5,"extra-condensed":0.625,condensed:0.75,"semi-condensed":0.875,"semi-expanded":1.125,expanded:1.25,"extra-expanded":1.5,"ultra-expanded":2}[a]||1}),getStyle:function(b){var a=document.defaultView;if(a&&a.getComputedStyle){return new B(a.getComputedStyle(b,null))}if(b.currentStyle){return new B(b.currentStyle)}return new B(b.style)},gradient:L(function(e){var f={id:e,type:e.match(/^-([a-z]+)-gradient\(/)[1],stops:[]},b=e.substr(e.indexOf("(")).match(/([\d.]+=)?(#[a-f0-9]+|[a-z]+\(.*?\)|[a-z]+)/ig);for(var d=0,a=b.length,c;d<a;++d){c=b[d].split("=",2).reverse();f.stops.push([c[1]||d/(a-1),c[0]])}return f}),quotedList:L(function(d){var c=[],b=/\s*((["'])([\s\S]*?[^\\])\2|[^,]+)\s*/g,a;while(a=b.exec(d)){c.push(a[3]||a[1])}return c}),recognizesMedia:L(function(f){var d=document.createElement("style"),c,b,a;d.type="text/css";d.media=f;try{d.appendChild(document.createTextNode("/**/"))}catch(e){}b=I("head")[0];b.insertBefore(d,b.firstChild);c=(d.sheet||d.styleSheet);a=c&&!c.disabled;b.removeChild(d);return a}),removeClass:function(c,b){var a=RegExp("(?:^|\\s+)"+b+"(?=\\s|$)","g");c.className=c.className.replace(a,"");return c},supports:function(c,b){var a=document.createElement("span").style;if(a[c]===undefined){return false}a[c]=b;return a[c]===b},textAlign:function(d,c,a,b){if(c.get("textAlign")=="right"){if(a>0){d=" "+d}}else{if(a<b-1){d+=" "}}return d},textShadow:L(function(e){if(e=="none"){return null}var d=[],f={},a,b=0;var c=/(#[a-f0-9]+|[a-z]+\(.*?\)|[a-z]+)|(-?[\d.]+[a-z%]*)|,/ig;while(a=c.exec(e)){if(a[0]==","){d.push(f);f={};b=0}else{if(a[1]){f.color=a[1]}else{f[["offX","offY","blur"][b++]]=a[2]}}}d.push(f);return d}),textTransform:(function(){var a={uppercase:function(b){return b.toUpperCase()},lowercase:function(b){return b.toLowerCase()},capitalize:function(b){return b.replace(/\b./g,function(c){return c.toUpperCase()})}};return function(d,c){var b=a[c.get("textTransform")];return b?b(d):d}})(),whiteSpace:(function(){var c={inline:1,"inline-block":1,"run-in":1};var b=/^\s+/,a=/\s+$/;return function(g,e,f,d){if(d){if(d.nodeName.toLowerCase()=="br"){g=g.replace(b,"")}}if(c[e.get("display")]){return g}if(!f.previousSibling){g=g.replace(b,"")}if(!f.nextSibling){g=g.replace(a,"")}return g}})()};P.ready=(function(){var a=!P.recognizesMedia("all"),d=false;var c=[],g=function(){a=true;for(var k;k=c.shift();k()){}};var h=I("link"),j=I("style");function b(k){return k.disabled||f(k.sheet,k.media||"screen")}function f(m,q){if(!P.recognizesMedia(q||"all")){return true}if(!m||m.disabled){return false}try{var r=m.cssRules,o;if(r){search:for(var l=0,k=r.length;o=r[l],l<k;++l){switch(o.type){case 2:break;case 3:if(!f(o.styleSheet,o.media.mediaText)){return false}break;default:break search}}}}catch(n){}return true}function e(){if(document.createStyleSheet){return true}var l,k;for(k=0;l=h[k];++k){if(l.rel.toLowerCase()=="stylesheet"&&!b(l)){return false}}for(k=0;l=j[k];++k){if(!b(l)){return false}}return true}Z.ready(function(){if(!d){d=P.getStyle(document.body).isUsable()}if(a||(d&&e())){g()}else{setTimeout(arguments.callee,10)}});return function(k){if(a){k()}else{c.push(k)}}})();function U(c){var b=this.face=c.face,a={"\u0020":1,"\u00a0":1,"\u3000":1};this.glyphs=c.glyphs;this.w=c.w;this.baseSize=parseInt(b["units-per-em"],10);this.family=b["font-family"].toLowerCase();this.weight=b["font-weight"];this.style=b["font-style"]||"normal";this.viewBox=(function(){var e=b.bbox.split(/\s+/);var d={minX:parseInt(e[0],10),minY:parseInt(e[1],10),maxX:parseInt(e[2],10),maxY:parseInt(e[3],10)};d.width=d.maxX-d.minX;d.height=d.maxY-d.minY;d.toString=function(){return[this.minX,this.minY,this.width,this.height].join(" ")};return d})();this.ascent=-parseInt(b.ascent,10);this.descent=-parseInt(b.descent,10);this.height=-this.ascent+this.descent;this.spacing=function(l,n,d){var o=this.glyphs,m,k,f,q=[],e=0,j=-1,h=-1,g;while(g=l[++j]){m=o[g]||this.missingGlyph;if(!m){continue}if(k){e-=f=k[g]||0;q[h]-=f}e+=q[++h]=~~(m.w||this.w)+n+(a[g]?d:0);k=m.k}q.total=e;return q}}function H(){var b={},a={oblique:"italic",italic:"oblique"};this.add=function(c){(b[c.style]||(b[c.style]={}))[c.weight]=c};this.get=function(g,h){var f=b[g]||b[a[g]]||b.normal||b.italic||b.oblique;if(!f){return null}h={normal:400,bold:700}[h]||parseInt(h,10);if(f[h]){return f[h]}var d={1:1,99:0}[h%100],k=[],e,c;if(d===undefined){d=h>400}if(h==500){h=400}for(var j in f){if(!M(f,j)){continue}j=parseInt(j,10);if(!e||j<e){e=j}if(!c||j>c){c=j}k.push(j)}if(h<e){h=e}if(h>c){h=c}k.sort(function(m,l){return(d?(m>=h&&l>=h)?m<l:m>l:(m<=h&&l<=h)?m>l:m<l)?-1:1});return f[k[0]]}}function T(){function c(e,f){if(e.contains){return e.contains(f)}return e.compareDocumentPosition(f)&16}function a(f){var e=f.relatedTarget;if(!e||c(this,e)){return}b(this,f.type=="mouseover")}function d(e){b(this,e.type=="mouseenter")}function b(e,f){setTimeout(function(){var g=F.get(e).options;O.replace(e,f?J(g,g.hover):g,true)},10)}this.attach=function(e){if(e.onmouseenter===undefined){S(e,"mouseover",a);S(e,"mouseout",a)}else{S(e,"mouseenter",d);S(e,"mouseleave",d)}}}function W(){var b=[],c={};function a(g){var d=[],f;for(var e=0;f=g[e];++e){d[e]=b[c[f]]}return d}this.add=function(e,d){c[e]=b.push(d)-1};this.repeat=function(){var d=arguments.length?a(arguments):b,e;for(var f=0;e=d[f++];){O.replace(e[0],e[1],true)}}}function C(){var c={},a=0;function b(d){return d.cufid||(d.cufid=++a)}this.get=function(d){var e=b(d);return c[e]||(c[e]={})}}function B(a){var c={},b={};this.extend=function(d){for(var e in d){if(M(d,e)){c[e]=d[e]}}return this};this.get=function(d){return c[d]!=undefined?c[d]:a[d]};this.getSize=function(e,d){return b[e]||(b[e]=new P.Size(this.get(e),d))};this.isUsable=function(){return !!a}}function S(b,a,c){if(b.addEventListener){b.addEventListener(a,c,false)}else{if(b.attachEvent){b.attachEvent("on"+a,function(){return c.call(b,window.event)})}}}function X(b,a){var c=F.get(b);if(c.options){return b}if(a.hover&&a.hoverables[b.nodeName.toLowerCase()]){D.attach(b)}c.options=a;return b}function L(a){var b={};return function(c){if(!M(b,c)){b[c]=a.apply(null,arguments)}return b[c]}}function E(e,d){var a=P.quotedList(d.get("fontFamily").toLowerCase()),c;for(var b=0;c=a[b];++b){if(K[c]){return K[c].get(d.get("fontStyle"),d.get("fontWeight"))}}return null}function I(a){return document.getElementsByTagName(a)}function M(b,a){return b.hasOwnProperty(a)}function J(){var b={},a,e;for(var d=0,c=arguments.length;a=arguments[d],d<c;++d){for(e in a){if(M(a,e)){b[e]=a[e]}}}return b}function Q(d,m,b,n,e,c){var k=document.createDocumentFragment(),g;if(m===""){return k}var l=n.separate;var h=m.split(R[l]),a=(l=="words");if(a&&V){if(/^\s/.test(m)){h.unshift("")}if(/\s$/.test(m)){h.push("")}}for(var j=0,f=h.length;j<f;++j){g=ab[n.engine](d,a?P.textAlign(h[j],b,j,f):h[j],b,n,e,c,j<f-1);if(g){k.appendChild(g)}}return k}function N(c,m){var b=c.nodeName.toLowerCase();if(m.ignore[b]){return}var d=!m.textless[b];var a=P.getStyle(X(c,m)).extend(m);var e=E(c,a),f,k,h,g,l,j;if(!e){return}for(f=c.firstChild;f;f=h){k=f.nodeType;h=f.nextSibling;if(d&&k==3){if(g){g.appendData(f.data);c.removeChild(f)}else{g=f}if(h){continue}}if(g){c.replaceChild(Q(e,P.whiteSpace(g.data,a,g,j),a,m,f,c),g);g=null}if(k==1){if(f.firstChild){if(f.nodeName.toLowerCase()=="cufon"){ab[m.engine](e,null,a,m,f,c)}else{arguments.callee(f,m)}}j=f}}}var V=" ".split(/\s+/).length==0;var F=new C();var D=new T();var aa=new W();var G=false;var ab={},K={},Y={autoDetect:false,engine:null,forceHitArea:false,hover:false,hoverables:{a:true},ignore:{applet:1,canvas:1,col:1,colgroup:1,head:1,iframe:1,map:1,optgroup:1,option:1,script:1,select:1,style:1,textarea:1,title:1,pre:1},printable:true,selector:(window.Sizzle||(window.jQuery&&function(a){return jQuery(a)})||(window.dojo&&dojo.query)||(window.Ext&&Ext.query)||(window.YAHOO&&YAHOO.util&&YAHOO.util.Selector&&YAHOO.util.Selector.query)||(window.$$&&function(a){return $$(a)})||(window.$&&function(a){return $(a)})||(document.querySelectorAll&&function(a){return document.querySelectorAll(a)})||I),separate:"words",textless:{dl:1,html:1,ol:1,table:1,tbody:1,thead:1,tfoot:1,tr:1,ul:1},textShadow:"none"};var R={words:/\s/.test("\u00a0")?/[^\S\u00a0]+/:/\s+/,characters:"",none:/^/};O.now=function(){Z.ready();return O};O.refresh=function(){aa.repeat.apply(aa,arguments);return O};O.registerEngine=function(b,a){if(!a){return O}ab[b]=a;return O.set("engine",b)};O.registerFont=function(c){if(!c){return O}var a=new U(c),b=a.family;if(!K[b]){K[b]=new H()}K[b].add(a);return O.set("fontFamily",'"'+b+'"')};O.replace=function(c,b,a){b=J(Y,b);if(!b.engine){return O}if(!G){P.addClass(Z.root(),"cufon-active cufon-loading");P.ready(function(){P.addClass(P.removeClass(Z.root(),"cufon-loading"),"cufon-ready")});G=true}if(b.hover){b.forceHitArea=true}if(b.autoDetect){delete b.fontFamily}if(typeof b.textShadow=="string"){b.textShadow=P.textShadow(b.textShadow)}if(typeof b.color=="string"&&/^-/.test(b.color)){b.textGradient=P.gradient(b.color)}else{delete b.textGradient}if(!a){aa.add(c,arguments)}if(c.nodeType||typeof c=="string"){c=[c]}P.ready(function(){for(var e=0,d=c.length;e<d;++e){var f=c[e];if(typeof f=="string"){O.replace(b.selector(f),b,true)}else{N(f,b)}}});return O};O.set=function(a,b){Y[a]=b;return O};return O})();Cufon.registerEngine("vml",(function(){var n=document.namespaces;if(!n){return}n.add("cvml","urn:schemas-microsoft-com:vml");n=null;var k=document.createElement("cvml:shape");k.style.behavior="url(#default#VML)";if(!k.coordsize){return}k=null;var r=(document.documentMode||0)<8;document.write(('<style type="text/css">cufoncanvas{text-indent:0;}@media screen{cvml\\:shape,cvml\\:rect,cvml\\:fill,cvml\\:shadow{behavior:url(#default#VML);display:block;antialias:true;position:absolute;}cufoncanvas{position:absolute;text-align:left;}cufon{display:inline-block;position:relative;vertical-align:'+(r?"middle":"text-bottom")+";}cufon cufontext{position:absolute;left:-10000in;font-size:1px;}a cufon{cursor:pointer}}@media print{cufon cufoncanvas{display:none;}}</style>").replace(/;/g,"!important;"));function l(a,b){return j(a,/(?:em|ex|%)$|^[a-z-]+$/i.test(b)?"1em":b)}function j(d,e){if(e==="0"){return 0}if(/px$/i.test(e)){return parseFloat(e)}var c=d.style.left,b=d.runtimeStyle.left;d.runtimeStyle.left=d.currentStyle.left;d.style.left=e.replace("%","em");var a=d.style.pixelLeft;d.style.left=c;d.runtimeStyle.left=b;return a}function o(d,c,b,f){var a="computed"+f,e=c[a];if(isNaN(e)){e=c.get(f);c[a]=e=(e=="normal")?0:~~b.convertFrom(j(d,e))}return e}var q={};function m(f){var g=f.id;if(!q[g]){var d=f.stops,e=document.createElement("cvml:fill"),a=[];e.type="gradient";e.angle=180;e.focus="0";e.method="sigma";e.color=d[0][1];for(var c=1,b=d.length-1;c<b;++c){a.push(d[c][0]*100+"% "+d[c][1])}e.colors=a.join(",");e.color2=d[b][1];q[g]=e}return q[g]}return function(d,aj,aR,ad,ao,e,aN){var au=(aj===null);if(au){aj=ao.alt}var al=d.viewBox;var ay=aR.computedFontSize||(aR.computedFontSize=new Cufon.CSS.Size(l(e,aR.get("fontSize"))+"px",d.baseSize));var aQ,aA;if(au){aQ=ao;aA=ao.firstChild}else{aQ=document.createElement("cufon");aQ.className="cufon cufon-vml";aQ.alt=aj;aA=document.createElement("cufoncanvas");aQ.appendChild(aA);if(ad.printable){var aT=document.createElement("cufontext");aT.appendChild(document.createTextNode(aj));aQ.appendChild(aT)}if(!aN){aQ.appendChild(document.createElement("cvml:shape"))}}var ab=aQ.style;var aD=aA.style;var ap=ay.convert(al.height),g=Math.ceil(ap);var aL=g/ap;var az=aL*Cufon.CSS.fontStretch(aR.get("fontStretch"));var aJ=al.minX,aH=al.minY;aD.height=g;aD.top=Math.round(ay.convert(aH-d.ascent));aD.left=Math.round(ay.convert(aJ));ab.height=ay.convert(d.height)+"px";var ag=aR.get("color");var h=Cufon.CSS.textTransform(aj,aR).split("");var aq=d.spacing(h,o(e,aR,ay,"letterSpacing"),o(e,aR,ay,"wordSpacing"));if(!aq.length){return null}var an=aq.total;var aO=-aJ+an+(al.width-aq[aq.length-1]);var aa=ay.convert(aO*az),aP=Math.round(aa);var ax=aO+","+al.height,ar;var am="r"+ax+"ns";var aI=ad.textGradient&&m(ad.textGradient);var aw=d.glyphs,aF=0;var ak=ad.textShadow;var c=-1,b=0,aM;while(aM=h[++c]){var ae=aw[h[c]]||d.missingGlyph,aK;if(!ae){continue}if(au){aK=aA.childNodes[b];while(aK.firstChild){aK.removeChild(aK.firstChild)}}else{aK=document.createElement("cvml:shape");aA.appendChild(aK)}aK.stroked="f";aK.coordsize=ax;aK.coordorigin=ar=(aJ-aF)+","+aH;aK.path=(ae.d?"m"+ae.d+"xe":"")+"m"+ar+am;aK.fillcolor=ag;if(aI){aK.appendChild(aI.cloneNode(false))}var f=aK.style;f.width=aP;f.height=g;if(ak){var aE=ak[0],aC=ak[1];var ac=Cufon.CSS.color(aE.color),aS;var av=document.createElement("cvml:shadow");av.on="t";av.color=ac.color;av.offset=aE.offX+","+aE.offY;if(aC){aS=Cufon.CSS.color(aC.color);av.type="double";av.color2=aS.color;av.offset2=aC.offX+","+aC.offY}av.opacity=ac.opacity||(aS&&aS.opacity)||1;aK.appendChild(av)}aF+=aq[b++]}var at=aK.nextSibling,aG,a;if(ad.forceHitArea){if(!at){at=document.createElement("cvml:rect");at.stroked="f";at.className="cufon-vml-cover";aG=document.createElement("cvml:fill");aG.opacity=0;at.appendChild(aG);aA.appendChild(at)}a=at.style;a.width=aP;a.height=g}else{if(at){aA.removeChild(at)}}ab.width=Math.max(Math.ceil(ay.convert(an*az)),0);if(r){var aB=aR.computedYAdjust;if(aB===undefined){var af=aR.get("lineHeight");if(af=="normal"){af="1em"}else{if(!isNaN(af)){af+="em"}}aR.computedYAdjust=aB=0.5*(j(e,af)-parseFloat(ab.height))}if(aB){ab.marginTop=Math.ceil(aB)+"px";ab.marginBottom=aB+"px"}}return aQ}})());Cufon.registerEngine("canvas",(function(){var h=document.createElement("canvas");if(!h||!h.getContext||!h.getContext.apply){return}h=null;var g=Cufon.CSS.supports("display","inline-block");var l=!g&&(document.compatMode=="BackCompat"||/frameset|transitional/i.test(document.doctype.publicId));var m=document.createElement("style");m.type="text/css";m.appendChild(document.createTextNode(("cufon{text-indent:0;}@media screen,projection{cufon{display:inline;display:inline-block;position:relative;vertical-align:middle;"+(l?"":"font-size:1px;line-height:1px;")+"}cufon cufontext{display:-moz-inline-box;display:inline-block;width:0;height:0;overflow:hidden;text-indent:-10000in;}"+(g?"cufon canvas{position:relative;}":"cufon canvas{position:absolute;}")+"}@media print{cufon{padding:0;}cufon canvas{display:none;}}").replace(/;/g,"!important;")));document.getElementsByTagName("head")[0].appendChild(m);function k(s,b){var q=0,f=0;var a=[],r=/([mrvxe])([^a-z]*)/g,d;generate:for(var c=0;d=r.exec(s);++c){var e=d[2].split(",");switch(d[1]){case"v":a[c]={m:"bezierCurveTo",a:[q+~~e[0],f+~~e[1],q+~~e[2],f+~~e[3],q+=~~e[4],f+=~~e[5]]};break;case"r":a[c]={m:"lineTo",a:[q+=~~e[0],f+=~~e[1]]};break;case"m":a[c]={m:"moveTo",a:[q=~~e[0],f=~~e[1]]};break;case"x":a[c]={m:"closePath"};break;case"e":break generate}b[a[c].m].apply(b,a[c].a)}return a}function j(e,d){for(var c=0,b=e.length;c<b;++c){var a=e[c];d[a.m].apply(d,a.a)}}return function(aC,aD,ap,ax,d,aE){var af=(aD===null);if(af){aD=d.getAttribute("alt")}var a=aC.viewBox;var ai=ap.getSize("fontSize",aC.baseSize);var c=0,an=0,al=0,az=0;var aH=ax.textShadow,ah=[];if(aH){for(var aA=aH.length;aA--;){var x=aH[aA];var ag=ai.convertFrom(parseFloat(x.offX));var ac=ai.convertFrom(parseFloat(x.offY));ah[aA]=[ag,ac];if(ac<c){c=ac}if(ag>an){an=ag}if(ac>al){al=ac}if(ag<az){az=ag}}}var aI=Cufon.CSS.textTransform(aD,ap).split("");var f=aC.spacing(aI,~~ai.convertFrom(parseFloat(ap.get("letterSpacing"))||0),~~ai.convertFrom(parseFloat(ap.get("wordSpacing"))||0));if(!f.length){return null}var aa=f.total;an+=a.width-f[f.length-1];az+=a.minX;var av,ak;if(af){av=d;ak=d.firstChild}else{av=document.createElement("cufon");av.className="cufon cufon-canvas";av.setAttribute("alt",aD);ak=document.createElement("canvas");av.appendChild(ak);if(ax.printable){var aw=document.createElement("cufontext");aw.appendChild(document.createTextNode(aD));av.appendChild(aw)}}var b=av.style;var ab=ak.style;var ad=ai.convert(a.height);var aG=Math.ceil(ad);var aj=aG/ad;var y=aj*Cufon.CSS.fontStretch(ap.get("fontStretch"));var ae=aa*y;var ar=Math.ceil(ai.convert(ae+an-az));var am=Math.ceil(ai.convert(a.height-c+al));ak.width=ar;ak.height=am;ab.width=ar+"px";ab.height=am+"px";c+=a.minY;ab.top=Math.round(ai.convert(c-aC.ascent))+"px";ab.left=Math.round(ai.convert(az))+"px";var at=Math.max(Math.ceil(ai.convert(ae)),0)+"px";if(g){b.width=at;b.height=ai.convert(aC.height)+"px"}else{b.paddingLeft=at;b.paddingBottom=(ai.convert(aC.height)-1)+"px"}var aF=ak.getContext("2d"),e=ad/a.height;aF.scale(e,e*aj);aF.translate(-az,-c);aF.save();function ay(){var r=aC.glyphs,n,q=-1,o=-1,s;aF.scale(y,1);while(s=aI[++q]){var n=r[aI[q]]||aC.missingGlyph;if(!n){continue}if(n.d){aF.beginPath();if(n.code){j(n.code,aF)}else{n.code=k("m"+n.d,aF)}aF.fill()}aF.translate(f[++o],0)}aF.restore()}if(aH){for(var aA=aH.length;aA--;){var x=aH[aA];aF.save();aF.fillStyle=x.color;aF.translate.apply(aF,ah[aA]);ay()}}var aq=ax.textGradient;if(aq){var aB=aq.stops,ao=aF.createLinearGradient(0,a.minY,0,a.maxY);for(var aA=0,au=aB.length;aA<au;++aA){ao.addColorStop.apply(ao,aB[aA])}aF.fillStyle=ao}else{aF.fillStyle=ap.get("color")}ay();return av}})());$(document).ready(function(){$(".ContentIconsUL").prependTo(".content");$(".VaCalendar ul > li").not(".VaLiHeader").find("li::nth-child(7n+1)").css("clear","left");$(".CustomTabs .ui-tabs .ui-tabs-nav li").hover(function(){$(this).addClass("ui-state-hover")},function(){$(this).removeClass("ui-state-hover")});$(".nieuwsfeed").each(function(){$(this).attr("href","/NieuwsFeedClick.aspx?ref="+$(this).attr("href")+"&a=1")});$.ajaxSetup({type:"POST",contentType:"application/json; charset=utf-8",dataType:"json"});$("input[type=submit]:not(.Submit)").addClass("Submit");$("input[type=text]:not(.Text), input[type=password]:not(.Text)").addClass("Text");$("input[type=radio]").css("border","none");$("a.selected").parents("li").find("a:first").addClass("selected");$(".Ligatus iframe").css("width","100%");$(".QuickSearch").keyup(function(a){if(a.which==13){$("#quickSearchBtn").click()}}).focus(function(){if($(this).val()=="zoek..."){$(this).val("")}}).blur(function(){if($(this).val()==""){$(this).val("zoek...")}});$("#quickSearchBtn").click(function(){window.location=$(this).attr("href")+$("#quickSearchTb").val();return false});$(".ellipsis").each(function(){inhoud_afbreken(this,false,true)});UpdateTooltips();$.datepicker.regional.nl={closeText:"Sluiten",prevText:"",nextText:"",currentText:"Vandaag",monthNames:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"],monthNamesShort:["jan","feb","maa","apr","mei","jun","jul","aug","sep","okt","nov","dec"],dayNames:["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"],dayNamesShort:["zon","maa","din","woe","don","vri","zat"],dayNamesMin:["zo","ma","di","wo","do","vr","za"],dateFormat:"dd-mm-yy",firstDay:0,isRTL:false};$.datepicker.setDefaults($.datepicker.regional.nl);$.tablesorter.addParser({id:"attr_volgorde",is:function(a){return false},format:function(b,c,a){return parseInt($(a).attr("volgorde"))},type:"numeric"})});$(window).unload(function(){$(".PopupInfo").remove()});$(document).ready(function(){$("a[rel^='prettyPhoto']").prettyPhoto({animationSpeed:"fast",padding:40,opacity:0.35,showTitle:true,allowresize:true,counter_separator_label:" van ",theme:"light_rounded",callback:function(){}})});$(document).ready(function(){UpdateTooltips()});$(document).ajaxComplete(function(a,b,c){UpdateTooltips()});function UpdateTooltips(){$("body *[title]").not("[rel^=prettyPhoto]").FsTooltip()}function inhoud_afbreken(c,k,a){var j=c.clientWidth;if(j&&c.scrollWidth>j){var h=[c.lastChild],b,f,g,d;while((b=h.pop())){do{if(b.nodeType==1){if((f=b.previousSibling)){h.push(f)}b=b.lastChild;continue}if(b.nodeType==3&&!!/[^\t\n\r ]/.test(b.data)){g=b.nodeValue;if(a){$(c).attr("title",g)}d=Math.floor((g.length*j)/c.scrollWidth)-1;if(d>0){do{b.nodeValue=g.substr(0,--d)+"..."}while(d&&(c.scrollWidth>j||(k&&b.nodeValue.charAt(d-1)!=" ")));if(d>0){return}}b.nodeValue=""}b=b.previousSibling}while(b)}}}(function(a){a.fn.FsTooltip=function(b){return this.each(function(){if(a(this).attr("title").length>0){a(this).data("FsTitle",a(this).attr("title")).removeAttr("title").mouseover(function(c){a.fn.FsTooltip.mouseover(c,a(this))}).mouseout(function(){a(".PopupInfo:first").remove()})}})};a.fn.FsTooltip.mouseover=function(d,b){var c=a("<div/>",document).prependTo("body").addClass("PopupInfo").html(a(b).data("FsTitle")).show().css({top:(d.pageY+10),left:0,right:"auto"});if(d.clientX+a(c).width()+20>a(document).width()){a(c).css({left:"auto",right:(a(document).width()-d.clientX)+"px"})}else{a(c).css({right:"auto",left:(d.clientX+10)+"px"})}}})(jQuery);$(document).ready(function(){$("#InfoBalk").sortable({handle:"h2",axis:"y",opacity:0.8,cursor:"move",items:"> li:not(.disablesorting)",update:function(d,e){var a=$("#InfoBalk").sortable("toArray");var c="";for(var b=0;b<=a.length-1;b++){if($("#"+a[b]).css("display")!="none"){c+=a[b]+","}}$.ajax({url:"/Controls/InfoBalk/Ws.asmx/BlokVolgordeWijzigen",data:"{SortIds: '"+c+"'}"})}});$(".item.sortable .BtnSluiten").live("click",function(){var a=$(this).parents("li:first");$.ajax({url:"/Controls/InfoBalk/Ws.asmx/BlokVerwijderen",data:"{UniekBlokId: '"+a.attr("id")+"'}",success:function(b){a.remove()}});if($("#InfoBalk > li:visible").length==0){$("#InfoBalkUitleg").show()}return false});$("#InfoBlokkenAanUit").dialog({autoOpen:false,modal:true,buttons:{Ok:function(){$(this).dialog("close")}}});$("#InfoBalkWijzigen").click(function(){$("#InfoBlokkenAanUit").dialog("open");return false});$("#InfoBlokkenAanUit a").click(function(){var a=$(this).next().val();$(this).parent().html($(this).html());$.ajax({url:"/Controls/InfoBalk/Ws.asmx/BlokToevoegen",data:"{NaamIntern: '"+a+"'}",success:function(b){$("#InfoBalk").append(b.d);$("#InfoBalk").trigger(a+"InfoBlokLoaded");$("#InfoBalk").trigger("InfoBlokLoaded")}});return false})});$(document).ready(function(){$("#InfoBalk").bind("UitslagenEnStanden_ProgrammaInfoBlokLoaded",function(){if($("#IbVolgendeWedstrijd").length>1&&$("#IbVolgendeWedstrijd").html().trim()==""){$(".IbVolgendeWedstrijd").hide()}else{$("#IbKiesTeam").hide()}$("#IbWijzigTeamBtn").click(function(){$("#IbKiesTeam").show();$("#IbKiesTeam select").removeAttr("disabled").get(0).selectedIndex=0;$(".IbVolgendeWedstrijd").hide();return false});$(".IbProgrammaTeamsDd").change(function(){var a=$(this);$(this).attr("disabled","disabled");$.ajax({url:"/Modules/UitslagenEnStanden/Front/InfoBalk/Ws.asmx/GetProgrammaHtml",data:"{TeamId: "+a.get(0).options[a.get(0).selectedIndex].value+", UniekBlokId: '"+$(this).parents(".item.sortable").get(0).id+"'}",success:function(b){$("#IbVolgendeWedstrijd").html(b.d);$("#IbKiesTeam").hide();$(".IbVolgendeWedstrijd").show()}})})});$("#InfoBalk").bind("UitslagenEnStanden_StandInfoBlokLoaded",function(){if($("#IbStand li").length==1){$("#IbStand").hide()}else{$("#IbStandKiesTeam").hide()}$("#IbStandWijzigTeam").click(function(){$("#IbStandKiesTeam").show();$("#IbStandKiesTeam select").removeAttr("disabled").get(0).selectedIndex=0;$("#IbStand").hide();return false});$(".IbStandTeamsDd").change(function(){var a=$(this);$(this).attr("disabled","disabled");$.ajax({url:"/Modules/UitslagenEnStanden/Front/InfoBalk/Ws.asmx/GetStandHtml",data:"{TeamId: "+a.get(0).options[a.get(0).selectedIndex].value+", UniekBlokId: '"+$(this).parents(".item.sortable").get(0).id+"'}",success:function(b){$("#IbStand li:not(:last)").remove();$("#IbStand").prepend(b.d).show();$("#IbStandKiesTeam").hide();$("#IbStandWijzigTeam").show()}})})});$("#InfoBalk").bind("UitslagenEnStanden_UitslagenInfoBlokLoaded",function(){if($("#IbUitslagen li").length==1){$("#IbUitslagen").hide();$("#IbUitslagenWijzigTeam").hide()}else{$("#IbUitslagenKiesTeam").hide()}$("#IbUitslagenWijzigTeam a").click(function(){$("#IbUitslagenKiesTeam").show();$("#IbUitslagenKiesTeam select").removeAttr("disabled").get(0).selectedIndex=0;$("#IbUitslagen").hide();return false});$(".IbUitslagenTeamsDd").change(function(){var a=$(this);$(this).attr("disabled","disabled");$.ajax({url:"/Modules/UitslagenEnStanden/Front/InfoBalk/Ws.asmx/GetUitslagenHtml",data:"{TeamId: "+a.get(0).options[a.get(0).selectedIndex].value+", UniekBlokId: '"+$(this).parents(".item.sortable").get(0).id+"'}",success:function(b){$("#IbUitslagen li:not(:last)").remove();$("#IbUitslagen").prepend(b.d).show();$("#IbUitslagenKiesTeam").hide();$("#IbUitslagenWijzigTeam").show()}})})});$("#InfoBalk").bind("UitslagenEnStanden_TopscorersInfoBlokLoaded",function(){if($("#IbTopscorers li").length==1){$("#IbTopscorers").hide();$("#IbTopscorersWijzigTeam").hide()}else{$("#IbTopscorersKiesTeam").hide()}$("#IbTopscorersWijzigTeam a").click(function(){$("#IbTopscorersKiesTeam").show();$("#IbTopscorersKiesTeam select").removeAttr("disabled").get(0).selectedIndex=0;$("#IbTopscorers").hide();return false});$(".IbTopscorersTeamsDd").change(function(){var a=$(this);$(this).attr("disabled","disabled");$.ajax({url:"/Modules/UitslagenEnStanden/Front/InfoBalk/Ws.asmx/GetTopscorersHtml",data:"{TeamId: "+a.get(0).options[a.get(0).selectedIndex].value+", UniekBlokId: '"+$(this).parents(".item.sortable").get(0).id+"'}",success:function(b){$("#IbTopscorers").html(b.d).show();$("#IbTopscorersKiesTeam").hide();$("#IbTopscorersWijzigTeam").show()}})})});$("#InfoBalk").bind("NieuwsItem_TwitterInfoBlokLoaded",function(){$("#TweetUL").FsTwitterSearch($("#TweetUL").attr("q"),{aantal:5,pagina:2,poll_interval:10000,item_html_format:"<li style='padding-right: 4px; display:none;'><a target='_blank' style='display: inline; font-weight: bold;' href='http://twitter.com/#!/{from_user}'>{from_user}</a><span> - {text}</span></li>",on_no_results:function(a){if(a.pagina==2){a.poll_interval=1;a.pagina=1}else{a.poll_interval=10000;if($("#geenTweets").html()=="Laden..."){$("#geenTweets").html("Geen tweets gevonden")}}},before_result_insert:function(b,a,c){$("#geenTweets").remove();if(c.pagina==2){c.pagina=1}c.poll_interval=10000},after_result_insert:function(){if($("#TweetUL li").length>5){$("#TweetUL li:last").remove()}}})});$("#InfoBalk").trigger("UitslagenEnStanden_ProgrammaInfoBlokLoaded");$("#InfoBalk").trigger("UitslagenEnStanden_StandInfoBlokLoaded");$("#InfoBalk").trigger("UitslagenEnStanden_UitslagenInfoBlokLoaded");$("#InfoBalk").trigger("UitslagenEnStanden_TopscorersInfoBlokLoaded");$("#InfoBalk").trigger("NieuwsItem_TwitterInfoBlokLoaded")});Date.prototype.ticks=function(a){this.day=a.getDate();this.month=a.getMonth()+1;this.year=a.getFullYear();this.hour=a.getHours();this.minute=a.getMinutes();this.second=a.getSeconds();this.ms=a.getMilliseconds();this.monthToDays=function(e,c){var b=0;var d=0;if((e%4==0)&&((e%100!=0)||((e%100==0)&&(e%400==0)))){b++}switch(c){case 0:return 0;case 1:d=31;break;case 2:d=59;break;case 3:d=90;break;case 4:d=120;break;case 5:d=151;break;case 6:d=181;break;case 7:d=212;break;case 8:d=243;break;case 9:d=273;break;case 10:d=304;break;case 11:d=334;break;case 12:d=365;break}if(c>1){d+=b}return d};this.dateToTicks=function(v,t,n){var j=parseInt((v-1)*365);var k=parseInt((v-1)/4);var l=parseInt((v-1)/100);var m=parseInt((j+k)-l);var o=parseInt((v-1)/400);var q=parseInt(m+o);var u=this.monthToDays(v,t-1);var r=parseInt((q+u)+n);var s=parseInt(r-1);return s*864000000000};this.timeToTicks=function(b,c,d){return(((b*3600)+c*60)+d)*10000000};return this.dateToTicks(this.year,this.month,this.day)+this.timeToTicks(this.hour,this.minute,this.second)+(this.ms*10000)};$(document).ready(function(){$("#IbPoll button").click(function(){if($("#IbPoll input:checked").length>0){$.ajax({url:"/Modules/Poll/Front/InfoBalk/Ws.asmx/SubmitAntwoord",data:"{AntwoordId: "+$("#IbPoll input:checked").val()+"}",success:function(a){$("#IbPoll").html(a.d);MaakBalken()}})}return false});MaakBalken()});function MaakBalken(){$("#IbPoll .Balk").each(function(){var a=parseInt($(this).html());$(this).html("").progressbar({value:a})})}$(document).ready(function(){var e={sensitivity:3,interval:200,timeout:500,over:function(){$(this).siblings("li").find("ul").hide();$(this).find("> ul").show();var h=$(window).height();var j=$(window).scrollTop();var k=$(this).find("> ul");if(k[0]){var m=k.offset();var n=m.top;var l=k.height();if((n+l)>(h+j)){var f=(n+l)-(h+j);var g=Math.ceil(f/26);k.css("top","-"+g*26+"px")}}},out:function(){$(this).find("> ul").hide();$(this).find("> ul").css("top","0px")}};$(".menu li").hoverIntent(e);var b=0;var a=$("#BreadCrumb").width();$("#BreadCrumb li").each(function(){b+=$(this).outerWidth()});if(b>a){var d=$("#BreadCrumb li:last span");var c=0;while(c!=50){b-=d.outerWidth();d.html(d.html().substring(0,d.html().length-(c+3))+"...");b+=d.outerWidth();if(b<a){break}c++}}$("#BreadCrumb .HuidigItem").hover(function(){$("ul",this).show();if($("ul",this).length==0){$(this).css($(this).offset()).css("position","absolute").css("margin",0);var f=$(this);var g=$("<ul />").appendTo(f);$.ajax({url:"/Controls/BreadCrumbWs.asmx/GetSiblings",data:"{MenuItemId: '"+$("input",f).val()+"'}",success:function(h){if(h.d==""){f.unbind().removeClass("HuidigItem").attr("style","")}else{g.html(h.d)}}})}},function(){$("ul",this).hide()})});
