/******************************************************************************* FILE: mud_Scripts.js REQUIRES: prototype.js, mud_FadeGallery.js AUTHOR: Takashi Okamoto mud(tm) - http://www.mudcorp.com/ VERSION: 2.0 - converted to use prototype.js DATE: 01/05/2006 -------------------------------------------------------------------------------- This file is part of MudFadeGallery. MudFadeGallery is free for anyone to use, but this header MUST be included, and may not be modified. *******************************************************************************/ //////////////////////////////////////////////////////////////////////////////// // GLOBAL VARS var imgsGallery = new Array(); var imgs; /////////////////////////////////////////////////////////////////////////////// // MOUSE EVENTS function setOnMouseClick() { var elements = document.getElementsByTagName("a"); for (var i = 0; i < elements.length; i++) { switch(elements[i].className) { case "next": elements[i].onclick = function() { imgs.nextImg(); imgs.apStop(10); return false; } break; case "prev": elements[i].onclick = function() { imgs.prevImg(); imgs.apStop(10); return false; } break; case "s0": elements[i].onclick = function() { imgs.showImg(0); return false; } break; case "s1": elements[i].onclick = function() { imgs.showImg(1); return false; } break; case "s2": elements[i].onclick = function() { imgs.showImg(2); return false; } break; case "s3": elements[i].onclick = function() { imgs.showImg(3); return false; } break; } } } //////////////////////////////////////////////////////////////////////////////// // INIT function init() { setOnMouseClick(); // images gallery // load images note: imgsGallery[].image isn't an array of images, just strings to hold location imgsGallery[0] = new Object();imgsGallery[0].image = "http://www.damelioterras.com/MEDIA/00297.jpg";imgsGallery[0].titles = "Vito Acconci
Proposed design for hexagon of trapezoidal seats
";imgsGallery[1] = new Object();imgsGallery[1].image = "http://www.damelioterras.com/MEDIA/00409.jpg";imgsGallery[1].titles = "Installation View
2007
";imgsGallery[2] = new Object();imgsGallery[2].image = "http://www.damelioterras.com/MEDIA/00373.jpg";imgsGallery[2].titles = "Installation View
2007
";imgsGallery[3] = new Object();imgsGallery[3].image = "http://www.damelioterras.com/MEDIA/00410.jpg";imgsGallery[3].titles = "Acconci Studio (Vito Acconci, Dario Nunez, Ezio Blasetti, Nathan DeGraaf)
PERFORM-A-SEAT 2007
36 x 132 inches in diameter, 91.4 x 335.3 cm
MDF, lacquer, latex paint, LAD lights, computer, power speakers, micro controller
";imgsGallery[4] = new Object();imgsGallery[4].image = "http://www.damelioterras.com/MEDIA/00374.jpg";imgsGallery[4].titles = "Acconci Studio (Vito Acconci, Dario Nunez, Ezio Blasetti, Nathan DeGraaf)
PERFORM-A-SEAT 2007
36 x 132 inches in diameter, 91.4 x 335.3 cm
MDF, lacquer, latex paint, LAD lights, computer, power speakers, micro controller
";imgsGallery[5] = new Object();imgsGallery[5].image = "http://www.damelioterras.com/MEDIA/00349.jpg";imgsGallery[5].titles = "John M. Armleder
Untitled 2004
80 x 60 inches

203.2 x 152.4 cm
mixed media on linen
";imgsGallery[6] = new Object();imgsGallery[6].image = "http://www.damelioterras.com/MEDIA/00298.jpg";imgsGallery[6].titles = "Steven Parrino
Death in America 2003
108 x 72 inches

274.3 x 182.9 cm
enamel on canvas
";imgsGallery[7] = new Object();imgsGallery[7].image = "http://www.damelioterras.com/MEDIA/00337.jpg";imgsGallery[7].titles = "Olivier Mosset
Untitled (triptych) 2003
104 inches in diameter

264.2 x cm
oil on canvas
";imgsGallery[8] = new Object();imgsGallery[8].image = "http://www.damelioterras.com/MEDIA/00338.jpg";imgsGallery[8].titles = "Chuck Nanney
Happy Family 1988/94
72.5 x 69 x 8.5 inches,

184.2 x 175.3 x 21.6 cm
tree branches, wrought iron, photographs (c-prints), garland, electrical tape, push pin
";imgsGallery[9] = new Object();imgsGallery[9].image = "http://www.damelioterras.com/MEDIA/00300.jpg";imgsGallery[9].titles = "Sam Samore
Allegories of Beauty (Incomplete) #8 1990s
35 x 72 inches

88.9 x 182.9 cm
Gelatin silver print
";imgsGallery[10] = new Object();imgsGallery[10].image = "http://www.damelioterras.com/MEDIA/00301.jpg";imgsGallery[10].titles = "Sam Samore
Allegories of Beauty (Incomplete) #12 1990s
35 x 72 inches

88.9 x 182.9 cm
Gelatin silver print
"; var start = 0; imgs = new MudFadeGallery('imgs', 'imgDisplay', imgsGallery, {startNum: start, preload: true, autoplay: 0}); // set the initial captions var titles = (imgsGallery[0].titles) ? imgsGallery[0].titles : "No Title"; var caption = (imgsGallery[0].caption) ? imgsGallery[0].caption : "No caption"; $("imgDisplay_titles").innerHTML = titles; $("imgDisplay_number").innerHTML = "(image 1 out of " + imgsGallery.length + ")"; $("imgDisplay").src = imgsGallery[start].image; } //////////////////////////////////////////////////////////////////////////////// // EVENTS Event.observe(window, 'load', init, false);