﻿$(document).ready(function(){var e = document.createElement("div");var s=document.createTextNode("S");e.appendChild(s);e.style.visibility="hidden";e.style.position="absolute";e.style.top="0";document.body.appendChild(e);var defHeight = e.offsetHeight;var sets = [];var flatHeights=function(set){var maxHeight=0;set.each(function(){var height=this.offsetHeight;if(height>maxHeight)maxHeight=height;});set.css('height', maxHeight + 'px');};jQuery.fn.flatHeights=function(){if(this.length>1){flatHeights(this);sets.push(this);}return this;};checkBoxSize=function(){if(defHeight!=e.offsetHeight){$.each(sets,function(){this.height('auto');flatHeights(this);});defHeight=e.offsetHeight;}};setInterval(checkBoxSize,1000);$('.equalize').flatHeights();$('.equalizearea > div').flatHeights();jQuery.easing.easeOut=function(x,t,b,c,d){return (t==d)?b+c:c*(-Math.pow(2,-10*t/d)+1)+b;};$('a[href*=#]').click(function(){if(location.pathname.replace(/^\//,'')==this.pathname.replace(/^\//,'')&&location.hostname==this.hostname){var target=$(this.hash);var scspeed=800;target=target.length&&target;if(target.length){var targetOffset=target.offset().top;$('html,body').animate({scrollTop: targetOffset},{duration:scspeed,easing:"easeOut"});return false;}}});$('a[@href^="http://"].blank').click(function(){window.open(this.href,'_blank');return false;});function initRollOverImages(){var image_cache=new Object();$("img.hover").not("[@src*='_on.']").each(function(i){var imgsrc=this.src;var dot=this.src.lastIndexOf('.');var imgsrc_on=this.src.substr(0,dot)+'_on'+this.src.substr(dot,4);image_cache[this.src]=new Image();image_cache[this.src].src=imgsrc_on;$(this).hover(function(){this.src=imgsrc_on;},function(){this.src=imgsrc;});});$(".hoverarea>img").not("[@src*='_on.']").each(function(i){var imgsrc=this.src;var dot=this.src.lastIndexOf('.');var imgsrc_on=this.src.substr(0,dot)+'_on'+this.src.substr(dot,4);image_cache[this.src]=new Image();image_cache[this.src].src=imgsrc_on;$(this).hover(function(){this.src=imgsrc_on;},function(){this.src=imgsrc;});});}$(document).ready(initRollOverImages);});