<!-- Begin VIEWER OPTIONS CODE



// CHANGE ANY OF THESE VARIABLES FOR THE IMAGE VIEWER



//  use only lowercase on options







var viewer 		= "same"	 	// OPTIONS: | new | popup | same | New browser or a popup

var width 		= "800"		// WIDTH OF THE POPUP

var height 		= "625"		// HEIGHT OF THE POPUP

var scrollbars	= "yes"		// SHOW SCROLLBARS IN POPUP - yes OR no

var menu		= "no"		// SHOW MENU IN POPUP - yes OR no

var tool		= "no"		// SHOW TOOLBAR IN POPUP - yes OR no











// COPYRIGHT 2008 © DST1 Design Corporation

// Unauthorized use or sale of this script is strictly prohibited by law



// YOU DO NOT NEED TO EDIT BELOW THIS LINE













// START IMAGE VIEW CODE



function ViewImage(data) {

   if (viewer == "popup") {

    windowHandle = window.open('image-viewer.htm' + '?' + data,'windowName',',scrollbars='+scrollbars+',resizable=yes,toolbar='+tool+',menubar='+menu+',width='+width+',height='+height+'');



}

else if (viewer == "new") {

    windowHandle = window.open('image-viewer.htm' + '?' + data,'windowName');

}

else if (viewer == "same") {

    window.location = ('image-viewer.htm' + '?' + data);

}

}



// END IMAGE VIEW CODE









// START IMAGE GALLERY PAGE CHANGER CODE





function Changer(direction)

{



if (null == direction)

{



if ((lastTime + delay) > new Date().getTime())

{

direction = 0;

}



else

{

direction = currentDirection;

}

}



else

{

currentDirection = direction;

}



if (direction != 0)

{



if (direction > 0)

{



currentSlide++;



if (currentSlide > (slides.length - 1))

{

currentSlide = 0;

}

}



else

{



currentSlide = currentSlide-1;



if (currentSlide < 0)

{

currentSlide = (slides.length - 1);

}

}



lastTime = new Date().getTime();



update(slides[currentSlide]);



setTimeout("Changer();",delay);

}

}

var currentIndex = 0;



function update(url, index) 

{

currentIndex = index;

document['MainImage'].src=url;

{



}

return;

}







// End -->
