var Prototype={Version:"m4m stripdown",emptyFunction:function(){},K:function(a){return a}};var Class={create:function(){return function(){this.initialize.apply(this,arguments)}}};Object.extend=function(a,d){for(property in d){a[property]=d[property]}return a};Function.prototype.bind=function(d){var a=this;return function(){return a.apply(d,arguments)}};var Try={these:function(){var f;for(var d=0;d<arguments.length;d++){var a=arguments[d];try{f=a();break}catch(g){}}return f}};function $(){var e=new Array();for(var d=0;d<arguments.length;d++){var a=arguments[d];if(typeof a=="string"){a=document.getElementById(a)}if(arguments.length==1){return a}e.push(a)}return e}Object.extend(String.prototype,{stripTags:function(){return this.replace(/<\/?[^>]+>/gi,"")}});var Ajax={getTransport:function(){return Try.these(function(){return new ActiveXObject("Msxml2.XMLHTTP")},function(){return new ActiveXObject("Microsoft.XMLHTTP")},function(){return new XMLHttpRequest()})||false}};Ajax.Base=function(){};Ajax.Base.prototype={setOptions:function(a){this.options={method:"post",asynchronous:true,parameters:""};Object.extend(this.options,a||{})},responseIsSuccess:function(){return this.transport.status==undefined||this.transport.status==0||(this.transport.status>=200&&this.transport.status<300)},responseIsFailure:function(){return !this.responseIsSuccess()}};Ajax.Request=Class.create();Ajax.Request.Events=["Uninitialized","Loading","Loaded","Interactive","Complete"];Ajax.Request.prototype=Object.extend(new Ajax.Base(),{initialize:function(d,a){this.transport=Ajax.getTransport();this.setOptions(a);this.request(d)},request:function(d){var f=this.options.parameters||"";if(f.length>0){f+="&_="}try{if(this.options.method=="get"){d+="?"+f}this.transport.open(this.options.method,d,this.options.asynchronous);if(this.options.asynchronous){this.transport.onreadystatechange=this.onStateChange.bind(this);setTimeout((function(){this.respondToReadyState(1)}).bind(this),10)}this.setRequestHeaders();var a=this.options.postBody?this.options.postBody:f;this.transport.send(this.options.method=="post"?a:null)}catch(g){}},setRequestHeaders:function(){var d=["X-Requested-With","XMLHttpRequest","X-Prototype-Version",Prototype.Version];if(this.options.method=="post"){d.push("Content-type","application/x-www-form-urlencoded");if(this.transport.overrideMimeType){d.push("Connection","close")}}if(this.options.requestHeaders){d.push.apply(d,this.options.requestHeaders)}for(var a=0;a<d.length;a+=2){this.transport.setRequestHeader(d[a],d[a+1])}},onStateChange:function(){var a=this.transport.readyState;if(a!=1){this.respondToReadyState(this.transport.readyState)}},respondToReadyState:function(a){var d=Ajax.Request.Events[a];if(d=="Complete"){(this.options["on"+this.transport.status]||this.options["on"+(this.responseIsSuccess()?"Success":"Failure")]||Prototype.emptyFunction)(this.transport)}(this.options["on"+d]||Prototype.emptyFunction)(this.transport);if(d=="Complete"){this.transport.onreadystatechange=Prototype.emptyFunction}}});if(!window.Element){var Element=new Object()}Object.extend(Element,{hide:function(){for(var d=0;d<arguments.length;d++){var a=$(arguments[d]);a.style.display="none"}},show:function(){for(var d=0;d<arguments.length;d++){var a=$(arguments[d]);a.style.display=""}},remove:function(a){a=$(a);a.parentNode.removeChild(a)},hasClassName:function(f,g){f=$(f);if(!f){return}var d=f.className.split(" ");for(var e=0;e<d.length;e++){if(d[e]==g){return true}}return false},addClassName:function(a,d){a=$(a);Element.removeClassName(a,d);a.className+=" "+d},removeClassName:function(g,j){g=$(g);if(!g){return}var e="";var d=g.className.split(" ");for(var f=0;f<d.length;f++){if(d[f]!=j){if(f>0){e+=" "}e+=d[f]}}g.className=e},cleanWhitespace:function(d){var d=$(d);for(var a=0;a<d.childNodes.length;a++){var e=d.childNodes[a];if(e.nodeType==3&&!/\S/.test(e.nodeValue)){Element.remove(e)}}}});var Position={cumulativeOffset:function(d){var a=0,e=0;do{a+=d.offsetTop||0;e+=d.offsetLeft||0;d=d.offsetParent}while(d);return[e,a]}};var Attitude={getSelector:function(a){var f=a.split(" ");var l=[];for(var e=0;arg=f[e];e++){l[e]=param=[];if(f[e].indexOf("#")>-1){var g=arg.split("#");param.tag=g[0]||"*";param.id=g[1]}else{if(f[e].indexOf(".")>-1){var g=arg.split(".");param.tag=g[0]||"*";param["class"]=g[1]}else{param.tag=arg}}}this.filter=[document];for(var d=0;param=l[d];d++){if(d==0&&param.id){var m=document.getElementById(param.id);if(param.tag=="*"||m.tagName.toLowerCase()==param.tag){this.filter=[m]}else{return[]}continue}this.filter=this._getElementsWithTagName(param.tag);if(param["class"]){this.filter=this._getElementsWithClassName(param["class"])}else{if(param.id){this.filter=this._getElementsWithId(param.id)}}}return this.filter},sheets:[],append:function(a){this.sheets.push(a)},start:function(){for(var a=0;sheet=this.sheets[a];a++){this.update(sheet)}},update:function(e){for(selector in e){var d=selector.split(",");for(c=0;comb=d[c];c++){var f=Attitude.getSelector(comb.replace(/^\s*|\s*$/g,""))||null;for(var a=0;element=f[a];a++){e[selector](element)}}}},_getElementsWithId:function(e){var d=[];for(var a=0;el=this.filter[a];a++){if(el.id==e){d.push(el)}}return d},_getElementsWithClassName:function(g){var j=[];for(var e=0;el=this.filter[e];e++){var d=el.className.split(" ");for(var f=0;b=d[f];f++){if(b==g){j.push(el)}}}return j},_getElementsWithTagName:function(f){var g=[];for(var e=0;el=this.filter[e];e++){var a=el.getElementsByTagName(f);for(var d=0;taag=a[d];d++){g.push(taag)}}return g}};function $S(){if(arguments.length==1){if(typeof arguments[0]=="string"){if(arguments[0].charAt(0)=="#"&&arguments[0].indexOf(" ")==-1){return document.getElementById(arguments[0].slice(1))||null}return Attitude.getSelector(arguments[0])}else{return arguments[0]}}var e=[];for(var d=0;sel=arguments[d];d++){if(typeof sel=="string"){var a=Attitude.getSelector(sel);for(h=0;el=a[h];h++){e.push(el)}}else{e.push(sel)}}return e}Array.prototype.action=function(d){for(var a=0;el=this[a];a++){if(d.initialize){d.initialize(el)}for(action in d){if(action.slice(0,2)=="on"){el[action]=d[action]}}}};var fx=new Object();fx.Base=function(){};fx.Base.prototype={setOptions:function(a){this.options={duration:500,onComplete:"",transition:fx.sinoidal};Object.extend(this.options,a||{})},go:function(){this.startTime=(new Date).getTime();this.timer=setInterval(this.step.bind(this),10)},step:function(){var d=(new Date).getTime();if(d>=this.options.duration+this.startTime){this.now=this.to;clearInterval(this.timer);this.timer=null;if(this.options.onComplete){setTimeout(this.options.onComplete.bind(this),10)}}else{var a=(d-this.startTime)/(this.options.duration);this.now=this.options.transition(a)*(this.to-this.from)+this.from}this.increase()},custom:function(d,a){if(this.timer!=null){return}this.from=d;this.to=a;this.go()},hide:function(){this.now=0;this.increase()},clearTimer:function(){clearInterval(this.timer);this.timer=null}};fx.Layout=Class.create();fx.Layout.prototype=Object.extend(new fx.Base(),{initialize:function(d,a){this.el=$(d);this.el.style.overflow="hidden";this.el.iniWidth=this.el.offsetWidth;this.el.iniHeight=this.el.offsetHeight;this.setOptions(a)}});fx.Height=Class.create();Object.extend(Object.extend(fx.Height.prototype,fx.Layout.prototype),{increase:function(){this.el.style.height=this.now+"px"},toggle:function(){if(this.el.offsetHeight>0){this.custom(this.el.offsetHeight,0)}else{this.custom(0,this.el.scrollHeight)}}});fx.Width=Class.create();Object.extend(Object.extend(fx.Width.prototype,fx.Layout.prototype),{increase:function(){this.el.style.width=this.now+"px"},toggle:function(){if(this.el.offsetWidth>0){this.custom(this.el.offsetWidth,0)}else{this.custom(0,this.el.iniWidth)}}});fx.Opacity=Class.create();fx.Opacity.prototype=Object.extend(new fx.Base(),{initialize:function(d,a){this.el=$(d);this.now=1;this.increase();this.setOptions(a)},increase:function(){if(this.now==1){this.now=0.9999}if(this.now>0&&this.el.style.visibility=="hidden"){this.el.style.visibility="visible"}if(this.now==0){this.el.style.visibility="hidden"}if(window.ActiveXObject){this.el.style.filter="alpha(opacity="+this.now*100+")"}this.el.style.opacity=this.now},toggle:function(){if(this.now>0){this.custom(1,0)}else{this.custom(0,1)}}});fx.sinoidal=function(a){return((-Math.cos(a*Math.PI)/2)+0.5)};fx.linear=function(a){return a};fx.cubic=function(a){return Math.pow(a,3)};fx.circ=function(a){return Math.sqrt(a)};fx.Text=Class.create();fx.Text.prototype=Object.extend(new fx.Base(),{initialize:function(d,a){this.el=$(d);this.setOptions(a);if(!this.options.unit){this.options.unit="em"}},increase:function(){this.el.style.fontSize=this.now+this.options.unit}});fx.Resize=Class.create();fx.Resize.prototype={initialize:function(d,a){this.h=new fx.Height(d,a);if(a){a.onComplete=null}this.w=new fx.Width(d,a);this.el=$(d)},toggle:function(){this.h.toggle();this.w.toggle()},modify:function(a,d){this.h.custom(this.el.offsetHeight,this.el.offsetHeight+a);this.w.custom(this.el.offsetWidth,this.el.offsetWidth+d)},custom:function(a,d){this.h.custom(this.el.offsetHeight,a);this.w.custom(this.el.offsetWidth,d)},hide:function(){this.h.hide();this.w.hide()}};fx.FadeSize=Class.create();fx.FadeSize.prototype={initialize:function(d,a){this.el=$(d);this.el.o=new fx.Opacity(d,a);if(a){a.onComplete=null}this.el.h=new fx.Height(d,a);this.el.w=new fx.Width(d,a)},toggle:function(){this.el.o.toggle();for(var a=0;arg=arguments[a];a++){if(arg=="height"){this.el.h.toggle()}if(arg=="width"){this.el.w.toggle()}}},hide:function(){this.el.o.hide();for(var a=0;arg=arguments[a];a++){if(arg=="height"){this.el.h.hide()}if(arg=="width"){this.el.w.hide()}}}};var Multi=new Object();Multi=function(){};Multi.prototype={initialize:function(d,a){this.options=a;this.el=d;for(i=0;el=this.el[i];i++){this.effect($(el))}}};fx.MultiFadeSize=Class.create();fx.MultiFadeSize.prototype=Object.extend(new Multi(),{effect:function(a){a.fs=new fx.FadeSize(a,this.options)},showThisHideOpen:function(e,a,d){for(i=0;el=$(this.el[i]);i++){if(el.offsetHeight>0&&el!=e&&el.h.timer==null&&e.h.timer==null){el.fs.toggle(d);setTimeout(function(){e.fs.toggle(d)}.bind(e),a)}}},hide:function(a,d){a.fs.hide(d)}});var Remember=new Object();Remember=function(){};Remember.prototype={initialize:function(e,a){this.el=$(e);this.days=365;this.options=a;this.effect();var d=this.readCookie();if(d){this.fx.now=d;this.fx.increase()}},setCookie:function(e){var d=new Date();d.setTime(d.getTime()+(this.days*24*60*60*1000));var a="; expires="+d.toGMTString();document.cookie=this.el+this.el.id+this.prefix+"="+e+a+"; path=/"},readCookie:function(){var e=this.el+this.el.id+this.prefix+"=";var a=document.cookie.split(";");for(var d=0;c=a[d];d++){while(c.charAt(0)==" "){c=c.substring(1,c.length)}if(c.indexOf(e)==0){return c.substring(e.length,c.length)}}return false},custom:function(d,a){if(this.fx.now!=a){this.setCookie(a);this.fx.custom(d,a)}}};fx.RememberHeight=Class.create();fx.RememberHeight.prototype=Object.extend(new Remember(),{effect:function(){this.fx=new fx.Height(this.el,this.options);this.prefix="height"},toggle:function(){if(this.el.offsetHeight==0){this.setCookie(this.el.scrollHeight)}else{this.setCookie(0)}this.fx.toggle()},resize:function(a){this.setCookie(this.el.offsetHeight+a);this.fx.custom(this.el.offsetHeight,this.el.offsetHeight+a)},hide:function(){if(!this.readCookie()){this.fx.hide()}}});fx.RememberText=Class.create();fx.RememberText.prototype=Object.extend(new Remember(),{effect:function(){this.fx=new fx.Text(this.el,this.options);this.prefix="text"}});fx.Scroll=Class.create();fx.Scroll.prototype=Object.extend(new fx.Base(),{initialize:function(a){this.setOptions(a)},scrollTo:function(f){var d=Position.cumulativeOffset($(f))[1];var a=window.innerHeight||document.documentElement.clientHeight;var e=document.documentElement.scrollHeight;var g=window.pageYOffset||document.body.scrollTop||document.documentElement.scrollTop;if(d+a>e){this.custom(g,d-a+(e-d))}else{this.custom(g,d)}},increase:function(){window.scrollTo(0,this.now)}});fx.expoIn=function(a){return Math.pow(2,10*(a-1))};fx.expoOut=function(a){return(-Math.pow(2,-10*a)+1)};fx.quadIn=function(a){return Math.pow(a,2)};fx.quadOut=function(a){return -(a)*(a-2)};fx.circOut=function(a){return Math.sqrt(1-Math.pow(a-1,2))};fx.circIn=function(a){return -(Math.sqrt(1-Math.pow(a,2))-1)};fx.backIn=function(a){return(a)*a*((2.7)*a-1.7)};fx.backOut=function(a){return((a-1)*(a-1)*((2.7)*(a-1)+1.7)+1)};fx.sineOut=function(a){return Math.sin(a*(Math.PI/2))};fx.sineIn=function(a){return -Math.cos(a*(Math.PI/2))+1};fx.sineInOut=function(a){return -(Math.cos(Math.PI*a)-1)/2};var count=0;var allStretch,linktextsize;var m4mSet={body:function(){ScrollLinks.start()},"#container":function(a){linktextsize=new fx.RememberText(a);var d=$S(".sliding");allStretch=new fx.MultiFadeSize(d,{duration:400})},"#textsize a.one":function(a){a.style.cursor="pointer";a.onclick=function(){if(linktextsize){linktextsize.custom(1.1,1)}}},"#textsize a.three":function(a){a.style.cursor="pointer";a.onclick=function(){if(linktextsize){linktextsize.custom(1,1.1)}}},"div.slidingblock":function(a){Element.cleanWhitespace(a)},"h5.slidetitle":function(a){count+=1;a.style.cursor="pointer";var d=a.nextSibling;if(count!=1){allStretch.hide(d,"height")}a.onclick=function(){if(allStretch){allStretch.showThisHideOpen(d,100,"height")}}}};Attitude.append(m4mSet);var ScrollLinks={currentHash:false,start:function(){this.scroll=new fx.Scroll({duration:800,onComplete:function(){this.end()}.bind(this)});this.allinks=$S("a");this.allinks.action({initialize:function(a){if((a.href&&a.href.indexOf("#")!=-1)&&((a.pathname==location.pathname)||("/"+a.pathname==location.pathname))&&(a.search==location.search)){a.onclick=function(){ScrollLinks.scroll.clearTimer();this.initialHref=this.href;this.initialHash=this.hash;this.href="javascript:void(0)";setTimeout(function(){this.href=this.initialHref}.bind(this),200);ScrollLinks.go(this)}}}})},go:function(a){this.currentHash=a.initialHash.slice(1);if(this.currentHash){this.allinks.action({initialize:function(d){if(d.id==ScrollLinks.currentHash){if(!window.opera){ScrollLinks.scroll.scrollTo(d)}else{ScrollLinks.scroll.scrollTo(d.parentNode)}return}}})}},end:function(){if(!/Konqueror|Safari|KHTML/.test(navigator.userAgent)){window.location.hash="#"+this.currentHash}this.currentHash=false}};var loadingImage="loading.gif";var closeButton="nav-zoom-out.gif";function getPageScroll(){var a;if(self.pageYOffset){a=self.pageYOffset}else{if(document.documentElement&&document.documentElement.scrollTop){a=document.documentElement.scrollTop}else{if(document.body){a=document.body.scrollTop}}}arrayPageScroll=new Array("",a);return arrayPageScroll}function getPageSize(){var e,a;if(window.innerHeight&&window.scrollMaxY){e=document.body.scrollWidth;a=window.innerHeight+window.scrollMaxY}else{if(document.body.scrollHeight>document.body.offsetHeight){e=document.body.scrollWidth;a=document.body.scrollHeight}else{e=document.body.offsetWidth;a=document.body.offsetHeight}}var d,f;if(self.innerHeight){d=self.innerWidth;f=self.innerHeight}else{if(document.documentElement&&document.documentElement.clientHeight){d=document.documentElement.clientWidth;f=document.documentElement.clientHeight}else{if(document.body){d=document.body.clientWidth;f=document.body.clientHeight}}}if(a<f){pageHeight=f}else{pageHeight=a}if(e<d){pageWidth=d}else{pageWidth=e}arrayPageSize=new Array(pageWidth,pageHeight,d,f);return arrayPageSize}function pause(d){var a=new Date();var e=a.getTime()+d;while(true){a=new Date();if(a.getTime()>e){return}}}function getKey(a){if(a==null){keycode=event.keyCode}else{keycode=a.which}key=String.fromCharCode(keycode).toLowerCase();if(key=="x"){hideLightbox()}}function listenKey(){document.onkeypress=getKey}function showLightbox(e){var l=document.getElementById("overlay");var d=document.getElementById("lightbox");var g=document.getElementById("lightboxCaption");var m=document.getElementById("lightboxImage");var a=document.getElementById("loadingImage");var k=document.getElementById("lightboxDetails");var j=getPageSize();var f=getPageScroll();if(a){a.style.top=(f[1]+((j[3]-35-a.height)/2)+"px");a.style.left=(((j[0]-20-a.width)/2)+"px");a.style.display="block"}l.style.height=(j[1]+"px");l.style.display="block";imgPreload=new Image();imgPreload.onload=function(){m.src=e.href;var o=f[1]+((j[3]-35-imgPreload.height)/2);var n=((j[0]-20-imgPreload.width)/2);d.style.top=(o<0)?"0px":o+"px";d.style.left=(n<0)?"0px":n+"px";k.style.width=imgPreload.width+"px";if(e.getAttribute("title")){g.style.display="block";g.innerHTML=e.getAttribute("title")}else{g.style.display="none"}if(navigator.appVersion.indexOf("MSIE")!=-1){pause(250)}if(a){a.style.display="none"}selects=document.getElementsByTagName("select");for(i=0;i!=selects.length;i++){selects[i].style.visibility="hidden"}d.style.display="block";j=getPageSize();l.style.height=(j[1]+"px");listenKey();return false};imgPreload.src=e.href}function hideLightbox(){objOverlay=document.getElementById("overlay");objLightbox=document.getElementById("lightbox");objOverlay.style.display="none";objLightbox.style.display="none";selects=document.getElementsByTagName("select");for(i=0;i!=selects.length;i++){selects[i].style.visibility="visible"}document.onkeypress=""}function initLightbox(){if(!document.getElementsByTagName){return}var d=document.getElementsByTagName("a");for(var g=0;g<d.length;g++){var j=d[g];if(j.getAttribute("href")&&(j.getAttribute("rel")=="lightbox")){j.onclick=function(){showLightbox(this);return false}}}var s=document.getElementsByTagName("body").item(0);var r=document.createElement("div");r.setAttribute("id","overlay");r.onclick=function(){hideLightbox();return false};r.style.display="none";r.style.position="absolute";r.style.top="0";r.style.left="0";r.style.zIndex="90";r.style.width="100%";s.insertBefore(r,s.firstChild);var l=getPageSize();var m=getPageScroll();var n=new Image();n.onload=function(){var u=document.createElement("a");u.setAttribute("href","#");u.onclick=function(){hideLightbox();return false};r.appendChild(u);var t=document.createElement("img");t.src=loadingImage;t.setAttribute("id","loadingImage");t.style.position="absolute";t.style.zIndex="150";u.appendChild(t);n.onload=function(){};return false};n.src=loadingImage;var e=document.createElement("div");e.setAttribute("id","lightbox");e.style.display="none";e.style.position="absolute";e.style.zIndex="100";s.insertBefore(e,r.nextSibling);var f=document.createElement("a");f.setAttribute("href","#");f.setAttribute("title","Click to close");f.onclick=function(){hideLightbox();return false};e.appendChild(f);var o=new Image();o.onload=function(){var t=document.createElement("img");t.src=closeButton;t.setAttribute("id","closeButton");t.style.position="absolute";t.style.top="600px";t.style.right="35px";t.style.zIndex="200";f.appendChild(t);return false};o.src=closeButton;var q=document.createElement("img");q.setAttribute("id","lightboxImage");f.appendChild(q);var p=document.createElement("div");p.setAttribute("id","lightboxDetails");e.appendChild(p);var k=document.createElement("div");k.setAttribute("id","lightboxCaption");k.style.display="none";p.appendChild(k);var a=document.createElement("div");a.setAttribute("id","keyboardMsg");a.innerHTML="press <kbd>x</kbd> to close";p.appendChild(a)}function addLoadEvent(a){var d=window.onload;if(typeof window.onload!="function"){window.onload=a}else{window.onload=function(){d();a()}}}addLoadEvent(initLightbox);function addEvent(g,f,d,a){if(g.addEventListener){g.addEventListener(f,d,a);return true}else{if(g.attachEvent){var e=g.attachEvent("on"+f,d);return e}else{g["on"+f]=d}}}function hi(d){var a;if(window.event&&window.event.srcElement){a=window.event.srcElement}if(d&&d.target){a=d.target}if(!a){return}document.getElementById("home").style.backgroundColor="#919191"}function lo(d){var a;if(window.event&&window.event.srcElement){a=window.event.srcElement}if(d&&d.target){a=d.target}if(!a){return}document.getElementById("home").style.backgroundColor="#6c8db6"}function addListeners(){if(!document.getElementById){return}if(document.getElementById("logo")){var a=document.getElementById("logo");addEvent(a,"mouseover",hi,false);addEvent(a,"mouseout",lo,false)}if(document.getElementById("hit")){addEvent(document.getElementById("hit"),"mouseover",hi,false);addEvent(document.getElementById("hit"),"mouseout",lo,false)}if(document.getElementById("home")){addEvent(document.getElementById("home"),"mouseout",lo,false);addEvent(document.getElementById("home"),"mouseover",hi,false)}}addEvent(window,"load",bbrInit,false);function bbrInit(){addListeners();Attitude.start()}var gaJsHost=(("https:"==document.location.protocol)?"https://ssl.":"http://www.");document.write(unescape("%3Cscript src='"+gaJsHost+"google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));try{var pageTracker=_gat._getTracker("UA-6521159-5");pageTracker._trackPageview()}catch(err){};