// -------------------------------------------------------------------
// Image Thumbnail Viewer II- By Dynamic Drive, available at: http://www.dynamicdrive.com
// Last updated: Feb 5th, 2007
// -------------------------------------------------------------------

var thumbnailviewer2={
enableTitle: true, //Should "title" attribute of link be used as description?
enableTransition: true, //Enable fading transition in IE?
hideimgmouseout: false, //Hide enlarged image when mouse moves out of anchor link? (if enlarged image is hyperlinked, always set to false!)

/////////////No need to edit beyond here/////////////////////////

iefilterstring: 'progid:DXImageTransform.Microsoft.GradientWipe(GradientSize=1.0 Duration=0.7)', //IE specific multimedia filter string
iefiltercapable: document.compatMode && window.createPopup? true : false, //Detect browser support for IE filters
preloadedimages:[], //array to preload enlarged images (ones set to display "onmouseover"
targetlinks:[], //array to hold participating links (those with rel="enlargeimage:initType")
alreadyrunflag: false, //flag to indicate whether init() function has been run already come window.onload

loadimage:function(linkobj){
var imagepath=linkobj.getAttribute("href") //Get URL to enlarged image
var showcontainer=document.getElementById(linkobj.getAttribute("rev").split("::")[0]) //Reference container on page to show enlarged image in
var dest=linkobj.getAttribute("rev").split("::")[1] //Get URL enlarged image should be linked to, if any
var description=(thumbnailviewer2.enableTitle && linkobj.getAttribute("title"))? linkobj.getAttribute("title") : "" //Get title attr
var imageHTML='<img src="'+imagepath+'" class="detailedImg" />' //Construct HTML for enlarged image
if (typeof dest!="undefined") //Hyperlink the enlarged image?
imageHTML='<a href="'+dest+'">'+imageHTML+'</a>'
if (description!="") //Use title attr of the link as description?

if (description=="Art1") {
description = "<span class='picinfo'><b>Bridge of Sighs</b><table><tr><td width='50%' class='picinfo'>15\" x 22\"<p></td><td width='50%' class='picinfo'><a href='mailto:cwelnerart@gmail.com'>Buy Gicl&egrave;e</a></td></tr></table></span>";
}
if (description=="Art2") {
description = "<span class='picinfo'><b>Celedon Vases</b><table><tr><td width='50%' class='picinfo'> </td><td>Sold</td></tr></table></span>";
}
if (description=="Art3") {
description = "<span class='picinfo'><b>Dried Flowers</b><table><tr><td width='50%' class='picinfo'>15\" x 22\"</td><td width='50%' class='picinfo'><a href='mailto:cwelnerart@gmail.com'>Limited Edition Print/a></td></tr></table></span>";
}
if (description=="Art4") {
description = "<span class='picinfo'><b>Fall Bounty</b><table><tr><td width='50%' class='picinfo'>15\" x 22\"</td><td width='50%' class='picinfo'><a href='mailto:cwelnerart@gmail.com'>Buy Original</a></td></tr></table></span>";
}
if (description=="Art5") {
description = "<span class='picinfo'><b>Spring Flowers</b><table><tr><td width='50%' class='picinfo'>4\" x 5\"</td><td width='50%' class='picinfo'><a href='mailto:cwelnerart@gmail.com'>Buy Gicl&egrave;e</a></td></tr></table></span>";
}
if (description=="Art6") {
description = "<span class='picinfo'><b>Nature's Gifts</b><table><tr><td width='50%' class='picinfo'>11\" x 15\"</td><td width='50%' class='picinfo'><a href='mailto:cwelnerart@gmail.com'>Buy Gicl&egrave;e</a></td></tr></table></span>";
}
if (description=="Art8") {
description = "<span class='picinfo'><b>Picket Fence</b><table><tr><td width='50%' class='picinfo'>4\" x 5\"</td><td width='50%' class='picinfo'><a href='mailto:cwelnerart@gmail.com'>Buy Gicl&egrave;e</a></td></tr></table></span>";
}
if (description=="Art9") {
description = "<span class='picinfo'><b>Rhododendron</b><table><tr><td width='50%' class='picinfo'></td><td width='50%' class='picinfo'>Sold</td></tr></table></span>";
}
if (description=="Art10") {
description = "<span class='picinfo'><b>Roses</b><table><tr><td width='50%' class='picinfo'>22\" x 15\"</td><td width='50%' class='picinfo'><a href='mailto:cwelnerart@gmail.com'>Buy Gicl&egrave;e</a></td></tr></table></span>";
}
if (description=="Art11") {
description = "<span class='picinfo'><b>Solitude</b><table><tr><td width='50%' class='picinfo'>15\" x 22\"</td><td width='50%' class='picinfo'><a href='mailto:cwelnerart@gmail.com'>Buy Gicl&egrave;e</a></td></tr></table></span>";
}
if (description=="Art12") {
description = "<span class='picinfo'><b>Sunflowers and Delphiniums</b><table><tr><td width='50%' class='picinfo'>4\" x 5\" or 8 x 10\"</td><td width='50%' class='picinfo'><a href='mailto:cwelnerart@gmail.com'>Buy Gicl&egrave;e</a></td></tr></table></span>";
}
if (description=="Art13") {
description = "<span class='picinfo'><b>The Gatherer</b><table><tr><td width='50%' class='picinfo'>15\" x 22\"</td><td width='50%' class='picinfo'><a href='mailto:cwelnerart@gmail.com'>Buy Gicl&egrave;e</a></td></tr></table></span>";
}
if (description=="Art14") {
description = "<span class='picinfo'><b>Venice Canal</b><table><tr><td width='50%' class='picinfo'>15\" x 22\"</td><td width='50%' class='picinfo'><a href='mailto:cwelnerart@gmail.com'>Buy Gicl&egrave;e</a></td></tr></table></span>";
}
if (description=="Art15") {
description = "<span class='picinfo'><b>Wild Asters</b><table><tr><td width='50%' class='picinfo'></td><td width='50%' class='picinfo'>Sold</td></tr></table></span>";
}
if (description=="Art16") {
description = "<span class='picinfo'><b>Ohio Barn</b><table><tr><td width='50%' class='picinfo'>4\" x 5\"</td><td width='50%' class='picinfo'><a href='mailto:cwelnerart@gmail.com'>Buy Gicl&egrave;e</a></td></tr></table></span>";
}
if (description=="Art17") {
description = "<span class='picinfo'><b>Old Homestead</b><table><tr><td width='50%' class='picinfo'>10\" x 13\"</td><td width='50%' class='picinfo'><a href='mailto:cwelnerart@gmail.com'>Buy Original</a></td></tr></table></span>";
}
if (description=="Art18") {
description = "<span class='picinfo'><b>Rhododendron II</b><table><tr><td width='50%' class='picinfo'>10\" x 13\"</td><td width='50%' class='picinfo'><a href='mailto:cwelnerart@gmail.com'>Buy Original</a></td></tr></table></span>";
}
if (description=="Art19") {
description = "<span class='picinfo'><b>Winter Stream</b><table><tr><td width='50%' class='picinfo'>10\" x 13\"</td><td width='50%' class='picinfo'><a href='mailto:cwelnerart@gmail.com'>Buy Original</a></td></tr></table></span>";
}
if (description=="Art20") {
description = "<span class='picinfo'><b>Magnolia Branch</b><table><tr><td width='50%' class='picinfo'>10 1/2\" x 15\"</td><td width='50%' class='picinfo'><a href='mailto:cwelnerart@gmail.com'>Buy Original</a></td></tr></table></span>";
}
if (description=="Art21") {
description = "<span class='picinfo'><b>Fruit and Flowers</b><table><tr><td width='50%' class='picinfo'>11\" x 13\"</td><td width='50%' class='picinfo'><a href='mailto:cwelnerart@gmail.com'>Buy Original</a></td></tr></table></span>";
}
if (description=="Art22") {
description = "<span class='picinfo'><b>Daisies and Buttercups</b><table><tr><td width='50%' class='picinfo'>10\" x 14\"</td><td width='50%' class='picinfo'><a href='mailto:cwelnerart@gmail.com'>Buy Original</a></td></tr></table></span>";
}
if (description=="Art23") {
description = "<span class='picinfo'><b>Tiger Lillies</b><table><tr><td width='50%' class='picinfo'>9\" x 13\"</td><td width='50%' class='picinfo'><a href='mailto:cwelnerart@gmail.com'>Buy Original</a></td></tr></table></span>";
}
if (description=="Art24") {
description = "<span class='picinfo'><b>Water Lillies</b><table><tr><td width='50%' class='picinfo'>7 1/2\" x 11\"</td><td width='50%' class='picinfo'><a href='mailto:cwelnerart@gmail.com'>Buy Original</a></td></tr></table></span>";
}
if (description=="Art25") {
description = "<span class='picinfo'><b>Roses II</b><table><tr><td width='50%' class='picinfo'>14\" x 10\"</td><td width='50%' class='picinfo'><a href='mailto:cwelnerart@gmail.com'>Buy Original</a></td></tr></table></span>";
}
if (description=="Art26") {
description = "<span class='picinfo'><b>Tree Peonies</b><table><tr><td width='50%' class='picinfo'>10\" x 13\"</td><td width='50%' class='picinfo'><a href='mailto:cwelnerart@gmail.com'>Buy Original</a></td></tr></table></span>";
}
if (description=="Art27") {
description = "<span class='picinfo'><b>Sunflowers</b><table><tr><td width='50%' class='picinfo'>8\" x 10 1/2\"</td><td width='50%' class='picinfo'><a href='mailto:cwelnerart@gmail.com'>Buy Original</a></td></tr></table></span>";
}
if (description=="Art29") {
description = "<span class='picinfo'><b>Dogwood</b><table><tr><td width='50%' class='picinfo'>8\" x 16\"</td><td width='50%' class='picinfo'><a href='mailto:cwelnerart@gmail.com'>Buy Original</a></td></tr></table></span>";
}
if (description=="Art30") {
description = "<span class='picinfo'><b>Tulips</b><table><tr><td width='50%' class='picinfo'>8\" x 13\"</td><td width='50%' class='picinfo'><a href='mailto:cwelnerart@gmail.com'>Buy Original</a></td></tr></table></span>";
}
if (description=="Art31") {
description = "<span class='picinfo'><b>Farmhouse in Winter</b><table><tr><td width='50%' class='picinfo'>10 1/2\" x 15\"</td><td width='50%' class='picinfo'><a href='mailto:cwelnerart@gmail.com'>Buy Original</a></td></tr></table></span>";
}
if (description=="Art32") {
description = "<span class='picinfo'><b>Autumn in Ohio</b><table><tr><td width='50%' class='picinfo'>10\" x 12 1/2\"</td><td width='50%' class='picinfo'><a href='mailto:cwelnerart@gmail.com'>Buy Original</a></td></tr></table></span>";
}
if (description=="Art33") {
description = "<span class='picinfo'><b>Pink Blooms</b><table><tr><td width='50%' class='picinfo'>8\" x 13\"</td><td width='50%' class='picinfo'><a href='mailto:cwelnerart@gmail.com'>Buy Original</a></td></tr></table></span>";
}
if (description=="Art34") {
description = "<span class='picinfo'><b>The Flower Box</b><table><tr><td width='50%' class='picinfo'>10 1/2\" x 13\"</td><td width='50%' class='picinfo'><a href='mailto:cwelnerart@gmail.com'>Buy Original</a></td></tr></table></span>";
}
if (description=="Art35") {
description = "<span class='picinfo'><b>Country Home</b><table><tr><td width='50%' class='picinfo'>10\" x 13\"</td><td width='50%' class='picinfo'><a href='mailto:cwelnerart@gmail.com'>Buy Original</a></td></tr></table></span>";
}
if (description=="Art36") {
description = "<span class='picinfo'><b>Sunset</b><table><tr><td width='50%' class='picinfo'>6\" x 10 1/2\"</td><td width='50%' class='picinfo'><a href='mailto:cwelnerart@gmail.com'>Buy Gicl&egrave;e</a></td></tr></table></span>";
}
if (description=="Art37") {
description = "<span class='picinfo'><b>Wild Geese</b><table><tr><td width='50%' class='picinfo'>8\" x 10 1/2\"</td><td width='50%' class='picinfo'><a href='mailto:cwelnerart@gmail.com'>Buy Original</a></td></tr></table></span>";
}
if (description=="Art38") {
description = "<span class='picinfo'><b>Cottage Garden</b><table><tr><td width='50%' class='picinfo'>8\" x 10 1/2\"</td><td width='50%' class='picinfo'><a href='mailto:cwelnerart@gmail.com'>Buy Original</a></td></tr></table></span>";
}
if (description=="Art39") {
description = "<span class='picinfo'><b>Horseshoe Pond</b><table><tr><td width='50%' class='picinfo'>8\" x 10 1/2\"</td><td width='50%' class='picinfo'><a href='mailto:cwelnerart@gmail.com'>Buy Original</a></td></tr></table></span>";
}
if (description=="Art40") {
description = "<span class='picinfo'><b>Barn Treasures</b><table><tr><td width='50%' class='picinfo'>11\" x 13\"</td><td width='50%' class='picinfo'><a href='mailto:cwelnerart@gmail.com'>Buy Original</a></td></tr></table></span>";
}
if (description=="Art41") {
description = "<span class='picinfo'><b>Sunflowers and Daisies</b><table><tr><td width='50%' class='picinfo'>14\" x 15\"</td><td width='50%' class='picinfo'><a href='mailto:cwelnerart@gmail.com'>Buy Original</a></td></tr></table></span>";
}
if (description=="Art42") {
description = "<span class='picinfo'><b>Daffodils</b><table><tr><td width='50%' class='picinfo'>17\" x 14\"</td><td width='50%' class='picinfo'><a href='mailto:cwelnerart@gmail.com'>Buy Original</a></td></tr></table></span>";
}
if (description=="Art43") {
description = "<span class='picinfo'><b>Feeding Time</b><table><tr><td width='50%' class='picinfo'>14\" x 20 1/2\"</td><td width='50%' class='picinfo'><a href='mailto:cwelnerart@gmail.com'>Buy Original</a></td></tr></table></span>";
}
if (description=="Art44") {
description = "<span class='picinfo'><b>Frozen Stream</b><table><tr><td width='50%' class='picinfo'>10\" x 12 1/2\"</td><td width='50%' class='picinfo'><a href='mailto:cwelnerart@gmail.com'>Buy Original</a></td></tr></table></span>";
}
if (description=="Art45") {
description = "<span class='picinfo'><b>Mixed Bouquet</b><table><tr><td width='50%' class='picinfo'>15\" x 22\"</td><td width='50%' class='picinfo'><a href='mailto:cwelnerart@gmail.com'>Buy Original</a></td></tr></table></span>";
}
if (description=="Art46") {
description = "<span class='picinfo'><b>Woodland Stream</b><table><tr><td width='50%' class='picinfo'>11\" x 17\"</td><td width='50%' class='picinfo'><a href='mailto:cwelnerart@gmail.com'>Buy Original</a></td></tr></table></span>";
}
if (description=="Art47") {
description = "<span class='picinfo'><b>Garden Mix</b><table><tr><td width='50%' class='picinfo'>4\" x 5\"</td><td width='50%' class='picinfo'><a href='mailto:cwelnerart@gmail.com'>Buy Original</a></td></tr></table></span>";
}
if (description=="Art48") {
description = "<span class='picinfo'><b>Blue and White Vases</b><table><tr><td width='50%' class='picinfo'>4\" x 5\"</td><td width='50%' class='picinfo'><a href='mailto:cwelnerart@gmail.com'>Buy Original</a></td></tr></table></span>";
}
if (description=="Art49") {
description = "<span class='picinfo'><b>Mountain Vista</b><table><tr><td width='50%' class='picinfo'>4\" x 5\"</td><td width='50%' class='picinfo'>Sold</td></tr></table></span>";
}
if (description=="Art50") {
description = "<span class='picinfo'><b>Rockport Seascape</b><table><tr><td width='50%' class='picinfo'>4\" x 5\"</td><td width='50%' class='picinfo'><a href='mailto:cwelnerart@gmail.com'>Buy Original</a></td></tr></table></span>";
}
if (description=="Art51") {
description = "<span class='picinfo'><b>A Cold Day</b><table><tr><td width='50%' class='picinfo'>4\" x 5\"</td><td width='50%' class='picinfo'><a href='mailto:cwelnerart@gmail.com'>Buy Original</a></td></tr></table></span>";
}
if (description=="Art52") {
description = "<span class='picinfo'><b>Maroon Bells</b><table><tr><td width='50%' class='picinfo'>4\" x 5\"</td><td width='50%' class='picinfo'><a href='mailto:cwelnerart@gmail.com'>Buy Original</a></td></tr></table></span>";
}
if (description=="Art53") {
description = "<span class='picinfo'><b>Yellow Roses</b><table><tr><td width='50%' class='picinfo'>4\" x 5\"</td><td width='50%' class='picinfo'><a href='mailto:cwelnerart@gmail.com'>Buy Gicl&egrave;e</a></td></tr></table></span>";
}
if (description=="Art55") {
description = "<span class='picinfo'><b>The Old Hudson</b><table><tr><td width='50%' class='picinfo'>8\" x 10 1/2\"</td><td width='50%' class='picinfo'><a href='mailto:cwelnerart@gmail.com'>Buy Original</a></td></tr></table></span>";
}
if (description=="Art57") {
description = "<span class='picinfo'><b>Crashing Surf</b><table><tr><td width='50%' class='picinfo'>8\" x 10 1/2\"</td><td width='50%' class='picinfo'><a href='mailto:cwelnerart@gmail.com'>Buy Original</a></td></tr></table></span>";
}
if (description=="Art58") {
description = "<span class='picinfo'><b>In The Ravine</b><table><tr><td width='50%' class='picinfo'>8\" x 10 1/2\"</td><td width='50%' class='picinfo'><a href='mailto:cwelnerart@gmail.com'>Buy Original</a></td></tr></table></span>";
}
if (description=="Art59") {
description = "<span class='picinfo'><b>Autumn Birches</b><table><tr><td width='50%' class='picinfo'>8\" x 10 1/2\"</td><td width='50%' class='picinfo'><a href='mailto:cwelnerart@gmail.com'>Buy Original</a></td></tr></table></span>";
}
if (description=="Art60") {
description = "<span class='picinfo'><b>Daisies and Violets</b><table><tr><td width='50%' class='picinfo'>10\" x 14\"</td><td width='50%' class='picinfo'><a href='mailto:cwelnerart@gmail.com'>Buy Original</a></td></tr></table></span>";
}
if (description=="Art61") {
description = "<span class='picinfo'><b>Birches by the Stream</b><table><tr><td width='50%' class='picinfo'>14\" x 10\"</td><td width='50%' class='picinfo'><a href='mailto:cwelnerart@gmail.com'>Buy Original</a></td></tr></table></span>";
}
if (description=="Art62") {
description = "<span class='picinfo'><b>Fallen Logs</b><table><tr><td width='50%' class='picinfo'>10\" x 13\"</td><td width='50%' class='picinfo'><a href='mailto:cwelnerart@gmail.com'>Buy Original</a></td></tr></table></span>";
}

imageHTML+='<br />'+description
if (this.iefiltercapable){ //Is this an IE browser that supports filters?
showcontainer.style.filter=this.iefilterstring
showcontainer.filters[0].Apply()
}
showcontainer.innerHTML=imageHTML
this.featureImage=showcontainer.getElementsByTagName("img")[0] //Reference enlarged image itself
this.featureImage.onload=function(){ //When enlarged image has completely loaded
if (thumbnailviewer2.iefiltercapable) //Is this an IE browser that supports filters?
showcontainer.filters[0].Play()
}
this.featureImage.onerror=function(){ //If an error has occurred while loading the image to show
if (thumbnailviewer2.iefiltercapable) //Is this an IE browser that supports filters?
showcontainer.filters[0].Stop()
}
},

hideimage:function(linkobj){
var showcontainer=document.getElementById(linkobj.getAttribute("rev").split("::")[0]) //Reference container on page to show enlarged image in
showcontainer.innerHTML=""
},


cleanup:function(){ //Clean up routine on page unload
if (this.featureImage){this.featureImage.onload=null; this.featureImage.onerror=null; this.featureImage=null}
this.showcontainer=null
for (var i=0; i<this.targetlinks.length; i++){
this.targetlinks[i].onclick=null
this.targetlinks[i].onmouseover=null
this.targetlinks[i].onmouseout=null
}
},

addEvent:function(target, functionref, tasktype){ //assign a function to execute to an event handler (ie: onunload)
var tasktype=(window.addEventListener)? tasktype : "on"+tasktype
if (target.addEventListener)
target.addEventListener(tasktype, functionref, false)
else if (target.attachEvent)
target.attachEvent(tasktype, functionref)
},

init:function(){ //Initialize thumbnail viewer script
this.iefiltercapable=(this.iefiltercapable && this.enableTransition) //True or false: IE filters supported and is enabled by user
var pagelinks=document.getElementsByTagName("a")
for (var i=0; i<pagelinks.length; i++){ //BEGIN FOR LOOP
if (pagelinks[i].getAttribute("rel") && /enlargeimage:/i.test(pagelinks[i].getAttribute("rel"))){ //Begin if statement: Test for rel="enlargeimage"
var initType=pagelinks[i].getAttribute("rel").split("::")[1] //Get display type of enlarged image ("click" or "mouseover")
if (initType=="mouseover"){ //If type is "mouseover", preload the enlarged image for quicker display
this.preloadedimages[this.preloadedimages.length]=new Image()
this.preloadedimages[this.preloadedimages.length-1].src=pagelinks[i].href
pagelinks[i]["onclick"]=function(){ //Cancel default click action
return false
}
}
pagelinks[i]["on"+initType]=function(){ //Load enlarged image based on the specified display type (event)
thumbnailviewer2.loadimage(this) //Load image
return false
}
if (this.hideimgmouseout)
pagelinks[i]["onmouseout"]=function(){
thumbnailviewer2.hideimage(this)
}
this.targetlinks[this.targetlinks.length]=pagelinks[i] //store reference to target link
} //end if statement
} //END FOR LOOP


} //END init() function

}


if (document.addEventListener) //Take advantage of "DOMContentLoaded" event in select Mozilla/ Opera browsers for faster init
thumbnailviewer2.addEvent(document, function(){thumbnailviewer2.alreadyrunflag=1; thumbnailviewer2.init()}, "DOMContentLoaded") //Initialize script on page load
else if (document.all && document.getElementsByTagName("a").length>0){ //Take advantage of "defer" attr inside SCRIPT tag in IE for instant init
thumbnailviewer2.alreadyrunflag=1
thumbnailviewer2.init()
}
thumbnailviewer2.addEvent(window, function(){if (!thumbnailviewer2.alreadyrunflag) thumbnailviewer2.init()}, "load") //Default init method: window.onload
thumbnailviewer2.addEvent(window, function(){thumbnailviewer2.cleanup()}, "unload")
