var fadecounter2733691764 = 0; var cyclecounter2733691764 = 0; var imagecounter2733691764 = 0; var fadeinterval2733691764 = 6000; var t2733691764; var nextimagetoload2733691764 = new Image(); var nextmouseoverimagetoload2733691764 = new Image(); var mouseoverimage2733691764 = new Image(); var mouseoutimage2733691764 = new Image(); var mouseoverflag2733691764 = 0; var width2733691764 = ; var height2733691764 = ; var link2733691764; function previousimage2733691764() { clearTimeout(t2733691764); imagecounter2733691764 = imagecounter2733691764 - 1; if(imagecounter2733691764 < 0) { imagecounter2733691764 = imagearray2733691764.length - 1; } var object = document.getElementById('faaslideshowimage[2733691764]'); if(mouseoverflag2733691764 == 0) { object.src = imagearray2733691764[imagecounter2733691764].src; } else { object.src = imagemouseoverarray2733691764[imagecounter2733691764].src; } object.style.filter = "alpha(opacity = 100)"; object.style.opacity = 1; regularupdate2733691764(); t2733691764 = setTimeout('fadeout2733691764()',fadeinterval2733691764); } function nextimage2733691764() { if(!document.getElementById('faaslideshowimage[2733691764]')) { clearTimeout(t2733691764); t2733691764 = setTimeout('nextimage2733691764()',500); return; } else { document.getElementById('faaslideshowimage[2733691764]').setAttribute('onMouseOver','javascript: mouseover2733691764();'); document.getElementById('faaslideshowimage[2733691764]').setAttribute('onMouseOut','javascript: mouseout2733691764();'); document.getElementById('faaslideshowimage[2733691764]').setAttribute('onClick','javascript: mouseclick2733691764(event);'); } clearTimeout(t2733691764); imagecounter2733691764 = imagecounter2733691764 + 1; if(imagecounter2733691764 > imagearray2733691764.length - 1) { imagecounter2733691764 = 0; } var object = document.getElementById('faaslideshowimage[2733691764]'); if(mouseoverflag2733691764 == 0) { object.src = imagearray2733691764[imagecounter2733691764].src; } else { object.src = imagemouseoverarray2733691764[imagecounter2733691764].src; } object.style.filter = "alpha(opacity = 100)"; object.style.opacity = 1; regularupdate2733691764(); t2733691764 = setTimeout('fadeout2733691764()',fadeinterval2733691764); } function nextfade2733691764() { clearTimeout(t2733691764); imagecounter2733691764 = imagecounter2733691764 + 1; if(imagecounter2733691764 > imagearray2733691764.length - 1) { imagecounter2733691764 = 0; } var object = document.getElementById('faaslideshowimage[2733691764]'); if(mouseoverflag2733691764 == 0) { object.src = imagearray2733691764[imagecounter2733691764].src; } else { object.src = imagemouseoverarray2733691764[imagecounter2733691764].src; } regularupdate2733691764(); t2733691764 = setTimeout("fadein2733691764()", 100); } function fadeout2733691764() { fadecounter2733691764 = 100; fadeoutprogress2733691764(); } function fadeoutprogress2733691764() { var object = document.getElementById('faaslideshowimage[2733691764]'); object.style.filter = "alpha(opacity = " + fadecounter2733691764*1 + ")"; object.style.opacity = fadecounter2733691764*0.01; fadecounter2733691764 -= 2; if (fadecounter2733691764 > 0) { t2733691764 = setTimeout("fadeoutprogress2733691764()", 10); } else { nextfade2733691764(); } } function fadein2733691764() { fadecounter2733691764 = 0; fadeinprogress2733691764(); } function fadeinprogress2733691764() { object = document.getElementById('faaslideshowimage[2733691764]'); object.style.filter = "alpha(opacity = " + fadecounter2733691764*1 + ")"; object.style.opacity = fadecounter2733691764*0.01; fadecounter2733691764 += 4; if (fadecounter2733691764 < 100) { t2733691764 = setTimeout("fadeinprogress2733691764()", 10); } else { t2733691764 = setTimeout("fadeout2733691764()",fadeinterval2733691764); } } function mouseover2733691764() { mouseoverflag2733691764 = 1; document.getElementById('faaslideshowimage[2733691764]').src = mouseoverimage2733691764.src; } function mouseout2733691764() { mouseoverflag2733691764 = 0; document.getElementById('faaslideshowimage[2733691764]').src = mouseoutimage2733691764.src; } function mouseclick2733691764(event) { var currentleft = 0; var currenttop = 0; var object = document.getElementById('faaslideshowimage[2733691764]'); 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[2733691764]').offsetLeft; //var pos_y = event.offsetY?(event.offsetY):event.pageY-document.getElementById('faaslideshowimage[2733691764]').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) { previousimage2733691764(); return; } if(pos_x > width2733691764 - 35) { nextimage2733691764(); return; } document.location = link2733691764; } function regularupdate2733691764() { mouseoutimage2733691764.src = imagearray2733691764[imagecounter2733691764].src; mouseoverimage2733691764.src =imagemouseoverarray2733691764[imagecounter2733691764].src; link2733691764 = linkarray2733691764[imagecounter2733691764]; if(document.getElementById('faaslideshowlink[2733691764]')) { document.getElementById('faaslideshowlink[2733691764]').href = linkarray2733691764[imagecounter2733691764]; } var localcounter = imagecounter2733691764 + 1; if(localcounter > imagearray2733691764.length - 1) { localcounter = 0; } nextimagetoload2733691764.src = imagearray2733691764[localcounter].src; nextmouseoverimagetoload2733691764.src = imagemouseoverarray2733691764[localcounter].src; } nextimage2733691764();