/*******************************************************************************
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/03187.jpg";imgsGallery[0].titles = "Nicole Cherubini
Box #2 2009
17 x 4 x 13 inches
43.2 x 10.2 x 33 cm
earthenware, glaze
";imgsGallery[1] = new Object();imgsGallery[1].image = "http://www.damelioterras.com/MEDIA/03198.jpg";imgsGallery[1].titles = "Nicole Cherubini
Box #3 2009
17 x 5 x 17 inches
43.2 x 12.7 x 43.2 cm
earthenware, glaze
";imgsGallery[2] = new Object();imgsGallery[2].image = "http://www.damelioterras.com/MEDIA/03186.jpg";imgsGallery[2].titles = "Nicole Cherubini
White Box 2009
24 x 12 x 12 inches
61 x 30.5 x 30.5 cm
earthenware, glaze
";imgsGallery[3] = new Object();imgsGallery[3].image = "http://www.damelioterras.com/MEDIA/03199.jpg";imgsGallery[3].titles = "Nicole Cherubini
Box with Blue Drips 2009
23 x 11 x 9 inches
58.4 x 27.9 x 22.9 cm
earthenware, glaze
";imgsGallery[4] = new Object();imgsGallery[4].image = "http://www.damelioterras.com/MEDIA/03201.jpg";imgsGallery[4].titles = "Nicole Cherubini
Baby Clue 2009
54 x 40 x 22 inches
137.2 x 101.6 x 55.9 cm
terracotta, earthenware, porcelain, glaze, wood, digital c-print, enamel, graphite, flashe, ink, plexiglass, gouache
";imgsGallery[5] = new Object();imgsGallery[5].image = "http://www.damelioterras.com/MEDIA/03202.jpg";imgsGallery[5].titles = "Nicole Cherubini
Baby Blue (detail) 2009
54 x 40 x 22 inches
137.2 x 101.6 x 55.9 cm
terracotta, earthenware, porcelain, glaze, wood, digital c-print, enamel, graphite, flashe, ink, plexiglass, gouache
";imgsGallery[6] = new Object();imgsGallery[6].image = "http://www.damelioterras.com/MEDIA/03185.jpg";imgsGallery[6].titles = "Nicole Cherubini
Nestoris II 2008
70 x 32 x 32 inches
177.8 x 81.3 x 81.3 cm
Ceramic, earthenware, terracotta, porcelain, MDF, wood, enamel, luster, 2x4, marble, alabaster
";imgsGallery[7] = new Object();imgsGallery[7].image = "http://www.damelioterras.com/MEDIA/03203.jpg";imgsGallery[7].titles = "Nicole Cherubini
Nestoris II (detail) 2008
70 x 32 x 32 inches
177.8 x 81.3 x 81.3 cm
Ceramic, earthenware, terracotta, porcelain, MDF, wood, enamel, luster, 2x4, marble, alabaster
";imgsGallery[8] = new Object();imgsGallery[8].image = "http://www.damelioterras.com/MEDIA/03204.jpg";imgsGallery[8].titles = "Nicole Cherubini
Small Amphora with Turquoise Narration 2008
70 x 32 x 32 inches
177.8 x 81.3 x 81.3 cm
Ceramic, earthenware, terracotta, porcelain, MDF, wood, enamel
";imgsGallery[9] = new Object();imgsGallery[9].image = "http://www.damelioterras.com/MEDIA/03205.jpg";imgsGallery[9].titles = "Nicole Cherubini
Small Amphora with Turquoise Narration 2008
70 x 32 x 32 inches
177.8 x 81.3 x 81.3 cm
Ceramic, earthenware, terracotta, porcelain, MDF, wood, enamel
";imgsGallery[10] = new Object();imgsGallery[10].image = "http://www.damelioterras.com/MEDIA/03206.jpg";imgsGallery[10].titles = "Nicole Cherubini
Hydras 2008
64 x 43 x 15 inches
162.6 x 109.2 x 38.1 cm
Ceramic, earthenware, terracotta, porcelain, wood, enamel, luster, 2x4, digital c-prints on watercolor paper, gouache, wax crayon, ink, charcoal, graphite
";imgsGallery[11] = new Object();imgsGallery[11].image = "http://www.damelioterras.com/MEDIA/03207.jpg";imgsGallery[11].titles = "Nicole Cherubini
Hydras (detail) 2008
64 x 43 x 15 inches
162.6 x 109.2 x 38.1 cm
Ceramic, earthenware, terracotta, porcelain, wood, enamel, luster, 2x4, digital c-prints on watercolor paper, gouache, wax crayon, ink, charcoal, graphite
";imgsGallery[12] = new Object();imgsGallery[12].image = "http://www.damelioterras.com/MEDIA/03208.jpg";imgsGallery[12].titles = "Nicole Cherubini
Amphora with Rocks and Loop 2008
66 1/2 x 45 x 30 inches
170.2 x 114.3 x 76.2 cm
Ceramic, earthenware, terracotta, porcelain, wood, enamel, luster, MDF, marble, alabaster, steel
";imgsGallery[13] = new Object();imgsGallery[13].image = "http://www.damelioterras.com/MEDIA/03209.jpg";imgsGallery[13].titles = "Nicole Cherubini
Amphora with Rocks and Loop (detail) 2008
66 1/2 x 45 x 30 inches
170.2 x 114.3 x 76.2 cm
Ceramic, earthenware, terracotta, porcelain, wood, enamel, luster, MDF, marble, alabaster, steel
";imgsGallery[14] = new Object();imgsGallery[14].image = "http://www.damelioterras.com/MEDIA/02194.jpg";imgsGallery[14].titles = "Nicole Cherubini
Vanitas #9 2008
70 x 20 x 20 inches (177.8 x 50.8 x 50.8 cm)
chain, clay, wood
";imgsGallery[15] = new Object();imgsGallery[15].image = "http://www.damelioterras.com/MEDIA/02195.jpg";imgsGallery[15].titles = "Nicole Cherubini
Vanitas #9 (alternate view) 2008
70 x 20 x 20 inches (177.8 x 50.8 x 50.8 cm)
chain, clay, wood
";imgsGallery[16] = new Object();imgsGallery[16].image = "http://www.damelioterras.com/MEDIA/02196.jpg";imgsGallery[16].titles = "Nicole Cherubini
Vanitas #9 (detail) 2008
70 x 20 x 20 inches (177.8 x 50.8 x 50.8 cm)
chain, clay, wood
";imgsGallery[17] = new Object();imgsGallery[17].image = "http://www.damelioterras.com/MEDIA/02192.jpg";imgsGallery[17].titles = "Nicole Cherubini
Hydria with a Lethykos 2008
51 x 43 x 58 inches
129.5 x 109.2 x 147.3 cm
ceramic, terracotta, porcelain, yellow, green and blue crystal ice, mother of pearl luster, 2x4, plywood, mahogony, c-print, watercolor paper, gouache, graphite, ink, aquarelle, wax crayon, enamel, MDF
";imgsGallery[18] = new Object();imgsGallery[18].image = "http://www.damelioterras.com/MEDIA/02193.jpg";imgsGallery[18].titles = "Nicole Cherubini
Hydria with a Lethykos (detail) 2008
51 x 43 x 58 inches
129.5 x 109.2 x 147.3 cm
ceramic, terracotta, porcelain, yellow, green and blue crystal ice, mother of pearl luster, 2x4, plywood, mahogony, c-print, watercolor paper, gouache, graphite, ink, aquarelle, wax crayon, enamel, MDF
";imgsGallery[19] = new Object();imgsGallery[19].image = "http://www.damelioterras.com/MEDIA/02197.jpg";imgsGallery[19].titles = "Nicole Cherubini
Amphora 2007
70 x 64 x 30 inches
177.8 x 162.6 x 76.2 cm
ceramic, terracotta, porcelain, luster, yellow crystal ice, wood, enamel and fake gold and silver chain
";imgsGallery[20] = new Object();imgsGallery[20].image = "http://www.damelioterras.com/MEDIA/02198.jpg";imgsGallery[20].titles = "Nicole Cherubini
G-Pot/Kalpis, With Lion 2006-2007
31 x 31 x 64 inches
78.7 x 78.7 x 162.6 cm
ceramic, luster, yellow, green and white crystal ice, fake gold and silver jewelry, brown rabbit fur, enamel, rebar, mdf and grog
";imgsGallery[21] = new Object();imgsGallery[21].image = "http://www.damelioterras.com/MEDIA/02199.jpg";imgsGallery[21].titles = "Nicole Cherubini
G-Pot/Kalpis, With Lion 2006-2007
31 x 31 x 64 inches
78.7 x 78.7 x 162.6 cm
ceramic, luster, yellow, green and white crystal ice, fake gold and silver jewelry, brown rabbit fur, enamel, rebar, mdf and grog
";imgsGallery[22] = new Object();imgsGallery[22].image = "http://www.damelioterras.com/MEDIA/02204.jpg";imgsGallery[22].titles = "Installation view at Samson Projects, Boston, MA, 2007
";imgsGallery[23] = new Object();imgsGallery[23].image = "http://www.damelioterras.com/MEDIA/02205.jpg";imgsGallery[23].titles = "Installation view at Samson Projects, Boston, MA, 2007
";
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);