var slides=new Array("slide1","slide2","slide3","slide4");var total_slides=slides.length;var first_slide=0;var last_slide=slides.length-1;var slide_ctr=0;var slide_flg="N";var current_slide;var current_slideName;var previous_slide;var next_slide;var tmr;function init(){startSlideShow(slide_ctr)}function startSlideShow(A){current_slide=A;for(i=0;i<slides.length;i++){current_slideName=slides[A];if(current_slideName==slides[i]){showSlide(slides[i],"visible","block");setSlideShowTime()}else{showSlide(slides[i],"hidden","none")}}}function setSlideShowTime(){slide_ctr++;if(slide_ctr<0){slide_ctr=last_slide}if(slide_ctr>=slides.length){slide_ctr=first_slide}tmr=setTimeout("startSlideShow(slide_ctr)",3000)}function showSlide(B,A,C){if(document.getElementById){document.getElementById(B).style.visibility=A;document.getElementById(B).style.display=C}else{if(document.all){document.all[B].style.visibility=A;document.all[B].style.display=C}else{if(document.layers){if(A=="visible"){A="show"}else{A="hide"}document.layers[B].visibility=A;document.layers[B].display=C}}}}function previousSlide(){clearTimeout(tmr);previous_slide=current_slide-1;if(previous_slide<0){previous_slide=last_slide}slide_ctr=previous_slide;startSlideShow(slide_ctr)}function nextSlide(){clearTimeout(tmr);next_slide=current_slide+1;if(next_slide>=slides.length){next_slide=first_slide}slide_ctr=next_slide;startSlideShow(slide_ctr)}function displayblock(B,C){var A=document.getElementById(B.toString());if(C=="hide"){A.style.visibility="hidden";A.style.display="none"}else{if(C=="show"){A.style.visibility="visible";A.style.display="block"}}}function showslide(){}
