var fadecounter54238372426 = 0; var cyclecounter54238372426 = 0; var imagecounter54238372426 = 0; var fadeinterval54238372426 = 6000; var t54238372426; var nextimagetoload54238372426 = new Image(); var nextmouseoverimagetoload54238372426 = new Image(); var mouseoverimage54238372426 = new Image(); var mouseoutimage54238372426 = new Image(); var mouseoverflag54238372426 = 0; var width54238372426 = ; var height54238372426 = ; var link54238372426; function previousimage54238372426() { clearTimeout(t54238372426); imagecounter54238372426 = imagecounter54238372426 - 1; if(imagecounter54238372426 < 0) { imagecounter54238372426 = imagearray54238372426.length - 1; } var object = document.getElementById('faaslideshowimage[54238372426]'); if(mouseoverflag54238372426 == 0) { object.src = imagearray54238372426[imagecounter54238372426].src; } else { object.src = imagemouseoverarray54238372426[imagecounter54238372426].src; } object.style.filter = "alpha(opacity = 100)"; object.style.opacity = 1; regularupdate54238372426(); t54238372426 = setTimeout('fadeout54238372426()',fadeinterval54238372426); } function nextimage54238372426() { if(!document.getElementById('faaslideshowimage[54238372426]')) { clearTimeout(t54238372426); t54238372426 = setTimeout('nextimage54238372426()',500); return; } else { document.getElementById('faaslideshowimage[54238372426]').setAttribute('onMouseOver','javascript: mouseover54238372426();'); document.getElementById('faaslideshowimage[54238372426]').setAttribute('onMouseOut','javascript: mouseout54238372426();'); document.getElementById('faaslideshowimage[54238372426]').setAttribute('onClick','javascript: mouseclick54238372426(event);'); } clearTimeout(t54238372426); imagecounter54238372426 = imagecounter54238372426 + 1; if(imagecounter54238372426 > imagearray54238372426.length - 1) { imagecounter54238372426 = 0; } var object = document.getElementById('faaslideshowimage[54238372426]'); if(mouseoverflag54238372426 == 0) { object.src = imagearray54238372426[imagecounter54238372426].src; } else { object.src = imagemouseoverarray54238372426[imagecounter54238372426].src; } object.style.filter = "alpha(opacity = 100)"; object.style.opacity = 1; regularupdate54238372426(); t54238372426 = setTimeout('fadeout54238372426()',fadeinterval54238372426); } function nextfade54238372426() { clearTimeout(t54238372426); imagecounter54238372426 = imagecounter54238372426 + 1; if(imagecounter54238372426 > imagearray54238372426.length - 1) { imagecounter54238372426 = 0; } var object = document.getElementById('faaslideshowimage[54238372426]'); if(mouseoverflag54238372426 == 0) { object.src = imagearray54238372426[imagecounter54238372426].src; } else { object.src = imagemouseoverarray54238372426[imagecounter54238372426].src; } regularupdate54238372426(); t54238372426 = setTimeout("fadein54238372426()", 100); } function fadeout54238372426() { fadecounter54238372426 = 100; fadeoutprogress54238372426(); } function fadeoutprogress54238372426() { var object = document.getElementById('faaslideshowimage[54238372426]'); object.style.filter = "alpha(opacity = " + fadecounter54238372426*1 + ")"; object.style.opacity = fadecounter54238372426*0.01; fadecounter54238372426 -= 2; if (fadecounter54238372426 > 0) { t54238372426 = setTimeout("fadeoutprogress54238372426()", 10); } else { nextfade54238372426(); } } function fadein54238372426() { fadecounter54238372426 = 0; fadeinprogress54238372426(); } function fadeinprogress54238372426() { object = document.getElementById('faaslideshowimage[54238372426]'); object.style.filter = "alpha(opacity = " + fadecounter54238372426*1 + ")"; object.style.opacity = fadecounter54238372426*0.01; fadecounter54238372426 += 4; if (fadecounter54238372426 < 100) { t54238372426 = setTimeout("fadeinprogress54238372426()", 10); } else { t54238372426 = setTimeout("fadeout54238372426()",fadeinterval54238372426); } } function mouseover54238372426() { mouseoverflag54238372426 = 1; document.getElementById('faaslideshowimage[54238372426]').src = mouseoverimage54238372426.src; } function mouseout54238372426() { mouseoverflag54238372426 = 0; document.getElementById('faaslideshowimage[54238372426]').src = mouseoutimage54238372426.src; } function mouseclick54238372426(event) { var currentleft = 0; var currenttop = 0; var object = document.getElementById('faaslideshowimage[54238372426]'); 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[54238372426]').offsetLeft; //var pos_y = event.offsetY?(event.offsetY):event.pageY-document.getElementById('faaslideshowimage[54238372426]').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) { previousimage54238372426(); return; } if(pos_x > width54238372426 - 35) { nextimage54238372426(); return; } document.location = link54238372426; } function regularupdate54238372426() { mouseoutimage54238372426.src = imagearray54238372426[imagecounter54238372426].src; mouseoverimage54238372426.src =imagemouseoverarray54238372426[imagecounter54238372426].src; link54238372426 = linkarray54238372426[imagecounter54238372426]; if(document.getElementById('faaslideshowlink[54238372426]')) { document.getElementById('faaslideshowlink[54238372426]').href = linkarray54238372426[imagecounter54238372426]; } var localcounter = imagecounter54238372426 + 1; if(localcounter > imagearray54238372426.length - 1) { localcounter = 0; } nextimagetoload54238372426.src = imagearray54238372426[localcounter].src; nextmouseoverimagetoload54238372426.src = imagemouseoverarray54238372426[localcounter].src; } nextimage54238372426();