function getID(A){return document.getElementById(A)}function play_ss(){time_out2=setTimeout("nav_next()",play_time);time_out=setTimeout("play_ss()",play_time)}function show_pic(B){if(active_img!=B){window.clearTimeout(time_out);window.clearTimeout(time_out2);FadeOpacity("pic"+active_img,"100","0",anim,10);FadeOpacity("text"+active_img,"100","0",anim,10);FadeOpacity("pic"+B,"0","100",anim,10);FadeOpacity("text"+B,"0","100",anim,10);var A=getID("bot"+B);A.className="float_left on_but";var A=getID("bot"+active_img);A.className="float_left off_but";active_img=B}}function nav_next(A){if(A=="but"){window.clearTimeout(time_out);window.clearTimeout(time_out2)}FadeOpacity("pic"+active_img,"100","0",anim,10);FadeOpacity("text"+active_img,"100","0",anim,10);var B=getID("bot"+active_img);B.className="float_left off_but";active_img=parseInt(active_img)+1;if(active_img==ss_array.length){active_img=0}FadeOpacity("pic"+active_img,"0","100",anim,10);FadeOpacity("text"+active_img,"0","100",anim,10);var B=getID("bot"+active_img);B.className="float_left on_but"}function nav_prev(A){if(A=="but"){window.clearTimeout(time_out);window.clearTimeout(time_out2)}FadeOpacity("pic"+active_img,"100","0",anim,10);FadeOpacity("text"+active_img,"100","0",anim,10);var B=getID("bot"+active_img);B.className="float_left off_but";if(active_img==0){active_img=ss_array.length}active_img=parseInt(active_img)-1;FadeOpacity("pic"+active_img,"0","100",anim,10);FadeOpacity("text"+active_img,"0","100",anim,10);var B=getID("bot"+active_img);B.className="float_left on_but"}function SetOpacity(B,C){var A=C;if(C>100){C=A=100}else{if(C<0){C=A=0}}A/=100;if(C<1){C=1}B.style.opacity=A;B.style.filter="alpha(opacity="+C+")"}function FadeOpacity(F,E,A,D,C){var B=Math.ceil(C*(D/1000));var G=(A-E)/B;FadeOpacityStep(F,0,B,E,G,(D/B));if(E>A){setTimeout("displayNone('"+F+"')",D)}else{document.getElementById(F).style.display="block"}}function displayNone(A){document.getElementById(A).style.display="none"}function FadeOpacityStep(E,D,A,C,F,B){SetOpacity(document.getElementById(E),Math.round(parseInt(C)+(F*D)));if(D<A){setTimeout("FadeOpacityStep('"+E+"', "+(D+1)+", "+A+", "+C+", "+F+", "+B+");",B)}}function ImagePreloader(A,C){this.callBack=C;this.nLoaded=0;this.nProcessed=0;this.aImages=new Array;this.nImages=A.length;for(var B=0;B<A.length;B++){this.preload(A[B])}}ImagePreloader.prototype.preload=function(B){var A=new Image;this.aImages.push(A);A.onload=ImagePreloader.prototype.onload;A.onerror=ImagePreloader.prototype.onerror;A.onabort=ImagePreloader.prototype.onabort;A.oImagePreloader=this;A.bLoaded=false;A.src=B};ImagePreloader.prototype.onComplete=function(){this.nProcessed++;if(this.nProcessed==this.nImages){this.callBack(this.aImages,this.nLoaded)}};ImagePreloader.prototype.onload=function(){this.bLoaded=true;this.oImagePreloader.nLoaded++;this.oImagePreloader.onComplete()};ImagePreloader.prototype.onerror=function(){this.bError=true;this.oImagePreloader.onComplete()};ImagePreloader.prototype.onabort=function(){this.bAbort=true;this.oImagePreloader.onComplete()};