window.log=function(){log.history=log.history||[];log.history.push(arguments);arguments.callee=arguments.callee.caller;if(this.console){console.log(Array.prototype.slice.call(arguments))}};(function(b){function c(){}for(var d="assert,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,markTimeline,profile,profileEnd,time,timeEnd,trace,warn".split(","),a;a=d.pop();){b[a]=b[a]||c}})(window.console=window.console||{});(function($){$.quote_rotator={defaults:{rotation_speed:5000,pause_on_hover:true,randomize_first_quote:false,buttons:false}};$.fn.extend({quote_rotator:function(config){var config=$.extend({},$.quote_rotator.defaults,config);return this.each(function(){var rotation;var quote_list=$(this);var list_items=quote_list.find("li");var rotation_active=true;var rotation_speed=config.rotation_speed<2000?2000:config.rotation_speed;var add_active_class=function(){var active_class_not_already_applied=quote_list.find("li.active").length===0;if(config.randomize_first_quote){var random_list_item=$(list_items[Math.floor(Math.random()*(list_items.length))]);random_list_item.addClass("active")}else{if(active_class_not_already_applied){quote_list.find("li:first").addClass("active")}}}();var get_next_quote=function(quote){return quote.next("li").length?quote.next("li"):quote_list.find("li:first")};var get_previous_quote=function(quote){return quote.prev("li").length?quote.prev("li"):quote_list.find("li:last")};var rotate_quotes=function(direction){var active_quote=quote_list.find("li.active");var next_quote=direction==="forward"?get_next_quote(active_quote):get_previous_quote(active_quote);active_quote.animate({opacity:0},1000,function(){active_quote.hide();list_items.css("opacity",1);next_quote.fadeIn(1000)});active_quote.removeClass("active");next_quote.addClass("active")};var start_automatic_rotation=function(){rotation=setInterval(function(){if(rotation_active){rotate_quotes("forward")}},rotation_speed)};var pause_rotation_on_hover=function(){quote_list.hover(function(){rotation_active=false},function(){rotation_active=true})};var include_next_previous_buttons=function(){quote_list.append('<div class="qr_buttons">              <button class="qr_previous">'+config.buttons.previous+'</button>              <button class="qr_next">'+config.buttons.next+"</button>            </div>");quote_list.find("button").click(function(){clearInterval(rotation);rotate_quotes($(this).hasClass("qr_next")?"forward":"backward");start_automatic_rotation()})};if(config.buttons){include_next_previous_buttons()}if(config.pause_on_hover){pause_rotation_on_hover()}list_items.not(".active").hide();start_automatic_rotation()})}})})(jQuery);(function(d){var k=d.scrollTo=function(a,i,e){d(window).scrollTo(a,i,e)};k.defaults={axis:"xy",duration:parseFloat(d.fn.jquery)>=1.3?0:1};k.window=function(a){return d(window)._scrollable()};d.fn._scrollable=function(){return this.map(function(){var a=this,i=!a.nodeName||d.inArray(a.nodeName.toLowerCase(),["iframe","#document","html","body"])!=-1;if(!i){return a}var e=(a.contentWindow||a).document||a.ownerDocument||a;return d.browser.safari||e.compatMode=="BackCompat"?e.body:e.documentElement})};d.fn.scrollTo=function(n,j,b){if(typeof j=="object"){b=j;j=0}if(typeof b=="function"){b={onAfter:b}}if(n=="max"){n=9000000000}b=d.extend({},k.defaults,b);j=j||b.speed||b.duration;b.queue=b.queue&&b.axis.length>1;if(b.queue){j/=2}b.offset=p(b.offset);b.over=p(b.over);return this._scrollable().each(function(){var q=this,r=d(q),f=n,s,g={},u=r.is("html,body");switch(typeof f){case"number":case"string":if(/^([+-]=)?\d+(\.\d+)?(px|%)?$/.test(f)){f=p(f);break}f=d(f,this);case"object":if(f.is||f.style){s=(f=d(f)).offset()}}d.each(b.axis.split(""),function(a,i){var e=i=="x"?"Left":"Top",h=e.toLowerCase(),c="scroll"+e,l=q[c],m=k.max(q,i);if(s){g[c]=s[h]+(u?0:l-r.offset()[h]);if(b.margin){g[c]-=parseInt(f.css("margin"+e))||0;g[c]-=parseInt(f.css("border"+e+"Width"))||0}g[c]+=b.offset[h]||0;if(b.over[h]){g[c]+=f[i=="x"?"width":"height"]()*b.over[h]}}else{var o=f[h];g[c]=o.slice&&o.slice(-1)=="%"?parseFloat(o)/100*m:o}if(/^\d+$/.test(g[c])){g[c]=g[c]<=0?0:Math.min(g[c],m)}if(!a&&b.queue){if(l!=g[c]){t(b.onAfterFirst)}delete g[c]}});t(b.onAfter);function t(a){r.animate(g,j,b.easing,a&&function(){a.call(this,n,b)})}}).end()};k.max=function(a,i){var e=i=="x"?"Width":"Height",h="scroll"+e;if(!d(a).is("html,body")){return a[h]-d(a)[e.toLowerCase()]()}var c="client"+e,l=a.ownerDocument.documentElement,m=a.ownerDocument.body;return Math.max(l[h],m[h])-Math.min(l[c],m[c])};function p(a){return typeof a=="object"?a:{top:a,left:a}}})(jQuery);jQuery(function(e,i){function j(){var a=e("script:first"),b=a.css("color"),c=false;if(/^rgba/.test(b)){c=true}else{try{c=b!=a.css("color","rgba(0, 0, 0, 0.5)").css("color");a.css("color",b)}catch(d){}}return c}function k(a,b,c){var d=[];a.c&&d.push("inset");typeof b.left!="undefined"&&d.push(parseInt(a.left+c*(b.left-a.left),10)+"px "+parseInt(a.top+c*(b.top-a.top),10)+"px");typeof b.blur!="undefined"&&d.push(parseInt(a.blur+c*(b.blur-a.blur),10)+"px");typeof b.a!="undefined"&&d.push(parseInt(a.a+c*(b.a-a.a),10)+"px");if(typeof b.color!="undefined"){var g="rgb"+(e.support.rgba?"a":"")+"("+parseInt(a.color[0]+c*(b.color[0]-a.color[0]),10)+","+parseInt(a.color[1]+c*(b.color[1]-a.color[1]),10)+","+parseInt(a.color[2]+c*(b.color[2]-a.color[2]),10);if(e.support.rgba){g+=","+parseFloat(a.color[3]+c*(b.color[3]-a.color[3]))}g+=")";d.push(g)}return d.join(" ")}function h(a){var b,c,d={};if(b=/#([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})/.exec(a)){c=[parseInt(b[1],16),parseInt(b[2],16),parseInt(b[3],16),1]}else{if(b=/#([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])/.exec(a)){c=[parseInt(b[1],16)*17,parseInt(b[2],16)*17,parseInt(b[3],16)*17,1]}else{if(b=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(a)){c=[parseInt(b[1],10),parseInt(b[2],10),parseInt(b[3],10),1]}else{if(b=/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9\.]*)\s*\)/.exec(a)){c=[parseInt(b[1],10),parseInt(b[2],10),parseInt(b[3],10),parseFloat(b[4])]}}}}d=(b=/(-?[0-9]+)(?:px)?\s+(-?[0-9]+)(?:px)?(?:\s+(-?[0-9]+)(?:px)?)?(?:\s+(-?[0-9]+)(?:px)?)?/.exec(a))?{left:parseInt(b[1],10),top:parseInt(b[2],10),blur:b[3]?parseInt(b[3],10):0,a:b[4]?parseInt(b[4],10):0}:{left:0,top:0,blur:0,a:0};d.c=/inset/.test(a);d.color=c;return d}e.extend(true,e,{support:{rgba:j()}});var f;e.each(["boxShadow","MozBoxShadow","WebkitBoxShadow"],function(a,b){a=e("html").css(b);if(typeof a=="string"&&a!=""){f=b;return false}});if(f){e.fx.step.boxShadow=function(a){if(!a.init){a.b=h(e(a.elem).get(0).style[f]||e(a.elem).css(f));a.end=e.extend({},a.b,h(a.end));if(a.b.color==i){a.b.color=a.end.color||[0,0,0]}a.init=true}a.elem.style[f]=k(a.b,a.end,a.pos)}}});jQuery.fn.pulse=function(prop,speed,times,easing,callback){if(isNaN(times)){callback=easing;easing=times;times=1}var optall=jQuery.speed(speed,easing,callback),queue=optall.queue!==false,largest=0;for(var p in prop){largest=Math.max(prop[p].length,largest)}optall.times=optall.times||times;return this[queue?"queue":"each"](function(){var counts={},opt=jQuery.extend({},optall),self=jQuery(this);pulse();function pulse(){var propsSingle={},doAnimate=false;for(var p in prop){counts[p]=counts[p]||{runs:0,cur:-1};if(counts[p].cur<prop[p].length-1){++counts[p].cur}else{counts[p].cur=0;++counts[p].runs}if(prop[p].length===largest){doAnimate=opt.times>counts[p].runs}propsSingle[p]=prop[p][counts[p].cur]}opt.complete=pulse;opt.queue=false;if(doAnimate){self.animate(propsSingle,opt)}else{optall.complete.call(self[0])}}})};(function($){$.fn.innerfade=function(options){return this.each(function(){$.innerfade(this,options)})};$.innerfade=function(container,options){var settings={animationtype:"fade",speed:"normal",type:"sequence",timeout:2000,containerheight:"auto",runningclass:"innerfade",children:null};if(options){$.extend(settings,options)}if(settings.children===null){var elements=$(container).children()}else{var elements=$(container).children(settings.children)}if(elements.length>1){$(container).css("position","relative").css("height",settings.containerheight).addClass(settings.runningclass);for(var i=0;i<elements.length;i++){$(elements[i]).css("z-index",String(elements.length-i)).css("position","absolute").hide()}if(settings.type=="sequence"){setTimeout(function(){$.innerfade.next(elements,settings,1,0)},settings.timeout);$(elements[0]).show()}else{if(settings.type=="random"){var last=Math.floor(Math.random()*(elements.length));setTimeout(function(){do{current=Math.floor(Math.random()*(elements.length))}while(last==current);$.innerfade.next(elements,settings,current,last)},settings.timeout);$(elements[last]).show()}else{if(settings.type=="random_start"){settings.type="sequence";var current=Math.floor(Math.random()*(elements.length));setTimeout(function(){$.innerfade.next(elements,settings,(current+1)%elements.length,current)},settings.timeout);$(elements[current]).show()}else{alert("Innerfade-Type must either be 'sequence', 'random' or 'random_start'")}}}}};$.innerfade.next=function(elements,settings,current,last){if(settings.animationtype=="slide"){$(elements[last]).slideUp(settings.speed);$(elements[current]).slideDown(settings.speed)}else{if(settings.animationtype=="fade"){$(elements[last]).fadeOut(settings.speed);$(elements[current]).fadeIn(settings.speed,function(){removeFilter($(this)[0])})}else{alert("Innerfade-animationtype must either be 'slide' or 'fade'")}}if(settings.type=="sequence"){if((current+1)<elements.length){current=current+1;last=current-1}else{current=0;last=elements.length-1}}else{if(settings.type=="random"){last=current;while(current==last){current=Math.floor(Math.random()*elements.length)}}else{alert("Innerfade-Type must either be 'sequence', 'random' or 'random_start'")}}setTimeout((function(){$.innerfade.next(elements,settings,current,last)}),settings.timeout)}})(jQuery);function removeFilter(element){if(element.style.removeAttribute){element.style.removeAttribute("filter")}};
