function blendimage(divid, imageid, imagefile, millisec) { if (IsBlending) { setTimeout("blendimage('" + divid +"','" + imageid +"','" + imagefile +"','" + millisec +"')",100); } else { var speed = Math.round(millisec / 100); var timer = 0; IsBlending = true; if (BlendImage) { document.getElementById(imageid).src = imagefile; } else { document.getElementById(divid).style.backgroundImage = "url(" + imagefile + ")"; } changeOpac(70, 'BlendWhite'); document.getElementById('description').firstChild.data = SlideShowDescription[SlideShowImgIdx]; for(i = 0; i <= 100; i++) { window.setTimeout("changeOpacBlend(" + i + ",'" + imageid + "', '" + divid+"')",(timer * speed)); timer++; } } } function changeOpacBlend(opacity, imageid, divid) { if (BlendImage) { changeOpac(opacity, imageid); changeOpac(100-opacity, divid); } else { changeOpac(100-opacity, imageid); changeOpac(opacity, divid); } if (opacity == 100) { BlendImage = !BlendImage; IsBlending = false; } changeOpac(100-opacity, 'BlendWhite'); document.getElementById(imageid).style.visibility = 'visible'; } function changeOpac(opacity, id) { var object = document.getElementById(id).style; object.opacity = (opacity / 100); object.KhtmlOpacity = (opacity / 100); object.filter = "alpha(opacity=" + opacity + ")"; } function runSlideShow() { if(RunSlideshow == 0) { blendimage('blenddiv', 'blendimage', SlideShowPreLoad[SlideShowImgIdx].src, fadingTime); SlideShowImgIdx = SlideShowImgIdx + 1; if (SlideShowImgIdx > (SlideShowImages.length - 1)) SlideShowImgIdx = 0; setTimeout("runSlideShow()", slideShowSpeed); } } function startSlideShow() { slideShowSpeed = 4000; fadingTime = 1000; IsBlending = false; Status = 'Slideshow'; SlideShowImgIdx = 0; SlideShowImages = ImageGroups[0].split(","); SlideShowPreLoad = new Array(); SlideShowDescription = new Array(); BlendImage = true; RunSlideshow = 0; for (i = 0; i < SlideShowImages.length; i++) { SlideShowPreLoad[i] = new Image(); SlideShowPreLoad[i].src = Images[SlideShowImages[i]]; SlideShowDescription[i] = Description[SlideShowImages[i]]; } ResetView(); document.getElementById('GalleryName').firstChild.data = 'Random Slidshow'; document.getElementById('GalleryIndex').firstChild.data = ''; runSlideShow(); } function BlendIn(element) { var o = document.getElementsByTagName("div"); RunSlideshow = 1; for (var u=0; u < o.length; u++) { if(o[u].getAttribute("name")=="movieblender") { o[u].style.visibility = 'hidden'; } if( o[u].getAttribute("name")=="navigation" ) { o[u].style.visibility = 'hidden'; } } document.getElementById('BlendImg').style.visibility = 'visible'; document.getElementById(element).style.visibility = 'visible'; } function BlendOut() { ResetView(); RunSlideshow = 0; if (Status == 'Slideshow') { setTimeout("runSlideShow()", slideShowSpeed); } else { var o = document.getElementsByTagName("div"); for (var u=0; u < o.length; u++) { if(o[u].getAttribute("name")=="navigation") { o[u].style.visibility = 'visible'; } } } } function ShowGallery(gallery, GalleryName) { RunSlideshow = 1; Status = 'Gallery'; var o = document.getElementsByTagName("div"); for (var u=0; u < o.length; u++) { if(o[u].getAttribute("name")=="navigation") { o[u].style.visibility = 'visible'; } } document.getElementById(GalleryName).style.textDecoration = 'line-through'; document.getElementById('GalleryName').firstChild.data = GalleryName; GalleryImgIdx = 0; GalleryImages = ImageGroups[gallery].split(","); GalleryPreLoad = new Array(); GalleryDescription = new Array(); for (i = 0; i < GalleryImages.length; i++) { GalleryPreLoad[i] = new Image(); GalleryPreLoad[i].src = Images[GalleryImages[i]]; GalleryDescription[i] = Description[GalleryImages[i]]; } ChangeGalleryImage('init'); } function ChangeGalleryImage(direction) { switch (direction) { case "next": GalleryImgIdx = GalleryImgIdx + 1; if (GalleryImgIdx > (GalleryImages.length - 1)) GalleryImgIdx = 0; break; case "prev": if (GalleryImgIdx == 0) GalleryImgIdx = GalleryImages.length; GalleryImgIdx = GalleryImgIdx - 1; break; } blendimage('blenddiv', 'blendimage', GalleryPreLoad[GalleryImgIdx].src, 500); document.getElementById('description').firstChild.data = GalleryDescription[GalleryImgIdx]; CurrentImage = GalleryImgIdx + 1; document.getElementById('GalleryIndex').firstChild.data = CurrentImage + ' / ' + GalleryImages.length; } function ShowNavigation(id) { document.getElementById(id).style.visibility = 'visible'; } function HideNavigation(id) { document.getElementById(id).style.visibility = 'hidden'; } function ResetView() { var o = document.getElementsByTagName("div"); for (var u=0; u < o.length; u++) { if( o[u].getAttribute("name")=="movieblender" ) { o[u].style.visibility = 'hidden'; } if( o[u].getAttribute("name")=="navigation" ) { o[u].style.visibility = 'hidden'; } } document.getElementById('BlendImg').style.visibility = 'hidden'; } Images = new Array(); Images[0] = 'galleries/Nature/PineTrees.jpg'; Images[1] = 'galleries/Nature/RedWater.jpg'; Images[2] = 'galleries/Nature/IguazuWaterfalls.jpg'; Images[3] = 'galleries/Miscellaneous/DelCabo.jpg'; Images[4] = 'galleries/Miscellaneous/Dog.jpg'; Images[5] = 'galleries/Miscellaneous/Donkey.jpg'; Images[6] = 'galleries/Miscellaneous/Liberte.jpg'; Images[7] = 'galleries/Nature/CactusFlower.jpg'; Images[8] = 'galleries/Nature/MoonValley.jpg'; Images[9] = 'galleries/Miscellaneous/LimaNight.jpg'; Images[10] = 'galleries/Nature/Sunset.jpg'; Images[11] = 'galleries/Nature/Eucalyptus.jpg'; Images[12] = 'galleries/Miscellaneous/Speech.jpg'; Images[13] = 'galleries/Nature/IguazuWaterfalls2.jpg'; Images[14] = 'galleries/Nature/ColcaTree.jpg'; Images[15] = 'galleries/Miscellaneous/ColcaHouse.jpg'; Images[16] = 'galleries/Paragliding/Freestyle.jpg'; Images[17] = 'galleries/Paragliding/LaPalma.jpg'; Images[18] = 'galleries/Paragliding/SAT.jpg'; Images[19] = 'galleries/Paragliding/Schalenberg.jpg'; Images[20] = 'galleries/Paragliding/Vince.jpg'; Images[21] = 'galleries/Paragliding/EigerMoenchJungfau.jpg'; Description = new Array(); Description[0] = 'Pinetrees on Volcano, La Palma'; Description[1] = 'Red Volcano river, La Palma'; Description[2] = 'Iguazu Waterfalls, Argentinia'; Description[3] = 'Cabo Bologna, Uruguay'; Description[4] = 'Dog in La Palma'; Description[5] = 'Carneval in La Palma'; Description[6] = 'Casa Liberté, Uruguay'; Description[7] = 'Cactus Flower, Bolivia'; Description[8] = 'Moon Valley, Bolivia'; Description[9] = 'Lima by Night, Peru'; Description[10] = 'Sunset, Peru'; Description[11] = 'Eucalyptus, Bolivia'; Description[12] = '..., Chile'; Description[13] = 'Iguazu Waterfalls, Argentinia'; Description[14] = 'Colca Cannyon, Peru'; Description[15] = 'Colca Cannyon, Peru'; Description[16] = 'Interlaken'; Description[17] = 'La Palma'; Description[18] = 'SAT, Interlaken'; Description[19] = 'Schalenberg'; Description[20] = 'Interlaken'; Description[21] = 'Eiger, Mönch & Jungfrau, Interlaken'; ImageGroups = new Array(); ImageGroups[0] = '11,13,20,21,14,17,5'; ImageGroups[1] = '0,1,2,7,8,10,11,13,14'; // Nature ImageGroups[2] = '3,4,5,6,9,12,15'; //Miscellaneous ImageGroups[3] = '16,17,21,18,19,20'; //Paragliding