(function(c){function a(h,g){selectors=new Array();for(var f=0,e=g.switcherstyles.length;f<e;f++){if(g.switcherstyles[f]!=g.defaultcss||jQuery("link[href$="+g.styledir+h+"]").length){selectors.push("link[href$="+g.styledir+g.switcherstyles[f]+"]")}}jQuery(selectors.join(", ")).each(function(){if(jQuery(this).attr("href").substring(jQuery(this).attr("href").length-(g.styledir+h).length,jQuery(this).attr("href").length)==g.styledir+h){this.disabled=false}else{jQuery(this).remove()}});if(!jQuery("link[href$="+g.styledir+h+"]").length){jQuery("head").append('<link rel="stylesheet" type="text/css" media="screen" href="'+g.styledir+h+'" />')}if(g.savecookie==true){jQuery.cookie("style",h,{expires:365,path:"/",domain:siteDomain})}}function d(e,f){jQuery("body").removeClass().addClass(e);if(f.savecookie==true){jQuery.cookie("textsize",e,{expires:365,path:"/",domain:siteDomain})}}function b(e){if(e.textsizer==true){jQuery("body").removeClass();jQuery.cookie("textsize",null,{expires:-1})}if(e.switcher==true){a(e.defaultcss,e);jQuery.cookie("style",null,{expires:-1})}}c.fn.extend({ability:function(f){var e="0.1";f=jQuery.extend({textsizer:true,textsizeclasses:["m","l","xl","xxl"],textsizeclassestitle:["Tama&ntilde;o de letra: normal","Tama&ntilde;o de letra: mediano","Tama&ntilde;o de letra: grande","Tama&ntilde;o de letra: muy grande"],switcher:true,switcherstyles:["default.css","high-contrast.css"],switcherstylestitle:["Versi&oacute;n normal","Versi&oacute;n de alto contraste"],styledir:"/css/",savecookie:true,defaultcss:"default.css"},f);return this.each(function(){controlbox=this;var j="";var p="";var h=jQuery.cookie("style");var o=jQuery.cookie("textsize");if(f.textsizer==true){if(o){jQuery("body").removeClass().addClass(o)}var l='<ul class="fontsize">';for(var k=0,g=f.textsizeclasses.length;k<g;k++){l+='<li><a href="#" rel="'+f.textsizeclasses[k]+'" title="'+f.textsizeclassestitle[k]+'" class="fir tooltip" id="fontsize'+k+'"><span>&nbsp;</span>'+f.textsizeclassestitle[k]+"</a></li>"}l+="</ul>";j+=l+p}if(f.switcher==true){if(h){a(h,f)}var m='<ul class="switcher">';for(var k=0,g=f.switcherstyles.length;k<g;k++){m+='<li><a href="#" rel="'+f.switcherstyles[k]+'" title="'+f.switcherstylestitle[k]+'" class="fir tooltip" id="switcher'+k+'"><span>&nbsp;</span>'+f.switcherstylestitle[k]+"</a></li>"}m+="</ul>";j+=m+p}jQuery(controlbox).html(j);jQuery("ul.fontsize li a").bind("click",function(){d(jQuery(this).attr("rel"),f);return false});jQuery("ul.switcher li a").bind("click",function(){a(jQuery(this).attr("rel"),f);return false});jQuery("a.reset").bind("click",function(){b(f);return false})})}})})(jQuery);jQuery.fn.extend({nextUntil:function(b){var a=[];this.each(function(){for(var c=this.nextSibling;c;c=c.nextSibling){if(c.nodeType!=1){continue}if(jQuery.filter(b,[c]).r.length){break}a.push(c)}});return this.pushStack(a)},Accordion:function(d){d=jQuery.extend({},jQuery.Accordion.defaults,{header:jQuery(":first-child",this)[0].tagName},d);var b=this,e=d.active?jQuery(d.active,this):d.active===false?jQuery("<div>"):jQuery(d.header,this).eq(0),c=0;b.find(d.header).not(e||"").nextUntil(d.header).hide();e.addClass(d.selectedClass);function f(l){var k=jQuery(l.target);if(k.parents(d.header).length){while(!k.is(d.header)){k=k.parent()}}var j=k[0]==e[0];if(c||(d.alwaysOpen&&j)||!k.is(d.header)){return}e.toggleClass(d.selectedClass);if(!j){k.addClass(d.selectedClass)}var g=k.nextUntil(d.header),h=e.nextUntil(d.header),m=[k,e,g,h];e=j?jQuery([]):k;c=h.size()+g.size();var o=function(p){c=p?0:--c;if(c){return}b.trigger("change",m)};if(d.animated){if(!d.alwaysOpen&&j){g.slideToggle(d.showSpeed);o(true)}else{h.filter(":hidden").each(o).end().filter(":visible").slideUp(d.hideSpeed,o);g.slideDown(d.showSpeed,o)}}else{if(!d.alwaysOpen&&j){g.toggle()}else{h.hide();g.show()}o(true)}return false}function a(h,g){f({target:jQuery(d.header,this)[g]})}return b.bind(d.event,f).bind("activate",a)},activate:function(a){return this.trigger("activate",[a||0])}});jQuery.Accordion={};jQuery.extend(jQuery.Accordion,{defaults:{selectedClass:"selected",showSpeed:"slow",hideSpeed:"fast",alwaysOpen:false,animated:true,event:"click"},setDefaults:function(a){jQuery.extend(jQuery.Accordion.defaults,a)}});(function(){var b;b=jQuery.fn.flash=function(g,f,d,j){var h=d||b.replace;f=b.copy(b.pluginOptions,f);if(!b.hasFlash(f.version)){if(f.expressInstall&&b.hasFlash(6,0,65)){var e={flashvars:{MMredirectURL:location,MMplayerType:"PlugIn",MMdoctitle:jQuery("title").text()}}}else{if(f.update){h=j||b.update}else{return this}}}g=b.copy(b.htmlOptions,e,g);return this.each(function(){h.call(this,b.copy(g))})};b.copy=function(){var f={},e={};for(var g=0;g<arguments.length;g++){var d=arguments[g];if(d==undefined){continue}jQuery.extend(f,d);if(d.flashvars==undefined){continue}jQuery.extend(e,d.flashvars)}f.flashvars=e;return f};b.hasFlash=function(){if(/hasFlash\=true/.test(location)){return true}if(/hasFlash\=false/.test(location)){return false}var e=b.hasFlash.playerVersion().match(/\d+/g);var f=String([arguments[0],arguments[1],arguments[2]]).match(/\d+/g)||String(b.pluginOptions.version).match(/\d+/g);for(var d=0;d<3;d++){e[d]=parseInt(e[d]||0);f[d]=parseInt(f[d]||0);if(e[d]<f[d]){return false}if(e[d]>f[d]){return true}}return true};b.hasFlash.playerVersion=function(){try{try{var d=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");try{d.AllowScriptAccess="always"}catch(f){return"6,0,0"}}catch(f){}return new ActiveXObject("ShockwaveFlash.ShockwaveFlash").GetVariable("$version").replace(/\D+/g,",").match(/^,?(.+),?$/)[1]}catch(f){try{if(navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin){return(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]).description.replace(/\D+/g,",").match(/^,?(.+),?$/)[1]}}catch(f){}}return"0,0,0"};b.htmlOptions={height:240,flashvars:{},pluginspage:"http://www.adobe.com/go/getflashplayer",src:"#",type:"application/x-shockwave-flash",width:320};b.pluginOptions={expressInstall:false,update:true,version:"6.0.65"};b.replace=function(d){this.innerHTML='<div class="alt">'+this.innerHTML+"</div>";jQuery(this).addClass("flash-replaced").prepend(b.transform(d))};b.update=function(e){var d=String(location).split("?");d.splice(1,0,"?hasFlash=true&");d=d.join("");var f='<p>This content requires the Flash Player. <a href="http://www.adobe.com/go/getflashplayer">Download Flash Player</a>. Already have Flash Player? <a href="'+d+'">Click here.</a></p>';this.innerHTML='<span class="alt">'+this.innerHTML+"</span>";jQuery(this).addClass("flash-update").prepend(f)};function a(){var e="";for(var d in this){if(typeof this[d]!="function"){e+=d+'="'+this[d]+'" '}}return e}function c(){var e="";for(var d in this){if(typeof this[d]!="function"){e+=d+"="+encodeURIComponent(this[d])+"&"}}return e.replace(/&$/,"")}b.transform=function(d){d.toString=a;if(d.flashvars){d.flashvars.toString=c}return"<embed "+String(d)+"/>"};if(window.attachEvent){window.attachEvent("onbeforeunload",function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){}})}})();(function(b){var a="wp-content/themes/bornliving/";b.LightboxClass=function(){this.construct()};b.fn.lightbox=function(c){b.Lightbox=b.Lightbox||new b.LightboxClass();c=b.extend({start:false,events:true},c);var e=b(this);if(c.events){b(e).click(function(){var f=b(this);if(!b.Lightbox.init(b(f)[0],e)){return false}if(!b.Lightbox.start()){return false}return false});b(e).addClass("lightbox-enabled")}if(c.start){var d=b(this);if(!b.Lightbox.init(b(d)[0],e)){return this}if(!b.Lightbox.start()){return this}}return this};b.extend(b.LightboxClass.prototype,{images:{list:[],image:false,prev:function(c){if(typeof c==="undefined"){c=this.active();if(!c){return c}}if(this.first(c)){return false}return this.get(c.index-1)},next:function(c){if(typeof c==="undefined"){c=this.active();if(!c){return c}}if(this.last(c)){return false}return this.get(c.index+1)},first:function(c){if(typeof c==="undefined"){return this.get(0)}return c.index===0},last:function(c){if(typeof c==="undefined"){return this.get(this.size()-1)}return c.index===this.size()-1},single:function(){return this.size()===1},size:function(){return this.list.length},empty:function(){return this.size()===0},clear:function(){this.list=[];this.image=false},active:function(c){if(typeof c==="undefined"){return this.image}c=this.get(c);if(!c){return c}this.image=c;return true},add:function(e){if(e[0]){for(var c=0;c<e.length;c++){this.add(e[c])}return true}var d=this.create(e);if(!d){return d}d.index=this.size();this.list.push(d);return true},create:function(e){var d={src:"",title:"view properties located on a map",description:"",index:-1,image:true};if(e.image){d.src=e.src||d.src;d.title=e.title||d.title;d.description=e.description||d.description;d.index=e.index||d.index}else{if(e.tagName){e=b(e);if(e.attr("src")||e.attr("href")){d.src=e.attr("src")||e.attr("href");d.title=e.attr("title")||e.attr("alt")||d.title;var c=d.title.indexOf(": ");if(c>0){d.description=d.title.substring(c+2)||d.description;d.title=d.title.substring(0,c)||d.title}}else{d=false}}else{d=false}}if(!d){this.debug("We dont know what we have:",e);return false}return d},get:function(g){if(g===undefined||g===null){return this.active()}else{if(typeof g==="number"){g=this.list[g]||false}else{g=this.create(g);if(!g){return false}var e=false;for(var d=0;d<this.size();d++){var h=this.list[d];if(h.src===g.src&&h.title===g.title&&h.description===g.description){e=h}}g=e}}if(!g){this.debug("The desired image doesn't exist: ",g,this.list);return false}return g},debug:function(){return b.Lightbox.debug(arguments)}},baseurl:"",files:{js:{lightbox:"lightbox.js"},css:{lightbox:"css/lightbox.css"},images:{prev:"/wp-content/themes/bornliving/images/prev.gif",next:"/wp-content/themes/bornliving/images/next.gif",blank:"/wp-content/themes/bornliving/images/lightbox-blank.gif",loading:"/wp-content/themes/bornliving/images/lightbox-ico-loading.gif"}},text:{image:"",of:"-",close:"close",help:{close:"",interact:""}},keys:{close:"c",prev:"p",next:"n"},opacity:0.9,padding:null,speed:400,rel:"lightbox",construct:function(){var c=this;b.each(this.files,function(d,e){b.each(this,function(f,g){c.files[d][f]=c.baseurl+g})});return true},domReady:function(){b("body").append('<div id="lightbox-overlay"><div id="lightbox-overlay-text"><p><span id="lightbox-overlay-text-about"><a href="#"></a></span></p><p>&nbsp;</p><p><span id="lightbox-overlay-text-close">'+this.text.help.close+'</span><br/>&nbsp;<span id="lightbox-overlay-text-interact">'+this.text.help.interact+'</span></p></div></div><div id="lightbox"><div id="lightbox-imageBox"><div id="lightbox-imageContainer"><img id="lightbox-image" /><div id="lightbox-nav"><a href="#" id="lightbox-nav-btnPrev"></a><a href="#" id="lightbox-nav-btnNext"></a></div><div id="lightbox-loading"><a href="#" id="lightbox-loading-link"><img src="'+this.files.images.loading+'" /></a></div></div></div><div id="lightbox-infoBox"><div id="lightbox-infoContainer"><div id="lightbox-infoHeader"><span id="lightbox-caption"><span id="lightbox-caption-title"></span><span id="lightbox-caption-description"></span></span><span id="lightbox-close"><a href="#" id="lightbox-close-button" title="'+this.text.closeInfo+'">'+this.text.close+'</a></span></div><!--<div id="lightbox-infoFooter"><span id="lightbox-currentNumber"></span><span id="lightbox-close"><a href="#" id="lightbox-close-button" title="'+this.text.closeInfo+'">'+this.text.close+'</a></span></div>--><div id="lightbox-infoContainer-clear"></div></div></div></div>');this.resizeBoxes();this.repositionBoxes();b("#lightbox,#lightbox-overlay,#lightbox-overlay-text-interact").hide();b.each(this.files.images,function(){var c=new Image();c.onload=function(){c.onload=null;c=null};c.src=this});b(window).resize(function(){b.Lightbox.resizeBoxes();b.Lightbox.repositionBoxes()});b("#lightbox-nav-btnPrev").hover(function(){b(this).css({background:"url("+b.Lightbox.files.images.prev+") left 45% no-repeat"})},function(){b(this).css({background:"transparent url("+b.Lightbox.files.images.blank+") no-repeat"})}).click(function(){b.Lightbox.showImage(b.Lightbox.images.prev());return false});b("#lightbox-nav-btnNext").hover(function(){b(this).css({background:"url("+b.Lightbox.files.images.next+") right 45% no-repeat"})},function(){b(this).css({background:"transparent url("+b.Lightbox.files.images.blank+") no-repeat"})}).click(function(){b.Lightbox.showImage(b.Lightbox.images.next());return false});b("#lightbox-overlay-text-about a").click(function(){window.open("http://jquery.com/plugins/project/jquerylightbox_bal");return false});b("#lightbox-overlay-text-close").hover(function(){b("#lightbox-overlay-text-interact").fadeIn()},function(){b("#lightbox-overlay-text-interact").fadeOut()});b.Lightbox.relify();return true},relify:function(){var c={};var e=0;var d=this.rel;b.each(b("[@rel*="+d+"]"),function(g,h){var f=b(h).attr("rel");if(f===d){f=e}if(typeof c[f]==="undefined"){c[f]=[];e++}c[f].push(h)});b.each(c,function(f,g){b(g).lightbox()});return true},init:function(d,c){if(typeof c==="undefined"){c=d;d=0}this.images.clear();if(!this.images.add(c)){return false}if(this.images.empty()){this.debug("Lightbox started, but no images: ",d,c);return false}if(!this.images.active(d)){return false}return true},start:function(){b("embed, object, select").css({visibility:"hidden"});this.resizeBoxes();b("#lightbox-infoFooter").hide();b("#lightbox-overlay").css({opacity:this.opacity}).fadeIn();b("#lightbox").show();b("#lightbox-overlay, #lightbox, #lightbox-loading-link, #lightbox-btnClose").click(function(){b.Lightbox.finish();return false});if(!this.showImage(this.images.active())){this.finish();return false}return true},finish:function(){b("#lightbox").hide();b("#lightbox-overlay").fadeOut(function(){b("#lightbox-overlay").hide()});b("embed, object, select").css({visibility:"visible"})},resizeBoxes:function(){var c=this.getPageSize();b("#lightbox-overlay").css({width:c.largestWidth,height:c.largestHeight})},repositionBoxes:function(e){e=b.extend({},e);var d=this.getPageSize();var h=this.getPageScroll();var c=e.nHeight||parseInt(b("#lightbox").height(),10)||d.largestHeight/3;var f=h.yScroll+(d.windowHeight-c)/2.5;var g=h.xScroll;b("#lightbox").animate({left:g,top:f},"slow")},showImage:function(h,t){h=this.images.get(h);if(!h){return h}var p=/^.*\.(jpg|bmp|gif|png|JPG|BMP|GIF|PNG)$/;noIMG=!p.test(h.src);t=b.extend({step:1},t);var f=t.step>1&&this.images.active().src!==h.src;var e=t.step>2&&b("#lightbox-image").attr("src")!==h.src;if(f||e){this.debug("We wanted to skip a few steps: ",t,h);t.step=1}switch(t.step){case 1:b("#lightbox-image").replaceWith('<img id="lightbox-image" />');this.KeyboardNav_Disable();b("#lightbox-loading").show();b("#lightbox-image,#lightbox-nav,#lightbox-nav-btnPrev,#lightbox-nav-btnNext,#lightbox-infoBox").hide();b("#lightbox-imageBox").unbind();var l=new Image();l.onload=function(){b.Lightbox.showImage(null,{step:2,width:l.width,height:l.height});l.onload=null;l=null};l.src=h.src;if(!this.images.active(h)){return false}if(noIMG){var s;if(b("#body-map").length){s="scrolling='no' "}else{s=""}b("#lightbox-image").replaceWith('<iframe id="lightbox-image"'+s+' scrolling="no" frameborder="0" width="90%" border="0"></iframe>');b("#lightbox-image").css("boder","0");b.Lightbox.showImage(null,{step:2})}break;case 2:b("#lightbox-image").attr("src",h.src);t=b.extend({width:null,height:null},t);if(this.padding===null||typeof this.padding==="undefined"||this.padding===NaN){this.padding=parseInt(b("#lightbox-imageContainer").css("padding-left"),10)||parseInt(b("#lightbox-imageContainer").css("padding"),10)||0}if(noIMG){var q=this.getPageSize();var d=parseInt(q.largestWidth*0.78);var c=400;b("#lightbox-image").css({height:c,position:"relative","z-index":10000,border:0})}else{var d=t.width;var c=t.height}var g=b("#lightbox-imageBox").width();var o=b("#lightbox-imageBox").height();var m=(d+(this.padding*2));var r=(c+(this.padding*2));var k=g-m;var j=o-r;b("#lightbox-nav-btnPrev,#lightbox-nav-btnNext").css({height:c+(this.padding*2)});b("#lightbox-infoBox").css({width:d+this.padding*2});if(k===0&&j===0){if(b.browser.msie){this.pause(250)}else{this.pause(100)}b.Lightbox.showImage(null,{step:3})}else{b("#lightbox-imageBox").animate({width:m,height:r},this.speed,function(){b.Lightbox.showImage(null,{step:3})});this.repositionBoxes({nHeight:r})}if(noIMG){this.repositionBoxes({nHeight:r})}break;case 3:b("#lightbox-loading").hide();b("#lightbox-image").fadeIn("normal",function(){b.Lightbox.showImage(null,{step:4})});this.preloadNeighbours();break;case 4:b("#lightbox-caption-title").html(h.title+(h.description?": ":"")||"view properties located on a map");b("#lightbox-caption-description").html(h.description||"&nbsp;");if(this.images.size()>1){b("#lightbox-currentNumber").html("&nbsp;")}else{b("#lightbox-currentNumber").html("&nbsp;")}b("#lightbox-imageBox").unbind("mouseover").mouseover(function(){b("#lightbox-infoBox").slideDown("fast")});b("#lightbox-infoBox").unbind("mouseover").mouseover(function(){b("#lightbox-infoFooter").slideDown("fast")});b("#lightbox-nav-btnPrev, #lightbox-nav-btnNext").css({background:"transparent url("+this.files.images.blank+") no-repeat"});if(!this.images.first(h)){b("#lightbox-nav-btnPrev").show()}if(!this.images.last(h)){b("#lightbox-nav-btnNext").show()}b("#lightbox-nav").show();this.KeyboardNav_Enable();break;default:this.debug("Don't know what to do: ",t);return this.showImage(h,{step:1})}return true},preloadNeighbours:function(){if(this.images.single()||this.images.empty()){return true}var e=this.images.active();if(!e){return e}var d=this.images.prev(e);var f;if(d){f=new Image();f.src=d.src}var c=this.images.next(e);if(c){f=new Image();f.src=c.src}},debug:function(d){var c=null;if(typeof console!=="undefined"&&typeof console.log!=="undefined"){c=console}else{if(typeof window.console!=="undefined"&&typeof window.console.log!=="undefined"){c=window.console}}if(c){if(typeof arguments!=="undefined"&&arguments.length>1){c.log(arguments);return arguments}else{c.log(d);return d}}},KeyboardNav_Enable:function(){b(document).keydown(function(c){b.Lightbox.KeyboardNav_Action(c)})},KeyboardNav_Disable:function(){b(document).unbind()},KeyboardNav_Action:function(e){var c,d;if(e===null){c=event.keyCode;d=27}else{c=e.keyCode;d=e.DOM_VK_ESCAPE}var f=String.fromCharCode(c).toLowerCase();if(f===this.keys.close||c===d){return b.Lightbox.finish()}if(f===this.keys.prev||c===37){return b.Lightbox.showImage(b.Lightbox.images.prev())}if(f===this.keys.next||c===39){return b.Lightbox.showImage(b.Lightbox.images.next())}return true},getPageSize:function(){var l,j;if(window.innerHeight&&window.scrollMaxY){l=window.innerWidth+window.scrollMaxX;j=window.innerHeight+window.scrollMaxY}else{if(document.body.scrollHeight>document.body.offsetHeight){l=document.body.scrollWidth;j=document.body.scrollHeight}else{l=document.body.offsetWidth;j=document.body.offsetHeight}}var f,c;if(self.innerHeight){if(document.documentElement.clientWidth){f=document.documentElement.clientWidth}else{f=self.innerWidth}c=self.innerHeight}else{if(document.documentElement&&document.documentElement.clientHeight){f=document.documentElement.clientWidth;c=document.documentElement.clientHeight}else{if(document.body){f=document.body.clientWidth;c=document.body.clientHeight}}}if(j<c){pageHeight=c}else{pageHeight=j}if(l<f){pageWidth=l}else{pageWidth=f}var g;var e;var k;var d;if(pageWidth>=f){g=pageWidth;k=f}else{g=f;k=pageWidth}if(pageHeight>=c){e=pageHeight;d=c}else{e=c;d=pageHeight}var h={pageWidth:pageWidth,pageHeight:pageHeight,windowWidth:f,windowHeight:c,largestWidth:g,largestHeight:e};return h},getPageScroll:function(){var e,c;if(self.pageYOffset){c=self.pageYOffset;e=self.pageXOffset}else{if(document.documentElement&&document.documentElement.scrollTop){c=document.documentElement.scrollTop;e=document.documentElement.scrollLeft}else{if(document.body){c=document.body.scrollTop;e=document.body.scrollLeft}}}var d={xScroll:e,yScroll:c};return d},pause:function(e){var d=new Date();var c=null;do{c=new Date()}while(c-d<e)}});b(function(){b.Lightbox=b.Lightbox||new b.LightboxClass();b.Lightbox.domReady()})})(jQuery);jQuery.cookie=function(b,j,m){if(typeof j!="undefined"){m=m||{};if(j===null){j="";m.expires=-1}var e="";if(m.expires&&(typeof m.expires=="number"||m.expires.toUTCString)){var f;if(typeof m.expires=="number"){f=new Date();f.setTime(f.getTime()+(m.expires*24*60*60*1000))}else{f=m.expires}e="; expires="+f.toUTCString()}var l=m.path?"; path="+m.path:"";var g=m.domain?"; domain="+m.domain:"";var a=m.secure?"; secure":"";document.cookie=[b,"=",encodeURIComponent(j),e,l,g,a].join("")}else{var d=null;if(document.cookie&&document.cookie!=""){var k=document.cookie.split(";");for(var h=0;h<k.length;h++){var c=jQuery.trim(k[h]);if(c.substring(0,b.length+1)==(b+"=")){d=decodeURIComponent(c.substring(b.length+1));break}}}return d}};(function(a){a.fn.equalizeCols=function(){var b=0,f=0;var e=new Array();var d=0,c=0;return this.css("min-height","auto").each(function(g){b=Math.max(b,this.offsetHeight);if(car=a(this).css("margin-top").length){e[g]=a(this).css("margin-top").substr(0,car-2);f=Math.max(e[g],f)}}).css("min-height",b).each(function(k){var l=this.offsetHeight;var g=0;g=e[k];k++;if(l>b){a(this).css("min-height",b-(l-b)+(f-g));if(jQuery.browser.msie&&jQuery.browser.version=="6.0"){a(this).css("height",b-(l-b)+(f-g))}}else{a(this).css("min-height",b+(f-g));if(jQuery.browser.msie&&jQuery.browser.version=="6.0"){a(this).css("height",b+(f-g))}}})}})(jQuery);function addEvent_before(b,d,c){if(d=="DOMContentLoaded"||d=="domload"){addDOMLoadEvent(c);return}if(b.addEventListener){b.addEventListener(d,c,false)}else{if(!c.$$guid){c.$$guid=addEvent_before.guid++}if(!b.events){b.events={}}var a=b.events[d];if(!a){a=b.events[d]={};if(b["on"+d]){a[0]=b["on"+d]}}a[c.$$guid]=c;b["on"+d]=handleEvent}}addEvent_before.guid=1;function removeEvent(a,c,b){if(a.removeEventListener){a.removeEventListener(c,b,false)}else{if(a.events&&a.events[c]){delete a.events[c][b.$$guid]}}}function handleEvent(d){var c=true;d=d||fixEvent(((this.ownerDocument||this.document||this).parentWindow||window).event);var a=this.events[d.type];for(var b in a){this.$$handleEvent=a[b];if(this.$$handleEvent(d)===false){c=false}}return c}function fixEvent(a){a.preventDefault=fixEvent.preventDefault;a.stopPropagation=fixEvent.stopPropagation;return a}fixEvent.preventDefault=function(){this.returnValue=false};fixEvent.stopPropagation=function(){this.cancelBubble=true};if(!window.addEventListener){document.onreadystatechange=function(){if(window.onload&&window.onload!=handleEvent){addEvent_before(window,"load",window.onload);window.onload=handleEvent}}}window.onDOMLoadEvents=new Array();window.DOMContentLoadedInitDone=false;function addDOMLoadEvent(a){if(window.DOMContentLoadedInitDone){a();return}window.onDOMLoadEvents[window.onDOMLoadEvents.length]=a}function DOMContentLoadedInit(){if(window.DOMContentLoadedInitDone){return}window.DOMContentLoadedInitDone=true;for(var a=0;a<window.onDOMLoadEvents.length;a++){var b=window.onDOMLoadEvents[a];b()}}function DOMContentLoadedScheduler(){if(window.DOMContentLoadedInitDone){return true}if(/KHTML|WebKit/i.test(navigator.userAgent)){if(/loaded|complete/.test(document.readyState)){DOMContentLoadedInit()}else{setTimeout("DOMContentLoadedScheduler()",150)}}else{if(document.getElementById("__ie_onload")){return true}}if(typeof DOMContentLoadedCustom=="function"){if(typeof document.getElementsByTagName!="undefined"&&(document.getElementsByTagName("body")[0]!=null||document.body!=null)){if(DOMContentLoadedCustom()){DOMContentLoadedInit()}else{setTimeout("DOMContentLoadedScheduler()",150)}}}return true}setTimeout("DOMContentLoadedScheduler()",150);addEvent_before(window,"load",DOMContentLoadedInit);if(document.addEventListener){document.addEventListener("DOMContentLoaded",DOMContentLoadedInit,false);
/*@cc_on @*/
/*@if (@_win32)
	document.write("<script id=__ie_onload defer src=\"//:\"><\/script>");
	var script = document.getElementById("__ie_onload");
	script.onreadystatechange = function() {
		if (this.readyState == "complete") {
			DOMContentLoadedInit(); // call the onload handler
		}
	};
/*@end @*/
}jQuery.fn.addPrintLink=function(b,a){if(b==undefined){b="Print"}if(a==undefined){a="Print this page in text-only format"}output='<a id="print-link" href="#" title="'+a+'" class="fir"><span>&nbsp;</span>'+a+"</a>";jQuery(this).html(output);$("#print-link").click(function(){window.print();return false})};eval(function(h,b,j,d,g,f){g=function(a){return(a<b?"":g(parseInt(a/b)))+((a=a%b)>35?String.fromCharCode(a+29):a.toString(36))};if(!"".replace(/^/,String)){while(j--){f[g(j)]=d[j]||g(j)}d=[function(a){return f[a]}];g=function(){return"\\w+"};j=1}while(j--){if(d[j]){h=h.replace(new RegExp("\\b"+g(j)+"\\b","g"),d[j])}}return h}('(a($){$.i({8:{b:{6:\'j\',7:\'8\',k:/({.*})/,g:\'8\'},q:a(6,7){c.b.6=6;c.b.7=7},l:a(3,d){9 5=$.i({},c.b,d);9 2=$.2(3,5.g);4(2)f 2;2="{}";4(5.6=="j"){9 m=5.k.r(3.s);4(m)2=m[1]}n 4(5.6=="3"){4(!3.o)f;9 e=3.o(5.7);4(e.t)2=$.u(e[0].v)}n 4(3.p!=w){9 h=3.p(5.7);4(h)2=h}4(2.x(\'{\')<0)2="{"+2+"}";2=y("("+2+")");$.2(3,5.g,2);f 2}}});$.z.8=a(d){f $.8.l(c[0],d)}})(A);',37,37,"||data|elem|if|settings|type|name|metadata|var|function|defaults|this|opts||return|single|attr|extend|class|cre|get||else|getElementsByTagName|getAttribute|setType|exec|className|length|trim|innerHTML|undefined|indexOf|eval|fn|jQuery".split("|"),0,{}));jQuery.fn.accessNews=function(a){a=jQuery.extend({newsHeadline:"Top Stories",newsSpeed:"normal",easing:false,slide:2},a);return this.each(function(b){aNewsSlider.itemWidth=parseInt(jQuery(".item:eq("+b+")",".news_slider").css("width"))+parseInt(jQuery(".item:eq("+b+")",".news_slider").css("margin-right"));aNewsSlider.init(a,this);jQuery(".view_all > a",this).click(function(){aNewsSlider.vAll(a,this);return false})})};var aNewsSlider={itemWidth:0,init:function(a,b){jQuery(".messaging",b).css("display","none");itemLength=jQuery(".item",b).length;newsContainerWidth=itemLength*aNewsSlider.itemWidth;jQuery(".container",b).css("width",newsContainerWidth+"px");jQuery(".next",b).css("display","block");animating=false;jQuery(".next",b).click(function(){if(animating==false){animating=true;animateLeft=parseInt(jQuery(".container",b).css("left"))-(aNewsSlider.itemWidth*a.slide);if(animateLeft+parseInt(jQuery(".container",b).css("width"))>0){jQuery(".prev",b).css("display","block");if(a.easing){jQuery(".container",b).animate({left:animateLeft},a.newsSpeed,a.easing,function(){if(parseInt(jQuery(".container",b).css("left"))+parseInt(jQuery(".container",b).css("width"))<=aNewsSlider.itemWidth*a.slide){jQuery(".next",b).css("display","none")}animating=false})}else{jQuery(".container",b).animate({left:animateLeft},a.newsSpeed,function(){jQuery(this).css("left",animateLeft);if(parseInt(jQuery(".container",b).css("left"))+parseInt(jQuery(".container",b).css("width"))<=aNewsSlider.itemWidth*a.slide){jQuery(".next",b).css("display","none")}animating=false})}}else{animating=false}}return false});jQuery(".prev",b).click(function(){if(animating==false){animating=true;animateLeft=parseInt(jQuery(".container",b).css("left"))+(aNewsSlider.itemWidth*a.slide);if((animateLeft+parseInt(jQuery(".container",b).css("width")))<=parseInt(jQuery(".container",b).css("width"))){jQuery(".next",b).css("display","block");if(a.easing){jQuery(".container",b).animate({left:animateLeft},a.newsSpeed,a.easing,function(){if(parseInt(jQuery(".container",b).css("left"))==0){jQuery(".prev",b).css("display","none")}animating=false})}else{jQuery(".container",b).animate({left:animateLeft},a.newsSpeed,function(){jQuery(this).css("left",animateLeft);if(parseInt(jQuery(".container",b).css("left"))==0){jQuery(".prev",b).css("display","none")}animating=false})}}else{animating=false}}return false})},vAll:function(a,b){var c=b;while(b){b=b.parentNode;if(jQuery(b).attr("class")!=undefined&&jQuery(b).attr("class").indexOf("news_slider")!=-1){break}}if(jQuery(c).text().indexOf("View All")!=-1){jQuery(".next",b).css("display","none");jQuery(".prev",b).css("display","none");jQuery(c).text("View Less");jQuery(".container",b).css("left","0px").css("width",aNewsSlider.itemWidth*a.slide+"px")}else{jQuery(c).text("View All");aNewsSlider.init(a,b)}}};jQuery.fn.pager=function(d,a){var c=new Object();var c={pager:{prevText:"&laquo; anterior",nextText:"siguiente &raquo;",prevP:"p&aacute;rrafo anterior",nextP:"p&aacute;rrafo siguiente",gotoP:"salte al p&aacute;rrafo"}};var b={navId:"pagednav",navClass:"pagednav",navAttach:"prepend",highlightClass:"highlight",prevText:c.pager.prevText,nextText:c.pager.nextText,linkText:null,linkWrap:null,height:null};if(a){$.extend(b,a)}return this.each(function(){var l=$(this);var r;var h=0;var o="#"+b.navId;function q(){r=$(d,l).not(o).size();if(b.height==null){b.height=e()}if(r>1){g();m();f()}p();if(b.linkWrap!=null){j()}}function g(){var u="";u+='<ul id="'+b.navId+'" class="'+b.navClass+'">';u+='<li class="prev"><a href="#" rel="prev" title="'+c.pager.prevP+'" class="fir">'+b.prevText+"<span>&nbsp;</span></a></li>";for(var t=0;t<r;t++){var s=t+1;u+='<li><a href="#" title="'+c.pager.gotoP+" "+s+'" rel="'+s+'">';u+=(b.linkText==null)?s:b.linkText[s-1];u+="</a></li>"}u+='<li class="next"><a href="#" rel="next" title="'+c.pager.nextP+'" class="fir">'+b.nextText+"<span>&nbsp;</span></a></li>";u+="</ul>";switch(b.navAttach){case"before":$(l).before(u);break;case"after":$(l).after(u);break;case"prepend":$(l).prepend(u);break;default:$(l).append(u);break}}function m(){$(l).find(d).not(o).hide();var s=$(l).find(d).not(o).get(h);$(s).show()}function f(){$(l).find(o).find("a").removeClass(b.highlightClass);var s=$(l).find(o).find("a").get(h+1);$(s).addClass(b.highlightClass)}function p(){if($.browser.msie){$(l).find(d).not(o).css({height:b.height})}else{$(l).find(d).not(o).css({minHeight:b.height})}}function e(){var s=0;$(l).find(d).not(o).each(function(){if(this.offsetHeight>s){s=this.offsetHeight}});s=s+"px";return s}function k(){var s=$(o).get(0);return s.offsetHeight}function j(){$(l).find(o).find("a").wrap(b.linkWrap)}q();$(this).find(o).find("a").click(function(){if($(this).attr("rel")=="next"){if(h+1<r){h=h+1}}else{if($(this).attr("rel")=="prev"){if(h>0){h=h-1}}else{var s=$(this).attr("rel");h=s-1}}m();f();return false})})};jQuery.extend(jQuery.fn,{validate:function(a){if(!this.length){a&&a.debug&&window.console&&console.warn("nothing selected, can't validate, returning nothing");return}var b=jQuery.data(this[0],"validator");if(b){return b}b=new jQuery.validator(a,this[0]);jQuery.data(this[0],"validator",b);if(b.settings.onsubmit){this.find("input.cancel:submit").click(function(){b.cancelSubmit=true});this.submit(function(c){if(b.settings.debug){c.preventDefault()}function d(){if(b.settings.submitHandler){b.settings.submitHandler.call(b,b.currentForm);return false}return true}if(b.cancelSubmit){b.cancelSubmit=false;return d()}if(b.form()){if(b.pendingRequest){b.formSubmitted=true;return false}return d()}else{b.focusInvalid();return false}})}return b},valid:function(){if(jQuery(this[0]).is("form")){return this.validate().form()}else{var b=true;var a=jQuery(this[0].form).validate();this.each(function(){b=a.element(this)&&b});return b}},rules:function(){var a=this[0];var b=jQuery.validator.normalizeRules(jQuery.extend({},jQuery.validator.metadataRules(a),jQuery.validator.classRules(a),jQuery.validator.attributeRules(a),jQuery.validator.staticRules(a)),a);var c=[];if(b.required){c.push({method:"required",parameters:b.required});delete b.required}jQuery.each(b,function(e,d){c.push({method:e,parameters:d})});return c},push:function(a){return this.setArray(this.add(a).get())}});jQuery.extend(jQuery.expr[":"],{blank:"!jQuery.trim(a.value)",filled:"!!jQuery.trim(a.value)",unchecked:"!a.checked"});jQuery.format=function(a,b){if(arguments.length==1){return function(){var c=jQuery.makeArray(arguments);c.unshift(a);return jQuery.format.apply(this,c)}}if(arguments.length>2&&b.constructor!=Array){b=jQuery.makeArray(arguments).slice(1)}if(b.constructor!=Array){b=[b]}jQuery.each(b,function(c,d){a=a.replace(new RegExp("\\{"+c+"\\}","g"),d)});return a};jQuery.validator=function(a,b){this.settings=jQuery.extend({},jQuery.validator.defaults,a);this.currentForm=b;this.init()};jQuery.extend(jQuery.validator,{defaults:{messages:{},errorClass:"error",errorElement:"label",focusInvalid:true,errorContainer:jQuery([]),errorLabelContainer:jQuery([]),onsubmit:true,ignore:[],onfocusin:function(a){this.lastActive=a;if(this.settings.focusCleanup&&!this.blockFocusCleanup){this.settings.unhighlight&&this.settings.unhighlight.call(this,a,this.settings.errorClass);this.errorsFor(a).hide()}},onfocusout:function(a){if(!this.checkable(a)&&(a.name in this.submitted||!this.optional(a))){this.element(a)}},onkeyup:function(a){if(a.name in this.submitted||a==this.lastElement){this.element(a)}},onclick:function(a){if(a.name in this.submitted){this.element(a)}},highlight:function(b,a){jQuery(b).addClass(a)},unhighlight:function(b,a){jQuery(b).removeClass(a)}},setDefaults:function(a){jQuery.extend(jQuery.validator.defaults,a)},messages:{required:"This field is required.",remote:"Please fix this field.",email:"Please enter a valid email address.",url:"Please enter a valid URL.",date:"Please enter a valid date.",dateISO:"Please enter a valid date (ISO).",dateDE:"Bitte geben Sie ein gültiges Datum ein.",number:"Please enter a valid number.",numberDE:"Bitte geben Sie eine Nummer ein.",digits:"Please enter only digits",creditcard:"Please enter a valid credit card.",equalTo:"Please enter the same value again.",accept:"Please enter a value with a valid extension.",maxlength:jQuery.format("Please enter no more than {0} characters."),maxLength:jQuery.format("Please enter no more than {0} characters."),minlength:jQuery.format("Please enter at least {0} characters."),minLength:jQuery.format("Please enter at least {0} characters."),rangelength:jQuery.format("Please enter a value between {0} and {1} characters long."),rangeLength:jQuery.format("Please enter a value between {0} and {1} characters long."),rangeValue:jQuery.format("Please enter a value between {0} and {1}."),range:jQuery.format("Please enter a value between {0} and {1}."),maxValue:jQuery.format("Please enter a value less than or equal to {0}."),max:jQuery.format("Please enter a value less than or equal to {0}."),minValue:jQuery.format("Please enter a value greater than or equal to {0}."),min:jQuery.format("Please enter a value greater than or equal to {0}.")},autoCreateRanges:false,prototype:{init:function(){this.labelContainer=jQuery(this.settings.errorLabelContainer);this.errorContext=this.labelContainer.length&&this.labelContainer||jQuery(this.currentForm);this.containers=jQuery(this.settings.errorContainer).add(this.settings.errorLabelContainer);this.submitted={};this.valueCache={};this.pendingRequest=0;this.pending={};this.invalid={};this.reset();function a(c){var b=jQuery.data(this[0].form,"validator");b.settings["on"+c.type]&&b.settings["on"+c.type].call(b,this[0])}jQuery(this.currentForm).delegate("focusin focusout keyup",":text, :password, :file, select, textarea",a).delegate("click",":radio, :checkbox",a)},form:function(){this.prepareForm();var b=this.elements();for(var a=0;b[a];a++){this.check(b[a])}jQuery.extend(this.submitted,this.errorMap);this.invalid=jQuery.extend({},this.errorMap);jQuery(this.currentForm).triggerHandler("invalid-form.validate",[this]);this.showErrors();return this.valid()},element:function(b){b=this.clean(b);this.lastElement=b;this.prepareElement(b);var a=this.check(b);if(a){delete this.invalid[b.name]}else{this.invalid[b.name]=true}if(!this.numberOfInvalids()){this.toHide.push(this.containers)}this.showErrors();return a},showErrors:function(b){if(b){jQuery.extend(this.errorMap,b);this.errorList=[];for(var a in b){this.errorList.push({message:b[a],element:this.findByName(a)[0]})}this.successList=jQuery.grep(this.successList,function(c){return !(c.name in b)})}this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors()},resetForm:function(){if(jQuery.fn.resetForm){jQuery(this.currentForm).resetForm()}this.prepareForm();this.hideErrors();this.elements().removeClass(this.settings.errorClass)},numberOfInvalids:function(){var b=0;for(var a in this.invalid){b++}return b},hideErrors:function(){this.addWrapper(this.toHide).hide()},valid:function(){return this.size()==0},size:function(){return this.errorList.length},focusInvalid:function(){if(this.settings.focusInvalid){try{jQuery(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").focus()}catch(a){}}},findLastActive:function(){var a=this.lastActive;return a&&jQuery.grep(this.errorList,function(b){return b.element.name==a.name}).length==1&&a},elements:function(){var b=this;var a={};return jQuery([]).add(this.currentForm.elements).filter("input, select, textarea").not(":submit, :reset, [disabled]").not(this.settings.ignore).filter(function(){!this.name&&b.settings.debug&&window.console&&console.error("%o has no name assigned",this);if(this.name in a||!jQuery(this).rules().length){return false}a[this.name]=true;return true})},clean:function(a){return jQuery(a)[0]},errors:function(){return jQuery(this.settings.errorElement+"."+this.settings.errorClass,this.errorContext)},reset:function(){this.successList=[];this.errorList=[];this.errorMap={};this.toShow=jQuery([]);this.toHide=jQuery([]);this.formSubmitted=false},prepareForm:function(){this.reset();this.toHide=this.errors().push(this.containers)},prepareElement:function(a){this.reset();this.toHide=this.errorsFor(this.clean(a))},check:function(c){c=this.clean(c);this.settings.unhighlight&&this.settings.unhighlight.call(this,c,this.settings.errorClass);var g=jQuery(c).rules();for(var b=0;g[b];b++){var f=g[b];try{var a=jQuery.validator.methods[f.method].call(this,jQuery.trim(c.value),c,f.parameters);if(a=="dependency-mismatch"){return}if(a=="pending"){this.toHide=this.toHide.not(this.errorsFor(c));return}if(!a){this.formatAndAdd(c,f);return false}}catch(d){this.settings.debug&&window.console&&console.warn("exception occured when checking element "+c.id+", check the '"+f.method+"' method");throw d}}if(g.length){this.successList.push(c)}return true},customMessage:function(b,c){var a=this.settings.messages[b];return a&&(a.constructor==String?a:a[c])},findDefined:function(){for(var a=0;a<arguments.length;a++){if(arguments[a]!==undefined){return arguments[a]}}return undefined},defaultMessage:function(a,b){return this.findDefined(this.customMessage(a.name,b),a.title||undefined,jQuery.validator.messages[b],"<strong>Warning: No message defined for "+a.name+"</strong>")},formatAndAdd:function(a,c){var b=this.defaultMessage(a,c.method);if(typeof b=="function"){b=b.call(this,c.parameters,a)}this.errorList.push({message:b,element:a});this.errorMap[a.name]=b;this.submitted[a.name]=b},addWrapper:function(a){if(this.settings.wrapper){a.push(a.parents(this.settings.wrapper))}return a},defaultShowErrors:function(){for(var b=0;this.errorList[b];b++){var a=this.errorList[b];this.settings.highlight&&this.settings.highlight.call(this,a.element,this.settings.errorClass);this.showLabel(a.element,a.message)}if(this.errorList.length){this.toShow.push(this.containers)}if(this.settings.success){for(var b=0;this.successList[b];b++){this.showLabel(this.successList[b])}}this.toHide=this.toHide.not(this.toShow);this.hideErrors();this.addWrapper(this.toShow).show()},showLabel:function(b,c){var a=this.errorsFor(b);if(a.length){a.removeClass().addClass(this.settings.errorClass);a.attr("generated")&&a.html(c)}else{a=jQuery("<"+this.settings.errorElement+"/>").attr({"for":this.idOrName(b),generated:true}).addClass(this.settings.errorClass).html(c||"");if(this.settings.wrapper){a=a.hide().show().wrap("<"+this.settings.wrapper+">").parent()}if(!this.labelContainer.append(a).length){this.settings.errorPlacement?this.settings.errorPlacement(a,jQuery(b)):a.insertAfter(b)}}if(!c&&this.settings.success){a.text("");typeof this.settings.success=="string"?a.addClass(this.settings.success):this.settings.success(a)}this.toShow.push(a)},errorsFor:function(a){return this.errors().filter("[@for='"+this.idOrName(a)+"']")},idOrName:function(a){return this.checkable(a)?a.name:a.id||a.name},rules:function(a){return jQuery(a).rules()},checkable:function(a){return/radio|checkbox/i.test(a.type)},findByName:function(a){var b=this.currentForm;return jQuery(document.getElementsByName(a)).map(function(c,d){return d.form==b&&d||null})},getLength:function(b,a){switch(a.nodeName.toLowerCase()){case"select":return jQuery("option:selected",a).length;case"input":if(this.checkable(a)){return this.findByName(a.name).filter(":checked").length}}return b.length},depend:function(b,a){return this.dependTypes[typeof b]?this.dependTypes[typeof b](b,a):true},dependTypes:{"boolean":function(b,a){return b},string:function(b,a){return !!jQuery(b,a.form).length},"function":function(b,a){return b(a)}},optional:function(a){return !jQuery.validator.methods.required.call(this,jQuery.trim(a.value),a)&&"dependency-mismatch"},startRequest:function(a){if(!this.pending[a.name]){this.pendingRequest++;this.pending[a.name]=true}},stopRequest:function(a,b){this.pendingRequest--;if(this.pendingRequest<0){this.pendingRequest=0}delete this.pending[a.name];if(b&&this.pendingRequest==0&&this.formSubmitted&&this.form()){jQuery(this.currentForm).submit()}},previousValue:function(a){return jQuery.data(a,"previousValue")||jQuery.data(a,"previousValue",previous={old:null,valid:true,message:this.defaultMessage(a,"remote")})}},classRuleSettings:{required:{required:true},email:{email:true},url:{url:true},date:{date:true},dateISO:{dateISO:true},dateDE:{dateDE:true},number:{number:true},numberDE:{numberDE:true},digits:{digits:true},creditcard:{creditcard:true}},addClassRules:function(a,b){a.constructor==String?this.classRuleSettings[a]=b:jQuery.extend(this.classRuleSettings,a)},classRules:function(b){var c={};var a=jQuery(b).attr("class");a&&jQuery.each(a.split(" "),function(){if(this in jQuery.validator.classRuleSettings){jQuery.extend(c,jQuery.validator.classRuleSettings[this])}});return c},attributeRules:function(b){var d={};var a=jQuery(b);for(method in jQuery.validator.methods){var c=a.attr(method);if(c!==undefined&&c!==""){d[method]=c}}if(d.maxlength&&/-1|2147483647|524288/.test(d.maxlength)){delete d.maxlength;delete d.maxLength}return d},metadataRules:function(a){if(!jQuery.metadata){return{}}var b=jQuery.data(a.form,"validator").settings.meta;return b?jQuery(a).metadata()[b]:jQuery(a).metadata()},staticRules:function(b){var c={};var a=jQuery.data(b.form,"validator");if(a.settings.rules){c=jQuery.validator.normalizeRule(a.settings.rules[b.name])||{}}return c},normalizeRules:function(b,a){jQuery.each({minLength:"minlength",maxLength:"maxlength",rangeLength:"rangelength",minValue:"min",maxValue:"max",rangeValue:"range"},function(d,c){if(b[d]){b[c]=b[d];delete b[d]}});jQuery.each(b,function(c,d){b[c]=jQuery.isFunction(d)?d(a):d});jQuery.each(["minlength","maxlength","min","max"],function(){if(b[this]){b[this]=Number(b[this])}});jQuery.each(["rangelength","range"],function(){if(b[this]){b[this]=[Number(b[this][0]),Number(b[this][1])]}});if(jQuery.validator.autoCreateRanges){if(b.min&&b.max){b.range=[b.min,b.max];delete b.min;delete b.max}if(b.minlength&&b.maxlength){b.rangelength=[b.minlength,b.maxlength];delete b.minlength;delete b.maxlength}}return b},normalizeRule:function(b){if(typeof b=="string"){var a={};a[b]=true;b=a}return b},addMethod:function(a,c,b){jQuery.validator.methods[a]=c;jQuery.validator.messages[a]=b;if(c.length<3){jQuery.validator.addClassRules(a,jQuery.validator.normalizeRule(a))}},methods:{required:function(c,b,d){if(!this.depend(d,b)){return"dependency-mismatch"}switch(b.nodeName.toLowerCase()){case"select":var a=jQuery("option:selected",b);return a.length>0&&(b.type=="select-multiple"||(jQuery.browser.msie&&!(a[0].attributes.value.specified)?a[0].text:a[0].value).length>0);case"input":if(this.checkable(b)){return this.getLength(c,b)>0}default:return c.length>0}},remote:function(e,b,f){if(this.optional(b)){return"dependency-mismatch"}var c=this.previousValue(b);if(!this.settings.messages[b.name]){this.settings.messages[b.name]={}}this.settings.messages[b.name].remote=typeof c.message=="function"?c.message(e):c.message;if(c.old!==e){c.old=e;var a=this;this.startRequest(b);var d={};d[b.name]=e;jQuery.ajax({url:f,mode:"abort",port:"validate"+b.name,dataType:"json",data:d,success:function(h){if(!h){var j={};j[b.name]=h||a.defaultMessage(b,"remote");a.showErrors(j)}else{var g=a.formSubmitted;a.prepareElement(b);a.formSubmitted=g;a.successList.push(b);a.showErrors()}c.valid=h;a.stopRequest(b,h)}});return"pending"}else{if(this.pending[b.name]){return"pending"}}return c.valid},minlength:function(b,a,c){return this.optional(a)||this.getLength(b,a)>=c},minLength:function(b,a,c){return jQuery.validator.methods.minlength.apply(this,arguments)},maxlength:function(b,a,c){return this.optional(a)||this.getLength(b,a)<=c},maxLength:function(b,a,c){return jQuery.validator.methods.maxlength.apply(this,arguments)},rangelength:function(c,a,d){var b=this.getLength(c,a);return this.optional(a)||(b>=d[0]&&b<=d[1])},rangeLength:function(b,a,c){return jQuery.validator.methods.rangelength.apply(this,arguments)},min:function(b,a,c){return this.optional(a)||b>=c},minValue:function(){return jQuery.validator.methods.min.apply(this,arguments)},max:function(b,a,c){return this.optional(a)||b<=c},maxValue:function(){return jQuery.validator.methods.max.apply(this,arguments)},range:function(b,a,c){return this.optional(a)||(b>=c[0]&&b<=c[1])},rangeValue:function(){return jQuery.validator.methods.range.apply(this,arguments)},email:function(b,a){return this.optional(a)||/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i.test(b)},url:function(b,a){return this.optional(a)||/^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i.test(b)},date:function(b,a){return this.optional(a)||!/Invalid|NaN/.test(new Date(b))},dateISO:function(b,a){return this.optional(a)||/^\d{4}[\/-]\d{1,2}[\/-]\d{1,2}$/.test(b)},dateDE:function(b,a){return this.optional(a)||/^\d\d?\.\d\d?\.\d\d\d?\d?$/.test(b)},number:function(b,a){return this.optional(a)||/^-?(?:\d+|\d{1,3}(?:,\d{3})+)(?:\.\d+)?$/.test(b)},numberDE:function(b,a){return this.optional(a)||/^-?(?:\d+|\d{1,3}(?:\.\d{3})+)(?:,\d+)?$/.test(b)},digits:function(b,a){return this.optional(a)||/^\d+$/.test(b)},creditcard:function(e,b){if(this.optional(b)){return"dependency-mismatch"}var f=0,d=0,a=false;e=e.replace(/\D/g,"");for(n=e.length-1;n>=0;n--){var c=e.charAt(n);var d=parseInt(c,10);if(a){if((d*=2)>9){d-=9}}f+=d;a=!a}return(f%10)==0},accept:function(b,a,c){c=typeof c=="string"?c:"png|jpe?g|gif";return this.optional(a)||b.match(new RegExp(".("+c+")$","i"))},equalTo:function(b,a,c){return b==jQuery(c).val()}}});(function(c){var b=c.ajax;var a={};c.ajax=function(e){e=jQuery.extend(e,jQuery.extend({},jQuery.ajaxSettings,e));var d=e.port;if(e.mode=="abort"){if(a[d]){a[d].abort()}return a[d]=b.apply(this,arguments)}return b.apply(this,arguments)}})(jQuery);(function(a){a.extend(a.event.special,{focusin:{setup:function(){if(a.browser.msie){return false}this.addEventListener("focus",a.event.special.focusin.handler,true)},teardown:function(){if(a.browser.msie){return false}this.removeEventListener("focus",a.event.special.focusin.handler,true)},handler:function(c){var b=Array.prototype.slice.call(arguments,1);b.unshift(a.extend(a.event.fix(c),{type:"focusin"}));return a.event.handle.apply(this,b)}},focusout:{setup:function(){if(a.browser.msie){return false}this.addEventListener("blur",a.event.special.focusout.handler,true)},teardown:function(){if(a.browser.msie){return false}this.removeEventListener("blur",a.event.special.focusout.handler,true)},handler:function(c){var b=Array.prototype.slice.call(arguments,1);b.unshift(a.extend(a.event.fix(c),{type:"focusout"}));return a.event.handle.apply(this,b)}}});a.extend(a.fn,{delegate:function(d,c,b){return this.bind(d,function(e){var f=a(e.target);if(f.is(c)){return b.apply(f,arguments)}})},triggerEvent:function(b,c){return this.triggerHandler(b,[jQuery.event.fix({type:b,target:c})])}})})(jQuery);(function(b){b.ifixpng=function(c){b.ifixpng.pixel=c};b.ifixpng.getPixel=function(){return b.ifixpng.pixel||"images/pixel.gif"};var a={ltie7:b.browser.msie&&b.browser.version<7,filter:function(c){return"progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true,sizingMethod=crop,src='"+c+"')"}};b.fn.ifixpng=a.ltie7?function(){return this.each(function(){var c=b(this);var e=b("base").attr("href");if(c.is("img")||c.is("input")){if(c.attr("src")){if(c.attr("src").match(/.*\.png([?].*)?$/i)){var d=(e&&c.attr("src").substring(0,1)!="/")?e+c.attr("src"):c.attr("src");c.css({filter:a.filter(d),width:c.width(),height:c.height()}).attr({src:b.ifixpng.getPixel()}).positionFix()}}}else{var f=c.css("backgroundImage");if(f.match(/^url\(["']?(.*\.png([?].*)?)["']?\)$/i)){f=RegExp.$1;c.css({backgroundImage:"none",filter:a.filter(f)}).children().children().positionFix()}}})}:function(){return this};b.fn.iunfixpng=a.ltie7?function(){return this.each(function(){var c=b(this);var d=c.css("filter");if(d.match(/src=["']?(.*\.png([?].*)?)["']?/i)){d=RegExp.$1;if(c.is("img")||c.is("input")){c.attr({src:d}).css({filter:""})}else{c.css({filter:"",background:"url("+d+")"})}}})}:function(){return this};b.fn.positionFix=function(){return this.each(function(){var d=b(this);var c=d.css("position");if(c!="absolute"&&c!="relative"){d.css({position:"relative"})}})}})(jQuery);jQuery.fn.scrollTo=function(e,c){c=c||{};var a={},f=c.horizontal?"left":"top",b="scroll"+f.charAt(0).toUpperCase()+f.substring(1),d;return this.each(function(){switch(typeof e){case"string":if(d=/^([+-])?(=)?\d+(px)?jQuery/.exec(e)){if(!c.speed&&(d[1]||d[2]||d[3])){c.speed=1}break}e=jQuery(e,this);case"object":e=jQuery(e).offset()[f];if(!jQuery(this).is("html,body")){e-=jQuery(this).offset()[f]}}if(c.speed){a[b]=e;jQuery(this).animate(a,c.speed,c.easing,c.onafter)}else{this[b]=e;if(c.onafter){c.onafter.call(this)}}})};jQuery.scrollTo=function(b,a){return jQuery("html,body").scrollTo(b,a)};(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:["even","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(a){a.validate=function(l){l=l||{};l.fieldset=l.fieldset||"";l.messagecontainer=l.messagecontainer||"#validationmsg";l.errormsg=l.errormsg||".errmsg";l.notvalidclass=l.notvalidclass||"notvalid";l.messageheader=l.messageheader||"Hittade n�gra problem i formul�ret";l.onerror=l.onerror||"";l.erroridprefix=l.erroridprefix||"validationerror_";l.selectboxdefault=l.selectboxdefault||[""];l.selectboxdefaultclass=l.selectboxdefaultclass||"defaultval";l.usedefault=l.usedefault||false;var f=new Array();a(l.messagecontainer).empty();a("."+l.notvalidclass).each(function(m,o){a(o).removeClass(l.notvalidclass)});function d(o){var m=/^[a-zA-Z0-9._-]+@([a-zA-Z0-9.-]+\.)+[a-zA-Z0-9.-]{2,4}$/;return m.test(o)}function h(o){var m=/^[0-9-]*$/;return m.test(o)}function c(m){if(m.value==""){return true}if(l.usedefault&&m.value==a(m).attr("title")){return true}return false}function g(m){return a(m.parentNode).find(l.errormsg).html()}function j(m){if(c(m)==true||(a(m).hasClass("email")&&d(m.value)==false)){f.push({id:m.id,msg:g(m),type:"text"})}if(c(m)==false&&a(m).hasClass("number")&&h(m.value)==false){f.push({id:m.id,msg:g(m),type:"number"})}}function k(m){if(m.checked!=true){f.push({id:m.id,msg:g(m),type:"checkbox"})}}function b(m){if(a.inArray(m.value,l.selectboxdefault)>-1||m[m.selectedIndex].className==l.selectboxdefaultclass){f.push({id:m.id,msg:g(m),type:"select-one"})}}a(l.fieldset+" .required").each(function(m,o){switch(o.type){case"checkbox":k(o);break;case"text":case"file":case"textarea":j(o);break;case"select-one":b(o)}});a(l.fieldset+" .checkboxgroup,"+l.fieldset+" .radiogroup").each(function(m,p){var o=0;var q=a(p).find(l.errormsg).text();a(p).find("input[type=checkbox], input[type=radio]").each(function(r,s){if(s.checked){o++}});if(o==0){f.push({id:p.id,msg:q,type:"group"})}});if(f.length>0){if(typeof(l.onerror)=="function"){l.onerror(f);return false}a(l.messagecontainer).fadeIn("slow");a("<h4/>").text(l.messageheader).appendTo(a(l.messagecontainer));var e=a("<ul/>");a(f).each(function(m,o){a("#"+o.id).addClass(l.notvalidclass);a("<li />").html(o.msg).attr("id",l.erroridprefix+o.id).appendTo(e)});e.appendTo(a(l.messagecontainer));return false}a(l.messagecontainer).fadeOut();return true}})(jQuery);
