window.log=function(){log.history=log.history||[],log.history.push(arguments);if(this.console){arguments.callee=arguments.callee.caller;var a=[].slice.call(arguments);typeof console.log=="object"?log.apply.call(console.log,console,a):console.log.apply(console,a)}},function(a){function b(){}for(var c="assert,clear,count,debug,dir,dirxml,error,exception,firebug,group,groupCollapsed,groupEnd,info,log,memoryProfile,memoryProfileEnd,profile,profileEnd,table,time,timeEnd,timeStamp,trace,warn".split(","),d;d=c.pop();)a[d]=a[d]||b}(function(){try{return console.log(),window.console}catch(a){return window.console={}}}());

/* allows jquery to reverse an array of objects */
$.fn.reverse = [].reverse;

/**!
 * project-site: http://plugins.jquery.com/project/AjaxManager
 * repository: http://github.com/aFarkas/Ajaxmanager
 * @author Alexander Farkas
 * @version 3.12
 * Copyright 2010, Alexander Farkas
 * Dual licensed under the MIT or GPL Version 2 licenses.
 */
(function(a){"use strict";var b={},c={};a.manageAjax=function(){function d(a){b[a]&&(b[a].clear(!0),delete b[a])}function c(c,d){b[c]=new a.manageAjax._manager(c,d);return b[c]}var e={create:c,destroy:d};return e}(),a.manageAjax._manager=function(b,c){this.requests={},this.inProgress=0,this.name=b,this.qName=b,this.opts=a.extend({},a.manageAjax.defaults,c),c&&c.queue&&c.queue!==!0&&typeof c.queue=="string"&&c.queue!=="clear"&&(this.qName=c.queue)},a.manageAjax._manager.prototype={add:function(b,c){typeof b=="object"?c=b:typeof b=="string"&&(c=a.extend(c||{},{url:b})),c=a.extend({},this.opts,c);var d=c.complete||a.noop,e=c.success||a.noop,f=c.beforeSend||a.noop,g=c.error||a.noop,h=typeof c.data=="string"?c.data:a.param(c.data||{}),i=c.type+c.url+h,j=this,k=this._createAjax(i,c,e,d);c.preventDoubleRequests&&c.queueDuplicateRequests&&(c.preventDoubleRequests&&(c.queueDuplicateRequests=!1),setTimeout(function(){throw"preventDoubleRequests and queueDuplicateRequests can't be both true"},0));if(!this.requests[i]||!c.preventDoubleRequests){k.xhrID=i,c.xhrID=i,c.beforeSend=function(a,b){var c=f.call(this,a,b);c===!1&&j._removeXHR(i),a=null;return c},c.complete=function(a,b){j._complete.call(j,this,d,a,b,i,c),a=null},c.success=function(a,b,d){j._success.call(j,this,e,a,b,d,c),d=null},c.error=function(a,b,d){var e="",f="";b!=="timeout"&&a&&(e=a.status,f=a.responseXML||a.responseText),g?g.call(this,a,b,d,c):setTimeout(function(){throw b+"| status: "+e+" | URL: "+c.url+" | data: "+h+" | thrown: "+d+" | response: "+f},0),a=null},c.queue==="clear"&&a(document).clearQueue(this.qName);if(c.queue||c.queueDuplicateRequests&&this.requests[i]){a.queue(document,this.qName,k),this.inProgress<c.maxRequests&&(!this.requests[i]||!c.queueDuplicateRequests)&&a.dequeue(document,this.qName);return i}return k()}},_createAjax:function(b,d,e,f){var g=this;return function(){if(d.beforeCreate.call(d.context||g,b,d)!==!1){g.inProgress++,g.inProgress===1&&a.event.trigger(g.name+"AjaxStart"),d.cacheResponse&&c[b]&&(!c[b].cacheTTL||c[b].cacheTTL<0||(new Date).getTime()-c[b].timestamp<c[b].cacheTTL?(g.requests[b]={},setTimeout(function(){g._success.call(g,d.context||d,e,c[b]._successData,"success",c[b],d),g._complete.call(g,d.context||d,f,c[b],"success",b,d)},0)):delete c[b]);if(!d.cacheResponse||!c[b])d.async?g.requests[b]=a.ajax(d):a.ajax(d);return b}}},_removeXHR:function(b){(this.opts.queue||this.opts.queueDuplicateRequests)&&a.dequeue(document,this.qName),this.inProgress--,this.requests[b]=null,delete this.requests[b]},clearCache:function(){c={}},_isAbort:function(a,b,c){if(!c.abortIsNoSuccess||!a&&!b)return!1;var d=!a||a.readyState===0||this.lastAbort===c.xhrID;a=null;return d},_complete:function(b,c,d,e,f,g){this._isAbort(d,e,g)&&(e="abort",g.abort.call(b,d,e,g)),c.call(b,d,e,g),a.event.trigger(this.name+"AjaxComplete",[d,e,g]),g.domCompleteTrigger&&a(g.domCompleteTrigger).trigger(this.name+"DOMComplete",[d,e,g]).trigger("DOMComplete",[d,e,g]),this._removeXHR(f),this.inProgress||a.event.trigger(this.name+"AjaxStop"),d=null},_success:function(b,d,e,f,g,h){var i=this;if(this._isAbort(g,f,h))g=null;else{h.abortOld&&a.each(this.requests,function(a){if(a===h.xhrID)return!1;i.abort(a)});if(h.cacheResponse&&!c[h.xhrID]){g||(g={}),c[h.xhrID]={status:g.status,statusText:g.statusText,responseText:g.responseText,responseXML:g.responseXML,_successData:e,cacheTTL:h.cacheTTL,timestamp:(new Date).getTime()};if("getAllResponseHeaders"in g){var j=g.getAllResponseHeaders(),k,l=function(){k||(k={},a.each(j.split("\n"),function(a,b){var c=b.indexOf(":");k[b.substr(0,c)]=b.substr(c+2)}))};a.extend(c[h.xhrID],{getAllResponseHeaders:function(){return j},getResponseHeader:function(a){l();return a in k?k[a]:null}})}}d.call(b,e,f,g,h),a.event.trigger(this.name+"AjaxSuccess",[g,h,e]),h.domSuccessTrigger&&a(h.domSuccessTrigger).trigger(this.name+"DOMSuccess",[e,h]).trigger("DOMSuccess",[e,h]),g=null}},getData:function(b){if(b){var c=this.requests[b];!c&&this.opts.queue&&(c=a.grep(a(document).queue(this.qName),function(a,c){return a.xhrID===b})[0]);return c}return{requests:this.requests,queue:this.opts.queue?a(document).queue(this.qName):[],inProgress:this.inProgress}},abort:function(b){var c;if(b)c=this.getData(b),c&&c.abort?(this.lastAbort=b,c.abort(),this.lastAbort=!1):a(document).queue(this.qName,a.grep(a(document).queue(this.qName),function(a,b){return a!==c})),c=null;else{var d=this,e=[];a.each(this.requests,function(a){e.push(a)}),a.each(e,function(a,b){d.abort(b)})}},clear:function(b){a(document).clearQueue(this.qName),b&&this.abort()}},a.manageAjax._manager.prototype.getXHR=a.manageAjax._manager.prototype.getData,a.manageAjax.defaults={beforeCreate:a.noop,abort:a.noop,abortIsNoSuccess:!0,maxRequests:1,cacheResponse:!1,async:!0,domCompleteTrigger:!1,domSuccessTrigger:!1,preventDoubleRequests:!0,queueDuplicateRequests:!1,cacheTTL:-1,queue:!1},a.each(a.manageAjax._manager.prototype,function(c,d){c.indexOf("_")!==0&&!!a.isFunction(d)&&(a.manageAjax[c]=function(d,e){if(!b[d])if(c==="add")a.manageAjax.create(d,e);else return;var f=Array.prototype.slice.call(arguments,1);b[d][c].apply(b[d],f)})})})(jQuery),function(a){"use strict";var b={},c={};a.manageAjax=function(){function d(a){b[a]&&(b[a].clear(!0),delete b[a])}function c(c,d){b[c]=new a.manageAjax._manager(c,d);return b[c]}var e={create:c,destroy:d};return e}(),a.manageAjax._manager=function(b,c){this.requests={},this.inProgress=0,this.name=b,this.qName=b,this.opts=a.extend({},a.manageAjax.defaults,c),c&&c.queue&&c.queue!==!0&&typeof c.queue=="string"&&c.queue!=="clear"&&(this.qName=c.queue)},a.manageAjax._manager.prototype={add:function(b,c){typeof b=="object"?c=b:typeof b=="string"&&(c=a.extend(c||{},{url:b})),c=a.extend({},this.opts,c);var d=c.complete||a.noop,e=c.success||a.noop,f=c.beforeSend||a.noop,g=c.error||a.noop,h=typeof c.data=="string"?c.data:a.param(c.data||{}),i=c.type+c.url+h,j=this,k=this._createAjax(i,c,e,d);c.preventDoubleRequests&&c.queueDuplicateRequests&&(c.preventDoubleRequests&&(c.queueDuplicateRequests=!1),setTimeout(function(){throw"preventDoubleRequests and queueDuplicateRequests can't be both true"},0));if(!this.requests[i]||!c.preventDoubleRequests){k.xhrID=i,c.xhrID=i,c.beforeSend=function(a,b){var c=f.call(this,a,b);c===!1&&j._removeXHR(i),a=null;return c},c.complete=function(a,b){j._complete.call(j,this,d,a,b,i,c),a=null},c.success=function(a,b,d){j._success.call(j,this,e,a,b,d,c),d=null},c.error=function(a,b,d){var e="",f="";b!=="timeout"&&a&&(e=a.status,f=a.responseXML||a.responseText),g?g.call(this,a,b,d,c):setTimeout(function(){throw b+"| status: "+e+" | URL: "+c.url+" | data: "+h+" | thrown: "+d+" | response: "+f},0),a=null},c.queue==="clear"&&a(document).clearQueue(this.qName);if(c.queue||c.queueDuplicateRequests&&this.requests[i]){a.queue(document,this.qName,k),this.inProgress<c.maxRequests&&(!this.requests[i]||!c.queueDuplicateRequests)&&a.dequeue(document,this.qName);return i}return k()}},_createAjax:function(b,d,e,f){var g=this;return function(){if(d.beforeCreate.call(d.context||g,b,d)!==!1){g.inProgress++,g.inProgress===1&&a.event.trigger(g.name+"AjaxStart"),d.cacheResponse&&c[b]&&(!c[b].cacheTTL||c[b].cacheTTL<0||(new Date).getTime()-c[b].timestamp<c[b].cacheTTL?(g.requests[b]={},setTimeout(function(){g._success.call(g,d.context||d,e,c[b]._successData,"success",c[b],d),g._complete.call(g,d.context||d,f,c[b],"success",b,d)},0)):delete c[b]);if(!d.cacheResponse||!c[b])d.async?g.requests[b]=a.ajax(d):a.ajax(d);return b}}},_removeXHR:function(b){(this.opts.queue||this.opts.queueDuplicateRequests)&&a.dequeue(document,this.qName),this.inProgress--,this.requests[b]=null,delete this.requests[b]},clearCache:function(){c={}},_isAbort:function(a,b,c){if(!c.abortIsNoSuccess||!a&&!b)return!1;var d=!a||a.readyState===0||this.lastAbort===c.xhrID;a=null;return d},_complete:function(b,c,d,e,f,g){this._isAbort(d,e,g)&&(e="abort",g.abort.call(b,d,e,g)),c.call(b,d,e,g),a.event.trigger(this.name+"AjaxComplete",[d,e,g]),g.domCompleteTrigger&&a(g.domCompleteTrigger).trigger(this.name+"DOMComplete",[d,e,g]).trigger("DOMComplete",[d,e,g]),this._removeXHR(f),this.inProgress||a.event.trigger(this.name+"AjaxStop"),d=null},_success:function(b,d,e,f,g,h){var i=this;if(this._isAbort(g,f,h))g=null;else{h.abortOld&&a.each(this.requests,function(a){if(a===h.xhrID)return!1;i.abort(a)});if(h.cacheResponse&&!c[h.xhrID]){g||(g={}),c[h.xhrID]={status:g.status,statusText:g.statusText,responseText:g.responseText,responseXML:g.responseXML,_successData:e,cacheTTL:h.cacheTTL,timestamp:(new Date).getTime()};if("getAllResponseHeaders"in g){var j=g.getAllResponseHeaders(),k,l=function(){k||(k={},a.each(j.split("\n"),function(a,b){var c=b.indexOf(":");k[b.substr(0,c)]=b.substr(c+2)}))};a.extend(c[h.xhrID],{getAllResponseHeaders:function(){return j},getResponseHeader:function(a){l();return a in k?k[a]:null}})}}d.call(b,e,f,g,h),a.event.trigger(this.name+"AjaxSuccess",[g,h,e]),h.domSuccessTrigger&&a(h.domSuccessTrigger).trigger(this.name+"DOMSuccess",[e,h]).trigger("DOMSuccess",[e,h]),g=null}},getData:function(b){if(b){var c=this.requests[b];!c&&this.opts.queue&&(c=a.grep(a(document).queue(this.qName),function(a,c){return a.xhrID===b})[0]);return c}return{requests:this.requests,queue:this.opts.queue?a(document).queue(this.qName):[],inProgress:this.inProgress}},abort:function(b){var c;if(b)c=this.getData(b),c&&c.abort?(this.lastAbort=b,c.abort(),this.lastAbort=!1):a(document).queue(this.qName,a.grep(a(document).queue(this.qName),function(a,b){return a!==c})),c=null;else{var d=this,e=[];a.each(this.requests,function(a){e.push(a)}),a.each(e,function(a,b){d.abort(b)})}},clear:function(b){a(document).clearQueue(this.qName),b&&this.abort()}},a.manageAjax._manager.prototype.getXHR=a.manageAjax._manager.prototype.getData,a.manageAjax.defaults={beforeCreate:a.noop,abort:a.noop,abortIsNoSuccess:!0,maxRequests:1,cacheResponse:!1,async:!0,domCompleteTrigger:!1,domSuccessTrigger:!1,preventDoubleRequests:!0,queueDuplicateRequests:!1,cacheTTL:-1,queue:!1},a.each(a.manageAjax._manager.prototype,function(c,d){c.indexOf("_")!==0&&!!a.isFunction(d)&&(a.manageAjax[c]=function(d,e){if(!b[d])if(c==="add")a.manageAjax.create(d,e);else return;var f=Array.prototype.slice.call(arguments,1);b[d][c].apply(b[d],f)})})}(jQuery)


/**
 * jQuery Cookie plugin
 *
 * Copyright (c) 2010 Klaus Hartl (stilbuero.de)
 * Dual licensed under the MIT and GPL licenses:
 * http://www.opensource.org/licenses/mit-license.php
 * http://www.gnu.org/licenses/gpl.html
 *
 */
jQuery.cookie=function(a,b,c){if(arguments.length>1&&String(b)!=="[object Object]"){c=jQuery.extend({},c);if(b===null||b===undefined)c.expires=-1;if(typeof c.expires=="number"){var d=c.expires,e=c.expires=new Date;e.setDate(e.getDate()+d)}b=String(b);return document.cookie=[encodeURIComponent(a),"=",c.raw?b:encodeURIComponent(b),c.expires?"; expires="+c.expires.toUTCString():"",c.path?"; path="+c.path:"",c.domain?"; domain="+c.domain:"",c.secure?"; secure":""].join("")}c=b||{};var f,g=c.raw?function(a){return a}:decodeURIComponent;return(f=(new RegExp("(?:^|; )"+encodeURIComponent(a)+"=([^;]*)")).exec(document.cookie))?g(f[1]):null}

// Track highlighted text in GA
var e=null, g=60, h=3, c=document.getElementsByTagName("body")[0];if(c){c.onmouseup=function(j){e=b();f=e.length;d=i(e);if(e!==null&&d<g&&f>h){_gaq.push(["_trackEvent","CopyText","Highlighted",e])}function i(k){var l=k;var m=0;a=l.replace(/\s/g," ");a=a.split(" ");for(z=0;z<a.length;z++){if(a[z].length>0){m++}}return m}function b(){if(window.getSelection){d=window.getSelection()}else{if(document.getSelection){d=document.getSelection()}else{if(document.selection){d=document.selection.createRange().text}else{return""}}}return d.toString()}}};

/**
 * jQuery.ScrollTo - Easy element scrolling using jQuery.
 * Copyright (c) 2007-2009 Ariel Flesler - aflesler(at)gmail(dot)com | http://flesler.blogspot.com
 * Dual licensed under MIT and GPL.
 * Date: 5/25/2009
 * @author Ariel Flesler
 * @version 1.4.2
 *
 * http://flesler.blogspot.com/2007/10/jqueryscrollto.html
 */
;(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=9e9;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 hashchange event - v1.3 - 7/21/2010
 * http://benalman.com/projects/jquery-hashchange-plugin/
 * 
 * Copyright (c) 2010 "Cowboy" Ben Alman
 * Dual licensed under the MIT and GPL licenses.
 * http://benalman.com/about/license/
 */
(function($,e,b){var c="hashchange",h=document,f,g=$.event.special,i=h.documentMode,d="on"+c in e&&(i===b||i>7);function a(j){j=j||location.href;return"#"+j.replace(/^[^#]*#?(.*)$/,"$1")}$.fn[c]=function(j){return j?this.bind(c,j):this.trigger(c)};$.fn[c].delay=50;g[c]=$.extend(g[c],{setup:function(){if(d){return false}$(f.start)},teardown:function(){if(d){return false}$(f.stop)}});f=(function(){var j={},p,m=a(),k=function(q){return q},l=k,o=k;j.start=function(){p||n()};j.stop=function(){p&&clearTimeout(p);p=b};function n(){var r=a(),q=o(m);if(r!==m){l(m=r,q);$(e).trigger(c)}else{if(q!==m){location.href=location.href.replace(/#.*/,"")+q}}p=setTimeout(n,$.fn[c].delay)}$.browser.msie&&!d&&(function(){var q,r;j.start=function(){if(!q){r=$.fn[c].src;r=r&&r+a();q=$('<iframe tabindex="-1" title="empty"/>').hide().one("load",function(){r||l(a());n()}).attr("src",r||"javascript:0").insertAfter("body")[0].contentWindow;h.onpropertychange=function(){try{if(event.propertyName==="title"){q.document.title=h.title}}catch(s){}}}};j.stop=k;o=function(){return a(q.location.href)};l=function(v,s){var u=q.document,t=$.fn[c].domain;if(v!==s){u.title=h.title;u.open();t&&u.write('<script>document.domain="'+t+'"<\/script>');u.close();q.location.hash=v}}})();return j})()})(jQuery,this);

/*
 * jQuery Color Animations
 * Copyright 2007 John Resig
 * Released under the MIT and GPL licenses.
 */
(function(a){function c(c,d){var e;do{e=a.curCSS(c,d);if(e!=""&&e!="transparent"||a.nodeName(c,"body"))break;d="backgroundColor"}while(c=c.parentNode);return b(e)}function b(b){var c;if(b&&b.constructor==Array&&b.length==3)return b;if(c=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(b))return[parseInt(c[1]),parseInt(c[2]),parseInt(c[3])];if(c=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(b))return[parseFloat(c[1])*2.55,parseFloat(c[2])*2.55,parseFloat(c[3])*2.55];if(c=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(b))return[parseInt(c[1],16),parseInt(c[2],16),parseInt(c[3],16)];if(c=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(b))return[parseInt(c[1]+c[1],16),parseInt(c[2]+c[2],16),parseInt(c[3]+c[3],16)];return d[a.trim(b).toLowerCase()]}a.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","color","outlineColor"],function(d,e){a.fx.step[e]=function(a){a.state==0&&(a.start=c(a.elem,e),a.end=b(a.end)),a.elem.style[e]="rgb("+[Math.max(Math.min(parseInt(a.pos*(a.end[0]-a.start[0])+a.start[0]),255),0),Math.max(Math.min(parseInt(a.pos*(a.end[1]-a.start[1])+a.start[1]),255),0),Math.max(Math.min(parseInt(a.pos*(a.end[2]-a.start[2])+a.start[2]),255),0)].join(",")+")"}});var d={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0]}})(jQuery);

/*
 * 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(a){function d(a,b,d){var e=a[0].parentNode,f=e.cycleTimeout;f&&(clearTimeout(f),e.cycleTimeout=0),b.nextSlide=b.currSlide+d,b.nextSlide<0?b.nextSlide=a.length-1:b.nextSlide>=a.length&&(b.nextSlide=0),c(a,b,1,d>=0);return!1}function c(b,d,e,f){if(!d.busy){var g=b[0].parentNode,h=b[d.currSlide],i=b[d.nextSlide];if(g.cycleTimeout===0&&!e)return;if(e||!g.cyclePause){d.before.length&&a.each(d.before,function(a,b){b.apply(i,[h,i,d,f])});var j=function(){a.browser.msie&&this.style.removeAttribute("filter"),a.each(d.after,function(a,b){b.apply(i,[h,i,d,f])})};d.nextSlide!=d.currSlide&&(d.busy=1,a.fn.cycle.custom(h,i,d,j));var k=d.nextSlide+1==b.length;d.nextSlide=k?0:d.nextSlide+1,d.currSlide=k?b.length-1:d.nextSlide-1}d.timeout&&(g.cycleTimeout=setTimeout(function(){c(b,d,0,!d.rev)},d.timeout))}}var b="Lite-1.3";a.fn.cycle=function(b){return this.each(function(){b=b||{},this.cycleTimeout&&clearTimeout(this.cycleTimeout),this.cycleTimeout=0,this.cyclePause=0;var e=a(this),f=b.slideExpr?a(b.slideExpr,this):e.children(),g=f.get();if(g.length<2)window.console&&console.log("terminating; too few slides: "+g.length);else{var h=a.extend({},a.fn.cycle.defaults,b||{},a.metadata?e.metadata():a.meta?e.data():{}),i=a.isFunction(e.data)?e.data(h.metaAttr):null;i&&(h=a.extend(h,i)),h.before=h.before?[h.before]:[],h.after=h.after?[h.after]:[],h.after.unshift(function(){h.busy=0});var j=this.className;h.width=parseInt((j.match(/w:(\d+)/)||[])[1])||h.width,h.height=parseInt((j.match(/h:(\d+)/)||[])[1])||h.height,h.timeout=parseInt((j.match(/t:(\d+)/)||[])[1])||h.timeout,e.css("position")=="static"&&e.css("position","relative"),h.width&&e.width(h.width),h.height&&h.height!="auto"&&e.height(h.height);var k=0;f.css({position:"absolute",top:0,left:0}).each(function(b){a(this).css("z-index",g.length-b)}),a(g[k]).css("opacity",1).show(),a.browser.msie&&g[k].style.removeAttribute("filter"),h.fit&&h.width&&f.width(h.width),h.fit&&h.height&&h.height!="auto"&&f.height(h.height),h.pause&&e.hover(function(){this.cyclePause=1},function(){this.cyclePause=0});var l=a.fn.cycle.transitions[h.fx];l&&l(e,f,h),f.each(function(){var b=a(this);this.cycleH=h.fit&&h.height?h.height:b.height(),this.cycleW=h.fit&&h.width?h.width:b.width()}),h.cssFirst&&a(f[k]).css(h.cssFirst);if(h.timeout){h.speed.constructor==String&&(h.speed={slow:600,fast:200}[h.speed]||400),h.sync||(h.speed=h.speed/2);while(h.timeout-h.speed<250)h.timeout+=h.speed}h.speedIn=h.speed,h.speedOut=h.speed,h.slideCount=g.length,h.currSlide=k,h.nextSlide=1;var m=f[k];h.before.length&&h.before[0].apply(m,[m,m,h,!0]),h.after.length>1&&h.after[1].apply(m,[m,m,h,!0]),h.click&&!h.next&&(h.next=h.click),h.next&&a(h.next).bind("click",function(){return d(g,h,h.rev?-1:1)}),h.prev&&a(h.prev).bind("click",function(){return d(g,h,h.rev?1:-1)}),h.timeout&&(this.cycleTimeout=setTimeout(function(){c(g,h,0,!h.rev)},h.timeout+(h.delay||0)))}})},a.fn.cycle.custom=function(b,c,d,e){var f=a(b),g=a(c);g.css(d.cssBefore);var h=function(){g.animate(d.animIn,d.speedIn,d.easeIn,e)};f.animate(d.animOut,d.speedOut,d.easeOut,function(){f.css(d.cssAfter),d.sync||h()}),d.sync&&h()},a.fn.cycle.transitions={fade:function(a,b,c){b.not(":eq(0)").hide(),c.cssBefore={opacity:0,display:"block"},c.cssAfter={display:"none"},c.animOut={opacity:0},c.animIn={opacity:1}},fadeout:function(b,c,d){d.before.push(function(b,c,d,e){a(b).css("zIndex",d.slideCount+(e===!0?1:0)),a(c).css("zIndex",d.slideCount+(e===!0?0:1))}),c.not(":eq(0)").hide(),d.cssBefore={opacity:1,display:"block",zIndex:1},d.cssAfter={display:"none",zIndex:0},d.animOut={opacity:0}}},a.fn.cycle.ver=function(){return b},a.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:1e3,slideExpr:null,sync:1,timeout:4e3}})(jQuery);

/*!
 * jQuery TubePlayer Plugin
 * 
 * version: 1.0.2 (31-MAY-2011)
 * @requires v1.3.2 or later
 *
 * @imports SWFObject - http://code.google.com/p/swfobject/
 *	- Degrades to flash based player if not HTML5/iframe option 
 *
 * Author: Nirvana Tikku (@ntikku / ntikku@gmail.com)
 * Documentation:
 * 		http://www.tikku.com/jquery-youtube-tubeplayer-plugin
 * 
 * Dual licensed under the MIT and GPL licenses:
 *   http://www.opensource.org/licenses/mit-license.php
 *   http://www.gnu.org/licenses/gpl.html 
 */
(function(g){var d={};d.ytplayers={};d.inits=[];d.iframeScriptInited=false;d.inited=false;g.tubeplayer={};g.tubeplayer.defaults={afterReady:function(){},stateChange:function(c){var a=this.onPlayer;return function(b){if(typeof b=="object")b=b.data;switch(b){case -1:return a.unstarted[c]();case 0:return a.ended[c]();case 1:return a.playing[c]();case 2:return a.paused[c]();case 3:return a.buffering[c]();case 5:return a.cued[c]();default:return null}}},onError:function(c){var a=this.onErr;return function(b){if(typeof b==
"object")b=b.data;switch(b){case 2:return a.invalidParameter[c]();case 100:return a.notFound[c]();case 101:case 150:return a.notEmbeddable[c]();default:return null}}},qualityChange:function(c){var a=this;return function(b){if(typeof b=="object")b=b.data;return a.onQualityChange[c](b)}},onQualityChange:{},onPlayer:{unstarted:{},ended:{},playing:{},paused:{},buffering:{},cued:{}},onErr:{notFound:{},notEmbeddable:{},invalidParameter:{}}};var k={width:425,height:355,allowFullScreen:"true",initialVideo:"DkoeNLuMbcI",
preferredQuality:"default",showControls:1,showRelated:0,autoPlay:1,swfobjectURL:"http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js",allowScriptAccess:"always",playerID:"tubeplayer-player-container",iframed:true,onPlay:function(){},onPause:function(){},onStop:function(){},onSeek:function(){},onMute:function(){},onUnMute:function(){},onPlayerUnstarted:function(){},onPlayerEnded:function(){},onPlayerPlaying:function(){},onPlayerPaused:function(){},onPlayerBuffering:function(){},onPlayerCued:function(){},
onQualityChange:function(){},onErrorNotFound:function(){},onErrorNotEmbeddable:function(){},onErrorInvalidParameter:function(){}};g.fn.tubeplayer=function(c,a){var b=g(this),f=typeof c;if(arguments.length==0||f=="object")return b.each(function(){d.init(g(this),c)});else if(f=="string")return b.triggerHandler(c+".tubeplayer",a||null)};var h=function(c){return function(a,b){var f=d.getPkg(a);if(f.ytplayer){a=c(a,b,f);if(typeof a=="undefined")a=f.$player;return a}return f.$player}};g.tubeplayer.getPlayers=
function(){return d.ytplayers};d.init=function(c,a){if(c.hasClass("jquery-youtube-tubeplayer"))return c;a=g.extend({},k,a);a.playerID+=(new Date).valueOf();c.addClass("jquery-youtube-tubeplayer").data("opts.tubeplayer",a);for(e in j)c.bind(e+".tubeplayer",c,j[e]);d.initDefaults(g.tubeplayer.defaults,a);jQuery("<div></div>").attr("id",a.playerID).appendTo(c);d.initPlayer(c,a);return c};d.getPkg=function(c){c=c.data;var a=c.data("opts.tubeplayer");return{$player:c,opts:a,ytplayer:d.ytplayers[a.playerID]}};
d.iframeReady=function(c){d.inits.push(function(){new YT.Player(c.playerID,{videoId:c.initialVideo,width:c.width,height:c.height,playerVars:{autoplay:c.autoPlay,autohide:c.showControls,rel:c.showRelated,fs:c.allowFullScreen?1:0,wmode:'transparent',modestbranding:1,showinfo:0},events:{onReady:function(a){d.ytplayers[c.playerID]=a.target;a=g(a.target).parents(".jquery-youtube-tubeplayer");g.tubeplayer.defaults.afterReady(a)},onPlaybackQualityChange:g.tubeplayer.defaults.qualityChange(c.playerID),onStateChange:g.tubeplayer.defaults.stateChange(c.playerID),
onError:g.tubeplayer.defaults.onError(c.playerID)}})});if(d.inits.length==1&&!d.inited)return function(){for(var a=0;a<d.inits.length;a++)d.inits[a]();d.inited=true};d.inited&&d.inits.pop()();return onYouTubePlayerAPIReady};d.supportsHTML5=function(){return!!document.createElement("video").canPlayType};d.initDefaults=function(c,a){var b=a.playerID,f=c.onPlayer;f.unstarted[b]=a.onPlayerUnstarted;f.ended[b]=a.onPlayerEnded;f.playing[b]=a.onPlayerPlaying;f.paused[b]=a.onPlayerPaused;f.buffering[b]=a.onPlayerBuffering;
f.cued[b]=a.onPlayerCued;c.onQualityChange[b]=a.onQualityChange;c=c.onErr;c.notFound[b]=a.onErrorNotFound;c.notEmbeddable[b]=a.onErrorNotEmbeddable;c.invalidParameter[b]=a.onErrorInvalidParameter};d.initPlayer=function(c,a){a.iframed&&d.supportsHTML5()?d.initIframePlayer(c,a):d.initFlashPlayer(c,a)};d.initIframePlayer=function(c,a){if(!d.iframeScriptInited){c=document.createElement("script");c.src="http://www.youtube.com/player_api";var b=document.getElementsByTagName("script")[0];b.parentNode.insertBefore(c,
b);d.iframeScriptInited=true}onYouTubePlayerAPIReady=d.iframeReady(a)};d.initFlashPlayer=function(c,a){g.getScript(a.swfobjectURL,function(){var b=["//www.youtube.com/v/"];b.push(a.initialVideo);b.push("?fs="+(a.allowFullScreen?1:0));b.push("&enablejsapi=1&version=3&wmode=transparent&modestbranding=1");b.push("&playerapiid="+a.playerID);b.push("&rel= "+a.showRelated);b.push("&autoplay="+a.autoPlay);b.push("&autohide="+a.showControls);swfobject.embedSWF(b.join(""),a.playerID,a.width,a.height,"8",null,null,{allowScriptAccess:a.allowScriptAccess,
wmode:"transparent",allowFullScreen:a.allowFullScreen},{id:a.playerID});onYouTubePlayerReady=function(f){var i=document.getElementById(f);d.ytplayers[f]=i;i.addEventListener("onStateChange","$.tubeplayer.defaults.stateChange('"+f+"')");i.addEventListener("onError","$.tubeplayer.defaults.onError('"+f+"')");i.addEventListener("onPlaybackQualityChange","$.tubeplayer.defaults.qualityChange('"+f+"')");f=g(i).parents(".jquery-youtube-tubeplayer");g.tubeplayer.defaults.afterReady(f)}})};d.getVideoIDFromURL=
function(c){var a=c.indexOf("youtube.com/watch?v=")+20,b=c.indexOf("&",a)||c.length;if(a>b)return"";return c.substring(a,b)};var j={cue:h(function(c,a,b){b.ytplayer.cueVideoById(a,b.opts.preferredQuality)}),play:h(function(c,a,b){if(typeof a=="object")b.ytplayer.loadVideoById(a.id,a.time,b.opts.preferredQuality);else a?b.ytplayer.loadVideoById(a,0,b.opts.preferredQuality):b.ytplayer.playVideo();b.opts.onPlay(a)}),pause:h(function(c,a,b){b.ytplayer.pauseVideo();b.opts.onPause()}),stop:h(function(c,
a,b){b.ytplayer.stopVideo();b.opts.onStop()}),seek:h(function(c,a,b){b.ytplayer.seekTo(a,true);b.opts.onSeek(a)}),mute:h(function(c,a,b){b.$player.attr("data-prev-mute-volume",b.ytplayer.getVolume());b.ytplayer.mute();b.opts.onMute()}),unmute:h(function(c,a,b){b.ytplayer.unMute();b.ytplayer.setVolume(b.$player.attr("data-prev-mute-volume")||50);b.opts.onUnMute()}),isMuted:h(function(c,a,b){return b.ytplayer.isMuted()}),volume:h(function(c,a,b){if(a){b.ytplayer.setVolume(a);b.$player.attr("data-prev-mute-volume",
b.ytplayer.getVolume())}else return b.ytplayer.getVolume()||0}),quality:h(function(c,a,b){if(a)b.ytplayer.setPlaybackQuality(a);else return b.ytplayer.getPlaybackQuality()}),data:h(function(c,a,b){c={};b=b.ytplayer;c.bytesLoaded=b.getVideoBytesLoaded();c.bytesTotal=b.getVideoBytesTotal();c.startBytes=b.getVideoStartBytes();c.state=b.getPlayerState();c.currentTime=b.getCurrentTime();c.availableQualityLevels=b.getAvailableQualityLevels();c.duration=b.getDuration();c.videoURL=b.getVideoUrl();c.getVideoEmbedCode=
b.getVideoEmbedCode();c.videoID=d.getVideoIDFromURL(c.videoURL);return c}),videoId:h(function(c,a,b){return d.getVideoIDFromURL(b.ytplayer.getVideoUrl())}),size:h(function(c,a,b){if(a.width&&a.height){b.ytplayer.setSize(a.width,a.height);g(b.ytplayer).css(a)}}),destroy:h(function(c,a,b){b.$player.removeClass("jquery-youtube-tubeplayer").data("opts.tubeplayer",null).unbind(".tubeplayer").html("");delete d.ytplayers[b.opts.playerID];g(b.ytplayer).remove();return null}),player:h(function(c,a,b){return b.ytplayer})}})(jQuery);

/* 
 * bootstrap-twipsy.js v1.3.0
 * http://twitter.github.com/bootstrap/javascript.html#twipsy
 * Adapted from the original jQuery.tipsy by Jason Frame
 *
 * Modified to use Modernizr and have a default 'offset' —Joey
 * 
 * Copyright 2011 Twitter, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
!function(a){function d(a,b,c){return typeof a=="function"?a.apply(b,c):a}var b;a(function(){Modernizr.csstransitions&&(b="TransitionEnd",a.browser.webkit?b="webkitTransitionEnd":a.browser.mozilla?b="transitionend":a.browser.opera&&(b="oTransitionEnd"))});var c=function(b,c){this.$element=a(b),this.options=c,this.enabled=!0,this.fixTitle()};c.prototype={show:function(){var b,c,e,f,g,h;if(this.getTitle()&&this.enabled){g=this.tip(),this.setContent(),this.options.animate&&g.addClass("fade"),g.remove().css({top:0,left:0,display:"block"}).prependTo(document.body),b=a.extend({},this.$element.offset(),{width:this.$element[0].offsetWidth,height:this.$element[0].offsetHeight}),c=g[0].offsetWidth,e=g[0].offsetHeight,f=d(this.options.placement,this,[g[0],this.$element[0]]);switch(f){case"below":h={top:b.top+b.height+this.options.offset,left:b.left+b.width/2-c/2};break;case"above":h={top:b.top-e-this.options.offset+2,left:b.left+b.width/2-c/2};break;case"left":h={top:b.top+b.height/2-e/2,left:b.left-c-this.options.offset};break;case"right":h={top:b.top+b.height/2-e/2,left:b.left+b.width+this.options.offset}}g.css(h).addClass(f).addClass("in")}},setContent:function(){var a=this.tip();a[this.options.html?"html":"text"](this.getTitle()),a[0].className="twipsy"},hide:function(){function e(){d.remove()}var c=this,d=this.tip();d.removeClass("in"),a.support.transition&&this.$tip.hasClass("fade")?d.bind(b,e):e()},fixTitle:function(){var a=this.$element;(a.attr("title")||typeof a.attr("data-original-title")!="string")&&a.attr("data-original-title",a.attr("title")||"").removeAttr("title")},getTitle:function(){var a,b=this.$element,c=this.options;return this.fixTitle(),typeof c.title=="string"?a=b.attr(c.title=="title"?"data-original-title":c.title):typeof c.title=="function"&&(a=c.title.call(b[0])),a=(""+a).replace(/(^\s*|\s*$)/,""),a||c.fallback},tip:function(){return this.$tip||(this.$tip=a('<div class="twipsy" />')),this.$tip},validate:function(){this.$element[0].parentNode||(this.hide(),this.$element=null,this.options=null)},enable:function(){this.enabled=!0},disable:function(){this.enabled=!1},toggleEnabled:function(){this.enabled=!this.enabled}},a.fn.twipsy=function(b){return a.fn.twipsy.initWith.call(this,b,c,"twipsy"),this},a.fn.twipsy.initWith=function(b,c,d){function i(e){var f=a.data(e,d);return f||(f=new c(e,a.fn.twipsy.elementOptions(e,b)),a.data(e,d,f)),f}function j(){var a=i(this);a.hoverState="in",b.delayIn==0?a.show():(a.fixTitle(),setTimeout(function(){a.hoverState=="in"&&a.show()},b.delayIn))}function k(){var a=i(this);a.hoverState="out",b.delayOut==0?a.hide():setTimeout(function(){a.hoverState=="out"&&a.hide()},b.delayOut)}var e,f,g,h;return b===!0?this.data(d):typeof b=="string"?(e=this.data(d),e&&e[b](),this):(b=a.extend({},a.fn[d].defaults,b),b.live||this.each(function(){i(this)}),b.trigger!="manual"&&(f=b.live?"live":"bind",g=b.trigger=="hover"?"mouseenter":"focus",h=b.trigger=="hover"?"mouseleave":"blur",this[f](g,j)[f](h,k)),this)},a.fn.twipsy.Twipsy=c,a.fn.twipsy.defaults={animate:!0,delayIn:0,delayOut:0,fallback:"",placement:"above",html:!1,live:!1,offset:6,title:"title",trigger:"hover"},a.fn.twipsy.elementOptions=function(b,c){return a.metadata?a.extend({},c,a(b).metadata()):c}}(window.jQuery||window.ender);

