/******************************************************************************* 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/00174.jpg";imgsGallery[0].titles = "Cornelia Parker
Breathless 2001
Silver-plated brass musical instruments suspended on stainless steel wire

Instruments squashed by Tower Bridge machinery with the kind permission of the Corporation of London
";imgsGallery[1] = new Object();imgsGallery[1].image = "http://www.damelioterras.com/MEDIA/00175.jpg";imgsGallery[1].titles = "Cornelia Parker
Thirty Pieces of Silver (exhaled) 2003
wire hangs from ceiling to 1 - 4.5 inches above surface
diameter approximately 43 1/4 inches (110 cm)
Oval Tray

30 silver plated objects crushed by 250 ton industrial press, metal wire
";imgsGallery[2] = new Object();imgsGallery[2].image = "http://www.damelioterras.com/MEDIA/00176.jpg";imgsGallery[2].titles = "Cornelia Parker
The Distance (a kiss with string attached) 2003
approximately 71 1/2 x 46 x 44 1/2 inches
181.6 x 116.8 x 113 cm
Rodin’s ‘The Kiss’ and one mile of string
";imgsGallery[3] = new Object();imgsGallery[3].image = "http://www.damelioterras.com/MEDIA/00177.jpg";imgsGallery[3].titles = "Cornelia Parker
Mass (Colder Darker Matter) 1997
charcoal retrieved from a church struck by lightning
";imgsGallery[4] = new Object();imgsGallery[4].image = "http://www.damelioterras.com/MEDIA/00178.jpg";imgsGallery[4].titles = "Cornelia Parker
Anti-Mass 2005
dimensions vary with installation
approximately 156 x 135 x 135 inches
396.2 x 335.3 x 342.9 cm
charcoal retrieved from a church burned by arson
";imgsGallery[5] = new Object();imgsGallery[5].image = "http://www.damelioterras.com/MEDIA/00179.jpg";imgsGallery[5].titles = "Cornelia Parker
Alter Ego 2005
dimensions vary with installation
(coffee, with reflection)

silver plated objects - two unitsone intact and one squashed with an 250 ton industrial press
";imgsGallery[6] = new Object();imgsGallery[6].image = "http://www.damelioterras.com/MEDIA/00180.jpg";imgsGallery[6].titles = "Cornelia Parker
Subconscious of a Monument 2001
Installation View: Royal Institute of British Architects, London
";imgsGallery[7] = new Object();imgsGallery[7].image = "http://www.damelioterras.com/MEDIA/00181.jpg";imgsGallery[7].titles = "Cornelia Parker
Subconscious of a Monument 2001
Installation View: Royal Institute of British Architects, London
"; 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);