/***********************************************
* Image Thumbnail Viewer II script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* Visit http://www.dynamicDrive.com for hundreds of DHTML scripts
* This notice must stay intact for legal use
***********************************************/

//Specify image paths and optional link (set link to "" for no link):
/*
var dynimages=new Array()
dynimages[0]=["images/ALLAN.JPG"]
dynimages[1]=["images/JESSIE.JPG"]
dynimages[2]=["images/HENRYT.JPG"]

var dyndesc=new Array()
dyndesc[0]=["<b>Allan Tan Hwa Heng</b><br><br>Dancing has been Allan's passion since the 80's. As a competitor, he has amassed many amateur and professional titles in Latin Dance and Rock N Roll at major international events held in Indonesia, Malaysia, Taiwan and Singapore and Sri Lanka.<br><br>Allan is an accredited coach and has since coached many top Latin Dance couples for competition and is reputed to be one of the best coach in Singapore. Allan is also an International Adjudicator, judging at many major dance championships around the world."]
dyndesc[1]=["<b>Jessie Loh</b><br><br>A truly and committed instructor who is not only friendly but also well-liked by many of her students. Always clear and thorough in her teaching, learning dancing from her is definitely much easier and less stressful. Besides her many years of experience in the dance circle both as a competitor and a teacher, Jessie is also a Member of the renowned and internationally recognized United Kingdom Alliance (UKA, England)"]
dyndesc[2]=["<b>Henry Tan</b><br><Br>Henry and Jessica has been teaching and dancing competitively since 1987 prior to turning professional in 1991. Since then, the have attained internationally recognized qualifications from various prestigious dance organization such the UKA and World Dance and Dance Sport Council. In addition, they are also international adjudicator licensed by World Dance and Dance Sport Council as well as international scrutineer licensed by British Dance Council."]
*/
//Preload images ("yes" or "no"):
var preloadimg="yes"

//Set optional link target to be added to all images with a link:
var optlinktarget=""

//Set image border width
var imgborderwidth=5

//Optionally, change 1.0 and 0.7 below to affect Wipe gradient size and duration in seconds in IE5.5+:
var filterstring="progid:DXImageTransform.Microsoft.GradientWipe(GradientSize=1.0 Duration=0.7)"

///////No need to edit beyond here/////

if (preloadimg=="yes"){
for (x=0; x<dynimages.length; x++){
var myimage=new Image()
myimage.src=dynimages[x][0]
}
}

function returnimgcode(theimg,thedesc){
var imghtml=""
imghtml+='<img src="'+theimg[0]+'" border="'+imgborderwidth+'" style="border-color:#CC80B3;"><br><br>'
imghtml+=thedesc[0]
return imghtml
}

function modifyimage(loadarea, imgindex){
if (document.getElementById){
var imgobj=document.getElementById(loadarea)
if (imgobj.filters && window.createPopup){
imgobj.style.filter=filterstring
imgobj.filters[0].Apply()
}
imgobj.innerHTML=returnimgcode(dynimages[imgindex],dyndesc[imgindex])
if (imgobj.filters && window.createPopup)
imgobj.filters[0].Play()
return false
}
}

