var baseObj = document.getElementById( 'base' ); if ( baseObj ) { var base = baseObj.href; } var SECONDS = 8; var INDEX = -1; // first increment will bring it to 0 var DIRECTION = 1; var IS_PAUSED = false; var TIMEOUT = null; var SLIDES = new Array( new Array( 'img/home/flash/jan-ip-webinar-slide-post.jpg', "", 'webinar/jan2012ipweb' ), new Array( 'img/home/flash/early-bird-pricing.jpg', "NHTF early bird pricing", 'http://getinvolved.sgma.com' ), new Array( 'img/home/flash/2012 Mark Your Calendars LRMS Slide.jpg', "", 'calendar/104_2012-Litigation-%26-Risk-Management-Summit' ), new Array( 'img/home/flash/Q42011SFCIWebSlide2.jpg', "Sports and Fitness webinar", 'webinar/q4sfci2011' ) ); function cycle() { if ( ! IS_PAUSED ) { INDEX += DIRECTION; if ( INDEX >= SLIDES.length ) { INDEX = 0; } if ( INDEX < 0 ) { INDEX = SLIDES.length - 1; } var a = SLIDES[ INDEX ]; var img = a[ 0 ]; var title = a[ 1 ]; var url = a[ 2 ]; var ss_obj = document.getElementById( 'slide' ); if ( ss_obj ) { if ( document.all ) { // IE can do this: ss_obj.style.filter="blendTrans(duration=2)"; ss_obj.style.filter="blendTrans(duration=CrossFadeDuration)"; ss_obj.filters.blendTrans.Apply(); } ss_obj.src = base + img; ss_obj.width = 525; ss_obj.height = 175; if (document.all) { // IE can do this: ss_obj.filters.blendTrans.Play(); } } var link_obj = document.getElementById( 'link' ); if ( link_obj ) { link_obj.href = ( ( ( 0 == url.indexOf('http:') ) || ( 0 == url.indexOf('https:') ) ) ? '' : base ) + url; link_obj.alt = title; } } TIMEOUT = setTimeout( 'cycle()', SECONDS*1000 ); } function direction( d ) { DIRECTION = d; if ( TIMEOUT ) { clearTimeout( TIMEOUT ); cycle(); } return false; } function pause_play() { IS_PAUSED = ! IS_PAUSED; var pause_obj = document.getElementById( 'pause' ); if ( pause_obj ) { pause_obj.innerHTML = ( IS_PAUSED ? '||' : '•' ); } return false; } // Slide show for home page