/* AllTabs.js */

var timeout,check;var W3CDOM=(document.createElement&&document.getElementsByTagName);var ArmouseOvers=new Array();var ArmouseOuts=new Array();var ArmouseOversCon=new Array();var ArmouseOutsCon=new Array();var carousel;Event.observe(window,'load',function(){try{ActivateDefaultTab();ImageSwaps();check=document.getElementById('html-carousel');if(check){initCarousel_html_carousel();}}
catch(ex){}},false);function beginDefaultTabTimer(){if(timeout!=null){endDefaultTabTimer();}timeout=setTimeout("ActivateDefaultTab()",defaultTabTime);}
function endDefaultTabTimer(){clearTimeout(timeout);}
function GetDefaultTab(){if(document.getElementById(defaultTabId)){return document.getElementById(defaultTabId);}else{return null;}}
function ActivateDefaultTab(){TabOver(GetDefaultTab());}
function TabOver(_1){SetTabActive(_1);ShowTabContent(_1.id+"_content");}
function SetTabActive(_2){var _3=document.getElementById("tabContainer");var _4=_3.getElementsByTagName("a");for(i=0;i<_4.length;i++){_4[i].className=(_4[i]==_2?"tabactive":"");}if(_2!=GetDefaultTab()){GetDefaultTab().className="defaultTabOff";}}
function ShowTabContent(_5){var _6=document.getElementById("contentContainer");var _7=_6.getElementsByTagName("div");for(i=0;i<_7.length;i++){_7[i].style.display=(_7[i].id==_5?"block":"none");}}
function ImageSwaps()
{if(!W3CDOM)return;var nav=document.getElementById('html-carousel');if(nav)
{var imgs=nav.getElementsByTagName('img');for(var i=0;i<imgs.length;i++)
{imgs[i].onmouseover=FnmouseGoesOver;imgs[i].onmouseout=FnmouseGoesOut;var suffix=imgs[i].src.substring(imgs[i].src.lastIndexOf('.'));ArmouseOuts[i]=new Image();ArmouseOuts[i].src=imgs[i].src;ArmouseOvers[i]=new Image();ArmouseOvers[i].src=imgs[i].src.substring(0,imgs[i].src.lastIndexOf('.'))+"_over"+suffix;imgs[i].number=i;}}
var controls=document.getElementById('img_controller');if(controls)
{var conimgs=controls.getElementsByTagName('img');for(var i=0;i<conimgs.length;i++)
{conimgs[i].onmouseover=FnmouseGoesOverCon;conimgs[i].onmouseout=FnmouseGoesOutCon;var suffix=conimgs[i].src.substring(conimgs[i].src.lastIndexOf('.'));ArmouseOutsCon[i]=new Image();ArmouseOutsCon[i].src=conimgs[i].src;ArmouseOversCon[i]=new Image();ArmouseOversCon[i].src=conimgs[i].src.substring(0,conimgs[i].src.lastIndexOf('.'))+"_over"+suffix;conimgs[i].number=i;}}}
function FnmouseGoesOver()
{this.src=ArmouseOvers[this.number].src;}
function FnmouseGoesOut()
{this.src=ArmouseOuts[this.number].src;}
function FnmouseGoesOverCon()
{this.src=ArmouseOversCon[this.number].src;}
function FnmouseGoesOutCon()
{this.src=ArmouseOutsCon[this.number].src;}
function initCarousel_html_carousel(){carousel=new Carousel('html-carousel',{slideHandler:slideHandler,slideParameters:{duration:0.5},buttonStateHandler:buttonStateHandler,nextElementID:'next-arrow',prevElementID:'prev-arrow',size:31});}
function snapTo(letter){var ulist=carousel.carouselList;for(var i=0;i<ulist.childNodes.length-1;i++)
{if(ulist.childNodes[i].childNodes.length>0)
{var w=ulist.childNodes[i].lastChild.text;if(!w)
w=ulist.childNodes[i].lastChild.innerText;if(w.substring(0,1)==letter)
{var browser=navigator.appName;if(browser=='Microsoft Internet Explorer')
{carousel.scrollTo(i);break;}
else
{carousel.scrollTo(i-1);break;}}}}}
function buttonStateHandler(button,enabled){if(button=="prev-arrow"){$('prev-arrow').src=enabled?_virtualPath+"images/button_back_green.png":_virtualPath+"images/button_back_gry.png"}
else{$('next-arrow').src=enabled?_virtualPath+"images/button_forward_green.png":_virtualPath+"images/button_forward_gry.png"}}
function slideHandler(carouselID,status,direction){var region=$(carouselID).down(".carousel-clip-region")
if(status=="before"){Effect.Fade(region,{to:0.3,queue:{position:'end',scope:"carousel"},duration:0.2})}
if(status=="after"){Effect.Fade(region,{to:1,queue:{position:'end',scope:"carousel"},duration:0.2})}}
/* crossfade.js */

var Crossfade=Class.create();Crossfade.prototype={loaded:false,initialize:function(elm,options){var me=this,next,prev;this.elm=$(elm);this.counter=0;this.prevSlide=null;var t_opt={};for(t in Crossfade.Transition){var trans=Crossfade.Transition[t];if(trans.className&&this.elm.hasClassName(trans.className)){t_opt={transition:trans};break;}}
this.options=Object.extend(Object.clone(Crossfade.defaults),Object.extend(options||{},t_opt));this.options.interval=Math.max(2,this.options.interval);this.elm.makePositioned();this.slides=this.elm.immediateDescendants();if(this.options.random||this.elm.hasClassName(this.options.randomClassName)){this.slides.sort(function(a,b){return me.rndm(-1,1);});}
if(this.elm.id){next=$(this.elm.id+'-next');prev=$(this.elm.id+'-previous');if(next){Event.observe(next,'click',this.next.bind(this));}
if(prev){Event.observe(prev,'click',this.previous.bind(this));}}
this.loadSlide(this.slides[0],function(){me.options.transition.prepare(me);});this.loadSlide(this.slides[1]);if(this.options.autoStart){setTimeout(this.start.bind(this),this.rndm((this.options.interval-1)*1000,(this.options.interval+1)*1000));}},start:function(){this.ready=true;this.cycle()
return this.timer=new PeriodicalExecuter(this.cycle.bind(this),this.options.interval);},stop:function(){this.options.transition.cancel(this);this.timer.stop();},next:function(){this.options.transition.cancel(this);this.cycle();},previous:function(){this.options.transition.cancel(this);this.cycle(-1);},cycle:function(dir){if(!this.ready){return;}
this.ready=false;dir=(dir===-1)?dir:1;var me=this,prevSlide,nextSlide,opt,fade;prevSlide=this.slides[this.counter];this.counter=this.loopCount(this.counter+dir);if(this.counter==0){this.loaded=true;}
nextSlide=this.slides[this.counter];this.loadSlide(nextSlide,me.options.transition.cycle(prevSlide,nextSlide,me));if(!this.loaded){this.loadSlide(this.slides[this.loopCount(this.counter+1)]);}},gotoSlide:function(slideNumber){if(slideNumber==this.counter)
return;this.options.transition.cancel(this);if(!this.ready){return;}
this.ready=false;var me=this,prevSlide,nextSlide,opt,fade;prevSlide=this.slides[this.counter];nextSlide=this.slides[slideNumber];this.counter=this.loopCount(slideNumber);this.loadSlide(nextSlide,me.options.transition.cycle(prevSlide,nextSlide,me));if(!this.loaded){this.loadSlide(this.slides[this.loopCount(this.counter+1)]);}},loadSlide:function(slide,onload){var loaders=[],me=this,img,pnode,onloadFunction;onload=typeof onload==='function'?onload:function(){};onloadFunction=function(){onload();me.ready=true;};slide=$(slide);loaders=Selector.findChildElements(slide,[this.options.imageLoadSelector]);if(loaders.length&&loaders[0].href!==''){img=document.createElement('img');img.className='loadimage';img.onload=onloadFunction;img.src=loaders[0].href;loaders[0].parentNode.replaceChild(img,loaders[0]);}else{loaders=[];loaders=Selector.findChildElements(slide,[this.options.ajaxLoadSelector]);if(loaders.length&&loaders[0].href!==''){new Ajax.Updater(slide,loaders[0].href,{method:'get',onComplete:onloadFunction});}else{onloadFunction();}}},loopCount:function(c){if(c>=this.slides.length){c=0;}else if(c<0){c=this.slides.length-1}
return c;},rndm:function(min,max){return Math.floor(Math.random()*(max-min+1)+min);},timer:null,effect:null,ready:false};Crossfade.Transition={};Crossfade.Transition.Switch={className:'transition-switch',cycle:function(prev,next,show){show.slides.without(next).each(function(s){$(s).hide();})
$(next).show();},cancel:function(show){},prepare:function(show){show.slides.each(function(s,i){$(s).setStyle({display:(i===0?'block':'none')});});}};Crossfade.Transition.Crossfade={className:'transition-crossfade',cycle:function(prev,next,show){var opt=show.options;show.effect=new Effect.Parallel([new Effect.Fade(prev,{sync:true}),new Effect.Appear(next,{sync:true})],{duration:opt.duration,queue:'Crossfade',afterFinish:function(){show.slides.without(next).each(function(s){$(s).setStyle({opacity:0});})}});},cancel:function(show){if(show.effect){show.effect.cancel();}},prepare:function(show){show.slides.each(function(s,i){$(s).setStyle({opacity:(i===0?1:0),visibility:'visible'});});}};Crossfade.Transition.FadeOutFadeIn={className:'transition-fadeoutfadein',cycle:function(prev,next,show){var opt=show.options;show.effect=new Effect.Fade(prev,{duration:opt.duration/2,afterFinish:function(){show.effect=new Effect.Appear(next,{duration:opt.duration/2});show.slides.without(next).each(function(s){$(s).setStyle({opacity:0});})}});},cancel:function(show){if(show.effect){show.effect.cancel();}},prepare:function(show){show.slides.each(function(s,i){$(s).setStyle({opacity:(i===0?1:0),visibility:'visible'});});}};Effect.DoNothing=Class.create();Object.extend(Object.extend(Effect.DoNothing.prototype,Effect.Base.prototype),{initialize:function(){this.start({duration:0});},update:Prototype.emptyFunction});Crossfade.Transition.FadeOutResizeFadeIn={className:'transition-fadeoutresizefadein',cycle:function(prev,next,show){var opt=show.options;show.effect=new Effect.Fade(prev,{duration:(opt.duration-1)/2,afterFinish:function(){show.slides.without(next).each(function(s){$(s).setStyle({opacity:0});})
var slideDims=[next.getWidth(),next.getHeight()];var loadimg=Selector.findChildElements(next,['img.loadimage']);if(loadimg.length&&loadimg[0].offsetWidth&&loadimg[0].offsetHeight){slideDims[0]+=slideDims[0]<loadimg[0].offsetWidth?loadimg[0].offsetWidth:0;slideDims[1]+=slideDims[1]<loadimg[0].offsetHeight?loadimg[0].offsetHeight:0;}
var showDims=[show.elm.getWidth(),show.elm.getHeight()];var scale=[(showDims[0]>0&&slideDims[0]>0?slideDims[0]/showDims[0]:1)*100,(showDims[1]>0&&slideDims[1]>0?slideDims[1]/showDims[1]:1)*100];show.effect=new Effect.Parallel([(scale[0]===100?new Effect.DoNothing():new Effect.Scale(show.elm,scale[0],{sync:true,scaleY:false,scaleContent:false})),(scale[1]===100?new Effect.DoNothing():new Effect.Scale(show.elm,scale[1],{sync:true,scaleX:false,scaleContent:false}))],{duration:1,queue:'FadeOutResizeFadeIn',afterFinish:function(){show.effect=new Effect.Appear(next,{duration:(opt.duration-1)/2});}});}});},cancel:function(show){if(show.effect){show.effect.cancel();}},prepare:function(show){var slideDims=[$(show.slides[0]).getWidth(),$(show.slides[0]).getHeight()];show.elm.setStyle({width:slideDims[0]+'px',height:slideDims[1]+'px'});show.slides.each(function(s,i){$(s).setStyle({opacity:(i===0?1:0),visibility:'visible'});});}};Crossfade.defaults={autoLoad:false,autoStart:false,random:false,randomClassName:'random',selectors:['.crossfade'],imageLoadSelector:'a.loadimage',ajaxLoadSelector:'a.load',interval:5,duration:2,transition:Crossfade.Transition.Crossfade};Crossfade.setup=function(options){Object.extend(Crossfade.defaults,options);};Crossfade.load=function(){if(Crossfade.defaults.autoLoad){Crossfade.defaults.selectors.each(function(s){$$(s).each(function(c){return new Crossfade(c);});});}};if(window.FastInit){FastInit.addOnLoad(Crossfade.load);}else{Event.observe(window,'load',Crossfade.load);}
/* dropmenu.js */

var cssdropdown={disappeardelay:250,disablemenuclick:true,enableswipe:1,enableiframeshim:1,dropmenuobj:null,ie:document.all,firefox:document.getElementById&&!document.all,swipetimer:undefined,bottomclip:0,getposOffset:function(what,offsettype){var totaloffset=(offsettype=="left")?what.offsetLeft:what.offsetTop;var parentEl=what.offsetParent;while(parentEl!=null){totaloffset=(offsettype=="left")?totaloffset+parentEl.offsetLeft:totaloffset+parentEl.offsetTop;parentEl=parentEl.offsetParent;}
return totaloffset;},swipeeffect:function(){if(this.bottomclip<parseInt(this.dropmenuobj.offsetHeight)){this.bottomclip+=10+(this.bottomclip/10)
this.dropmenuobj.style.clip="rect(0 auto "+this.bottomclip+"px 0)"}
else
return
this.swipetimer=setTimeout("cssdropdown.swipeeffect()",10)},showhide:function(obj,e){if(this.ie||this.firefox)
this.dropmenuobj.style.left=this.dropmenuobj.style.top="-500px"
if(e.type=="click"&&obj.visibility==hidden||e.type=="mouseover"){if(this.enableswipe==1){if(typeof this.swipetimer!="undefined")
clearTimeout(this.swipetimer)
obj.clip="rect(0 auto 0 0)"
this.bottomclip=0
this.swipeeffect()}
obj.visibility="visible"}
else if(e.type=="click")
obj.visibility="hidden"},iecompattest:function(){return(document.compatMode&&document.compatMode!="BackCompat")?document.documentElement:document.body},clearbrowseredge:function(obj,whichedge){var edgeoffset=0
if(whichedge=="rightedge"){var windowedge=this.ie&&!window.opera?this.iecompattest().scrollLeft+this.iecompattest().clientWidth-15:window.pageXOffset+window.innerWidth-15
this.dropmenuobj.contentmeasure=this.dropmenuobj.offsetWidth
if(windowedge-this.dropmenuobj.x<this.dropmenuobj.contentmeasure)
edgeoffset=this.dropmenuobj.contentmeasure-obj.offsetWidth}
else{var topedge=this.ie&&!window.opera?this.iecompattest().scrollTop:window.pageYOffset
var windowedge=this.ie&&!window.opera?this.iecompattest().scrollTop+this.iecompattest().clientHeight-15:window.pageYOffset+window.innerHeight-18
this.dropmenuobj.contentmeasure=this.dropmenuobj.offsetHeight
if(windowedge-this.dropmenuobj.y<this.dropmenuobj.contentmeasure){edgeoffset=this.dropmenuobj.contentmeasure+obj.offsetHeight
if((this.dropmenuobj.y-topedge)<this.dropmenuobj.contentmeasure)
edgeoffset=this.dropmenuobj.y+obj.offsetHeight-topedge}}
return edgeoffset},dropit:function(obj,e,dropmenuID){if(this.dropmenuobj!=null)
this.dropmenuobj.style.visibility="hidden"
this.clearhidemenu()
if(this.ie||this.firefox){obj.onmouseout=function(){cssdropdown.delayhidemenu()}
obj.onclick=function(){return!cssdropdown.disablemenuclick}
this.dropmenuobj=document.getElementById(dropmenuID)
this.dropmenuobj.onmouseover=function(){cssdropdown.clearhidemenu()}
this.dropmenuobj.onmouseout=function(e){cssdropdown.dynamichide(e)}
this.dropmenuobj.onclick=function(){cssdropdown.delayhidemenu()}
this.showhide(this.dropmenuobj.style,e)
this.dropmenuobj.x=this.getposOffset(obj,"left")
this.dropmenuobj.y=this.getposOffset(obj,"top")
this.dropmenuobj.style.left=this.dropmenuobj.x-this.clearbrowseredge(obj,"rightedge")+"px"
this.dropmenuobj.style.top=this.dropmenuobj.y-this.clearbrowseredge(obj,"bottomedge")+obj.offsetHeight+1+"px"
this.positionshim()}},positionshim:function(){if(this.enableiframeshim&&typeof this.shimobject!="undefined"){if(this.dropmenuobj.style.visibility=="visible"){this.shimobject.style.width=this.dropmenuobj.offsetWidth+"px"
this.shimobject.style.height=this.dropmenuobj.offsetHeight+"px"
this.shimobject.style.left=this.dropmenuobj.style.left
this.shimobject.style.top=this.dropmenuobj.style.top}
this.shimobject.style.display=(this.dropmenuobj.style.visibility=="visible")?"block":"none"}},hideshim:function(){if(this.enableiframeshim&&typeof this.shimobject!="undefined")
this.shimobject.style.display='none'},contains_firefox:function(a,b){while(b.parentNode)
if((b=b.parentNode)==a)
return true;return false;},dynamichide:function(e){var evtobj=window.event?window.event:e
if(this.ie&&!this.dropmenuobj.contains(evtobj.toElement))
this.delayhidemenu()
else if(this.firefox&&e.currentTarget!=evtobj.relatedTarget&&!this.contains_firefox(evtobj.currentTarget,evtobj.relatedTarget))
this.delayhidemenu()},delayhidemenu:function(){this.delayhide=setTimeout("cssdropdown.dropmenuobj.style.visibility='hidden'; cssdropdown.hideshim()",this.disappeardelay)},clearhidemenu:function(){if(this.delayhide!="undefined")
clearTimeout(this.delayhide)},startdropdown:function(){for(var ids=0;ids<arguments.length;ids++){var menuitems=document.getElementById(arguments[ids]).getElementsByTagName("a")
for(var i=0;i<menuitems.length;i++){if(menuitems[i].getAttribute("rel")){var relvalue=menuitems[i].getAttribute("rel")
menuitems[i].onmouseover=function(e){var event=typeof e!="undefined"?e:window.event
cssdropdown.dropit(this,event,this.getAttribute("rel"))}}}}
if(window.createPopup&&!window.XmlHttpRequest){document.write('<IFRAME id="iframeshim"  src="" style="display: none; left: 0; top: 0; z-index: 90; position: absolute; filter: progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0)" frameBorder="0" scrolling="no"></IFRAME>')
this.shimobject=document.getElementById("iframeshim")}}}
/* fabtabulous.js */

var Fabtabs=Class.create();Fabtabs.prototype={initialize:function(element){this.element=$(element);var options=Object.extend({},arguments[1]||{});this.menu=$A(this.element.getElementsByTagName('a'));this.show(this.getInitialTab());this.menu.each(this.setupTab.bind(this));},setupTab:function(elm){Event.observe(elm,'click',this.activate.bindAsEventListener(this),false)},activate:function(ev){var elm=Event.findElement(ev,"a");Event.stop(ev);this.show(elm);this.menu.without(elm).each(this.hide.bind(this));},hide:function(elm){$(elm).removeClassName('active-tab');$(this.tabID(elm)).removeClassName('active-tab-body');},show:function(elm){$(elm).addClassName('active-tab');$(this.tabID(elm)).addClassName('active-tab-body');},tabID:function(elm){return elm.href.match(/#(\w.+)/)[1];},getInitialTab:function(){if(document.location.href.match(/#(\w.+)/)){var loc=RegExp.$1;var elm=this.menu.find(function(value){return value.href.match(/#(\w.+)/)[1]==loc;});return elm||this.menu.first();}else{return this.menu.first();}}}
Event.observe(window,'load',function(){try{new Fabtabs('tabs');}
catch(ex){}},false);Event.observe(window,'load',function(){try{new Fabtabs('search');}
catch(ex){}},false);
/* RotatorScript.js */

function tabbed_rotator(prefix,blockcount)
{this.initialtab=[1,prefix+"focus1"];this.previoustab="";this.order=new Array();this.curpos=-1;this.dorotate=1;this.totalItems=blockcount;for(i=1;i<=blockcount;i++)
this.order.push(prefix+'focus'+i);this.expandcontent=function(cid,aobject)
{if(document.getElementById)
{this.highlighttab(aobject);if(this.previoustab!="")document.getElementById(this.previoustab).style.display="none";document.getElementById(cid).style.display="block";this.previoustab=cid;}
this.curpos=0;while(cid!=this.order[this.curpos])
{this.curpos++;}}
this.changePosition=function(id,left,top,width,height)
{if(left=="")left=0;if(top=="")top=0;document.getElementById(id).style.top=top+'px';document.getElementById(id).style.left=left+'px';document.getElementById(id).style.width=width+'px';document.getElementById(id).style.height=height+'px';}
this.changeImage=function(id,image)
{if(id&&image)
document.getElementById(id).style.backgroundImage="url("+image+")";}
this.highlighttab=function(aobject)
{if(typeof this.tabobjlinks=="undefined")
this.collectfocustabs();for(i=0;i<this.tabobjlinks.length;i++)
this.tabobjlinks[i].className="";aobject.className="current";}
this.collectfocustabs=function()
{this.tabobj=document.getElementById(prefix+"focustabs");this.tabobjlinks=this.tabobj.getElementsByTagName("A");}
this.rotate=function()
{if(this.dorotate==1)
{this.curpos++;if(this.curpos>=this.totalItems)this.curpos=0;this.expandcontent(this.order[this.curpos],this.tabobjlinks[this.curpos]);}}
this.rotateright=function()
{this.curpos++;if(this.curpos>=this.totalItems)this.curpos=0;this.expandcontent(this.order[this.curpos],this.tabobjlinks[this.curpos]);}
this.rotateleft=function()
{this.curpos--;if(this.curpos<=-1)this.curpos=this.totalItems;this.expandcontent(this.order[this.curpos],this.tabobjlinks[this.curpos]);}
this.toggle_rotate=function()
{if(this.dorotate==0)
{this.dorotate=1;this.rotate();}
else if(this.dorotate==1)this.dorotate=0;}
this.do_onload=function()
{this.collectfocustabs();}}
/* Ads\adDomReady.js */

var indep_document;var indep_window;var indep_load_events;var indep_load_timer;function indepDomReady(func,newDocument,newWindow,adId)
{indep_document=newDocument?newDocument:document;indep_window=newWindow?newWindow:window;if(!indep_load_events)
{var init=function()
{if(arguments.callee.done)return;arguments.callee.done=true;if(indep_load_timer)
{clearInterval(indep_load_timer);indep_load_timer=null;}
for(var i=0;i<indep_load_events.length;i++)
{indep_load_events[i].func(indep_load_events[i].document,indep_load_events[i].adId);}
indep_load_events=null;indep_document=document;indep_window=window;};if(indep_document.addEventListener)
{indep_document.addEventListener("DOMContentLoaded",init,false);}
if(/WebKit/i.test(navigator.userAgent))
{indep_load_timer=setInterval(function()
{if(/loaded|complete/.test(indep_document.readyState))
{init();}},10);}
indep_window.onload=init;indep_load_events=[];}
indep_load_events.push({func:func,document:indep_document,adId:adId});}
function moveAdToParent(targetDoc,id)
{targetDoc=targetDoc?targetDoc:document;var divToMove=targetDoc.getElementById('adDiv');divToMove.removeChild(targetDoc.getElementById('removeMeAdScript'));if(PositionDCAd)
PositionDCAd(divToMove,id);}
function getAdQueryParams(queryString)
{var firstIndex=queryString.indexOf("&");var id=queryString.substring(0,firstIndex).split("=")[1];var adUrl=queryString.substring(firstIndex+1);adUrl=adUrl.replace("__ord__",Math.random()*10000000000000000);return{id:id,adUrl:adUrl};}
function resizeAdFrame(iFrame)
{if(iFrame)
{if(document.getElementById&&!(document.all))
{var contentHeight=(iFrame.contentDocument.getElementById('adDiv').clientHeight)-5;iFrame.style.height=(contentHeight>15?contentHeight:0)+'px';}
else if(document.all)
{var contentHeight=iFrame.contentWindow.document.body.clientHeight;iFrame.style.height=(contentHeight>15?contentHeight:0)+'px';}}}
