document.write(' ');document.write('
'); var displayTime842826200v92cxNU0gX = 2000; var adSlideshowCount842826200v92cxNU0gX = 0; var adSlideshowTotal842826200v92cxNU0gX = 3; var t842826200v92cxNU0gX; adSlideshowFun842826200v92cxNU0gX (); function adSlideshowFun842826200v92cxNU0gX() { for (var adSlideshowI2842826200v92cxNU0gX = 0; adSlideshowI2842826200v92cxNU0gX < 3; adSlideshowI2842826200v92cxNU0gX++) { var obj = document.getElementById("ad-slideshow-"+adSlideshowI2842826200v92cxNU0gX+'-842826200v92cxNU0gX'); if (obj) { obj.style.display='none'; } } var obj = document.getElementById("ad-slideshow-"+adSlideshowCount842826200v92cxNU0gX+'-842826200v92cxNU0gX'); if (obj) { obj.style.display='block'; displayTime842826200v92cxNU0gX = parseInt(obj.getAttribute("display_time"))*1000; } setActive842826200v92cxNU0gX(adSlideshowCount842826200v92cxNU0gX); setCount842826200v92cxNU0gX(); clearTimeout(t842826200v92cxNU0gX); t842826200v92cxNU0gX = setTimeout("adSlideshowFun842826200v92cxNU0gX()", displayTime842826200v92cxNU0gX); } function setCount842826200v92cxNU0gX() { adSlideshowCount842826200v92cxNU0gX = parseInt(adSlideshowCount842826200v92cxNU0gX) + 1; if (adSlideshowCount842826200v92cxNU0gX > (3 - 1 )) { adSlideshowCount842826200v92cxNU0gX = 0; } } function setActive842826200v92cxNU0gX(index) { var els842826200v92cxNU0gX = document.getElementsByTagName('*'); var elsLen842826200v92cxNU0gX = els842826200v92cxNU0gX.length; var pattern842826200v92cxNU0gX = new RegExp("(^|\s)ad-slideshow842826200v92cxNU0gX\s?.*"); for (i842826200v92cxNU0gX = 0; i842826200v92cxNU0gX < elsLen842826200v92cxNU0gX; i842826200v92cxNU0gX++) { if ( pattern842826200v92cxNU0gX.test(els842826200v92cxNU0gX[i842826200v92cxNU0gX].className) ) { if (els842826200v92cxNU0gX[i842826200v92cxNU0gX].getAttribute("index") == index) { els842826200v92cxNU0gX[i842826200v92cxNU0gX].className += ' index-active'; } else { els842826200v92cxNU0gX[i842826200v92cxNU0gX].className = 'ad-slideshow842826200v92cxNU0gX'; } } } } document.getElementById("prev842826200v92cxNU0gX").onclick = function() { adSlideshowCount842826200v92cxNU0gX = parseInt(adSlideshowCount842826200v92cxNU0gX) - 1; if (adSlideshowCount842826200v92cxNU0gX < 0) { adSlideshowCount842826200v92cxNU0gX = 3 - 1; } adSlideshowCount842826200v92cxNU0gX = parseInt(adSlideshowCount842826200v92cxNU0gX) - 1; if (adSlideshowCount842826200v92cxNU0gX < 0) { adSlideshowCount842826200v92cxNU0gX = 3 - 1; } adSlideshowFun842826200v92cxNU0gX(); } document.getElementById("next842826200v92cxNU0gX").onclick = function() { adSlideshowFun842826200v92cxNU0gX(); } var els842826200v92cxNU0gX = document.getElementsByTagName('*'); var elsLen842826200v92cxNU0gX = els842826200v92cxNU0gX.length; var pattern842826200v92cxNU0gX = new RegExp("(^|\s)ad-slideshow842826200v92cxNU0gX\s?.*"); for (i842826200v92cxNU0gX = 0; i842826200v92cxNU0gX < elsLen842826200v92cxNU0gX; i842826200v92cxNU0gX++) { if ( pattern842826200v92cxNU0gX.test(els842826200v92cxNU0gX[i842826200v92cxNU0gX].className) ) { els842826200v92cxNU0gX[i842826200v92cxNU0gX].onclick = function() { adSlideshowCount842826200v92cxNU0gX = this.getAttribute("index"); adSlideshowFun842826200v92cxNU0gX(); } } }