var dynimages=new Array()
dynimages[0]=["http://site.giftshop1234.com/img/yst/1234-wedding-front-bride-groom.jpg", "http://www.giftshop1234.com/occasion-wedding-brides-grooms.html", "i"]
dynimages[1]=["http://site.giftshop1234.com/img/yst/1234-wedding-front-cake-toppers.jpg", "http://www.giftshop1234.com/occasion-wedding-cake-toppers.html", "i"]
dynimages[2]=["http://site.giftshop1234.com/img/yst/1234-wedding-front-collectibles.jpg", "http://www.giftshop1234.com/occasion-wedding-collectibles.html", "i"]
dynimages[3]=["http://site.giftshop1234.com/img/yst/1234-wedding-front-dining.jpg", "http://www.giftshop1234.com/occasion-wedding-dining.html", "i"]
dynimages[4]=["http://site.giftshop1234.com/img/yst/1234-wedding-front-frames.jpg", "http://www.giftshop1234.com/occasion-wedding-frames-clocks.html", "i"]
dynimages[5]=["http://site.giftshop1234.com/img/yst/1234-wedding-front-home-decor.jpg", "http://www.giftshop1234.com/occasion-wedding-home-hecor.html", "i"]
dynimages[6]=["http://site.giftshop1234.com/img/yst/1234-wedding-front-limoges-boxes.jpg", "http://www.giftshop1234.com/occasion-wedding-limoges-hoxes.html", "i"]
dynimages[7]=["http://site.giftshop1234.com/img/yst/1234-wedding-front-ring-holders.jpg", "http://www.giftshop1234.com/occasion-wedding-ring-holders.html", "i"]

var scrolltext="no"

var preloadimg="yes"

var optlinktarget=""

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)"

if (preloadimg=="yes"){
for (x=0; x<dynimages.length; x++){
if (dynimages[x][2]=='i'){
var myimage=new Image()
myimage.src=dynimages[x][0]
}
}
}

function returnimgcode(theimg){
var imghtml=""
if (theimg[1]!="")
imghtml='<a href="'+theimg[1]+'" target="'+optlinktarget+'">'
if (theimg[2]=="i")
imghtml+='<img src="'+theimg[0]+'" border="'+imgborderwidth+'">'
if (theimg[2]=="t"){
scrollHeight=(document.getElementById)?document.getElementById('dynloadarea').style.height:document.all('dynloadarea').style.height
scrollWidth=(document.getElementById)?document.getElementById('dynloadarea').style.width:document.all('dynloadarea').style.width
imghtml+='<iframe src="'+theimg[0]+'" frameborder="'+imgborderwidth+'" height="'+scrollHeight+'" width="'+scrollWidth+'" scrolling="'+scrolltext+'"></iframe>'
}
if (theimg[1]!="")
imghtml+='</a>'
return imghtml
}

function modifyimage(loadarea, imgindex){
get_cap('');
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
}
}

function get_cap(cap){
if (document.getElementById){
document.getElementById('caploadarea').innerHTML=cap;}
else if (document.all){
document.all('caploadarea').innerHTML=cap;}
else{
return;}
}