var buttonImages = new Array(7);buttonImages[0] = 'rotateStart_0';buttonImages[1] = 'rotateStart_1';buttonImages[2] = 'rotateStart_2';buttonImages[3] = 'rotateStart_3';buttonImages[4] = 'rotateStart_4';buttonImages[5] = 'rotateStart_5';buttonImages[6] = 'rotateStart_6';
var stopAnim = false;
var rotateCount = 0;
var rotateLink='';
var linkArray = new Array(7);
var imageArray = new Array(7);
var copyArray = new Array(7);
var maxNum = 6;var prevImage;var countMe = 0;
var timeMe =2000; 
var timeMe1 ;
imageArray[0] ='/wcsstore/NAPCOB2B/images/17141.jpg';copyArray[0] ='<strong>Dove Urn</strong><br><br>';
linkArray[0] = '/webapp/wcs/stores/servlet/Search?catalogId=11751&storeId=11501&langId=-1&pageSize=12&currentPage=1&beginIndex=0&sType=SimpleSearch&resultCatEntryType=2&ip_navtype=search&searchKeywords=17141&searchCategory=';
imageArray[1] ='/wcsstore/NAPCOB2B/images/19552.jpg';copyArray[1] ='<strong>Angel with Bird</strong><br><br>';
linkArray[1] = '/webapp/wcs/stores/servlet/Search?catalogId=11751&storeId=11501&langId=-1&pageSize=12&currentPage=1&beginIndex=0&sType=SimpleSearch&resultCatEntryType=2&ip_navtype=search&searchKeywords=19552&searchCategory=';
imageArray[2] ='/wcsstore/NAPCOB2B/images/17344.jpg';copyArray[2] ='<strong>Weeping Angel</strong><br><br>';
linkArray[2] = '/webapp/wcs/stores/servlet/Search?catalogId=11751&storeId=11501&langId=-1&pageSize=12&currentPage=1&beginIndex=0&sType=SimpleSearch&resultCatEntryType=2&ip_navtype=search&searchKeywords=17344&searchCategory=';
imageArray[3] ='/wcsstore/NAPCOB2B/images/44586.jpg';copyArray[3] ='<strong>Joy Nativity Scene</strong><br><br>';
linkArray[3] = '/webapp/wcs/stores/servlet/Search?catalogId=11751&storeId=11501&langId=-1&pageSize=12&currentPage=1&beginIndex=0&sType=SimpleSearch&resultCatEntryType=2&ip_navtype=search&searchKeywords=44586&searchCategory=';
imageArray[4] ='/wcsstore/NAPCOB2B/images/64261.jpg';copyArray[4] ='<strong>Blue Metal Centerpiece</strong><br><br>';
linkArray[4] = '/webapp/wcs/stores/servlet/Search?catalogId=11751&storeId=11501&langId=-1&pageSize=12&currentPage=1&beginIndex=0&sType=SimpleSearch&resultCatEntryType=2&ip_navtype=search&searchKeywords=64261&searchCategory=';
imageArray[5] ='/wcsstore/NAPCOB2B/images/77064.jpg';copyArray[5] ='<strong>Harvest Candleholders</strong><br><br>';
linkArray[5] = '/webapp/wcs/stores/servlet/Search?catalogId=11751&storeId=11501&langId=-1&pageSize=12&currentPage=1&beginIndex=0&sType=SimpleSearch&resultCatEntryType=2&ip_navtype=search&searchKeywords=77064&searchCategory=';
imageArray[6] ='/wcsstore/NAPCOB2B/images/31219.jpg';copyArray[6] ='<strong>Dots Vase</strong><br><br>';
linkArray[6] = '/webapp/wcs/stores/servlet/Search?catalogId=11751&storeId=11501&langId=-1&pageSize=12&currentPage=1&beginIndex=0&sType=SimpleSearch&resultCatEntryType=2&ip_navtype=search&searchKeywords=31219&searchCategory=';

var t;	
var j = 0;
var p = 10;
var loadIt = new Array();
for (i = 0; i < p; i++)	{loadIt[i] = new Image();loadIt[i].src = imageArray[i];}
function sliderStart(){
if (stopAnim){return;}  if (document.getElementById){ if(countMe > maxNum)countMe = 0;
if(typeof(SwapColor) == 'function'){SwapColor(countMe);}if (document.getElementById('rotateStart-image')!=null)if (document.getElementById('rotateStart-name')!=null){if (rotateCount==0){   rotateLink =document.getElementById('rotateStart-details').href;var firstpos=rotateLink.lastIndexOf('?');rotateLink=rotateLink.substring(firstpos,rotateLink.length);} rotateCount = 1 ;}{ document.getElementById('rotateStart-name').href  = linkArray[countMe];
}document.getElementById('rotateStart-image').style.filter='blendTrans(duration=4)';if (document.getElementById('rotateStart-name')!=null){ document.getElementById('rotateStart-image').style.filter='blendTrans(duration=crossFadeDuration)'; }if (document.getElementById('rotateStart-name')!=null){ if(document.all)document.getElementById('rotateStart-image').filters.blendTrans.Apply() ;}}if (document.getElementById('rotateStart-image')!=null) {document.getElementById('rotateStart-image').src = loadIt[countMe].src;}if (document.getElementById('rotateStart-name')!=null){ document.getElementById('rotateStart-name').innerHTML  = copyArray[countMe];
}if (document.getElementById('rotateStart-name')!=null)if (document.getElementById('rotateStart-details')!=null){ document.getElementById('rotateStart-details').href  = linkArray[countMe];
}if (document.getElementById('rotateStart-buybutton')!=null){ document.getElementById('rotateStart-buybutton').href  = linkArray[countMe];
}if (document.all){if (document.getElementById('rotateStart-image')!=null){document.getElementById('rotateStart-image').filters.blendTrans.Play();}} t = setTimeout('sliderStart()',timeMe);
if (stopAnim==false)countMe++;
} t = setTimeout('sliderStart()', timeMe);
function SwapImage(){if(countMe > maxNum)countMe = 0;
if(typeof(SwapColor) == 'function'){SwapColor(countMe)};if (document.getElementById('rotateStart-image')!=null)if (document.getElementById('rotateStart-name')!=null){if (rotateCount==0){   rotateLink =document.getElementById('rotateStart-details').href;var firstpos=rotateLink.lastIndexOf('?');rotateLink=rotateLink.substring(firstpos,rotateLink.length);} rotateCount = 1 ;}{document.getElementById('rotateStart-image').src  = imageArray[countMe] ;
}if (document.getElementById('rotateStart-name')!=null){ document.getElementById('rotateStart-name').innerHTML  = copyArray[countMe];
}if (document.getElementById('rotateStart-name')!=null){ document.getElementById('rotateStart-name').href  = linkArray[countMe];
}if (document.getElementById('rotateStart-details')!=null){ document.getElementById('rotateStart-details').href  = linkArray[countMe];
}if (document.getElementById('rotateStart-buybutton')!=null){ document.getElementById('rotateStart-buybutton').href  = linkArray[countMe];
} if (stopAnim==false) timeMe1 = window.setTimeout('SwapImage()', timeMe);
if (stopAnim==false)countMe++;
}
function SwapColor(index)
{
for(i=0;i < buttonImages.length; i++)
{
if (document.getElementById(buttonImages[i])!=null)
{
if(i==index)
{
var val = document.getElementById(buttonImages[i]).src;
var newstring = val.replace("_off","_on");
document.getElementById(buttonImages[i]).src = newstring;
}
else
{
var val = document.getElementById(buttonImages[i]).src;
var newstring = val.replace("_on","_off");
document.getElementById(buttonImages[i]).src = newstring;

}
}
}	
}
