/*
	Copyright (c) 2004-2011, The Dojo Foundation All Rights Reserved.
	Available via Academic Free License >= 2.1 OR the modified BSD license.
	see: http://dojotoolkit.org/license for details
*/

/*
	This is an optimized version of Dojo, built for deployment and not for
	development. To get sources and documentation, please visit:

		http://dojotoolkit.org
*/

if(!dojo._hasResource["dojo.hash"]){dojo._hasResource["dojo.hash"]=true;dojo.provide("dojo.hash");(function(){dojo.hash=function(_1,_2){if(!arguments.length){return _3();}if(_1.charAt(0)=="#"){_1=_1.substring(1);}if(_2){_4(_1);}else{location.href="#"+_1;}return _1;};var _5,_6,_7,_8=dojo.config.hashPollFrequency||100;function _9(_a,_b){var i=_a.indexOf(_b);return (i>=0)?_a.substring(i+1):"";};function _3(){return _9(location.href,"#");};function _c(){dojo.publish("/dojo/hashchange",[_3()]);};function _d(){if(_3()===_5){return;}_5=_3();_c();};function _4(_e){if(_6){if(_6.isTransitioning()){setTimeout(dojo.hitch(null,_4,_e),_8);return;}var _f=_6.iframe.location.href;var _10=_f.indexOf("?");_6.iframe.location.replace(_f.substring(0,_10)+"?"+_e);return;}location.replace("#"+_e);!_7&&_d();};function _11(){var ifr=document.createElement("iframe"),_12="dojo-hash-iframe",_13=dojo.config.dojoBlankHtmlUrl||dojo.moduleUrl("dojo","resources/blank.html");if(dojo.config.useXDomain&&!dojo.config.dojoBlankHtmlUrl){console.warn("dojo.hash: When using cross-domain Dojo builds,"+" please save dojo/resources/blank.html to your domain and set djConfig.dojoBlankHtmlUrl"+" to the path on your domain to blank.html");}ifr.id=_12;ifr.src=_13+"?"+_3();ifr.style.display="none";document.body.appendChild(ifr);this.iframe=dojo.global[_12];var _14,_15,_16,_17,_18,_19=this.iframe.location;function _1a(){_5=_3();_14=_18?_5:_9(_19.href,"?");_15=false;_16=null;};this.isTransitioning=function(){return _15;};this.pollLocation=function(){if(!_18){try{var _1b=_9(_19.href,"?");if(document.title!=_17){_17=this.iframe.document.title=document.title;}}catch(e){_18=true;console.error("dojo.hash: Error adding history entry. Server unreachable.");}}var _1c=_3();if(_15&&_5===_1c){if(_18||_1b===_16){_1a();_c();}else{setTimeout(dojo.hitch(this,this.pollLocation),0);return;}}else{if(_5===_1c&&(_18||_14===_1b)){}else{if(_5!==_1c){_5=_1c;_15=true;_16=_1c;ifr.src=_13+"?"+_16;_18=false;setTimeout(dojo.hitch(this,this.pollLocation),0);return;}else{if(!_18){location.href="#"+_19.search.substring(1);_1a();_c();}}}}setTimeout(dojo.hitch(this,this.pollLocation),_8);};_1a();setTimeout(dojo.hitch(this,this.pollLocation),_8);};dojo.addOnLoad(function(){if("onhashchange" in dojo.global&&(!dojo.isIE||(dojo.isIE>=8&&document.compatMode!="BackCompat"))){_7=dojo.connect(dojo.global,"onhashchange",_c);}else{if(document.addEventListener){_5=_3();setInterval(_d,_8);}else{if(document.attachEvent){_6=new _11();}}}});})();}if(!dojo._hasResource["dojo.regexp"]){dojo._hasResource["dojo.regexp"]=true;dojo.provide("dojo.regexp");dojo.getObject("regexp",true,dojo);dojo.regexp.escapeString=function(str,_1d){return str.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,function(ch){if(_1d&&_1d.indexOf(ch)!=-1){return ch;}return "\\"+ch;});};dojo.regexp.buildGroupRE=function(arr,re,_1e){if(!(arr instanceof Array)){return re(arr);}var b=[];for(var i=0;i<arr.length;i++){b.push(re(arr[i]));}return dojo.regexp.group(b.join("|"),_1e);};dojo.regexp.group=function(_1f,_20){return "("+(_20?"?:":"")+_1f+")";};}if(!dojo._hasResource["dojo.cookie"]){dojo._hasResource["dojo.cookie"]=true;dojo.provide("dojo.cookie");dojo.cookie=function(_21,_22,_23){var c=document.cookie;if(arguments.length==1){var _24=c.match(new RegExp("(?:^|; )"+dojo.regexp.escapeString(_21)+"=([^;]*)"));return _24?decodeURIComponent(_24[1]):undefined;}else{_23=_23||{};var exp=_23.expires;if(typeof exp=="number"){var d=new Date();d.setTime(d.getTime()+exp*24*60*60*1000);exp=_23.expires=d;}if(exp&&exp.toUTCString){_23.expires=exp.toUTCString();}_22=encodeURIComponent(_22);var _25=_21+"="+_22,_26;for(_26 in _23){_25+="; "+_26;var _27=_23[_26];if(_27!==true){_25+="="+_27;}}document.cookie=_25;}};dojo.cookie.isSupported=function(){if(!("cookieEnabled" in navigator)){this("__djCookieTest__","CookiesAllowed");navigator.cookieEnabled=this("__djCookieTest__")=="CookiesAllowed";if(navigator.cookieEnabled){this("__djCookieTest__","",{expires:-1});}}return navigator.cookieEnabled;};}if(!dojo._hasResource["dojo.fx.easing"]){dojo._hasResource["dojo.fx.easing"]=true;dojo.provide("dojo.fx.easing");dojo.getObject("fx.easing",true,dojo);dojo.fx.easing={linear:function(n){return n;},quadIn:function(n){return Math.pow(n,2);},quadOut:function(n){return n*(n-2)*-1;},quadInOut:function(n){n=n*2;if(n<1){return Math.pow(n,2)/2;}return -1*((--n)*(n-2)-1)/2;},cubicIn:function(n){return Math.pow(n,3);},cubicOut:function(n){return Math.pow(n-1,3)+1;},cubicInOut:function(n){n=n*2;if(n<1){return Math.pow(n,3)/2;}n-=2;return (Math.pow(n,3)+2)/2;},quartIn:function(n){return Math.pow(n,4);},quartOut:function(n){return -1*(Math.pow(n-1,4)-1);},quartInOut:function(n){n=n*2;if(n<1){return Math.pow(n,4)/2;}n-=2;return -1/2*(Math.pow(n,4)-2);},quintIn:function(n){return Math.pow(n,5);},quintOut:function(n){return Math.pow(n-1,5)+1;},quintInOut:function(n){n=n*2;if(n<1){return Math.pow(n,5)/2;}n-=2;return (Math.pow(n,5)+2)/2;},sineIn:function(n){return -1*Math.cos(n*(Math.PI/2))+1;},sineOut:function(n){return Math.sin(n*(Math.PI/2));},sineInOut:function(n){return -1*(Math.cos(Math.PI*n)-1)/2;},expoIn:function(n){return (n==0)?0:Math.pow(2,10*(n-1));},expoOut:function(n){return (n==1)?1:(-1*Math.pow(2,-10*n)+1);},expoInOut:function(n){if(n==0){return 0;}if(n==1){return 1;}n=n*2;if(n<1){return Math.pow(2,10*(n-1))/2;}--n;return (-1*Math.pow(2,-10*n)+2)/2;},circIn:function(n){return -1*(Math.sqrt(1-Math.pow(n,2))-1);},circOut:function(n){n=n-1;return Math.sqrt(1-Math.pow(n,2));},circInOut:function(n){n=n*2;if(n<1){return -1/2*(Math.sqrt(1-Math.pow(n,2))-1);}n-=2;return 1/2*(Math.sqrt(1-Math.pow(n,2))+1);},backIn:function(n){var s=1.70158;return Math.pow(n,2)*((s+1)*n-s);},backOut:function(n){n=n-1;var s=1.70158;return Math.pow(n,2)*((s+1)*n+s)+1;},backInOut:function(n){var s=1.70158*1.525;n=n*2;if(n<1){return (Math.pow(n,2)*((s+1)*n-s))/2;}n-=2;return (Math.pow(n,2)*((s+1)*n+s)+2)/2;},elasticIn:function(n){if(n==0||n==1){return n;}var p=0.3;var s=p/4;n=n-1;return -1*Math.pow(2,10*n)*Math.sin((n-s)*(2*Math.PI)/p);},elasticOut:function(n){if(n==0||n==1){return n;}var p=0.3;var s=p/4;return Math.pow(2,-10*n)*Math.sin((n-s)*(2*Math.PI)/p)+1;},elasticInOut:function(n){if(n==0){return 0;}n=n*2;if(n==2){return 1;}var p=0.3*1.5;var s=p/4;if(n<1){n-=1;return -0.5*(Math.pow(2,10*n)*Math.sin((n-s)*(2*Math.PI)/p));}n-=1;return 0.5*(Math.pow(2,-10*n)*Math.sin((n-s)*(2*Math.PI)/p))+1;},bounceIn:function(n){return (1-dojo.fx.easing.bounceOut(1-n));},bounceOut:function(n){var s=7.5625;var p=2.75;var l;if(n<(1/p)){l=s*Math.pow(n,2);}else{if(n<(2/p)){n-=(1.5/p);l=s*Math.pow(n,2)+0.75;}else{if(n<(2.5/p)){n-=(2.25/p);l=s*Math.pow(n,2)+0.9375;}else{n-=(2.625/p);l=s*Math.pow(n,2)+0.984375;}}}return l;},bounceInOut:function(n){if(n<0.5){return dojo.fx.easing.bounceIn(n*2)/2;}return (dojo.fx.easing.bounceOut(n*2-1)/2)+0.5;}};}if(!dojo._hasResource["Page.BC.home"]){dojo._hasResource["Page.BC.home"]=true;dojo.provide("Page.BC.home");dojo.addOnLoad(function(){if(typeof Page.BC=="undefined"||!Page.BC){Page.BC={};}Home=function(){};Home.prototype.initialize=function(){var _28=dojo.queryToObject(dojo.hash());dojox.lang.functional.forIn(_28,function(_29,_2a){switch(_2a){case "refcode":dojo.cookie("refcode",_29,{expires:30});break;default:}});this.screens={};this.screens.index=dojo.query(".gallery-screen","gallery-screens");this.screens.currIndex=0;this.screens.slides=dojo.query(".gallery-slide","gallery-slides");dojobc.selectTarget("gallery-slides",this.screens.slides[this.screens.currIndex]);var s=0;this.slideshow=setInterval(function(){if(s==0){s=1;}else{if(s==1){s=2;}else{if(s==2){s=3;}else{if(s==3){s=0;}}}}Home.gallery.scrollToScreen(s);},7000);};Home.gallery={currIndex:0,scrollToScreen:function(i,_2b){var dis=Math.abs(i-Home.gallery.currIndex);var _2c=-100*Home.gallery.currIndex;var _2d=-100*i;dojobc.selectTarget("gallery-slides",engine.screens.slides[i]);dojo.animateProperty({node:"gallery-screens",duration:500*dis,properties:{left:{start:_2c,end:_2d,units:"%"}},onEnd:function(){Home.gallery.currIndex=i;if(_2b){clearInterval(engine.slideshow);}}}).play();}};Home.showVideo=function(_2e,_2f){clearInterval(engine.slideshow);var _2f=dojo.byId(_2f);_2f.innerHTML="<iframe width=\"560\" height=\"315\" src=\""+_2e+"?autohide=1&autoplay=1&rel=0&color=white&theme=dark&modestbranding=1&showinfo=0&showsearch=0\" frameborder=\"0\" allowfullscreen></iframe>";_gaq.push(["_trackPageview","/info/"+DATA.currentPage+"/"+_2f]);};});}if(!dojo._hasResource["js-includes.x-home"]){dojo._hasResource["js-includes.x-home"]=true;dojo.provide("js-includes.x-home");}

