var fadecounter7011761914 = 0; var cyclecounter7011761914 = 0; var imagecounter7011761914 = 0; var fadeinterval7011761914 = 6000; var t7011761914; var nextimagetoload7011761914 = new Image(); var nextmouseoverimagetoload7011761914 = new Image(); var mouseoverimage7011761914 = new Image(); var mouseoutimage7011761914 = new Image(); var mouseoverflag7011761914 = 0; var width7011761914 = 120; var height7011761914 = 120; var link7011761914; var imagearray7011761914 = new Array(0); var imagemouseoverarray7011761914 = new Array(0); var linkarray7011761914 = new Array(0); function previousimage7011761914() { clearTimeout(t7011761914); imagecounter7011761914 = imagecounter7011761914 - 1; if(imagecounter7011761914 < 0) { imagecounter7011761914 = imagearray7011761914.length - 1; } var object = document.getElementById('faaslideshowimage[7011761914]'); if(mouseoverflag7011761914 == 0) { object.src = imagearray7011761914[imagecounter7011761914].src; } else { object.src = imagemouseoverarray7011761914[imagecounter7011761914].src; } object.style.filter = "alpha(opacity = 100)"; object.style.opacity = 1; regularupdate7011761914(); t7011761914 = setTimeout('fadeout7011761914()',fadeinterval7011761914); } function nextimage7011761914() { if(!document.getElementById('faaslideshowimage[7011761914]')) { clearTimeout(t7011761914); t7011761914 = setTimeout('nextimage7011761914()',500); return; } else { document.getElementById('faaslideshowimage[7011761914]').setAttribute('onMouseOver','javascript: mouseover7011761914();'); document.getElementById('faaslideshowimage[7011761914]').setAttribute('onMouseOut','javascript: mouseout7011761914();'); document.getElementById('faaslideshowimage[7011761914]').setAttribute('onClick','javascript: mouseclick7011761914(event);'); } clearTimeout(t7011761914); imagecounter7011761914 = imagecounter7011761914 + 1; if(imagecounter7011761914 > imagearray7011761914.length - 1) { imagecounter7011761914 = 0; } var object = document.getElementById('faaslideshowimage[7011761914]'); if(mouseoverflag7011761914 == 0) { object.src = imagearray7011761914[imagecounter7011761914].src; } else { object.src = imagemouseoverarray7011761914[imagecounter7011761914].src; } object.style.filter = "alpha(opacity = 100)"; object.style.opacity = 1; regularupdate7011761914(); t7011761914 = setTimeout('fadeout7011761914()',fadeinterval7011761914); } function nextfade7011761914() { clearTimeout(t7011761914); imagecounter7011761914 = imagecounter7011761914 + 1; if(imagecounter7011761914 > imagearray7011761914.length - 1) { imagecounter7011761914 = 0; } var object = document.getElementById('faaslideshowimage[7011761914]'); if(mouseoverflag7011761914 == 0) { object.src = imagearray7011761914[imagecounter7011761914].src; } else { object.src = imagemouseoverarray7011761914[imagecounter7011761914].src; } regularupdate7011761914(); t7011761914 = setTimeout("fadein7011761914()", 100); } function fadeout7011761914() { fadecounter7011761914 = 100; fadeoutprogress7011761914(); } function fadeoutprogress7011761914() { var object = document.getElementById('faaslideshowimage[7011761914]'); object.style.filter = "alpha(opacity = " + fadecounter7011761914*1 + ")"; object.style.opacity = fadecounter7011761914*0.01; fadecounter7011761914 -= 2; if (fadecounter7011761914 > 0) { t7011761914 = setTimeout("fadeoutprogress7011761914()", 10); } else { nextfade7011761914(); } } function fadein7011761914() { fadecounter7011761914 = 0; fadeinprogress7011761914(); } function fadeinprogress7011761914() { object = document.getElementById('faaslideshowimage[7011761914]'); object.style.filter = "alpha(opacity = " + fadecounter7011761914*1 + ")"; object.style.opacity = fadecounter7011761914*0.01; fadecounter7011761914 += 4; if (fadecounter7011761914 < 100) { t7011761914 = setTimeout("fadeinprogress7011761914()", 10); } else { t7011761914 = setTimeout("fadeout7011761914()",fadeinterval7011761914); } } function mouseover7011761914() { mouseoverflag7011761914 = 1; document.getElementById('faaslideshowimage[7011761914]').src = mouseoverimage7011761914.src; } function mouseout7011761914() { mouseoverflag7011761914 = 0; document.getElementById('faaslideshowimage[7011761914]').src = mouseoutimage7011761914.src; } function mouseclick7011761914(event) { var currentleft = 0; var currenttop = 0; var object = document.getElementById('faaslideshowimage[7011761914]'); 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[7011761914]').offsetLeft; //var pos_y = event.offsetY?(event.offsetY):event.pageY-document.getElementById('faaslideshowimage[7011761914]').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) { previousimage7011761914(); return; } if(pos_x > width7011761914 - 35) { nextimage7011761914(); return; } document.location = link7011761914; } function regularupdate7011761914() { mouseoutimage7011761914.src = imagearray7011761914[imagecounter7011761914].src; mouseoverimage7011761914.src =imagemouseoverarray7011761914[imagecounter7011761914].src; link7011761914 = linkarray7011761914[imagecounter7011761914]; if(document.getElementById('faaslideshowlink[7011761914]')) { document.getElementById('faaslideshowlink[7011761914]').href = linkarray7011761914[imagecounter7011761914]; } var localcounter = imagecounter7011761914 + 1; if(localcounter > imagearray7011761914.length - 1) { localcounter = 0; } nextimagetoload7011761914.src = imagearray7011761914[localcounter].src; nextmouseoverimagetoload7011761914.src = imagemouseoverarray7011761914[localcounter].src; } nextimage7011761914();