//   *********   Random **************

var btnImgArr = new Array(8);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'; 
var pause = false;var initialcnt = 0;var initialurl='';var urlArray = new Array(8);
var imgArray = new Array(8);
var textArray = new Array(8);
var salePriceArray = new Array(8);
var strikePriceArray = new Array(8);
var maxCounter = 7;var previousBtnImg;var counter = 0;
var timer =3000; 
var timer1 ;





var t;	var j = 0 	;	var p = 8;	var preLoad = new Array(); for (i = 0; i < p; i++)	{preLoad[i] = new Image();preLoad[i].src = imgArray[i];	}



//   *********   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_mensageira-universo-s.jpg';textArray[0] ='Da&iacute; - A Mensageira do Universo';
strikePriceArray[0] ='';
salePriceArray[0] ='R$ 137,00';
urlArray[0] = 'http://www.florencanto.com.br/Produto-detalhe.aspx?prd_id=1353&categoryID=6';



imgArray[1] ='http://www.florencanto.com.br/ImagesCached/prd_images/Random_mensageira-protecao-s.jpg';textArray[1] ='BONAN - A Mensageira da Prote&ccedil;&atilde;o';
strikePriceArray[1] ='';
salePriceArray[1] ='R$ 137,00';
urlArray[1] = 'http://www.florencanto.com.br/Produto-detalhe.aspx?prd_id=1351&CategoryID=6';



imgArray[2] ='http://www.florencanto.com.br/ImagesCached/prd_images/RANDOM_topi_white.jpg';textArray[2] ='Duetos';
strikePriceArray[2] ='';
salePriceArray[2] ='R$ 94,00';
urlArray[2] = 'http://www.florencanto.com.br/Produto-detalhe.aspx?prd_id=1278&CategoryID=1';



imgArray[3] ='http://www.florencanto.com.br/ImagesCached/prd_images/RANDOM_sapo-cadeira-rosas.jpg';textArray[3] ='Te quero, Te espero';
strikePriceArray[3] ='';
salePriceArray[3] ='R$ 104,00';
urlArray[3] = 'http://www.florencanto.com.br/Produto-detalhe.aspx?prd_id=1359&CategoryID=1';



imgArray[4] ='http://www.florencanto.com.br/ImagesCached/prd_images/RANDOM_signo-aquario-novo-aeon.jpg';textArray[4] ='Aqu&aacute;rio';
strikePriceArray[4] ='';
salePriceArray[4] ='R$ 110,00';
urlArray[4] = 'http://www.florencanto.com.br/Produto-detalhe.aspx?prd_id=1312&categoryID=5';



imgArray[5] ='http://www.florencanto.com.br/ImagesCached/prd_images/RANDOM_mensageira-uniao-s.jpg';textArray[5] ='YI - A Mensageira da Uni&atilde;o';
strikePriceArray[5] ='';
salePriceArray[5] ='R$ 137,00';
urlArray[5] = 'http://www.florencanto.com.br/Produto-detalhe.aspx?prd_id=1349&CategoryID=6';



imgArray[6] ='http://www.florencanto.com.br/ImagesCached/prd_images/Random_mensageira-exercicios-s.jpg';textArray[6] ='Mulan - A Mensageira dos Exerc&iacute;cios';
strikePriceArray[6] ='';
salePriceArray[6] ='R$ 137,00';
urlArray[6] = 'http://www.florencanto.com.br/Produto-detalhe.aspx?prd_id=1348&CategoryID=6';


imgArray[7] ='http://www.florencanto.com.br/ImagesCached/prd_images/RANDOM_ismael_vasinhos_sementes.jpg';textArray[7] ='Ismael - O Duende Semeador';
strikePriceArray[7] ='';
salePriceArray[7] ='R$ 94,00';
urlArray[7] = 'http://www.florencanto.com.br/Produto-detalhe.aspx?prd_id=1390&CategoryID=21';



imgArray[8] ='http://www.florencanto.com.br/ImagesCached/prd_images/RANDOM_Owl_soberb.jpg';textArray[8] ='Doce Presen&ccedil;a';
strikePriceArray[8] ='';
salePriceArray[8] ='R$ 102,00';
urlArray[8] = 'http://www.florencanto.com.br/Produto-detalhe.aspx?prd_id=921&CategoryID=1';



imgArray[9] ='http://www.florencanto.com.br/ImagesCached/prd_images/RANDOM_ILUMINA.jpg';textArray[9] ='Ilumina';
strikePriceArray[9] ='';
salePriceArray[9] ='R$ 128,00';
urlArray[9] = 'http://www.florencanto.com.br/Produto-detalhe.aspx?prd_id=808&CategoryID=12';



imgArray[10] ='http://www.florencanto.com.br/ImagesCached/prd_images/RANDOM_orquidea-cattleya-amarela.jpg';textArray[10] ='Fiori De La Citta';
strikePriceArray[10] ='';
salePriceArray[10] ='R$ 146,00';
urlArray[10] = 'http://www.florencanto.com.br/Produto-detalhe.aspx?prd_id=1127&CategoryID=12';




imgArray[11] ='http://www.florencanto.com.br/ImagesCached/prd_images/random_lucky-bamboo_3_sb.jpg';textArray[11] ='Tr&ecirc;s Desejos';
strikePriceArray[11] ='';
salePriceArray[11] ='R$ 136,00';
urlArray[11] = 'http://www.florencanto.com.br/Produto-detalhe.aspx?prd_id=787&CategoryID=22';



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;}}}}
												












