
// usage: log('inside coolFunc', this, arguments);
// paulirish.com/2009/log-a-lightweight-wrapper-for-consolelog/
window.log = function(){
  log.history = log.history || [];   // store logs to an array for reference
  log.history.push(arguments);
  if(this.console) {
arguments.callee = arguments.callee.caller;
var newarr = [].slice.call(arguments);
(typeof console.log === 'object' ? log.apply.call(console.log, console, newarr) : console.log.apply(console, newarr));
  }
};

// make it safe to use console.log always
(function(b){function c(){}for(var d="assert,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,timeStamp,profile,profileEnd,time,timeEnd,trace,warn".split(","),a;a=d.pop();){b[a]=b[a]||c}})((function(){try
{console.log();return window.console;}catch(err){return window.console={};}})());


// place any jQuery/helper plugins in here, instead of separate, slower script files.

/*
 * jQuery Cycle Lite Plugin
 * http://malsup.com/jquery/cycle/lite/
 * Copyright (c) 2008-2011 M. Alsup
 * Version: 1.3 (01-JUN-2011)
 * Dual licensed under the MIT and GPL licenses:
 * http://www.opensource.org/licenses/mit-license.php
 * http://www.gnu.org/licenses/gpl.html
 * Requires: jQuery v1.3.2 or later
 */
;(function($) {var ver = 'Lite-1.3';$.fn.cycle = function(options) {return this.each(function() {options = options || {};if (this.cycleTimeout) clearTimeout(this.cycleTimeout);this.cycleTimeout = 0;this.cyclePause = 0;var $cont = $(this);var $slides = options.slideExpr ? $(options.slideExpr, this) : $cont.children();var els = $slides.get();if (els.length < 2) {window.console && console.log('terminating; too few slides: ' + els.length);return; }var opts = $.extend({}, $.fn.cycle.defaults, options || {}, $.metadata ? $cont.metadata() : $.meta ? $cont.data() : {});var meta = $.isFunction($cont.data) ? $cont.data(opts.metaAttr) : null;if (meta)opts = $.extend(opts, meta);opts.before = opts.before ? [opts.before] : [];opts.after = opts.after ? [opts.after] : [];opts.after.unshift(function(){ opts.busy=0; });var cls = this.className;opts.width = parseInt((cls.match(/w:(\d+)/)||[])[1]) || opts.width;opts.height = parseInt((cls.match(/h:(\d+)/)||[])[1]) || opts.height;opts.timeout = parseInt((cls.match(/t:(\d+)/)||[])[1]) || opts.timeout;if ($cont.css('position') == 'static') $cont.css('position', 'relative');if (opts.width) $cont.width(opts.width);if (opts.height && opts.height != 'auto') $cont.height(opts.height);var first = 0;$slides.css({position: 'absolute', top:0, left:0}).each(function(i) { $(this).css('z-index', els.length-i) });$(els[first]).css('opacity',1).show();if ($.browser.msie) els[first].style.removeAttribute('filter');if (opts.fit && opts.width) $slides.width(opts.width);if (opts.fit && opts.height && opts.height != 'auto') $slides.height(opts.height);if (opts.pause) $cont.hover(function(){this.cyclePause=1;}, function(){this.cyclePause=0;});var txFn = $.fn.cycle.transitions[opts.fx];txFn && txFn($cont, $slides, opts);$slides.each(function() {var $el = $(this);this.cycleH = (opts.fit && opts.height) ? opts.height : $el.height();this.cycleW = (opts.fit && opts.width) ? opts.width : $el.width();});if (opts.cssFirst)$($slides[first]).css(opts.cssFirst);if (opts.timeout) {if (opts.speed.constructor == String)opts.speed = {slow: 600, fast: 200}[opts.speed] || 400;if (!opts.sync)opts.speed = opts.speed / 2;while((opts.timeout - opts.speed) < 250)opts.timeout += opts.speed;}opts.speedIn = opts.speed;opts.speedOut = opts.speed;opts.slideCount = els.length;opts.currSlide = first;opts.nextSlide = 1;var e0 = $slides[first];if (opts.before.length)opts.before[0].apply(e0, [e0, e0, opts, true]);if (opts.after.length > 1)opts.after[1].apply(e0, [e0, e0, opts, true]);if (opts.click && !opts.next)opts.next = opts.click;if (opts.next)$(opts.next).bind('click', function(){return advance(els,opts,opts.rev?-1:1)});if (opts.prev)$(opts.prev).bind('click', function(){return advance(els,opts,opts.rev?1:-1)});if (opts.timeout)this.cycleTimeout = setTimeout(function() {go(els,opts,0,!opts.rev)}, opts.timeout + (opts.delay||0));});};function go(els, opts, manual, fwd) {if (opts.busy) return;var p = els[0].parentNode, curr = els[opts.currSlide], next = els[opts.nextSlide];if (p.cycleTimeout === 0 && !manual) return;if (manual || !p.cyclePause) {if (opts.before.length)$.each(opts.before, function(i,o) { o.apply(next, [curr, next, opts, fwd]); });var after = function() {if ($.browser.msie)this.style.removeAttribute('filter');$.each(opts.after, function(i,o) { o.apply(next, [curr, next, opts, fwd]); });};if (opts.nextSlide != opts.currSlide) {opts.busy = 1;$.fn.cycle.custom(curr, next, opts, after);}var roll = (opts.nextSlide + 1) == els.length;opts.nextSlide = roll ? 0 : opts.nextSlide+1;opts.currSlide = roll ? els.length-1 : opts.nextSlide-1;}if (opts.timeout)p.cycleTimeout = setTimeout(function() { go(els,opts,0,!opts.rev) }, opts.timeout);};function advance(els, opts, val) {var p = els[0].parentNode, timeout = p.cycleTimeout;if (timeout) {clearTimeout(timeout);p.cycleTimeout = 0;}opts.nextSlide = opts.currSlide + val;if (opts.nextSlide < 0) {opts.nextSlide = els.length - 1;}else if (opts.nextSlide >= els.length) {opts.nextSlide = 0;}go(els, opts, 1, val>=0);return false;};$.fn.cycle.custom = function(curr, next, opts, cb) {var $l = $(curr), $n = $(next);$n.css(opts.cssBefore);var fn = function() {$n.animate(opts.animIn, opts.speedIn, opts.easeIn, cb)};$l.animate(opts.animOut, opts.speedOut, opts.easeOut, function() {$l.css(opts.cssAfter);if (!opts.sync) fn();});if (opts.sync) fn();};$.fn.cycle.transitions = {fade: function($cont, $slides, opts) {$slides.not(':eq(0)').hide();opts.cssBefore = { opacity: 0, display: 'block' };opts.cssAfter  = { display: 'none' };opts.animOut = { opacity: 0 };opts.animIn = { opacity: 1 };},fadeout: function($cont, $slides, opts) {opts.before.push(function(curr,next,opts,fwd) {$(curr).css('zIndex',opts.slideCount + (fwd === true ? 1 : 0));$(next).css('zIndex',opts.slideCount + (fwd === true ? 0 : 1));});$slides.not(':eq(0)').hide();opts.cssBefore = { opacity: 1, display: 'block', zIndex: 1 };opts.cssAfter  = { display: 'none', zIndex: 0 };opts.animOut = { opacity: 0 };}};$.fn.cycle.ver = function() { return ver; };$.fn.cycle.defaults = {animIn:{},animOut:{},fx:'fade',after:null,before:null,cssBefore:{},cssAfter:{},delay:0,fit:0,height:'auto',metaAttr:'cycle',next:null,pause:0,prev:null,speed:1000,slideExpr:null,sync:1,timeout: 4000 };})(jQuery);

/*! Respond.js v1.0.1pre: min/max-width media query polyfill. (c) Scott Jehl. MIT/GPLv2 Lic. j.mp/respondjs */
(function(e,h){e.respond={};respond.update=function(){};respond.mediaQueriesSupported=h;if(h){return}var u=e.document,r=u.documentElement,i=[],k=[],p=[],o={},g=30,f=u.getElementsByTagName("head")[0]||r,b=f.getElementsByTagName("link"),d=[],a=function(){var B=b,w=B.length,z=0,y,x,A,v;for(;z<w;z++){y=B[z],x=y.href,A=y.media,v=y.rel&&y.rel.toLowerCase()==="stylesheet";if(!!x&&v&&!o[x]){if(y.styleSheet&&y.styleSheet.rawCssText){m(y.styleSheet.rawCssText,x,A);o[x]=true}else{if(!/^([a-zA-Z]+?:(\/\/)?)/.test(x)||x.replace(RegExp.$1,"").split("/")[0]===e.location.host){d.push({href:x,media:A})}}}}t()},t=function(){if(d.length){var v=d.shift();n(v.href,function(w){m(w,v.href,v.media);o[v.href]=true;t()})}},m=function(G,v,x){var E=G.match(/@media[^\{]+\{([^\{\}]+\{[^\}\{]+\})+/gi),H=E&&E.length||0,v=v.substring(0,v.lastIndexOf("/")),w=function(I){return I.replace(/(url\()['"]?([^\/\)'"][^:\)'"]+)['"]?(\))/g,"$1"+v+"$2$3")},y=!H&&x,B=0,A,C,D,z,F;if(v.length){v+="/"}if(y){H=1}for(;B<H;B++){A=0;if(y){C=x;k.push(w(G))}else{C=E[B].match(/@media ([^\{]+)\{([\S\s]+?)$/)&&RegExp.$1;k.push(RegExp.$2&&w(RegExp.$2))}z=C.split(",");F=z.length;for(;A<F;A++){D=z[A];i.push({media:D.match(/(only\s+)?([a-zA-Z]+)(\sand)?/)&&RegExp.$2,rules:k.length-1,minw:D.match(/\(min\-width:[\s]*([\s]*[0-9]+)px[\s]*\)/)&&parseFloat(RegExp.$1),maxw:D.match(/\(max\-width:[\s]*([\s]*[0-9]+)px[\s]*\)/)&&parseFloat(RegExp.$1)})}}j()},l,q,j=function(E){var v="clientWidth",x=r[v],D=u.compatMode==="CSS1Compat"&&x||u.body[v]||x,z={},C=u.createDocumentFragment(),B=b[b.length-1],w=(new Date()).getTime();if(E&&l&&w-l<g){clearTimeout(q);q=setTimeout(j,g);return}else{l=w}for(var y in i){var F=i[y];if(!F.minw&&!F.maxw||(!F.minw||F.minw&&D>=F.minw)&&(!F.maxw||F.maxw&&D<=F.maxw)){if(!z[F.media]){z[F.media]=[]}z[F.media].push(k[F.rules])}}for(var y in p){if(p[y]&&p[y].parentNode===f){f.removeChild(p[y])}}for(var y in z){var G=u.createElement("style"),A=z[y].join("\n");G.type="text/css";G.media=y;if(G.styleSheet){G.styleSheet.cssText=A}else{G.appendChild(u.createTextNode(A))}C.appendChild(G);p.push(G)}f.insertBefore(C,B.nextSibling)},n=function(v,x){var w=c();if(!w){return}w.open("GET",v,true);w.onreadystatechange=function(){if(w.readyState!=4||w.status!=200&&w.status!=304){return}x(w.responseText)};if(w.readyState==4){return}w.send(null)},c=(function(){var v=false;try{v=new XMLHttpRequest()}catch(w){v=new ActiveXObject("Microsoft.XMLHTTP")}return function(){return v}})();a();respond.update=a;function s(){j(true)}if(e.addEventListener){e.addEventListener("resize",s,false)}else{if(e.attachEvent){e.attachEvent("onresize",s)}}})(this,(function(f){if(f.matchMedia){return true}var e,i=document,c=i.documentElement,g=c.firstElementChild||c.firstChild,h=!i.body,d=i.body||i.createElement("body"),b=i.createElement("div"),a="only all";b.id="mq-test-1";b.style.cssText="position:absolute;top:-99em";d.appendChild(b);b.innerHTML='_<style media="'+a+'"> #mq-test-1 { width: 9px; }</style>';if(h){c.insertBefore(d,g)}b.removeChild(b.firstChild);e=b.offsetWidth==9;if(h){c.removeChild(d)}else{d.removeChild(b)}return e})(this));
