//   *********   Random **************

var btnImgArr = new Array(12);btnImgArr[0] = 'ctl5__ctl26_0';btnImgArr[1] = 'ctl5__ctl26_1';btnImgArr[2] = 'ctl5__ctl26_2';btnImgArr[3] = 'ctl5__ctl26_3';btnImgArr[4] = 'ctl5__ctl26_4';btnImgArr[5] = 'ctl5__ctl26_5';btnImgArr[6] = 'ctl5__ctl26_6';btnImgArr[7] = 'ctl5__ctl26_7';btnImgArr[8] = 'ctl5__ctl26_8';btnImgArr[9] = 'ctl5__ctl26_9';btnImgArr[10] = 'ctl5__ctl26_10';btnImgArr[11] = 'ctl5__ctl26_11';
var pause = false;var initialcnt = 0;var initialurl='';var urlArray = new Array(12);
var imgArray = new Array(12);
var textArray = new Array(12);
var salePriceArray = new Array(12);
var strikePriceArray = new Array(12);
var maxCounter = 11;var previousBtnImg;var counter = 0;
var timer =3000; 
var timer1 ;

imgArray[0] ='http://www.florencanto.com.br/ImagesCached/prd_images/RANDOM_signo-de-aquario.jpg';textArray[0] ='Aqu&aacute;rio';
strikePriceArray[0] ='';
salePriceArray[0] ='R$ 95,00';
urlArray[0] = 'http://www.florencanto.com.br/Produto-detalhe.aspx?prd_id=1312&categoryID=5';



imgArray[1] ='http://www.florencanto.com.br/ImagesCached/prd_images/RANDOM_signo-de-peixes.jpg';textArray[1] ='Peixes';
strikePriceArray[1] ='';
salePriceArray[1] ='R$ 95,00';
urlArray[1] = 'http://www.florencanto.com.br/Produto-detalhe.aspx?prd_id=1313&CategoryID=5';



imgArray[2] ='http://www.florencanto.com.br/ImagesCached/prd_images/Random_signo-de-aries.jpg';textArray[2] ='&Aacute;ries';
strikePriceArray[2] ='';
salePriceArray[2] ='R$ 95,00';
urlArray[2] = 'http://www.florencanto.com.br/Produto-detalhe.aspx?prd_id=1314&categoryID=5';



imgArray[3] ='http://www.florencanto.com.br/ImagesCached/prd_images/RANDOM_signo-de-touro.jpg';textArray[3] ='Touro';
strikePriceArray[3] ='';
salePriceArray[3] ='R$ 95,00';
urlArray[3] = 'http://www.florencanto.com.br/Produto-detalhe.aspx?prd_id=1316&categoryID=5';

imgArray[4] ='http://www.florencanto.com.br/ImagesCached/prd_images/RANDOM_signo-de-gemeos.jpg';textArray[4] ='G&ecirc;meos';
strikePriceArray[4] ='';
salePriceArray[4] ='R$ 95,00';
urlArray[4] = 'http://www.florencanto.com.br/Produto-detalhe.aspx?prd_id=1317&categoryID=5';

imgArray[5] ='http://www.florencanto.com.br/ImagesCached/prd_images/RANDOM_signo-de-cancer.jpg';textArray[5] ='C&acirc;ncer';
strikePriceArray[5] ='';
salePriceArray[5] ='R$ 95,00';
urlArray[5] = 'http://www.florencanto.com.br/Produto-detalhe.aspx?prd_id=1318&categoryID=5';

imgArray[6] ='http://www.florencanto.com.br/ImagesCached/prd_images/RANDOM_signo-de-leao.jpg';textArray[6] ='Le&atilde;o';
strikePriceArray[6] ='';
salePriceArray[6] ='R$ 95,00';
urlArray[6] = 'http://www.florencanto.com.br/Produto-detalhe.aspx?prd_id=1320&CategoryID=5';

imgArray[7] ='http://www.florencanto.com.br/ImagesCached/prd_images/RANDOM_signo-de-virgem.jpg';textArray[7] ='Virgem';
strikePriceArray[7] ='';
salePriceArray[7] ='R$ 95,00';
urlArray[7] = 'http://www.florencanto.com.br/Produto-detalhe.aspx?prd_id=1321&CategoryID=5';

imgArray[8] ='http://www.florencanto.com.br/ImagesCached/prd_images/RANDOM_signo-de-libra.jpg';textArray[8] ='Libra';
strikePriceArray[8] ='';
salePriceArray[8] ='R$ 95,00';
urlArray[8] = 'http://www.florencanto.com.br/Produto-detalhe.aspx?prd_id=1322&CategoryID=5';

imgArray[9] ='http://www.florencanto.com.br/ImagesCached/prd_images/RANDOM_signo-de-escorpiao.jpg';textArray[9] ='Escorpi&atilde;o';
strikePriceArray[9] ='';
salePriceArray[9] ='R$ 95,00';
urlArray[9] = 'http://www.florencanto.com.br/Produto-detalhe.aspx?prd_id=1323&CategoryID=5';

imgArray[10] ='http://www.florencanto.com.br/ImagesCached/prd_images/RANDOM_signo-de-sagitario.jpg';textArray[10] ='Sagit&aacute;rio';
strikePriceArray[10] ='';
salePriceArray[10] ='R$ 95,00';
urlArray[10] = 'http://www.florencanto.com.br/Produto-detalhe.aspx?prd_id=1324&CategoryID=5';


imgArray[11] ='http://www.florencanto.com.br/ImagesCached/prd_images/RANDOM_signo-de-capricornio.jpg';textArray[11] ='Capric&oacute;rnio';
strikePriceArray[11] ='';
salePriceArray[11] ='R$ 95,00';
urlArray[11] = 'http://www.florencanto.com.br/Produto-detalhe.aspx?prd_id=1325&CategoryID=5';



var t;	var j = 0 	;	var p = 12;	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('ctl5__ctl26__productimage')!=null)if (document.getElementById('ctl5__ctl26__productname')!=null){if (initialcnt==0){   initialurl =document.getElementById('ctl5__ctl26__productdetails').href;var firstpos=initialurl.lastIndexOf('?');initialurl='';} initialcnt = 1 ;}{ document.getElementById('ctl5__ctl26__productname').href  = urlArray[counter]+initialurl;
 }document.getElementById('ctl5__ctl26__productimage').style.filter='blendTrans(duration=4)';if (document.getElementById('ctl5__ctl26__productname')!=null){ document.getElementById('ctl5__ctl26__productimage').style.filter='blendTrans(duration=crossFadeDuration)'; }if (document.getElementById('ctl5__ctl26__productname')!=null){ if(document.all)document.getElementById('ctl5__ctl26__productimage').filters.blendTrans.Apply() ;}}if (document.getElementById('ctl5__ctl26__productimage')!=null) {document.getElementById('ctl5__ctl26__productimage').src = preLoad[counter].src;}if (document.getElementById('ctl5__ctl26__productname')!=null){ document.getElementById('ctl5__ctl26__productname').innerHTML  = textArray[counter];
}if (document.getElementById('ctl5__ctl26__productsaleprice')!=null){ document.getElementById('ctl5__ctl26__productsaleprice').innerHTML  = salePriceArray[counter];
 }if (document.getElementById('ctl5__ctl26__productstrikeprice')!=null){ document.getElementById('ctl5__ctl26__productstrikeprice').innerHTML  = strikePriceArray[counter];
document.getElementById('ctl5__ctl26__productstrikeprice').href  = urlArray[counter]+initialurl;
 }if (document.getElementById('ctl5__ctl26__productsaleprice')!=null){ document.getElementById('ctl5__ctl26__productsaleprice').href  = urlArray[counter]+initialurl;
 }if (document.getElementById('ctl5__ctl26__productname')!=null)if (document.getElementById('ctl5__ctl26__productdetails')!=null){ document.getElementById('ctl5__ctl26__productdetails').href  = urlArray[counter]+initialurl;
 }if (document.getElementById('ctl5__ctl26__productbuybutton')!=null){ document.getElementById('ctl5__ctl26__productbuybutton').href  = urlArray[counter]+initialurl;
 }if (document.all){if (document.getElementById('ctl5__ctl26__productimage')!=null){document.getElementById('ctl5__ctl26__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('ctl5__ctl26__productimage')!=null)if (document.getElementById('ctl5__ctl26__productname')!=null){if (initialcnt==0){   initialurl =document.getElementById('ctl5__ctl26__productdetails').href;var firstpos=initialurl.lastIndexOf('?');initialurl='';} initialcnt = 1 ;}{document.getElementById('ctl5__ctl26__productimage').src  = imgArray[counter] ;
}if (document.getElementById('ctl5__ctl26__productname')!=null){ document.getElementById('ctl5__ctl26__productname').innerHTML  = textArray[counter];
}if (document.getElementById('ctl5__ctl26__productsaleprice')!=null){ document.getElementById('ctl5__ctl26__productsaleprice').innerHTML  = salePriceArray[counter];
 }if (document.getElementById('ctl5__ctl26__productstrikeprice')!=null){ document.getElementById('ctl5__ctl26__productstrikeprice').innerHTML  = strikePriceArray[counter];
document.getElementById('ctl5__ctl26__productstrikeprice').href  = urlArray[counter];
 }if (document.getElementById('ctl5__ctl26__productsaleprice')!=null){ document.getElementById('ctl5__ctl26__productsaleprice').href  = urlArray[counter]+initialurl;
 }if (document.getElementById('ctl5__ctl26__productname')!=null){ document.getElementById('ctl5__ctl26__productname').href  = urlArray[counter]+initialurl;
 }if (document.getElementById('ctl5__ctl26__productdetails')!=null){ document.getElementById('ctl5__ctl26__productdetails').href  = urlArray[counter]+initialurl;
 }if (document.getElementById('ctl5__ctl26__productbuybutton')!=null){ document.getElementById('ctl5__ctl26__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;}}}}
												






