/***********************************************
* 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]=["file=Water-efficiency.flv","Water Efficiency for Golf"]
dynimages[1]=["file=KTVN-news.flv","KTVN-TV Reno"]
dynimages[2]=["file=Brad-Snavely.flv","Brad Snavely Soil Analysis"]
dynimages[3]=["file=Growing-Pumerias.flv","Growing Pumerias"]
dynimages[4]=["file=Growing-Corn.flv","Growing Corn"]
dynimages[5]=["file=Wolf-run.flv","Wolf Run"]
dynimages[6]=["file=DAndrea.flv","D'Andrea"]

//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=0

//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){
var imghtml=""
imghtml+="<embed src='Videos/AQUA-vidplayer-320.swf' width='360' height='304' loop='false' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer'  allowfullscreen='False' type='application/x-shockwave-flash' flashvars='"+theimg[0]+"' wmode='transparent' play='true' ></embed>"
imghtml+='<br><font class="textLarge">'+theimg[1]+'</font>'


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])
if (imgobj.filters && window.createPopup)
imgobj.filters[0].Play()
return false
}
}

