(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 s=(f.type=="mouseover"?f.fromElement:f.toElement)||f.relatedTarget;while(s&&s!=this){try{s=s.parentNode}catch(f){s=this}}if(s==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(B){var g=true;var n=false;var t=[];var f=0;var w;var x;var A;var ab;var h="image";var ac;var q=j();a(window).scroll(function(){q=j();e()});a(window).resize(function(){e();z()});a(document).keypress(function(C){switch(C.keyCode){case 37:if(f==1){return}s("previous");break;case 39:if(f==setCount){return}s("next");break;case 27:o();break}});B=jQuery.extend({animationSpeed:"normal",padding:40,opacity:0.8,showTitle:true,allowresize:true,counter_separator_label:"/",theme:"light_rounded",callback:function(){}},B);if(a.browser.msie&&a.browser.version==6){B.theme="light_square"}a(this).each(function(){var E=false;var D=false;var F=0;var C=0;t[t.length]=this;a(this).bind("click",function(){m(this);return false})});function m(C){ac=a(C);theRel=ac.attr("rel");galleryRegExp=/\[(?:.*)\]/;theGallery=galleryRegExp.exec(theRel);isSet=false;setCount=0;d();for(i=0;i<t.length;i++){if(a(t[i]).attr("rel").indexOf(theGallery)!=-1){setCount++;if(setCount>1){isSet=true}if(a(t[i]).attr("href")==ac.attr("href")){f=setCount;arrayPosition=i}}}aa();$pp_pic_holder.find("p.currentTextHolder").text(f+B.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},B.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},B.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(B.animationSpeed,function(){a(this).find("object,embed").css("visibility","visible")});l();if(E){a("a.pp_expand,a.pp_contract").fadeIn(B.animationSpeed)}})};function l(){if(isSet&&h=="image"){$pp_pic_holder.find(".pp_hoverContainer").fadeIn(B.animationSpeed)}else{$pp_pic_holder.find(".pp_hoverContainer").hide()}$pp_pic_holder.find(".pp_details").fadeIn(B.animationSpeed);if(B.showTitle&&hasTitle){$ppt.css({top:$pp_pic_holder.offset().top-22,left:$pp_pic_holder.offset().left+(B.padding/2),display:"none"});$ppt.fadeIn(B.animationSpeed)}}function v(){$pp_pic_holder.find(".pp_hoverContainer,.pp_details").fadeOut(B.animationSpeed);$pp_pic_holder.find("#pp_full_res object,#pp_full_res embed").css("visibility","hidden");$pp_pic_holder.find("#pp_full_res").fadeOut(B.animationSpeed,function(){a(".pp_loaderIcon").show();c()});$ppt.fadeOut(B.animationSpeed)}function s(C){if(C=="previous"){arrayPosition--;f--}else{arrayPosition++;f++}if(!g){g=true}v();a("a.pp_expand,a.pp_contract").fadeOut(B.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(B.animationSpeed);a("div.pp_overlay").fadeOut(B.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")}B.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(){s("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(){s("previous");return false})}$pp_pic_holder.find("p.currentTextHolder").text(f+B.counter_separator_label+setCount);ac=(isSet)?a(t[arrayPosition]):ac;d();if(ac.attr("title")){$pp_pic_holder.find(".pp_description").show().html(unescape(ac.attr("title")))}else{$pp_pic_holder.find(".pp_description").hide().text("")}if(ac.find("img").attr("alt")&&B.showTitle){hasTitle=true;$ppt.html(unescape(ac.find("img").attr("alt")))}else{hasTitle=false}}function u(D,C){hasBeenResized=false;y(D,C);imageWidth=D;imageHeight=C;windowHeight=a(window).height();windowWidth=a(window).width();if(((ab>windowWidth)||(A>windowHeight))&&g&&B.allowresize&&!n){hasBeenResized=true;notFitting=true;while(notFitting){if((ab>windowWidth)){imageWidth=(windowWidth-200);imageHeight=(C/D)*imageWidth}else{if((A>windowHeight)){imageHeight=(windowHeight-200);imageWidth=(D/C)*imageHeight}else{notFitting=false}}A=imageHeight;ab=imageWidth}y(imageWidth,imageHeight)}return{width:imageWidth,height:imageHeight,containerHeight:A,containerWidth:ab,contentHeight:w,contentWidth:x,resized:hasBeenResized}}function y(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")));w=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"));x=D;A=w+$pp_pic_holder.find(".ppt").height()+$pp_pic_holder.find(".pp_top").height()+$pp_pic_holder.find(".pp_bottom").height();ab=D+B.padding}function d(){if(ac.attr("href").match(/youtube\.com\/watch/i)){h="youtube"}else{if(ac.attr("href").indexOf(".mov")!=-1){h="quicktime"}else{if(ac.attr("href").indexOf(".swf")!=-1){h="flash"}else{if(ac.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)+(B.padding/2)})}}function c(){k();if(h=="image"){imgPreloader=new Image();nextImage=new Image();if(isSet&&f>setCount){nextImage.src=a(t[arrayPosition+1]).attr("href")}prevImage=new Image();if(isSet&&t[arrayPosition-1]){prevImage.src=a(t[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",ac.attr("href"));imgPreloader.onload=function(){var C=u(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=ac.attr("href")}else{movie_width=(parseFloat(b("width",ac.attr("href"))))?b("width",ac.attr("href")):"425";movie_height=(parseFloat(b("height",ac.attr("href"))))?b("height",ac.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=u(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",ac.attr("href"))+'" /><embed src="http://www.youtube.com/v/'+b("v",ac.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="'+ac.attr("href")+'"><param name="autoplay" value="true"><param name="type" value="video/quicktime"><embed src="'+ac.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=ac.attr("href");flash_vars=flash_vars.substring(ac.attr("href").indexOf("flashvars")+10,ac.attr("href").length);filename=ac.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=ac.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 z(){a("div.pp_overlay").css({height:a(document).height(),width:a(window).width()})}function aa(){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'+B.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(B.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}v();$pp_pic_holder.find(".pp_hoverContainer, #pp_full_res, .pp_details").fadeOut(B.animationSpeed,function(){c()});return false});$pp_pic_holder.find(".pp_previous, .pp_arrow_previous").bind("click",function(){s("previous");return false});$pp_pic_holder.find(".pp_next, .pp_arrow_next").bind("click",function(){s("next");return false});$pp_pic_holder.find(".pp_hoverContainer").css({"margin-left":B.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(B.animationSpeed,B.opacity,function(){$pp_pic_holder.css("opacity",0).fadeIn(B.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,s,q,k,o){var j=0;if(jQuery.isFunction(s)){if(!k){k=q}q=s;s=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[s]){m[s]={}}q.timerID=q.timerID||this.guid++;var t=function(){if(o&&this.inProgress){return}this.inProgress=true;if((++j>k&&k!==0)||q.call(n,j)===false){jQuery.timer.remove(n,s,q)}this.inProgress=false};t.timerID=q.timerID;if(!m[s][q.timerID]){m[s][q.timerID]=window.setInterval(t,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,t){var u="2.9999";if(a.support==t){a.support={opacity:!(a.browser.msie)}}function f(v){a.fn.cycle.debug&&m(v)}function m(){window.console&&console.log&&console.log("[cycle] "+Array.prototype.join.call(arguments," "))}a.expr[":"].paused=function(v){return v.cyclePause};a.fn.cycle=function(x,v){var w={s:this.selector,c:this.context};if(this.length===0&&x!="stop"){if(!a.isReady&&w.s){m("DOM not ready, queuing slideshow");a(function(){a(w.s,w.c).cycle(x,v)});return this}m("terminating; zero elements found by selector"+(a.isReady?"":" (DOM not ready)"));return this}return this.each(function(){var B=l(this,x,v);if(B===false){return}B.updateActivePagerLink=B.updateActivePagerLink||a.fn.cycle.updateActivePagerLink;if(this.cycleTimeout){clearTimeout(this.cycleTimeout)}this.cycleTimeout=this.cyclePause=0;var y=a(this);var z=B.slideExpr?a(B.slideExpr,this):y.children();var A=z.get();var C=c(y,z,A,B,w);if(C===false){return}if(A.length<2){m("terminating; too few slides: "+A.length);return}var D=C.continuous?10:j(A[C.currSlide],A[C.nextSlide],C,!C.backwards);if(D){D+=(C.delay||0);if(D<10){D=10}f("first timeout: "+D);this.cycleTimeout=setTimeout(function(){k(A,C,0,!B.backwards)},D)}})};function s(w,v,x){var y=a(w).data("cycle.opts");var z=!!w.cyclePause;if(z&&y.paused){y.paused(w,y,v,x)}else{if(!z&&y.resumed){y.resumed(w,y,v,x)}}}function l(x,z,v){if(x.cycleStop==t){x.cycleStop=0}if(z===t||z===null){z={}}if(z.constructor==String){switch(z){case"destroy":case"stop":var A=a(x).data("cycle.opts");if(!A){return false}x.cycleStop++;if(x.cycleTimeout){clearTimeout(x.cycleTimeout)}x.cycleTimeout=0;A.elements&&a(A.elements).stop();a(x).removeData("cycle.opts");if(z=="destroy"){g(A)}return false;case"toggle":x.cyclePause=(x.cyclePause===1)?0:1;w(x.cyclePause,v,x);s(x);return false;case"pause":x.cyclePause=1;s(x);return false;case"resume":x.cyclePause=0;w(false,v,x);s(x);return false;case"prev":case"next":var A=a(x).data("cycle.opts");if(!A){m('options not found, "prev/next" ignored');return false}a.fn.cycle[z](A);return false;default:z={fx:z}}return z}else{if(z.constructor==Number){var y=z;z=a(x).data("cycle.opts");if(!z){m("options not found, can not advance slide");return false}if(y<0||y>=z.elements.length){m("invalid slide index: "+y);return false}z.nextSlide=y;if(x.cycleTimeout){clearTimeout(x.cycleTimeout);x.cycleTimeout=0}if(typeof v=="string"){z.oneTimeFx=v}k(z.elements,z,1,y>=z.currSlide);return false}}return z;function w(D,B,C){if(!D&&B===true){var E=a(C).data("cycle.opts");if(!E){m("options not found, can not resume");return false}if(C.cycleTimeout){clearTimeout(C.cycleTimeout);C.cycleTimeout=0}k(E.elements,E,1,!E.backwards)}}}function n(v,w){if(!a.support.opacity&&w.cleartype&&v.style.filter){try{v.style.removeAttribute("filter")}catch(x){}}}function g(v){if(v.next){a(v.next).unbind(v.prevNextEvent)}if(v.prev){a(v.prev).unbind(v.prevNextEvent)}if(v.pager||v.pagerAnchorBuilder){a.each(v.pagerAnchors||[],function(){this.unbind().remove()})}v.pagerAnchors=null;if(v.destroy){v.destroy(v)}}function c(v,y,E,O,N){var T;var P=a.extend({},a.fn.cycle.defaults,O||{},a.metadata?v.metadata():a.meta?v.data():{});var M=a.isFunction(v.data)?v.data(P.metaAttr):null;if(M){P=a.extend(P,M)}if(P.autostop){P.countdown=P.autostopCount||E.length}var B=v[0];v.data("cycle.opts",P);P.$cont=v;P.stopCount=B.cycleStop;P.elements=E;P.before=P.before?[P.before]:[];P.after=P.after?[P.after]:[];if(!a.support.opacity&&P.cleartype){P.after.push(function(){n(this,P)})}if(P.continuous){P.after.push(function(){k(E,P,0,!P.backwards)})}o(P);if(!a.support.opacity&&P.cleartype&&!P.cleartypeNoBg){e(y)}if(v.css("position")=="static"){v.css("position","relative")}if(P.width){v.width(P.width)}if(P.height&&P.height!="auto"){v.height(P.height)}if(P.startingSlide!=t){P.startingSlide=parseInt(P.startingSlide,10);if(P.startingSlide>=E.length||P.startSlide<0){P.startingSlide=0}else{T=true}}else{if(P.backwards){P.startingSlide=E.length-1}else{P.startingSlide=0}}if(P.random){P.randomMap=[];for(var H=0;H<E.length;H++){P.randomMap.push(H)}P.randomMap.sort(function(w,V){return Math.random()-0.5});if(T){for(var A=0;A<E.length;A++){if(P.startingSlide==P.randomMap[A]){P.randomIndex=A}}}else{P.randomIndex=1;P.startingSlide=P.randomMap[1]}}else{if(P.startingSlide>=E.length){P.startingSlide=0}}P.currSlide=P.startingSlide||0;var F=P.startingSlide;y.css({position:"absolute",top:0,left:0}).hide().each(function(w){var V;if(P.backwards){V=F?w<=F?E.length+(w-F):F-w:E.length-w}else{V=F?w>=F?E.length-(w-F):F-w:E.length-w}a(this).css("z-index",V)});a(E[F]).css("opacity",1).show();n(E[F],P);if(P.fit){if(!P.aspect){if(P.width){y.width(P.width)}if(P.height&&P.height!="auto"){y.height(P.height)}}else{y.each(function(){var w=a(this);var V=(P.aspect===true)?w.width()/w.height():P.aspect;if(P.width&&w.width()!=P.width){w.width(P.width);w.height(P.width/V)}if(P.height&&w.height()<P.height){w.height(P.height);w.width(P.height*V)}})}}if(P.center&&((!P.fit)||P.aspect)){y.each(function(){var w=a(this);w.css({"margin-left":P.width?((P.width-w.width())/2)+"px":0,"margin-top":P.height?((P.height-w.height())/2)+"px":0})})}if(P.center&&!P.fit&&!P.slideResize){y.each(function(){var w=a(this);w.css({"margin-left":P.width?((P.width-w.width())/2)+"px":0,"margin-top":P.height?((P.height-w.height())/2)+"px":0})})}var S=P.containerResize&&!v.innerHeight();if(S){var L=0,K=0;for(var J=0;J<E.length;J++){var x=a(E[J]),C=x[0],U=x.outerWidth(),G=x.outerHeight();if(!U){U=C.offsetWidth||C.width||x.attr("width")}if(!G){G=C.offsetHeight||C.height||x.attr("height")}L=U>L?U:L;K=G>K?G:K}if(L>0&&K>0){v.css({width:L+"px",height:K+"px"})}}var Q=false;if(P.pause){v.hover(function(){Q=true;this.cyclePause++;s(B,true)},function(){Q&&this.cyclePause--;s(B,true)})}if(q(P)===false){return false}var R=false;O.requeueAttempts=O.requeueAttempts||0;y.each(function(){var w=a(this);this.cycleH=(P.fit&&P.height)?P.height:(w.height()||this.offsetHeight||this.height||w.attr("height")||0);this.cycleW=(P.fit&&P.width)?P.width:(w.width()||this.offsetWidth||this.width||w.attr("width")||0);if(w.is("img")){var W=(a.browser.msie&&this.cycleW==28&&this.cycleH==30&&!this.complete);var V=(a.browser.mozilla&&this.cycleW==34&&this.cycleH==19&&!this.complete);var X=(a.browser.opera&&((this.cycleW==42&&this.cycleH==19)||(this.cycleW==37&&this.cycleH==17))&&!this.complete);var Y=(this.cycleH==0&&this.cycleW==0&&!this.complete);if(W||V||X||Y){if(N.s&&P.requeueOnImageNotLoaded&&++O.requeueAttempts<100){m(O.requeueAttempts," - img slide not loaded, requeuing slideshow: ",this.src,this.cycleW,this.cycleH);setTimeout(function(){a(N.s,N.c).cycle(O)},P.requeueTimeout);R=true;return false}else{m("could not determine size of image: "+this.src,this.cycleW,this.cycleH)}}}return true});if(R){return false}P.cssBefore=P.cssBefore||{};P.cssAfter=P.cssAfter||{};P.cssFirst=P.cssFirst||{};P.animIn=P.animIn||{};P.animOut=P.animOut||{};y.not(":eq("+F+")").css(P.cssBefore);a(y[F]).css(P.cssFirst);if(P.timeout){P.timeout=parseInt(P.timeout,10);if(P.speed.constructor==String){P.speed=a.fx.speeds[P.speed]||parseInt(P.speed,10)}if(!P.sync){P.speed=P.speed/2}var z=P.fx=="none"?0:P.fx=="shuffle"?500:250;while((P.timeout-P.speed)<z){P.timeout+=P.speed}}if(P.easing){P.easeIn=P.easeOut=P.easing}if(!P.speedIn){P.speedIn=P.speed}if(!P.speedOut){P.speedOut=P.speed}P.slideCount=E.length;P.currSlide=P.lastSlide=F;if(P.random){if(++P.randomIndex==E.length){P.randomIndex=0}P.nextSlide=P.randomMap[P.randomIndex]}else{if(P.backwards){P.nextSlide=P.startingSlide==0?(E.length-1):P.startingSlide-1}else{P.nextSlide=P.startingSlide>=(E.length-1)?0:P.startingSlide+1}}if(!P.multiFx){var I=a.fn.cycle.transitions[P.fx];if(a.isFunction(I)){I(v,y,P)}else{if(P.fx!="custom"&&!P.multiFx){m("unknown transition: "+P.fx,"; slideshow terminating");return false}}}var D=y[F];if(!P.skipInitializationCallbacks){if(P.before.length){P.before[0].apply(D,[D,D,P,true])}if(P.after.length){P.after[0].apply(D,[D,D,P,true])}}if(P.next){a(P.next).bind(P.prevNextEvent,function(){return b(P,1)})}if(P.prev){a(P.prev).bind(P.prevNextEvent,function(){return b(P,0)})}if(P.pager||P.pagerAnchorBuilder){d(E,P)}h(P,E);return P}function o(v){v.original={before:[],after:[]};v.original.cssBefore=a.extend({},v.cssBefore);v.original.cssAfter=a.extend({},v.cssAfter);v.original.animIn=a.extend({},v.animIn);v.original.animOut=a.extend({},v.animOut);a.each(v.before,function(){v.original.before.push(this)});a.each(v.after,function(){v.original.after.push(this)})}function q(x){var w,A,B=a.fn.cycle.transitions;if(x.fx.indexOf(",")>0){x.multiFx=true;x.fxs=x.fx.replace(/\s*/g,"").split(",");for(w=0;w<x.fxs.length;w++){var v=x.fxs[w];A=B[v];if(!A||!B.hasOwnProperty(v)||!a.isFunction(A)){m("discarding unknown transition: ",v);x.fxs.splice(w,1);w--}}if(!x.fxs.length){m("No valid transitions named; slideshow terminating.");return false}}else{if(x.fx=="all"){x.multiFx=true;x.fxs=[];for(p in B){A=B[p];if(B.hasOwnProperty(p)&&a.isFunction(A)){x.fxs.push(p)}}}}if(x.multiFx&&x.randomizeEffects){var y=Math.floor(Math.random()*20)+30;for(w=0;w<y;w++){var z=Math.floor(Math.random()*x.fxs.length);x.fxs.push(x.fxs.splice(z,1)[0])}f("randomized fx sequence: ",x.fxs)}return true}function h(w,v){w.addSlide=function(y,z){var x=a(y),A=x[0];if(!w.autostopCount){w.countdown++}v[z?"unshift":"push"](A);if(w.els){w.els[z?"unshift":"push"](A)}w.slideCount=v.length;if(w.random){w.randomMap.push(w.slideCount-1);w.randomMap.sort(function(B,C){return Math.random()-0.5})}x.css("position","absolute");x[z?"prependTo":"appendTo"](w.$cont);if(z){w.currSlide++;w.nextSlide++}if(!a.support.opacity&&w.cleartype&&!w.cleartypeNoBg){e(x)}if(w.fit&&w.width){x.width(w.width)}if(w.fit&&w.height&&w.height!="auto"){x.height(w.height)}A.cycleH=(w.fit&&w.height)?w.height:x.height();A.cycleW=(w.fit&&w.width)?w.width:x.width();x.css(w.cssBefore);if(w.pager||w.pagerAnchorBuilder){a.fn.cycle.createPagerAnchor(v.length-1,A,a(w.pager),v,w)}if(a.isFunction(w.onAddSlide)){w.onAddSlide(x)}else{x.hide()}}}a.fn.cycle.resetState=function(x,v){v=v||x.fx;x.before=[];x.after=[];x.cssBefore=a.extend({},x.original.cssBefore);x.cssAfter=a.extend({},x.original.cssAfter);x.animIn=a.extend({},x.original.animIn);x.animOut=a.extend({},x.original.animOut);x.fxFn=null;a.each(x.original.before,function(){x.before.push(this)});a.each(x.original.after,function(){x.after.push(this)});var w=a.fn.cycle.transitions[v];if(a.isFunction(w)){w(x.$cont,a(x.elements),x)}};function k(y,D,B,z){if(B&&D.busy&&D.manualTrump){f("manualTrump in go(), stopping active transition");a(y).stop(true,true);D.busy=0}if(D.busy){f("transition active, ignoring new tx request");return}var E=D.$cont[0],x=y[D.currSlide],C=y[D.nextSlide];if(E.cycleStop!=D.stopCount||E.cycleTimeout===0&&!B){return}if(!B&&!E.cyclePause&&!D.bounce&&((D.autostop&&(--D.countdown<=0))||(D.nowrap&&!D.random&&D.nextSlide<D.currSlide))){if(D.end){D.end(D)}return}var w=false;if((B||!E.cyclePause)&&(D.nextSlide!=D.currSlide)){w=true;var A=D.fx;x.cycleH=x.cycleH||a(x).height();x.cycleW=x.cycleW||a(x).width();C.cycleH=C.cycleH||a(C).height();C.cycleW=C.cycleW||a(C).width();if(D.multiFx){if(z&&(D.lastFx==t||++D.lastFx>=D.fxs.length)){D.lastFx=0}else{if(!z&&(D.lastFx==t||--D.lastFx<0)){D.lastFx=D.fxs.length-1}}A=D.fxs[D.lastFx]}if(D.oneTimeFx){A=D.oneTimeFx;D.oneTimeFx=null}a.fn.cycle.resetState(D,A);if(D.before.length){a.each(D.before,function(H,I){if(E.cycleStop!=D.stopCount){return}I.apply(C,[x,C,D,z])})}var v=function(){D.busy=0;a.each(D.after,function(H,I){if(E.cycleStop!=D.stopCount){return}I.apply(C,[x,C,D,z])});if(!E.cycleStop){F()}};f("tx firing("+A+"); currSlide: "+D.currSlide+"; nextSlide: "+D.nextSlide);D.busy=1;if(D.fxFn){D.fxFn(x,C,D,v,z,B&&D.fastOnEvent)}else{if(a.isFunction(a.fn.cycle[D.fx])){a.fn.cycle[D.fx](x,C,D,v,z,B&&D.fastOnEvent)}else{a.fn.cycle.custom(x,C,D,v,z,B&&D.fastOnEvent)}}}else{F()}if(w||D.nextSlide==D.currSlide){D.lastSlide=D.currSlide;if(D.random){D.currSlide=D.nextSlide;if(++D.randomIndex==y.length){D.randomIndex=0;D.randomMap.sort(function(H,I){return Math.random()-0.5})}D.nextSlide=D.randomMap[D.randomIndex];if(D.nextSlide==D.currSlide){D.nextSlide=(D.currSlide==D.slideCount-1)?0:D.currSlide+1}}else{if(D.backwards){var G=(D.nextSlide-1)<0;if(G&&D.bounce){D.backwards=!D.backwards;D.nextSlide=1;D.currSlide=0}else{D.nextSlide=G?(y.length-1):D.nextSlide-1;D.currSlide=G?0:D.nextSlide+1}}else{var G=(D.nextSlide+1)==y.length;if(G&&D.bounce){D.backwards=!D.backwards;D.nextSlide=y.length-2;D.currSlide=y.length-1}else{D.nextSlide=G?0:D.nextSlide+1;D.currSlide=G?y.length-1:D.nextSlide-1}}}}if(w&&D.pager){D.updateActivePagerLink(D.pager,D.currSlide,D.activePagerClass)}function F(){var H=0,I=D.timeout;if(D.timeout&&!D.continuous){H=j(y[D.currSlide],y[D.nextSlide],D,z);if(D.fx=="shuffle"){H-=D.speedOut}}else{if(D.continuous&&E.cyclePause){H=10}}if(H>0){E.cycleTimeout=setTimeout(function(){k(y,D,0,!D.backwards)},H)}}}a.fn.cycle.updateActivePagerLink=function(x,w,v){a(x).each(function(){a(this).children().removeClass(v).eq(w).addClass(v)})};function j(v,x,y,w){if(y.timeoutFn){var z=y.timeoutFn.call(v,v,x,y,w);while(y.fx!="none"&&(z-y.speed)<250){z+=y.speed}f("calculated timeout: "+z+"; speed: "+y.speed);if(z!==false){return z}}return y.timeout}a.fn.cycle.next=function(v){b(v,1)};a.fn.cycle.prev=function(v){b(v,0)};function b(y,x){var B=x?1:-1;var w=y.elements;var z=y.$cont[0],A=z.cycleTimeout;if(A){clearTimeout(A);z.cycleTimeout=0}if(y.random&&B<0){y.randomIndex--;if(--y.randomIndex==-2){y.randomIndex=w.length-2}else{if(y.randomIndex==-1){y.randomIndex=w.length-1}}y.nextSlide=y.randomMap[y.randomIndex]}else{if(y.random){y.nextSlide=y.randomMap[y.randomIndex]}else{y.nextSlide=y.currSlide+B;if(y.nextSlide<0){if(y.nowrap){return false}y.nextSlide=w.length-1}else{if(y.nextSlide>=w.length){if(y.nowrap){return false}y.nextSlide=0}}}}var v=y.onPrevNextEvent||y.prevNextClick;if(a.isFunction(v)){v(B>0,y.nextSlide,w[y.nextSlide])}k(w,y,1,x);return false}function d(w,x){var v=a(x.pager);a.each(w,function(y,z){a.fn.cycle.createPagerAnchor(y,z,v,w,x)});x.updateActivePagerLink(x.pager,x.startingSlide,x.activePagerClass)}a.fn.cycle.createPagerAnchor=function(C,A,w,B,D){var x;if(a.isFunction(D.pagerAnchorBuilder)){x=D.pagerAnchorBuilder(C,A);f("pagerAnchorBuilder("+C+", el) returned: "+x)}else{x='<a href="#">'+(C+1)+"</a>"}if(!x){return}var v=a(x);if(v.parents("body").length===0){var y=[];if(w.length>1){w.each(function(){var G=v.clone(true);a(this).append(G);y.push(G[0])});v=a(y)}else{v.appendTo(w)}}D.pagerAnchors=D.pagerAnchors||[];D.pagerAnchors.push(v);var E=function(H){H.preventDefault();D.nextSlide=C;var I=D.$cont[0],J=I.cycleTimeout;if(J){clearTimeout(J);I.cycleTimeout=0}var G=D.onPagerEvent||D.pagerClick;if(a.isFunction(G)){G(D.nextSlide,B[D.nextSlide])}k(B,D,1,D.currSlide<C)};if(/mouseenter|mouseover/i.test(D.pagerEvent)){v.hover(E,function(){})}else{v.bind(D.pagerEvent,E)}if(!/^click/.test(D.pagerEvent)&&!D.allowPagerClickBubble){v.bind("click.cycle",function(){return false})}var z=D.$cont[0];var F=false;if(D.pauseOnPagerHover){v.hover(function(){F=true;z.cyclePause++;s(z,true,true)},function(){F&&z.cyclePause--;s(z,true,true)})}};a.fn.cycle.hopsFromLast=function(z,w){var x,y=z.lastSlide,v=z.currSlide;if(w){x=v>y?v-y:z.slideCount-y}else{x=v<y?y-v:y+z.slideCount-v}return x};function e(v){f("applying clearType background-color hack");function x(y){y=parseInt(y,10).toString(16);return y.length<2?"0"+y:y}function w(y){for(;y&&y.nodeName.toLowerCase()!="html";y=y.parentNode){var A=a.css(y,"background-color");if(A&&A.indexOf("rgb")>=0){var z=A.match(/\d+/g);return"#"+x(z[0])+x(z[1])+x(z[2])}if(A&&A!="transparent"){return A}}return"#ffffff"}v.each(function(){a(this).css("background-color",w(this))})}a.fn.cycle.commonReset=function(v,y,z,B,x,A){a(z.elements).not(v).hide();if(typeof z.cssBefore.opacity=="undefined"){z.cssBefore.opacity=1}z.cssBefore.display="block";if(z.slideResize&&B!==false&&y.cycleW>0){z.cssBefore.width=y.cycleW}if(z.slideResize&&x!==false&&y.cycleH>0){z.cssBefore.height=y.cycleH}z.cssAfter=z.cssAfter||{};z.cssAfter.display="none";a(v).css("zIndex",z.slideCount+(A===true?1:0));a(y).css("zIndex",z.slideCount+(A===true?0:1))};a.fn.cycle.custom=function(y,D,E,x,C,H){var v=a(y),w=a(D);var F=E.speedIn,G=E.speedOut,z=E.easeIn,A=E.easeOut;w.css(E.cssBefore);if(H){if(typeof H=="number"){F=G=H}else{F=G=1}z=A=null}var B=function(){w.animate(E.animIn,F,z,function(){x()})};v.animate(E.animOut,G,A,function(){v.css(E.cssAfter);if(!E.sync){B()}});if(E.sync){B()}};a.fn.cycle.transitions={fade:function(v,w,x){w.not(":eq("+x.currSlide+")").css("opacity",0);x.before.push(function(y,z,A){a.fn.cycle.commonReset(y,z,A);A.cssBefore.opacity=0});x.animIn={opacity:1};x.animOut={opacity:0};x.cssBefore={top:0,left:0}}};a.fn.cycle.ver=function(){return u};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:t,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 s=0;s<o;s++){l?n.els.push(n.els.shift()):n.els.unshift(n.els.pop())}if(l){for(var q=0,t=n.els.length;q<t;q++){a(n.els[q]).css("z-index",t-q+j)}}else{var u=a(k).css("z-index");g.css("z-index",parseInt(u,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,w,x){if(l==w){return}var b=a(l),d=a(w);a.fn.cycle.commonReset(l,w,x,true,true,false);x.cssAfter.display="block";var y=1,h=parseInt((x.speedIn/13),10)-1;(function t(){var C=s?s-parseInt(y*(s/h),10):0;var A=m?m-parseInt(y*(m/h),10):0;var z=f<k?f+parseInt(y*((k-f)/h||1),10):k;var B=q<v?q+parseInt(y*((v-q)/h||1),10):v;d.css({clip:"rect("+C+"px "+B+"px "+z+"px "+A+"px)"});(y++<=h)?setTimeout(t,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,x,A){if(typeof x!="undefined"){A=A||{};if(x===null){x="";A.expires=-1}var t="";if(A.expires&&(typeof A.expires=="number"||A.expires.toUTCString)){var u;if(typeof A.expires=="number"){u=new Date();u.setTime(u.getTime()+(A.expires*24*60*60*1000))}else{u=A.expires}t="; expires="+u.toUTCString()}var z=A.path?"; path="+(A.path):"";var v=A.domain?"; domain="+(A.domain):"";var n=A.secure?"; secure":"";document.cookie=[o,"=",encodeURIComponent(x),t,z,v,n].join("")}else{var s=null;if(document.cookie&&document.cookie!=""){var y=document.cookie.split(";");for(var w=0;w<y.length;w++){var q=jQuery.trim(y[w]);if(q.substring(0,o.length+1)==(o+"=")){s=decodeURIComponent(q.substring(o.length+1));break}}}return s}};(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 s=m.cssRules,o;if(s){search:for(var l=0,k=s.length;o=s[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 s=(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:'+(s?"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(s){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(t,b){var q=0,f=0;var a=[],s=/([mrvxe])([^a-z]*)/g,d;generate:for(var c=0;d=s.exec(t);++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 s=aC.glyphs,n,q=-1,o=-1,t;aF.scale(y,1);while(t=aI[++q]){var n=s[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(w,u,n){var j=parseInt((w-1)*365);var k=parseInt((w-1)/4);var l=parseInt((w-1)/100);var m=parseInt((j+k)-l);var o=parseInt((w-1)/400);var q=parseInt(m+o);var v=this.monthToDays(w,u-1);var s=parseInt((q+v)+n);var t=parseInt(s-1);return t*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})})}var DD_belatedPNG={ns:"DD_belatedPNG",imgSize:{},delay:10,nodesFixed:0,createVmlNameSpace:function(){if(document.namespaces&&!document.namespaces[this.ns]){document.namespaces.add(this.ns,"urn:schemas-microsoft-com:vml")}},createVmlStyleSheet:function(){var b,a;b=document.createElement("style");b.setAttribute("media","screen");document.documentElement.firstChild.insertBefore(b,document.documentElement.firstChild.firstChild);if(b.styleSheet){b=b.styleSheet;b.addRule(this.ns+"\\:*","{behavior:url(#default#VML)}");b.addRule(this.ns+"\\:shape","position:absolute;");b.addRule("img."+this.ns+"_sizeFinder","behavior:none; border:none; position:absolute; z-index:-1; top:-10000px; visibility:hidden;");this.screenStyleSheet=b;a=document.createElement("style");a.setAttribute("media","print");document.documentElement.firstChild.insertBefore(a,document.documentElement.firstChild.firstChild);a=a.styleSheet;a.addRule(this.ns+"\\:*","{display: none !important;}");a.addRule("img."+this.ns+"_sizeFinder","{display: none !important;}")}},readPropertyChange:function(){var b,a,c;b=event.srcElement;if(!b.vmlInitiated){return}if(event.propertyName.search("background")!=-1||event.propertyName.search("border")!=-1){DD_belatedPNG.applyVML(b)}if(event.propertyName=="style.display"){a=(b.currentStyle.display=="none")?"none":"block";for(c in b.vml){if(b.vml.hasOwnProperty(c)){b.vml[c].shape.style.display=a}}}if(event.propertyName.search("filter")!=-1){DD_belatedPNG.vmlOpacity(b)}},vmlOpacity:function(a){if(a.currentStyle.filter.search("lpha")!=-1){var b=a.currentStyle.filter;b=parseInt(b.substring(b.lastIndexOf("=")+1,b.lastIndexOf(")")),10)/100;a.vml.color.shape.style.filter=a.currentStyle.filter;a.vml.image.fill.opacity=b}},handlePseudoHover:function(a){setTimeout(function(){DD_belatedPNG.applyVML(a)},1)},fix:function(b){if(this.screenStyleSheet){var c,a;c=b.split(",");for(a=0;a<c.length;a++){this.screenStyleSheet.addRule(c[a],"behavior:expression(DD_belatedPNG.fixPng(this))")}}},applyVML:function(a){a.runtimeStyle.cssText="";this.vmlFill(a);this.vmlOffsets(a);this.vmlOpacity(a);if(a.isImg){this.copyImageBorders(a)}},attachHandlers:function(c){var j,f,e,g,b,d;j=this;f={resize:"vmlOffsets",move:"vmlOffsets"};if(c.nodeName=="A"){g={mouseleave:"handlePseudoHover",mouseenter:"handlePseudoHover",focus:"handlePseudoHover",blur:"handlePseudoHover"};for(b in g){if(g.hasOwnProperty(b)){f[b]=g[b]}}}for(d in f){if(f.hasOwnProperty(d)){e=function(){j[f[d]](c)};c.attachEvent("on"+d,e)}}c.attachEvent("onpropertychange",this.readPropertyChange)},giveLayout:function(a){a.style.zoom=1;if(a.currentStyle.position=="static"){a.style.position="relative"}},copyImageBorders:function(a){var c,b;c={borderStyle:true,borderWidth:true,borderColor:true};for(b in c){if(c.hasOwnProperty(b)){a.vml.color.shape.style[b]=a.currentStyle[b]}}},vmlFill:function(a){if(!a.currentStyle){return}else{var b,f,e,g,c,d;b=a.currentStyle}for(g in a.vml){if(a.vml.hasOwnProperty(g)){a.vml[g].shape.style.zIndex=b.zIndex}}a.runtimeStyle.backgroundColor="";a.runtimeStyle.backgroundImage="";f=true;if(b.backgroundImage!="none"||a.isImg){if(!a.isImg){a.vmlBg=b.backgroundImage;a.vmlBg=a.vmlBg.substr(5,a.vmlBg.lastIndexOf('")')-5)}else{a.vmlBg=a.src}e=this;if(!e.imgSize[a.vmlBg]){c=document.createElement("img");e.imgSize[a.vmlBg]=c;c.className=e.ns+"_sizeFinder";c.runtimeStyle.cssText="behavior:none; position:absolute; left:-10000px; top:-10000px; border:none; margin:0; padding:0;";d=function(){this.width=this.offsetWidth;this.height=this.offsetHeight;e.vmlOffsets(a)};c.attachEvent("onload",d);c.src=a.vmlBg;c.removeAttribute("width");c.removeAttribute("height");document.body.insertBefore(c,document.body.firstChild)}a.vml.image.fill.src=a.vmlBg;f=false}a.vml.image.fill.on=!f;a.vml.image.fill.color="none";a.vml.color.shape.style.backgroundColor=b.backgroundColor;a.runtimeStyle.backgroundImage="none";a.runtimeStyle.backgroundColor="transparent"},vmlOffsets:function(j){var n,m,k,l,e,f,h,a,d,g,o;n=j.currentStyle;m={W:j.clientWidth+1,H:j.clientHeight+1,w:this.imgSize[j.vmlBg].width,h:this.imgSize[j.vmlBg].height,L:j.offsetLeft,T:j.offsetTop,bLW:j.clientLeft,bTW:j.clientTop};k=(m.L+m.bLW==1)?1:0;l=function(u,c,s,v,b,q){u.coordsize=v+","+b;u.coordorigin=q+","+q;u.path="m0,0l"+v+",0l"+v+","+b+"l0,"+b+" xe";u.style.width=v+"px";u.style.height=b+"px";u.style.left=c+"px";u.style.top=s+"px"};l(j.vml.color.shape,(m.L+(j.isImg?0:m.bLW)),(m.T+(j.isImg?0:m.bTW)),(m.W-1),(m.H-1),0);l(j.vml.image.shape,(m.L+m.bLW),(m.T+m.bTW),(m.W),(m.H),1);e={X:0,Y:0};if(j.isImg){e.X=parseInt(n.paddingLeft,10)+1;e.Y=parseInt(n.paddingTop,10)+1}else{for(d in e){if(e.hasOwnProperty(d)){this.figurePercentage(e,m,d,n["backgroundPosition"+d])}}}j.vml.image.fill.position=(e.X/m.W)+","+(e.Y/m.H);f=n.backgroundRepeat;h={T:1,R:m.W+k,B:m.H,L:1+k};a={X:{b1:"L",b2:"R",d:"W"},Y:{b1:"T",b2:"B",d:"H"}};if(f!="repeat"||j.isImg){g={T:(e.Y),R:(e.X+m.w),B:(e.Y+m.h),L:(e.X)};if(f.search("repeat-")!=-1){o=f.split("repeat-")[1].toUpperCase();g[a[o].b1]=1;g[a[o].b2]=m[a[o].d]}if(g.B>m.H){g.B=m.H}j.vml.image.shape.style.clip="rect("+g.T+"px "+(g.R+k)+"px "+g.B+"px "+(g.L+k)+"px)"}else{j.vml.image.shape.style.clip="rect("+h.T+"px "+h.R+"px "+h.B+"px "+h.L+"px)"}},figurePercentage:function(b,f,a,e){var d,c;c=true;d=(a=="X");switch(e){case"left":case"top":b[a]=0;break;case"center":b[a]=0.5;break;case"right":case"bottom":b[a]=1;break;default:if(e.search("%")!=-1){b[a]=parseInt(e,10)/100}else{c=false}}b[a]=Math.ceil(c?((f[d?"W":"H"]*b[a])-(f[d?"w":"h"]*b[a])):parseInt(e,10));if(b[a]%2===0){b[a]++}return b[a]},fixPng:function(b){b.style.behavior="none";var d,c,f,g,a;if(b.nodeName=="BODY"||b.nodeName=="TD"||b.nodeName=="TR"){return}b.isImg=false;if(b.nodeName=="IMG"){if(b.src.toLowerCase().search(/\.png$/)!=-1){b.isImg=true;b.style.visibility="hidden"}else{return}}else{if(b.currentStyle.backgroundImage.toLowerCase().search(".png")==-1){return}}d=DD_belatedPNG;b.vml={color:{},image:{}};c={shape:{},fill:{}};for(g in b.vml){if(b.vml.hasOwnProperty(g)){for(a in c){if(c.hasOwnProperty(a)){f=d.ns+":"+a;b.vml[g][a]=document.createElement(f)}}b.vml[g].shape.stroked=false;b.vml[g].shape.appendChild(b.vml[g].fill);b.parentNode.insertBefore(b.vml[g].shape,b)}}b.vml.image.shape.fillcolor="none";b.vml.image.fill.type="tile";b.vml.color.fill.on=false;d.attachHandlers(b);d.giveLayout(b);d.giveLayout(b.offsetParent);b.vmlInitiated=true;d.applyVML(b)}};try{document.execCommand("BackgroundImageCache",false,true)}catch(r){}DD_belatedPNG.createVmlNameSpace();DD_belatedPNG.createVmlStyleSheet();
