YAHOO.namespace("zumodrive.slideshow");YAHOO.zumodrive.slideshow.updateVerticalTab=function(){this.currentSlideIndex;this.belt_buttons=null;this.current_belt_buttons=YAHOO.util.Dom.getElementsByClassName("current_belt_button");
this.pre_current_belt_buttons=YAHOO.util.Dom.getElementsByClassName("pre_current_belt_button");this.belt_buttons=YAHOO.util.Dom.getElementsByClassName("belt_button");
this.current_belt_buttons.each(function(c,b){YAHOO.util.Dom.removeClass(c,"current_belt_button");}.bind(this));this.pre_current_belt_buttons.each(function(c,b){YAHOO.util.Dom.removeClass(c,"pre_current_belt_button");
}.bind(this));this.belt_buttons.each(function(c,b){if(b==(this.currentSlideIndex)){YAHOO.util.Dom.addClass(c,"current_belt_button");}else{if(b==(this.currentSlideIndex-1)){YAHOO.util.Dom.addClass(c,"pre_current_belt_button");
}}}.bind(this));var a=YAHOO.util.Dom.getElementsByClassName("tour-header")[0];if(this.currentSlideIndex==0){YAHOO.util.Dom.addClass(a,"no-border");}else{YAHOO.util.Dom.removeClass(a,"no-border");
}};YAHOO.namespace("zumodrive.tour");YAHOO.zumodrive.tour.registerListeners=function(){YAHOO.zumodrive.tour.belt_buttons=null;YAHOO.zumodrive.tour.belt_buttons=YAHOO.util.Dom.getElementsByClassName("belt_button");
YAHOO.zumodrive.tour.belt_buttons.each(function(b,a){YAHOO.util.Event.addListener(b,"click",this.setCurrentSlide.bind(this,a),b);}.bind(this));};if(typeof Object.create!=="function"){Object.create=function(b){var a=function(){};
a.prototype=b;return new a();};}YAHOO.namespace("zumodrive.slideshow");YAHOO.zumodrive.slideshow.slideshowController={currentSlideIndex:0,slideCache:null,name:null,loadFromHash:function(){var a=0;
if(window.location.hash){a=parseInt(window.location.hash.substring(1));if(!a){a=0;}}this.setCurrentSlide(a);},setCurrentSlide:function(a){this.currentSlideIndex=a;
this.displayCurrentSlide();if(this.currentSlideIndex>=(this.slideCache.length-1)){$(this.name+"_light_box_next_button_container").style.display="none";
}else{$(this.name+"_light_box_next_button_container").style.display="block";}if(this.currentSlideIndex==0){$(this.name+"_light_box_prev_button_container").style.display="none";
}else{$(this.name+"_light_box_prev_button_container").style.display="block";}},displayCurrentSlide:function(){var a=this.slideCache[this.currentSlideIndex];
var c=null;if(!(this.currentSlideIndex>=(this.slideCache.length-1))){c=this.slideCache[this.currentSlideIndex+1];}var b=null;if(this.currentSlideIndex!=0){b=this.slideCache[this.currentSlideIndex-1];
}this.update_content(this.name+"_light_box_slide_title",a.title);this.update_content(this.name+"_light_box_slide_text",a.text);if(c){var d=c.button_title?c.button_title:c.title;
this.update_content(this.name+"_light_box_next_title",d);$(this.name+"_light_box_slide_preload_image").src=this.imageForSlide(c);}if(b){var d=b.button_title?b.button_title:b.title;
this.update_content(this.name+"_light_box_prev_title",d);}$(this.name+"_light_box_slide_image").src=this.imageForSlide(a);if(this.pageCallback){this.pageCallback();
}},imageForSlide:function(a){if(a.image){return a.image;}else{return(a[this.os]==null)?a.mac:a[this.os];}},displayNext:function(a){this.currentSlideIndex+=1;
this.displayCurrentSlide();if(this.currentSlideIndex>=(this.slideCache.length-1)){$(this.name+"_light_box_next_button_container").style.display="none";
}$(this.name+"_light_box_prev_button_container").style.display="block";},displayPrev:function(){this.currentSlideIndex-=1;this.displayCurrentSlide();if(this.currentSlideIndex==0){$(this.name+"_light_box_prev_button_container").style.display="none";
}$(this.name+"_light_box_next_button_container").style.display="block";},update_content:function(a,b){$(a).innerHTML=b;},init:function(){YAHOO.util.Event.addListener(this.name+"_light_box_next","click",this.displayNext,this,true);
YAHOO.util.Event.addListener(this.name+"_light_box_prev","click",this.displayPrev,this,true);}};YAHOO.namespace("zumodrive.vertical_tabs");YAHOO.zumodrive.vertical_tabs.highlightBeltButton=function(b,a){YAHOO.util.Dom.addClass(a,"highlighted");
};YAHOO.zumodrive.vertical_tabs.unhighlightBeltButton=function(b,a){YAHOO.util.Dom.removeClass(a,"highlighted");};YAHOO.zumodrive.vertical_tabs.register_listeners=function(){var a=YAHOO.util.Dom.getElementsByClassName("available");
a.each(function(c,b){YAHOO.util.Event.addListener(c,"mouseover",YAHOO.zumodrive.vertical_tabs.highlightBeltButton,c);YAHOO.util.Event.addListener(c,"mouseout",YAHOO.zumodrive.vertical_tabs.unhighlightBeltButton,c);
});};YAHOO.util.Event.addListener(window,"load",YAHOO.zumodrive.vertical_tabs.register_listeners);var IEPNGFix=window.IEPNGFix||{};IEPNGFix.tileBG=function(g,q,n){var F=this.data[g.uniqueID],b=Math.max(g.clientWidth,g.scrollWidth),h=Math.max(g.clientHeight,g.scrollHeight),j=g.currentStyle.backgroundPositionX,i=g.currentStyle.backgroundPositionY,o=g.currentStyle.backgroundRepeat;
if(!F.tiles){F.tiles={elm:g,src:"",cache:[],img:new Image(),old:{}};}var B=F.tiles,u=B.img.width,c=B.img.height;if(q){if(!n&&q!=B.src){B.img.onload=function(){this.onload=null;
IEPNGFix.tileBG(g,q,1);};return B.img.src=q;}}else{if(B.src){n=1;}u=c=0;}B.src=q;if(!n&&b==B.old.w&&h==B.old.h&&j==B.old.x&&i==B.old.y&&o==B.old.r){return;
}var e={top:"0%",left:"0%",center:"50%",bottom:"100%",right:"100%"},l,k,a;l=e[j]||j;k=e[i]||i;if(a=l.match(/(\d+)%/)){l=Math.round((b-u)*(parseInt(a[1])/100));
}if(a=k.match(/(\d+)%/)){k=Math.round((h-c)*(parseInt(a[1])/100));}l=parseInt(l);k=parseInt(k);var D={repeat:1,"repeat-x":1}[o],A={repeat:1,"repeat-y":1}[o];
if(D){l%=u;if(l>0){l-=u;}}if(A){k%=c;if(k>0){k-=c;}}this.hook.enabled=0;if(!({relative:1,absolute:1}[g.currentStyle.position])){g.style.position="relative";
}var f=0,m,z=D?b:l+0.1,r,v=A?h:k+0.1,w,p,C;if(u&&c){for(m=l;m<z;m+=u){for(r=k;r<v;r+=c){C=0;if(!B.cache[f]){B.cache[f]=document.createElement("div");C=1;
}var t=Math.max(0,m+u>b?b-m:u),E=Math.max(0,r+c>h?h-r:c);w=B.cache[f];p=w.style;p.behavior="none";p.left=(m-parseInt(g.currentStyle.paddingLeft))+"px";
p.top=r+"px";p.width=t+"px";p.height=E+"px";p.clip="rect("+(r<0?0-r:0)+"px,"+t+"px,"+E+"px,"+(m<0?0-m:0)+"px)";p.display="block";if(C){p.position="absolute";
p.zIndex=-999;if(g.firstChild){g.insertBefore(w,g.firstChild);}else{g.appendChild(w);}}this.fix(w,q,0);f++;}}}while(f<B.cache.length){this.fix(B.cache[f],"",0);
B.cache[f++].style.display="none";}this.hook.enabled=1;B.old={w:b,h:h,x:j,y:i,r:o};};IEPNGFix.update=function(){for(var b in IEPNGFix.data){var a=IEPNGFix.data[b].tiles;
if(a&&a.elm&&a.src){IEPNGFix.tileBG(a.elm,a.src);}}};IEPNGFix.update.timer=0;if(window.attachEvent&&!window.opera){window.attachEvent("onresize",function(){clearTimeout(IEPNGFix.update.timer);
IEPNGFix.update.timer=setTimeout(IEPNGFix.update,100);});}