var fadecounter18272236 = 0; var cyclecounter18272236 = 0; var imagecounter18272236 = 0; var fadeinterval18272236 = 6000; var t18272236; var nextimagetoload18272236 = new Image(); var nextmouseoverimagetoload18272236 = new Image(); var mouseoverimage18272236 = new Image(); var mouseoutimage18272236 = new Image(); var mouseoverflag18272236 = 0; var width18272236 = 250; var height18272236 = 250; var link18272236; var imagearray18272236 = new Array(10); var imagemouseoverarray18272236 = new Array(10); var linkarray18272236 = new Array(10); image1827223640854381 = new Image(); imagemouseover1827223640854381 = new Image(); image1827223640854381.src = 'https://fineartamerica.com/images-slideshow/images/artworkimages/medium/3/sunrise-on-sandown-beach-isle-of-wight-jeremy-hayden/b1/Sunrise+on+Sandown+Beach+Isle+of+Wight/b2/Jeremy+Hayden/b3/250px/b4/250px/b5/cropped.jpg'; imagemouseover1827223640854381.src = 'https://fineartamerica.com/images-slideshow/images/artworkimages/medium/3/sunrise-on-sandown-beach-isle-of-wight-jeremy-hayden/b1/Sunrise+on+Sandown+Beach+Isle+of+Wight/b2/Jeremy+Hayden/b3/250px/b4/250px/b5/croppedmouseover.jpg'; imagearray18272236[0] = image1827223640854381; imagemouseoverarray18272236[0] = imagemouseover1827223640854381; linkarray18272236[0] = 'http://jeremy-hayden.artistwebsites.com/featured/sunrise-on-sandown-beach-isle-of-wight-jeremy-hayden.html'; image1827223640853405 = new Image(); imagemouseover1827223640853405 = new Image(); image1827223640853405.src = 'https://fineartamerica.com/images-slideshow/images/artworkimages/medium/3/table-mountain-and-apartments-cape-town-jeremy-hayden/b1/Table+Mountain+and+Apartments+Cape+Town/b2/Jeremy+Hayden/b3/250px/b4/250px/b5/cropped.jpg'; imagemouseover1827223640853405.src = 'https://fineartamerica.com/images-slideshow/images/artworkimages/medium/3/table-mountain-and-apartments-cape-town-jeremy-hayden/b1/Table+Mountain+and+Apartments+Cape+Town/b2/Jeremy+Hayden/b3/250px/b4/250px/b5/croppedmouseover.jpg'; imagearray18272236[1] = image1827223640853405; imagemouseoverarray18272236[1] = imagemouseover1827223640853405; linkarray18272236[1] = 'http://jeremy-hayden.artistwebsites.com/featured/table-mountain-and-apartments-cape-town-jeremy-hayden.html'; image1827223640674446 = new Image(); imagemouseover1827223640674446 = new Image(); image1827223640674446.src = 'https://fineartamerica.com/images-slideshow/images/artworkimages/medium/3/pretty-pink-and-yellow-rose-on-black-jeremy-hayden/b1/Pretty+Pink+and+Yellow+Rose+on+Black/b2/Jeremy+Hayden/b3/250px/b4/250px/b5/cropped.jpg'; imagemouseover1827223640674446.src = 'https://fineartamerica.com/images-slideshow/images/artworkimages/medium/3/pretty-pink-and-yellow-rose-on-black-jeremy-hayden/b1/Pretty+Pink+and+Yellow+Rose+on+Black/b2/Jeremy+Hayden/b3/250px/b4/250px/b5/croppedmouseover.jpg'; imagearray18272236[2] = image1827223640674446; imagemouseoverarray18272236[2] = imagemouseover1827223640674446; linkarray18272236[2] = 'http://jeremy-hayden.artistwebsites.com/featured/pretty-pink-and-yellow-rose-on-black-jeremy-hayden.html'; image1827223640287407 = new Image(); imagemouseover1827223640287407 = new Image(); image1827223640287407.src = 'https://fineartamerica.com/images-slideshow/images/artworkimages/medium/3/sunrise-hillside-in-the-yorkshire-dales-jeremy-hayden/b1/Sunrise+Hillside+in+the+Yorkshire+Dales/b2/Jeremy+Hayden/b3/250px/b4/250px/b5/cropped.jpg'; imagemouseover1827223640287407.src = 'https://fineartamerica.com/images-slideshow/images/artworkimages/medium/3/sunrise-hillside-in-the-yorkshire-dales-jeremy-hayden/b1/Sunrise+Hillside+in+the+Yorkshire+Dales/b2/Jeremy+Hayden/b3/250px/b4/250px/b5/croppedmouseover.jpg'; imagearray18272236[3] = image1827223640287407; imagemouseoverarray18272236[3] = imagemouseover1827223640287407; linkarray18272236[3] = 'http://jeremy-hayden.artistwebsites.com/featured/sunrise-hillside-in-the-yorkshire-dales-jeremy-hayden.html'; image1827223640287387 = new Image(); imagemouseover1827223640287387 = new Image(); image1827223640287387.src = 'https://fineartamerica.com/images-slideshow/images/artworkimages/medium/3/sedbergh-camp-sunrise-over-the-yorkshire-dales-jeremy-hayden/b1/Sedbergh+Camp+Sunrise+over+the+Yorkshire+Dales/b2/Jeremy+Hayden/b3/250px/b4/250px/b5/cropped.jpg'; imagemouseover1827223640287387.src = 'https://fineartamerica.com/images-slideshow/images/artworkimages/medium/3/sedbergh-camp-sunrise-over-the-yorkshire-dales-jeremy-hayden/b1/Sedbergh+Camp+Sunrise+over+the+Yorkshire+Dales/b2/Jeremy+Hayden/b3/250px/b4/250px/b5/croppedmouseover.jpg'; imagearray18272236[4] = image1827223640287387; imagemouseoverarray18272236[4] = imagemouseover1827223640287387; linkarray18272236[4] = 'http://jeremy-hayden.artistwebsites.com/featured/sedbergh-camp-sunrise-over-the-yorkshire-dales-jeremy-hayden.html'; image1827223639998507 = new Image(); imagemouseover1827223639998507 = new Image(); image1827223639998507.src = 'https://fineartamerica.com/images-slideshow/images/artworkimages/medium/3/sand-sea-and-sun-patterns-on-the-beach-jeremy-hayden/b1/Sand+Sea+and+Sun+Patterns+on+the+Beach/b2/Jeremy+Hayden/b3/250px/b4/250px/b5/cropped.jpg'; imagemouseover1827223639998507.src = 'https://fineartamerica.com/images-slideshow/images/artworkimages/medium/3/sand-sea-and-sun-patterns-on-the-beach-jeremy-hayden/b1/Sand+Sea+and+Sun+Patterns+on+the+Beach/b2/Jeremy+Hayden/b3/250px/b4/250px/b5/croppedmouseover.jpg'; imagearray18272236[5] = image1827223639998507; imagemouseoverarray18272236[5] = imagemouseover1827223639998507; linkarray18272236[5] = 'http://jeremy-hayden.artistwebsites.com/featured/sand-sea-and-sun-patterns-on-the-beach-jeremy-hayden.html'; image1827223639997099 = new Image(); imagemouseover1827223639997099 = new Image(); image1827223639997099.src = 'https://fineartamerica.com/images-slideshow/images/artworkimages/medium/3/breaking-wave-on-a-tenby-beach-jeremy-hayden/b1/Breaking+Wave+on+a+Tenby+Beach/b2/Jeremy+Hayden/b3/250px/b4/250px/b5/cropped.jpg'; imagemouseover1827223639997099.src = 'https://fineartamerica.com/images-slideshow/images/artworkimages/medium/3/breaking-wave-on-a-tenby-beach-jeremy-hayden/b1/Breaking+Wave+on+a+Tenby+Beach/b2/Jeremy+Hayden/b3/250px/b4/250px/b5/croppedmouseover.jpg'; imagearray18272236[6] = image1827223639997099; imagemouseoverarray18272236[6] = imagemouseover1827223639997099; linkarray18272236[6] = 'http://jeremy-hayden.artistwebsites.com/featured/breaking-wave-on-a-tenby-beach-jeremy-hayden.html'; image1827223639764956 = new Image(); imagemouseover1827223639764956 = new Image(); image1827223639764956.src = 'https://fineartamerica.com/images-slideshow/images/artworkimages/medium/3/beach-at-akrotiri-on-santorini-island-jeremy-hayden/b1/Beach+at+Akrotiri+on+Santorini+Island/b2/Jeremy+Hayden/b3/250px/b4/250px/b5/cropped.jpg'; imagemouseover1827223639764956.src = 'https://fineartamerica.com/images-slideshow/images/artworkimages/medium/3/beach-at-akrotiri-on-santorini-island-jeremy-hayden/b1/Beach+at+Akrotiri+on+Santorini+Island/b2/Jeremy+Hayden/b3/250px/b4/250px/b5/croppedmouseover.jpg'; imagearray18272236[7] = image1827223639764956; imagemouseoverarray18272236[7] = imagemouseover1827223639764956; linkarray18272236[7] = 'http://jeremy-hayden.artistwebsites.com/featured/beach-at-akrotiri-on-santorini-island-jeremy-hayden.html'; image1827223639754639 = new Image(); imagemouseover1827223639754639 = new Image(); image1827223639754639.src = 'https://fineartamerica.com/images-slideshow/images/artworkimages/medium/3/caldey-island-beach-panorama-jeremy-hayden/b1/Caldey+Island+Beach+Panorama/b2/Jeremy+Hayden/b3/250px/b4/250px/b5/cropped.jpg'; imagemouseover1827223639754639.src = 'https://fineartamerica.com/images-slideshow/images/artworkimages/medium/3/caldey-island-beach-panorama-jeremy-hayden/b1/Caldey+Island+Beach+Panorama/b2/Jeremy+Hayden/b3/250px/b4/250px/b5/croppedmouseover.jpg'; imagearray18272236[8] = image1827223639754639; imagemouseoverarray18272236[8] = imagemouseover1827223639754639; linkarray18272236[8] = 'http://jeremy-hayden.artistwebsites.com/featured/caldey-island-beach-panorama-jeremy-hayden.html'; image1827223639747949 = new Image(); imagemouseover1827223639747949 = new Image(); image1827223639747949.src = 'https://fineartamerica.com/images-slideshow/images/artworkimages/medium/3/peaceful-evening-on-a-tenby-beach-jeremy-hayden/b1/Peaceful+Evening+on+a+Tenby+Beach/b2/Jeremy+Hayden/b3/250px/b4/250px/b5/cropped.jpg'; imagemouseover1827223639747949.src = 'https://fineartamerica.com/images-slideshow/images/artworkimages/medium/3/peaceful-evening-on-a-tenby-beach-jeremy-hayden/b1/Peaceful+Evening+on+a+Tenby+Beach/b2/Jeremy+Hayden/b3/250px/b4/250px/b5/croppedmouseover.jpg'; imagearray18272236[9] = image1827223639747949; imagemouseoverarray18272236[9] = imagemouseover1827223639747949; linkarray18272236[9] = 'http://jeremy-hayden.artistwebsites.com/featured/peaceful-evening-on-a-tenby-beach-jeremy-hayden.html'; function previousimage18272236() { clearTimeout(t18272236); imagecounter18272236 = imagecounter18272236 - 1; if(imagecounter18272236 < 0) { imagecounter18272236 = imagearray18272236.length - 1; } var object = document.getElementById('faaslideshowimage[18272236]'); if(mouseoverflag18272236 == 0) { object.src = imagearray18272236[imagecounter18272236].src; } else { object.src = imagemouseoverarray18272236[imagecounter18272236].src; } object.style.filter = "alpha(opacity = 100)"; object.style.opacity = 1; regularupdate18272236(); t18272236 = setTimeout('fadeout18272236()',fadeinterval18272236); } function nextimage18272236() { if(!document.getElementById('faaslideshowimage[18272236]')) { clearTimeout(t18272236); t18272236 = setTimeout('nextimage18272236()',500); return; } else { document.getElementById('faaslideshowimage[18272236]').setAttribute('onMouseOver','javascript: mouseover18272236();'); document.getElementById('faaslideshowimage[18272236]').setAttribute('onMouseOut','javascript: mouseout18272236();'); document.getElementById('faaslideshowimage[18272236]').setAttribute('onClick','javascript: mouseclick18272236(event);'); } clearTimeout(t18272236); imagecounter18272236 = imagecounter18272236 + 1; if(imagecounter18272236 > imagearray18272236.length - 1) { imagecounter18272236 = 0; } var object = document.getElementById('faaslideshowimage[18272236]'); if(mouseoverflag18272236 == 0) { object.src = imagearray18272236[imagecounter18272236].src; } else { object.src = imagemouseoverarray18272236[imagecounter18272236].src; } object.style.filter = "alpha(opacity = 100)"; object.style.opacity = 1; regularupdate18272236(); t18272236 = setTimeout('fadeout18272236()',fadeinterval18272236); } function nextfade18272236() { clearTimeout(t18272236); imagecounter18272236 = imagecounter18272236 + 1; if(imagecounter18272236 > imagearray18272236.length - 1) { imagecounter18272236 = 0; } var object = document.getElementById('faaslideshowimage[18272236]'); if(mouseoverflag18272236 == 0) { object.src = imagearray18272236[imagecounter18272236].src; } else { object.src = imagemouseoverarray18272236[imagecounter18272236].src; } regularupdate18272236(); t18272236 = setTimeout("fadein18272236()", 100); } function fadeout18272236() { fadecounter18272236 = 100; fadeoutprogress18272236(); } function fadeoutprogress18272236() { var object = document.getElementById('faaslideshowimage[18272236]'); object.style.filter = "alpha(opacity = " + fadecounter18272236*1 + ")"; object.style.opacity = fadecounter18272236*0.01; fadecounter18272236 -= 2; if (fadecounter18272236 > 0) { t18272236 = setTimeout("fadeoutprogress18272236()", 10); } else { nextfade18272236(); } } function fadein18272236() { fadecounter18272236 = 0; fadeinprogress18272236(); } function fadeinprogress18272236() { object = document.getElementById('faaslideshowimage[18272236]'); object.style.filter = "alpha(opacity = " + fadecounter18272236*1 + ")"; object.style.opacity = fadecounter18272236*0.01; fadecounter18272236 += 4; if (fadecounter18272236 < 100) { t18272236 = setTimeout("fadeinprogress18272236()", 10); } else { t18272236 = setTimeout("fadeout18272236()",fadeinterval18272236); } } function mouseover18272236() { mouseoverflag18272236 = 1; document.getElementById('faaslideshowimage[18272236]').src = mouseoverimage18272236.src; } function mouseout18272236() { mouseoverflag18272236 = 0; document.getElementById('faaslideshowimage[18272236]').src = mouseoutimage18272236.src; } function mouseclick18272236(event) { var currentleft = 0; var currenttop = 0; var object = document.getElementById('faaslideshowimage[18272236]'); 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[18272236]').offsetLeft; //var pos_y = event.offsetY?(event.offsetY):event.pageY-document.getElementById('faaslideshowimage[18272236]').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) { previousimage18272236(); return; } if(pos_x > width18272236 - 35) { nextimage18272236(); return; } document.location = link18272236; } function regularupdate18272236() { mouseoutimage18272236.src = imagearray18272236[imagecounter18272236].src; mouseoverimage18272236.src =imagemouseoverarray18272236[imagecounter18272236].src; link18272236 = linkarray18272236[imagecounter18272236]; if(document.getElementById('faaslideshowlink[18272236]')) { document.getElementById('faaslideshowlink[18272236]').href = linkarray18272236[imagecounter18272236]; } var localcounter = imagecounter18272236 + 1; if(localcounter > imagearray18272236.length - 1) { localcounter = 0; } nextimagetoload18272236.src = imagearray18272236[localcounter].src; nextmouseoverimagetoload18272236.src = imagemouseoverarray18272236[localcounter].src; } nextimage18272236();