var fadecounter8557443343 = 0; var cyclecounter8557443343 = 0; var imagecounter8557443343 = 0; var fadeinterval8557443343 = 6000; var t8557443343; var nextimagetoload8557443343 = new Image(); var nextmouseoverimagetoload8557443343 = new Image(); var mouseoverimage8557443343 = new Image(); var mouseoutimage8557443343 = new Image(); var mouseoverflag8557443343 = 0; var width8557443343 = ; var height8557443343 = ; var link8557443343; function previousimage8557443343() { clearTimeout(t8557443343); imagecounter8557443343 = imagecounter8557443343 - 1; if(imagecounter8557443343 < 0) { imagecounter8557443343 = imagearray8557443343.length - 1; } var object = document.getElementById('faaslideshowimage[8557443343]'); if(mouseoverflag8557443343 == 0) { object.src = imagearray8557443343[imagecounter8557443343].src; } else { object.src = imagemouseoverarray8557443343[imagecounter8557443343].src; } object.style.filter = "alpha(opacity = 100)"; object.style.opacity = 1; regularupdate8557443343(); t8557443343 = setTimeout('fadeout8557443343()',fadeinterval8557443343); } function nextimage8557443343() { if(!document.getElementById('faaslideshowimage[8557443343]')) { clearTimeout(t8557443343); t8557443343 = setTimeout('nextimage8557443343()',500); return; } else { document.getElementById('faaslideshowimage[8557443343]').setAttribute('onMouseOver','javascript: mouseover8557443343();'); document.getElementById('faaslideshowimage[8557443343]').setAttribute('onMouseOut','javascript: mouseout8557443343();'); document.getElementById('faaslideshowimage[8557443343]').setAttribute('onClick','javascript: mouseclick8557443343(event);'); } clearTimeout(t8557443343); imagecounter8557443343 = imagecounter8557443343 + 1; if(imagecounter8557443343 > imagearray8557443343.length - 1) { imagecounter8557443343 = 0; } var object = document.getElementById('faaslideshowimage[8557443343]'); if(mouseoverflag8557443343 == 0) { object.src = imagearray8557443343[imagecounter8557443343].src; } else { object.src = imagemouseoverarray8557443343[imagecounter8557443343].src; } object.style.filter = "alpha(opacity = 100)"; object.style.opacity = 1; regularupdate8557443343(); t8557443343 = setTimeout('fadeout8557443343()',fadeinterval8557443343); } function nextfade8557443343() { clearTimeout(t8557443343); imagecounter8557443343 = imagecounter8557443343 + 1; if(imagecounter8557443343 > imagearray8557443343.length - 1) { imagecounter8557443343 = 0; } var object = document.getElementById('faaslideshowimage[8557443343]'); if(mouseoverflag8557443343 == 0) { object.src = imagearray8557443343[imagecounter8557443343].src; } else { object.src = imagemouseoverarray8557443343[imagecounter8557443343].src; } regularupdate8557443343(); t8557443343 = setTimeout("fadein8557443343()", 100); } function fadeout8557443343() { fadecounter8557443343 = 100; fadeoutprogress8557443343(); } function fadeoutprogress8557443343() { var object = document.getElementById('faaslideshowimage[8557443343]'); object.style.filter = "alpha(opacity = " + fadecounter8557443343*1 + ")"; object.style.opacity = fadecounter8557443343*0.01; fadecounter8557443343 -= 2; if (fadecounter8557443343 > 0) { t8557443343 = setTimeout("fadeoutprogress8557443343()", 10); } else { nextfade8557443343(); } } function fadein8557443343() { fadecounter8557443343 = 0; fadeinprogress8557443343(); } function fadeinprogress8557443343() { object = document.getElementById('faaslideshowimage[8557443343]'); object.style.filter = "alpha(opacity = " + fadecounter8557443343*1 + ")"; object.style.opacity = fadecounter8557443343*0.01; fadecounter8557443343 += 4; if (fadecounter8557443343 < 100) { t8557443343 = setTimeout("fadeinprogress8557443343()", 10); } else { t8557443343 = setTimeout("fadeout8557443343()",fadeinterval8557443343); } } function mouseover8557443343() { mouseoverflag8557443343 = 1; document.getElementById('faaslideshowimage[8557443343]').src = mouseoverimage8557443343.src; } function mouseout8557443343() { mouseoverflag8557443343 = 0; document.getElementById('faaslideshowimage[8557443343]').src = mouseoutimage8557443343.src; } function mouseclick8557443343(event) { var currentleft = 0; var currenttop = 0; var object = document.getElementById('faaslideshowimage[8557443343]'); if (object.offsetParent) { do { currentleft += object.offsetLeft; currenttop += object.offsetTop; } while (object = object.offsetParent); } //alert(currentleft + ', ' + currenttop); //var pos_x = event.offsetX?(event.offsetX):event.pageX-document.getElementById('faaslideshowimage[8557443343]').offsetLeft; //var pos_y = event.offsetY?(event.offsetY):event.pageY-document.getElementById('faaslideshowimage[8557443343]').offsetTop; var pos_x = event.offsetX?(event.offsetX):event.pageX-currentleft; var pos_y = event.offsetY?(event.offsetY):event.pageY-currenttop; //alert(pos_x + ', ' + pos_y); if(pos_x < 35) { previousimage8557443343(); return; } if(pos_x > width8557443343 - 35) { nextimage8557443343(); return; } document.location = link8557443343; } function regularupdate8557443343() { mouseoutimage8557443343.src = imagearray8557443343[imagecounter8557443343].src; mouseoverimage8557443343.src =imagemouseoverarray8557443343[imagecounter8557443343].src; link8557443343 = linkarray8557443343[imagecounter8557443343]; if(document.getElementById('faaslideshowlink[8557443343]')) { document.getElementById('faaslideshowlink[8557443343]').href = linkarray8557443343[imagecounter8557443343]; } var localcounter = imagecounter8557443343 + 1; if(localcounter > imagearray8557443343.length - 1) { localcounter = 0; } nextimagetoload8557443343.src = imagearray8557443343[localcounter].src; nextmouseoverimagetoload8557443343.src = imagemouseoverarray8557443343[localcounter].src; } nextimage8557443343();