var btnImgArr = new Array(10);
	btnImgArr[0] = '_ctl3__ctl23_0';
	btnImgArr[1] = '_ctl3__ctl23_1';
	btnImgArr[2] = '_ctl3__ctl23_2';
	btnImgArr[3] = '_ctl3__ctl23_3';
	btnImgArr[4] = '_ctl3__ctl23_4';
	btnImgArr[5] = '_ctl3__ctl23_5';
	btnImgArr[6] = '_ctl3__ctl23_6';
	btnImgArr[7] = '_ctl3__ctl23_7';
	btnImgArr[8] = '_ctl3__ctl23_8';
	btnImgArr[9] = '_ctl3__ctl23_9'; 
var pause = false;
var initialcnt = 0;
var initialurl='';
var urlArray = new Array(10);
var imgArray = new Array(10);
var textArray = new Array(10);
var salePriceArray = new Array(10);
var strikePriceArray = new Array(10);
var maxCounter = 5; // sets how many elements are on display
var previousBtnImg;var counter = 0;
var timer =3000; var timer1 ;

imgArray[0] ='http://dlgallerygifts.com/Merchant2/display_files/img_1.jpg';
textArray[0] ='Valencia Home Office ';
strikePriceArray[0] ='<strike>$295-$1650</strike>';
salePriceArray[0] ='$259-$1395';
urlArray[0] = 'http://www.dlgallerygifts.com/coordinating_collections/vho.html';

imgArray[1] ='http://dlgallerygifts.com/Merchant2/display_files/img_2.jpg';
textArray[1] ='Tahiti Bedroom Collection ';
strikePriceArray[1] ='<strike>$277-$1525</srike>';
salePriceArray[1] ='$235-1295';
urlArray[1] = 'http://dlgallerygifts.com/cgi-bin/mivavm?Merchant2/merchant.mvc+Screen=CTGY&Store_Code=DO&Category_Code=tabed';

imgArray[2] ='http://dlgallerygifts.com/Merchant2/display_files/img_3.jpg';
textArray[2] ='Abigail Collection ';
strikePriceArray[2] ='';
salePriceArray[2] ='$295-$1295';
urlArray[2] = 'http://dlgallerygifts.com/cgi-bin/mivavm?Merchant2/merchant.mvc+Screen=CTGY&Store_Code=DO&Category_Code=abig';

imgArray[3] ='http://dlgallerygifts.com/Merchant2/display_files/img_4.jpg ';
textArray[3] ='Gedek Dining Collection ';
strikePriceArray[3] ='';
salePriceArray[3] ='$195-$1895';
urlArray[3] = 'http://www.dlgallerygifts.com/cgi-bin/mivavm?Merchant2/merchant.mvc+Screen=CTGY&Store_Code=DO&Category_Code=gedek';

imgArray[4] ='http://dlgallerygifts.com/Merchant2/display_files/img_5.jpg';
textArray[4] ='Desert Sands Bar W/ Stone Top ';
strikePriceArray[4] ='';
salePriceArray[4] ='$995';
urlArray[4] = 'http://www.dlgallerygifts.com/Merchant2/merchant.mvc?Screen=CTGY&Store_Code=DO&Category_Code=crb';

imgArray[5] ='http://dlgallerygifts.com/Merchant2/display_files/img_6.jpg';
textArray[5] ='Malibu Outdoor Chaise Lounge ';
strikePriceArray[5] ='';
salePriceArray[5] ='$895';
urlArray[5] = 'http://dlgallerygifts.com/Merchant2/merchant.mvc?Screen=PROD&Product_Code=MC-1000&Category_Code=mopc';

imgArray[6] ='http://dlgallerygifts.com/Merchant2/display_files/MBQstarburst2_grn07_m.jpg';textArray[6] ='Mom`s Sunshine ';
strikePriceArray[6] ='';
salePriceArray[6] ='$29.99';
urlArray[6] = 'http://products.proflowers.com/flowers/MomsSunshine-6275';

imgArray[7] ='http://dlgallerygifts.com/Merchant2/display_files/CAR24Easter_grn_m.jpg';textArray[7] ='Two Dozen Carnations for Mom';
strikePriceArray[7] ='';
salePriceArray[7] ='$29.99';
urlArray[7] = 'http://products.proflowers.com/mothersday/TwoDozenCarnationsforMom-41199';

imgArray[8] ='http://dlgallerygifts.com/Merchant2/display_files/PLT6ingardbsktbow2_07_m.jpg';textArray[8] ='Potted Gardenia for Mom';
strikePriceArray[8] ='<strike>$54.99</strike>';
salePriceArray[8] ='$49.99';
urlArray[8] = 'http://products.proflowers.com/plants/PottedGardeniaforMom-41171';
imgArray[9] ='http://dlgallerygifts.com/Merchant2/display_files/Mday3Day07_m.jpg';textArray[9] ='Three Day Tribute to Mom ';
strikePriceArray[9] ='<strike>$139.96</strike>';
salePriceArray[9] ='$99.96';
urlArray[9] = 'http://products.proflowers.com/mothersday/ThreeDayTributetoMom-41247';
var t;	var j = 0 	;	var p = 10;	var preLoad = new Array(); for (i = 0; i < p; i++)	{preLoad[i] = new Image();preLoad[i].src = imgArray[i];	}
function runSlideShow(){  if (pause){return;}  if (document.getElementById){ if(counter > maxCounter)counter = 0;
if(typeof(ChangeColor) == 'function'){ChangeColor(counter);}if (document.getElementById('_ctl3__ctl23__productimage')!=null)if (document.getElementById('_ctl3__ctl23__productname')!=null){if (initialcnt==0){   initialurl =document.getElementById('_ctl3__ctl23__productdetails').href;var firstpos=initialurl.lastIndexOf('?');initialurl=initialurl.substring(firstpos,initialurl.length);} initialcnt = 1 ;}{ document.getElementById('_ctl3__ctl23__productname').href  = urlArray[counter]+initialurl;
 }document.getElementById('_ctl3__ctl23__productimage').style.filter='blendTrans(duration=4)';if (document.getElementById('_ctl3__ctl23__productname')!=null){ document.getElementById('_ctl3__ctl23__productimage').style.filter='blendTrans(duration=crossFadeDuration)'; }if (document.getElementById('_ctl3__ctl23__productname')!=null){ if(document.all)document.getElementById('_ctl3__ctl23__productimage').filters.blendTrans.Apply() ;}}if (document.getElementById('_ctl3__ctl23__productimage')!=null) {document.getElementById('_ctl3__ctl23__productimage').src = preLoad[counter].src;}if (document.getElementById('_ctl3__ctl23__productname')!=null){ document.getElementById('_ctl3__ctl23__productname').innerHTML  = textArray[counter];
}if (document.getElementById('_ctl3__ctl23__productsaleprice')!=null){ document.getElementById('_ctl3__ctl23__productsaleprice').innerHTML  = salePriceArray[counter];
 }if (document.getElementById('_ctl3__ctl23__productstrikeprice')!=null){ document.getElementById('_ctl3__ctl23__productstrikeprice').innerHTML  = strikePriceArray[counter];
document.getElementById('_ctl3__ctl23__productstrikeprice').href  = urlArray[counter]+initialurl;
 }if (document.getElementById('_ctl3__ctl23__productsaleprice')!=null){ document.getElementById('_ctl3__ctl23__productsaleprice').href  = urlArray[counter]+initialurl;
 }if (document.getElementById('_ctl3__ctl23__productname')!=null)if (document.getElementById('_ctl3__ctl23__productdetails')!=null){ document.getElementById('_ctl3__ctl23__productdetails').href  = urlArray[counter]+initialurl;
 }if (document.getElementById('_ctl3__ctl23__productbuybutton')!=null){ document.getElementById('_ctl3__ctl23__productbuybutton').href  = urlArray[counter]+initialurl;
 }if (document.all){if (document.getElementById('_ctl3__ctl23__productimage')!=null){document.getElementById('_ctl3__ctl23__productimage').filters.blendTrans.Play();}} t = setTimeout('runSlideShow()',timer);
if (pause==false)counter++;
} t = setTimeout('runSlideShow()', timer);
function changeImage(){if(counter > maxCounter)counter = 0;
if(typeof(ChangeColor) == 'function'){ChangeColor(counter)};if (document.getElementById('_ctl3__ctl23__productimage')!=null)if (document.getElementById('_ctl3__ctl23__productname')!=null){if (initialcnt==0){   initialurl =document.getElementById('_ctl3__ctl23__productdetails').href;var firstpos=initialurl.lastIndexOf('?');initialurl=initialurl.substring(firstpos,initialurl.length);} initialcnt = 1 ;}{document.getElementById('_ctl3__ctl23__productimage').src  = imgArray[counter] ;
}if (document.getElementById('_ctl3__ctl23__productname')!=null){ document.getElementById('_ctl3__ctl23__productname').innerHTML  = textArray[counter];
}if (document.getElementById('_ctl3__ctl23__productsaleprice')!=null){ document.getElementById('_ctl3__ctl23__productsaleprice').innerHTML  = salePriceArray[counter];
 }if (document.getElementById('_ctl3__ctl23__productstrikeprice')!=null){ document.getElementById('_ctl3__ctl23__productstrikeprice').innerHTML  = strikePriceArray[counter];
document.getElementById('_ctl3__ctl23__productstrikeprice').href  = urlArray[counter];
 }if (document.getElementById('_ctl3__ctl23__productsaleprice')!=null){ document.getElementById('_ctl3__ctl23__productsaleprice').href  = urlArray[counter]+initialurl;
 }if (document.getElementById('_ctl3__ctl23__productname')!=null){ document.getElementById('_ctl3__ctl23__productname').href  = urlArray[counter]+initialurl;
 }if (document.getElementById('_ctl3__ctl23__productdetails')!=null){ document.getElementById('_ctl3__ctl23__productdetails').href  = urlArray[counter]+initialurl;
 }if (document.getElementById('_ctl3__ctl23__productbuybutton')!=null){ document.getElementById('_ctl3__ctl23__productbuybutton').href  = urlArray[counter]+initialurl;
 } if (pause==false) timer1 = window.setTimeout('changeImage()', timer);
if (pause==false)counter++;
}


function ChangeColor(index){for(i=0;i < btnImgArr.length; i++){if (document.getElementById(btnImgArr[i])!=null){if(i==index){var val = document.getElementById(btnImgArr[i]).src;var newstring = val.replace("_off","_on");document.getElementById(btnImgArr[i]).src = newstring;}else{var val = document.getElementById(btnImgArr[i]).src;var newstring = val.replace("_on","_off");document.getElementById(btnImgArr[i]).src = newstring;}}}}