(function($){var CStyle=function(element,pseudoElement){if(window.getComputedStyle){return window.getComputedStyle(element,pseudoElement);}else{return element.currentStyle;}};var width=function(element){var width=CStyle(element).width;if(width=="auto"||width.indexOf("px")<0){return $(element).width();}else{return parseFloat(width);}};window.Elastic=function Elastic(context){var r,ra,i,j,k,l,il,jl,kl,ll,econs,econ,econw,econclass,ecols,ecol,ecolclass,eg,egml,egcl,egnl,ecrw,ecw,escol,rp,ig,efcs,efcsw,eecs,eecsw,eecw,eecrw,ecs,ecsw,ec,ecclass,eecfw,ecolminw,ecolmaxw,egreg=/(^|\s+)on\-(\d+)(\s+|$)/,esreg=/(^|\s+)span\-(\d+)(\s+|$)/,eareg=/(^|\s+)adaptive\-(\d+)\-(\d+)(\s+|$)/;eg=[];egcl=egnl=0;econs=$.find(".columns",context);for(i=0,il=econs.length;i<il;i++){econ=econs[i];econclass=econ.className;if(econclass.indexOf("on-")>-1&&egreg.test(econclass)){egml=Number(RegExp.$2);}else{egml=$.find("> .column, > .container > .column",econ).length;}econ=$.find("> .container",econ)[0]||econ;econw=width(econ);ecrw=econw/egml;ecw=Math.round(ecrw);if(econclass.indexOf("adaptive-")>-1&&eareg.test(econclass)){ecolminw=Number(RegExp.$2);ecolmaxw=Number(RegExp.$3);if(ecw>ecolmaxw){while(ecw>ecolmaxw){egml=egml+1;ecrw=econw/egml;ecw=Math.round(ecrw);}}else{if(ecw<ecolminw){while(ecw<ecolminw){egml=egml-1;ecrw=econw/egml;ecw=Math.round(ecrw);}}}}ecols=$.find("> .column",econ);for(j=0,jl=ecols.length;j<jl;j++){efcs=[];eecs=[];ecs=[];rp=ig=efcsw=ecsw=0;ecol=ecols[j];ecolclass=ecol.className;escol=1;if(ecolclass.indexOf("span-")>-1&&esreg.test(ecolclass)){escol=Number(RegExp.$2);}ecol.escol=escol=((escol<=egml)?escol:egml);egnl+=escol;if(egnl==egml||j==(jl-1)||ecolclass.indexOf("final")>-1){eg.push(ecol);egcl=0;rp=1;}else{if(egnl<egml){eg.push(ecol);egcl=egnl;}else{if(egnl>egml){egcl=escol;rp=1;ig=1;}}}if(rp){for(k=0,kl=eg.length;k<kl;k++){ec=eg[k];ecclass=ec.className;if(ecclass.indexOf("fixed")>-1){efcs.push(ec);efcsw+=width(ec);}else{if(ecclass.indexOf("elastic")>-1){eecs.push(ec);}else{ecs.push(ec);if(ec==eg[kl-1]){ec.style.width=Math.round(ecrw*ec.escol)+"px";}else{ec.style.width=Math.round(ecw*ec.escol)+"px";}ecsw=ecsw+width(ec);}}}ll=eecs.length;if(ll>0){eecfw=econw-(ecsw+efcsw);if(eecfw<=0){continue;}eecrw=eecfw/ll;eecw=Math.round(eecrw);eecsw=eecw*ll;for(l=0;l<ll;l++){eecs[l].style.width=eecw+"px";}if(eecsw>eecfw){ra=eecsw-eecfw+1;for(r=1;r<ra;r++){eecs[eecs.length-r].style.width=(eecw-1)+"px";}}else{if(eecsw<eecfw){ra=eecfw-eecsw+1;for(r=1;r<ra;r++){eecs[eecs.length-r].style.width=(eecw+1)+"px";}}}var tcw=0;for(var f=0;f<ll-1;f++){tcw+=Number(eecs[f].style.width.replace("px",""));}eecs[ll-1].style.width=(econw-(ecsw+efcsw+(tcw)))+"px";}else{if(ecol.escol==egml&&efcs.length===0){ecol.style.width=econw+"px";}else{if(ecs.length>0&&efcs.length===0&&egnl==egml){if(ecsw>econw){ra=ecsw-econw+1;for(r=1;r<ra;r++){ecs[ecs.length-r].style.width=((ecw-1)*ecs[ecs.length-r].escol)+"px";}}else{if(ecsw<econw){ra=econw-ecsw+1;for(r=1;r<ra;r++){ecs[ecs.length-r].style.width=((ecw+1)*ecs[ecs.length-r].escol)+"px";}}}var tcw=0;for(var f=0;f<ecs.length-1;f++){tcw+=Number(ecs[f].style.width.replace("px",""));}ec.style.width=(econw-(tcw))+"px";}else{if(egnl<egml&&ecolclass.indexOf("final")>-1){ecol.style["margin"+((econclass.indexOf("inverted")>-1)?"Left":"Right")]=(econw-ecsw-efcsw)+"px";}}}}eg=[];egnl=0;}if(ig){eg=[ecol];egnl=escol;}}}for(i in Elastic.helpers){if(Elastic.helpers.hasOwnProperty(i)){Elastic.helpers[i](context);}}};var Elastic=window.Elastic;Elastic.version="2.0.3";Elastic.reset=function Elastic_reset(context){var doc=$(document);doc.trigger("elastic:beforeReset");var i,w,wl,h,hl,p,pl,m,ml;h=$.find(".same-height > *, .full-height, .elastic-height",context);for(i=0,hl=h.length;i<hl;i++){h[i].style.height="";}p=$.find(".vertical-center, .center, .bottom",context);for(i=0,pl=p.length;i<pl;i++){p[i].parentNode.style.paddingTop="";p[i].parentNode.style.height="";}w=$.find(".column:not(.fixed), .full-width",context);for(i=0,wl=w.length;i<wl;i++){w[i].style.width="";}m=$.find(".column.final",context);for(i=0,ml=m.length;i<ml;i++){m[i].style.marginLeft="";m[i].style.marginRight="";}doc.trigger("elastic:reset");};Elastic.refresh=function Elastic_refresh(context){var doc=$(document);doc.trigger("elastic:beforeRefresh");Elastic.reset(context);Elastic(context);doc.trigger("elastic:refresh");};Elastic.configuration={refreshOnResize:true};Elastic.helpers={"full-width":function Elastic_helper_fullWidth(context){var i,$el;var els=$.find(".full-width",context);var elsl=els.length;for(i=0;i<elsl;i++){$el=$(els[i]);$el.width($el.parent().width()-($el.outerWidth(true)-$el.width()));}},"same-height":function Elastic_helper_sameHeight(context){$(".same-height",context).each(function(){var columns=$("> *",this);var maxHeight=0;columns.each(function(){var currentHeight=$(this).outerHeight(true);maxHeight=(maxHeight>currentHeight)?maxHeight:currentHeight;}).each(function(){$(this).css("height",maxHeight);});});},"full-height":function Elastic_helper_fullHeight(context){$(".full-height",context).each(function(){var _this=$(this);_this.css("height",$(this.parentNode).height()-(_this.outerHeight(true)-_this.height()));});},"elastic-height":function Elastic_helper_elasticHeight(context){$(".elastic-height",context).each(function(){var _this=$(this);var h=0;$("> *:not(.elastic-height)",this.parentNode).each(function(){h+=$(this).outerHeight(true);});_this.css("height",Math.round(_this.parent().height()-h));Elastic.refresh(this);});},center:function Elastic_helper_center(context){$(".vertical-center, .center",context).each(function(){var parentNode=$(this.parentNode);var paddingTop=Math.round((parentNode.height()-$(this).outerHeight(true))/2);parentNode.css({paddingTop:paddingTop+"px",height:(parentNode.css("height"))?(parentNode.outerHeight()-paddingTop):""});});},bottom:function Elastic_helper_bottom(context){$(".bottom",context).each(function(){var parentNode=$(this.parentNode);var paddingTop=Math.round(parentNode.height()-$(this).outerHeight(true));parentNode.css({paddingTop:paddingTop+"px",height:(parentNode.css("height"))?(parentNode.outerHeight()-paddingTop):""});});}};$(document).bind("elastic:beforeInitialize",function(){var r=/(^|\s+)display\s+([\w\_\-\d]+)(\s+|$)/;$(".display").each(function Elastic_layout(){r.test(this.className);var c=".position-"+RegExp.$2;$(c).removeClass(c).appendTo(this);});});})(jQuery);jQuery(window).bind("load",function(){var doc=jQuery(document);var iw=document.body.clientWidth;doc.trigger("elastic:beforeInitialize");Elastic();if(iw!=document.body.clientWidth){Elastic.refresh();}jQuery(window).bind("resize",function Elastic_resizeHandler(){if(Elastic.configuration.refreshOnResize){Elastic.refresh();}});doc.bind("elastic",Elastic.refresh);doc.trigger("elastic:initialize");});jQuery.fn.ajaxHref=function(targetSelector,href,parameter,pageNo){$(this).click(function(event){event.stopPropagation();$(targetSelector).empty();$(targetSelector).load(href+"?"+parameter+"="+pageNo);$(targetSelector).ajaxComplete(function(){Elastic.refresh();});});};$(document).ready(function(){if(jQuery.browser.msie){if(parseInt(jQuery.browser.version)==6){DD_roundies.addRule(".generic .blockContent","0px;");}DD_roundies.addRule(".generic .r_hH_hC_nF .blockHeader, .generic .r_hH_nC_hF .blockHeader,.generic .r_hH_hC_hF .blockHeader, .generic .r_nH_hC_hF .blockContent, .generic .rT_hH_hC_nF .blockHeader, .generic .rT_hH_hC_hF .blockHeader, .generic .rT_hH_nC_nF .blockHeader, .generic .rT_hH_nC_hF .blockHeader, .generic .rT_nH_nC_hF .blockFooter, .generic .rT_nH_hC_nF .blockContent, .generic .rT_nH_hC_hF .blockContent, .round-top","5px 5px 0 0");DD_roundies.addRule(".generic .r_hH_nC_nF .blockHeader,	.generic .BAR .blockHeader,	.generic .r_nh_nC_hF .blockFooter, .generic .r_nH_hC_nF .blockContent, .round","5px");DD_roundies.addRule(".generic .r_hH_hC_hF .blockFooter, .generic .r_hH_nC_hF .blockFooter, .generic .r_nH_hC_hF .blockFooter, .generic .r_hH_hC_nF .blockContent, .generic .rB_hH_nC_nF .blockHeader, .generic .rB_nH_hC_hF .blockFooter, .generic .rB_hH_hC_hF .blockFooter, .generic .rB_nH_nC_hF .blockFooter, .generic .rB_hH_hC_nF .blockContent, .generic .rB_nH_hC_nF .blockContent, .round-bottom","0 0 5px 5px");DD_roundies.addRule(".carousel-slide .icon-bubble-wrap .icon-bubble","7px");DD_roundies.addRule(".carousel-slide .icon-bubble-wrap .icon-bubble .bubble-content .col-1","5px");$(".generic .b_hH_hC_hF .blockHeader,.generic .b_hH_hC_nF .blockHeader,.generic .b_nH_hC_hF .blockContent,.generic .b_hH_hC_hF .blockContent").css("border-bottom-width","0px");$(".generic .b_hH_hC_hF .blockFooter,.generic .b_hH_hC_nF .blockContent,.generic .b_nH_hC_hF .blockFooter,.generic .b_hH_hC_hF .blockContent").css("border-top-width","0px");}});(function($){$.extend({tablesorter:new function(){var parsers=[],widgets=[];this.defaults={cssHeader:"header",cssAsc:"headerSortUp",cssDesc:"headerSortDown",sortInitialOrder:"asc",sortMultiSortKey:"shiftKey",sortForce:null,sortAppend:null,textExtraction:"simple",parsers:{},widgets:[],widgetZebra:{css:["table-row-even","table-row-odd"]},headers:{},widthFixed:false,cancelSelection:true,sortList:[],headerList:[],dateFormat:"us",decimal:".",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="";}var rows=table.tBodies[0].rows;if(table.tBodies[0].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,cells[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,node){var l=parsers.length;for(var i=1;i<l;i++){if(parsers[i].is($.trim(getElementText(table.config,node)),table,node)){return parsers[i];}}return parsers[0];}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=[];cache.row.push($(c));for(var j=0;j<totalCells;++j){cols.push(parsers[j].format(getElementText(table.config,c.cells[j]),table,c.cells[j]));}cols.push(i);cache.normalized.push(cols);cols=null;}if(table.config.debug){benchmark("Building cache for "+totalRows+" rows:",cacheTime);}return cache;}function getElementText(config,node){if(!node){return"";}var t="";if(config.textExtraction=="simple"){if(node.childNodes[0]&&node.childNodes[0].hasChildNodes()){t=node.childNodes[0].innerHTML;}else{t=node.innerHTML;}}else{if(typeof(config.textExtraction)=="function"){t=config.textExtraction(node);}else{t=$(node).text();}}return t;}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++){rows.push(r[n[i][checkCell]]);if(!table.config.appender){var o=r[n[i][checkCell]];var l=o.length;for(var j=0;j<l;j++){tableBody[0].appendChild(o[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,tableHeadersRows=[];for(var i=0;i<table.tHead.rows.length;i++){tableHeadersRows[i]=0;}$tableHeaders=$("thead th",table);$tableHeaders.each(function(index){this.count=0;this.column=index;this.order=formatSortingOrder(table.config.sortInitialOrder);if(checkHeaderMetadata(this)||checkHeaderOptions(table,index)){this.sortDisabled=true;}if(!this.sortDisabled){$(this).addClass(table.config.cssHeader);}table.config.headerList[index]=this;});if(table.config.debug){benchmark("Built headers:",time);log($tableHeaders);}return $tableHeaders;}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 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"){i=(v.toLowerCase()=="desc")?1:0;}else{i=(v==(0||1))?v:0;}return i;}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++){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=(getCachedSortType(table.config.parsers,c)=="text")?((order==0)?"sortText":"sortTextDesc"):((order==0)?"sortNumeric":"sortNumericDesc");var e="e"+i;dynamicExp+="var "+e+" = "+s+"(a["+c+"],b["+c+"]); ";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+="}; ";eval(dynamicExp);cache.normalized.sort(sortWrapper);if(table.config.debug){benchmark("Sorting on "+sortList.toString()+" and dir "+order+" time:",sortTime);}return cache;}function sortText(a,b){return((a<b)?-1:((a>b)?1:0));}function sortTextDesc(a,b){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);$headers=buildHeaders(this);this.config.parsers=buildParserCache(this,$headers);cache=buildCache(this);var sortCSS=[config.cssDesc,config.cssAsc];fixColumnWidth(this);$headers.click(function(e){$this.trigger("sortStart");var totalRows=($this[0].tBodies[0]&&$this[0].tBodies[0].rows.length)||0;if(!this.sortDisabled&&totalRows>0){var $cell=$(this);var i=this.column;this.order=this.count++%2;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(){this.config.parsers=buildParserCache(this,$headers);cache=buildCache(this);}).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){var DECIMAL="\\"+config.decimal;var exp="/(^[+]?0("+DECIMAL+"0+)?$)|(^([-+]?[1-9][0-9]*)$)|(^([-+]?((0?|[1-9][0-9]*)"+DECIMAL+"(0*[1-9][0-9]*)))$)|(^[-+]?[1-9]+[0-9]*"+DECIMAL+"0+$)/";return RegExp(exp).test($.trim(s));};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.toLowerCase());},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(/[^0-9.]/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();}$("tr:visible",table.tBodies[0]).filter(":even").removeClass(table.config.widgetZebra.css[1]).addClass(table.config.widgetZebra.css[0]).end().filter(":odd").removeClass(table.config.widgetZebra.css[0]).addClass(table.config.widgetZebra.css[1]);if(table.config.debug){$.tablesorter.benchmark("Applying Zebra widget",time);}}});})(jQuery);(function($){$.fn.jCarouselLite=function(o){o=$.extend({btnPrev:null,btnNext:null,btnGo:null,mouseWheel:false,auto:null,autoHandler:null,speed:300,easing:null,vertical:false,circular:true,visible:3,start:0,scroll:1,dontWait:false,beforeStart:null,afterEnd:null,init:null,updateControls:false,endless:false,endlessHandler:null},o||{});return this.each(function(){var running=false,animCss=o.vertical?"top":"left",sizeCss=o.vertical?"height":"width";var div=$(this),ul=$("ul",div),tLi=$("li",ul),tl=tLi.size(),v=o.visible;if(o.circular){ul.prepend(tLi.slice(tl-v-1+1).clone()).append(tLi.slice(0,v).clone());o.start+=v;}var li=$("li",ul),itemLength=li.size(),curr=o.start;div.css("visibility","visible");div.css({overflow:"hidden",position:"relative","z-index":"2",left:"0px"});var liSize=o.vertical?height(li):width(li);var ulSize=liSize*itemLength;var divSize=liSize*v;ul.css(sizeCss,ulSize+"px").css(animCss,-(curr*liSize));div.css(sizeCss,divSize+"px");if(o.btnPrev){$(o.btnPrev).click(function(){return go(curr-o.scroll);});}if(o.btnNext){$(o.btnNext).click(function(){return go(curr+o.scroll);});}if(o.btnGo){$.each(o.btnGo,function(i,val){$(val).click(function(){return go(o.circular?o.visible+i:i);});});}if(o.mouseWheel&&div.mousewheel){div.mousewheel(function(e,d){return d>0?go(curr-o.scroll):go(curr+o.scroll);});}if(o.auto){o.autoHandler=setInterval(function(){go(curr+o.scroll);},o.auto+o.speed);}function vis(){return li.slice(curr).slice(0,v);}function go(to){if((!running)||(o.dontWait)){if(o.endless&&o.endlessHandler){clearInterval(o.endlessHandler);o.endlessHandler=null;}if(o.auto&&o.autoHandler){clearInterval(o.autoHandler);o.autoHandler=setInterval(function(){go(curr+o.scroll);},o.auto+o.speed);}if(o.beforeStart){o.beforeStart.call(this,vis(),to);}if(o.circular){if(to<=o.start-v-1){ul.css(animCss,-((itemLength-(v*2))*liSize)+"px");curr=to==o.start-v-1?itemLength-(v*2)-1:itemLength-(v*2)-o.scroll;}else{if(to>=itemLength-v+1){ul.css(animCss,-((v)*liSize)+"px");curr=to==itemLength-v+1?v+1:v+o.scroll;}else{curr=to;}}}else{if(to<0||to>itemLength-v){return;}else{curr=to;}}running=true;ul.animate(animCss=="left"?{left:-(curr*liSize)}:{top:-(curr*liSize)},o.speed,o.easing,function(){if(o.afterEnd){o.afterEnd.call(this,vis(),to);}if(o.updateControls){$("a[id^=accordion-control]").removeClass("current");$("#accordion-control-"+(curr+1)).addClass("current");}running=false;});if(!o.circular){$(o.btnPrev+","+o.btnNext).removeClass("disabled");$((curr-o.scroll<0&&o.btnPrev)||(curr+o.scroll>itemLength-v&&o.btnNext)||[]).addClass("disabled");}if(o.endless){if(curr+o.scroll>itemLength-v){o.endlessHandler=setTimeout(function(){$("#accordion-control-1").trigger("click");},o.auto);}}}return false;}if(o.init){o.init.call(this,o,go);}});};function css(el,prop){return parseInt($.css(el[0],prop))||0;}function width(el){return el[0].offsetWidth+css(el,"marginLeft")+css(el,"marginRight");}function height(el){return el[0].offsetHeight+css(el,"marginTop")+css(el,"marginBottom");}})(jQuery);var _followScroll=false;var _readyBound=false;(function($){$.fn.prettyPopin=function(settings){settings=jQuery.extend({modal:false,width:false,height:false,opacity:0.5,animationSpeed:"fast",followScroll:false,loader_path:"assets/img/lightbox/loader.gif",title:"",type:"iframe",callback:function(){}},settings);function bindReady(){if(_readyBound){return;}_readyBound=true;$(window).scroll(function(){_centerPopin();});$(window).resize(function(){_centerPopin();});}bindReady();return this.each(function(){var popinWidth;var popinHeight;var $c;$(this).click(function(){if(jQuery.trim(settings.title)==""){settings.title=$(this).attr("title");}buildoverlay();buildpopin();if(settings.type=="iframe"){$(".prettyPopin .prettyContent .prettyContent-container").html("<iframe src="+$(this).attr("href")+" width="+settings.width+" height="+settings.height+" marginheight='0' marginwidth='0' frameborder='0' scrolling='no'></iframe>");popinWidth=settings.width||$(".prettyPopin .prettyContent .prettyContent-container").width()+parseFloat($(".prettyPopin .prettyContent .prettyContent-container").css("padding-left"))+parseFloat($(".prettyPopin .prettyContent .prettyContent-container").css("padding-right"));$(".prettyPopin").width(popinWidth);popinHeight=settings.height+38||$(".prettyPopin .prettyContent .prettyContent-container").height()+parseFloat($(".prettyPopin .prettyContent .prettyContent-container").css("padding-top"))+parseFloat($(".prettyPopin .prettyContent .prettyContent-container").css("padding-bottom"));$(".prettyPopin").height(popinHeight);}if(settings.type=="image"){$(".prettyPopin .prettyContent .prettyContent-container").html("<img src="+$(this).attr("href")+" width="+settings.width+" height="+settings.height+" alt="+settings.title+"/>");popinWidth=settings.width;$(".prettyPopin").width(popinWidth);popinHeight=settings.height+38;$(".prettyPopin").height(popinHeight);}$(".prettyPopin").height(45).width(45);displayPopin();return false;});var displayPopin=function(){var scrollPos=_getScroll();projectedTop=($(window).height()/2)+scrollPos.scrollTop-(popinHeight/2);if(projectedTop<0){projectedTop=10;_followScroll=false;}else{_followScroll=settings.followScroll;}$(".prettyPopin").animate({top:projectedTop,left:($(window).width()/2)+scrollPos.scrollLeft-(popinWidth/2),width:popinWidth,height:popinHeight},settings.animationSpeed,function(){displayContent();});};var buildpopin=function(){var closeText="Close this window";if(typeof closePopupText!=="undefined"){closeText=closePopupText;}$("body").append('<div class="prettyPopin"><div class="prettyPopinHeader"><h3>'+settings.title+'</h3><a href="#" id="b_close" rel="close" title="'+closeText+'"><img src="assets/img/lightbox/b_close.gif" alt="'+closeText+'" /></a></div><!--close .prettyPopinHeader--><div class="prettyContent"><img src="'+settings.loader_path+'" alt="Loading" class="loader" /></a><div class="prettyContent-container"></div><!--close prettyContent-container--></div><!-- close .prettyContent--></div><!--close .prettyPopin-->');$c=$(".prettyPopin .prettyContent .prettyContent-container");$(".prettyPopin a[rel=close]:eq(0)").click(function(){closeOverlay();return false;});var scrollPos=_getScroll();$(".prettyPopin").width(45).height(45).css({top:($(window).height()/2)+scrollPos.scrollTop,left:($(window).width()/2)+scrollPos.scrollLeft}).hide().fadeIn(settings.animationSpeed);};var buildoverlay=function(){$("body").append('<div id="overlay"></div>');$("#overlay").css("height",$(document).height());$("#overlay").css("opacity",0).fadeTo(settings.animationSpeed,settings.opacity);if(!settings.modal){$("#overlay").click(function(){closeOverlay();});}};var displayContent=function(){$c.parent().find(".loader").hide();$c.parent().parent().find("#b_close").show();$c.fadeIn(function(){$(this).find("input[type=text]:first").trigger("focus");$(".prettyPopin a[rel=internal]").click(function(){$link=$(this);$c.fadeOut(function(){$c.parent().find(".loader").show();$.get($link.attr("href"),function(responseText){$c.html(responseText);_refreshContent($c);});});return false;});$(".prettyPopin form").bind("submit",function(){$theForm=$(this);$c.fadeOut(function(){$c.parent().find(".loader").show();$.post($theForm.attr("action"),$theForm.serialize(),function(responseText){$c.html(responseText);_refreshContent($c);});});return false;});});$(".prettyPopin a[rel=close]:gt(0)").click(function(){closeOverlay();return false;});};var _refreshContent=function(){var scrollPos=_getScroll();if(!settings.width){popinWidth=$c.width()+parseFloat($c.css("padding-left"))+parseFloat($c.css("padding-right"));}if(!settings.height){popinHeight=$c.height()+parseFloat($c.css("padding-top"))+parseFloat($c.css("padding-bottom"));}projectedTop=($(window).height()/2)+scrollPos.scrollTop-(popinHeight/2);if(projectedTop<0){projectedTop=10;_followScroll=false;}else{_followScroll=settings.followScroll;}$(".prettyPopin").animate({top:projectedTop,left:($(window).width()/2)+scrollPos.scrollLeft-(popinWidth/2),width:popinWidth,height:popinHeight},settings.animationSpeed,function(){displayContent();});};var closeOverlay=function(){$("#overlay").fadeOut(settings.animationSpeed,function(){$(this).remove();});$(".prettyPopin").fadeOut(settings.animationSpeed,function(){$(this).remove();settings.title="";settings.callback();});};});function _centerPopin(){if(!_followScroll){return;}if(!$(".prettyPopin")){return;}var scrollPos=_getScroll();if($.browser.opera){windowHeight=window.innerHeight;windowWidth=window.innerWidth;}else{windowHeight=$(window).height();windowWidth=$(window).width();}projectedTop=($(window).height()/2)+scrollPos.scrollTop-($(".prettyPopin").height()/2);if(projectedTop<0){projectedTop=10;_followScroll=false;}else{_followScroll=true;}$(".prettyPopin").css({top:projectedTop,left:($(window).width()/2)+scrollPos.scrollLeft-($(".prettyPopin").width()/2)});}function _getScroll(){scrollTop=window.pageYOffset||document.documentElement.scrollTop||0;scrollLeft=window.pageXOffset||document.documentElement.scrollLeft||0;return{scrollTop:scrollTop,scrollLeft:scrollLeft};}};})(jQuery);(function($){$.setCookie=function(name,value,options){if(typeof name==="undefined"||typeof value==="undefined"){return false;}var str=name+"="+encodeURIComponent(value);if(options.domain){str+="; domain="+options.domain;}if(options.path){str+="; path="+options.path;}if(options.duration){var date=new Date();date.setTime(date.getTime()+options.duration*24*60*60*1000);str+="; expires="+date.toGMTString();}if(options.secure){str+="; secure";}return document.cookie=str;};$.delCookie=function(name){return $.setCookie(name,"",{duration:-1});};$.readCookie=function(name){var value=document.cookie.match("(?:^|;)\\s*"+name.replace(/([-.*+?^${}()|[\]\/\\])/g,"\\$1")+"=([^;]*)");return(value)?decodeURIComponent(value[1]):null;};$.CooQueryVersion="v 2.0";})(jQuery);$(document).ready(function(){$("a.cookies-false").click(function(){$.setCookie("Michelin-Perm","false",{});});$("a.cookies-true").click(function(){$.setCookie("Michelin-Perm","true",{});});});
