/******************************************************************************* 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/00896.jpg";imgsGallery[0].titles = "Delia Brown
Installation View ";imgsGallery[1] = new Object();imgsGallery[1].image = "http://www.damelioterras.com/MEDIA/00897.jpg";imgsGallery[1].titles = "Delia Brown
Installation View ";imgsGallery[2] = new Object();imgsGallery[2].image = "http://www.damelioterras.com/MEDIA/00893.jpg";imgsGallery[2].titles = "Delia Brown
Caprice Toasting Felicity’s Painting 2006 - 2007
image: 19 3/4 x 27 1/2 inches (50.2 x 69.9 cm)

framed: 22 3/16 x 30 2/16 inches (63.5 x 81.3 cm)
graphite pencil, white gouache on colored paper
";imgsGallery[3] = new Object();imgsGallery[3].image = "http://www.damelioterras.com/MEDIA/00890.jpg";imgsGallery[3].titles = "Delia Brown
Felicity Struggling with a Drugged Caprice

2006 - 2007
image: 19 3/4 x 27 1/2 inches (50.2 x 69.9 cm)

framed: 22 1/2 x 30 2/16 inches (57.2 x 81.3 cm)
graphite pencil, white gouache on colored paper
";imgsGallery[4] = new Object();imgsGallery[4].image = "http://www.damelioterras.com/MEDIA/00891.jpg";imgsGallery[4].titles = "Delia Brown
Caprice Admiring Felicity’s Painting 2006 - 2007
image: 19 3/4 x 27 1/2 inches (50.2 x 69.9 cm)

framed: 22 3/16 x 30 2/16 inches (63.5 x 81.3 cm)
graphite pencil, white gouache on colored paper
";imgsGallery[5] = new Object();imgsGallery[5].image = "http://www.damelioterras.com/MEDIA/00887.jpg";imgsGallery[5].titles = "Delia Brown
Felicity Walking in on Caprice at Her Toilette

2006 – 2007
image: 19 3/4 x 27 1/2 inches (50.2 x 69.9 cm)

framed: 22 4/16 x 31 4/16 inches (66 x 88.9 cm)
graphite pencil, colored pencil on colored paper
";imgsGallery[6] = new Object();imgsGallery[6].image = "http://www.damelioterras.com/MEDIA/00886.jpg";imgsGallery[6].titles = "Delia Brown
Caprice Installing Felicity’s Painting 2006 – 2007
image: 22 1/2 x 25 1/2 inches (57.2 x 64.8 cm)

framed: 23 4/16 x 27 6/16 inches (68.6 x 83.8 cm)
graphite pencil, colored pencil on colored paper
";imgsGallery[7] = new Object();imgsGallery[7].image = "http://www.damelioterras.com/MEDIA/00884.jpg";imgsGallery[7].titles = "Delia Brown
Felicity, Content 2006 – 2007
image: 19 3/4 x 25 1/4 inches (50.2 x 64.1 cm)

framed: 24 6/8 x 31 4/16 inches (62.9 x 88.9 cm)
graphite pencil, colored pencil on colored paper
";imgsGallery[8] = new Object();imgsGallery[8].image = "http://www.damelioterras.com/MEDIA/00892.jpg";imgsGallery[8].titles = "Delia Brown
Caprice Treats Felicity to a Hotdog in Front of the Museum 2006 – 2007
image: 19 3/4 x 27 1/2 inches (50.2 x 69.9 cm)

framed: 23 3/16 x 30 2/16 inches (66 x 81.3 cm)
graphite pencil, white gouache on colored paper
";imgsGallery[9] = new Object();imgsGallery[9].image = "http://www.damelioterras.com/MEDIA/00889.jpg";imgsGallery[9].titles = "Delia Brown
Caprice Apprehending Felicity 2006 – 2007
image: 19 3/4 x 27 1/2 inches (50.2 x 69.9cm)

framed: 25 3/4 x 29 1/2 inches (65.4 x 74.9 cm)
graphite pencil on colored paper
";imgsGallery[10] = new Object();imgsGallery[10].image = "http://www.damelioterras.com/MEDIA/00885.jpg";imgsGallery[10].titles = "Delia Brown
Felicity Handing the Coffee to Caprice 2006 – 2007
image: 19 1/2 x 18 1/4 inches (49.5 x 46.4 cm)

framed: 24 4/16 x 23 inches (71.1 x 58.4 cm)
graphite pencil, colored pencil on colored paper
";imgsGallery[11] = new Object();imgsGallery[11].image = "http://www.damelioterras.com/MEDIA/00894.jpg";imgsGallery[11].titles = "Delia Brown
Caprice Drowned 2006 – 2007
image: 26 1/2 x 21 1/4 inches(67.3 x 54 cm)
framed: 31 9/16 x 26 9/16 inches (101.6 x 88.9 cm)
graphite pencil on colored paper
"; 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);