//   *********   Random **************

var btnImgArr = new Array(10);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';
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 = 9;var previousBtnImg;var counter = 0;
var timer =3000; 
var timer1 ;



imgArray[0] ='http://www.florencanto.com.br/ImagesCached/prd_images/RANDOM_bouque-branco_rosas.jpg';textArray[0] = 'Rosas Brancas Importadas';
strikePriceArray[0] ='';
salePriceArray[0] ='R$ 290,00';
urlArray[0] = 'http://www.florencanto.com.br/Produto-detalhe.aspx?prd_id=1738&CategoryID=26';


imgArray[1] ='http://www.florencanto.com.br/ImagesCached/prd_images/RANDOM_bouque-vermelho_noiva.jpg';textArray[1] ='Rosas Vermelhas Importadas';
strikePriceArray[1] ='';
salePriceArray[1] ='R$ 230,00';
urlArray[1] = 'http://www.florencanto.com.br/Produto-detalhe.aspx?prd_id=1739&CategoryID=26';


imgArray[2] ='http://www.florencanto.com.br/ImagesCached/prd_images/RANDOM_bouquet-noivas-lisia.jpg';textArray[2] ='Lisianthus';
strikePriceArray[2] ='';
salePriceArray[2] ='R$ 188,00';
urlArray[2] = 'http://www.florencanto.com.br/Produto-detalhe.aspx?prd_id=657&CategoryID=26';



imgArray[3] ='http://www.florencanto.com.br/ImagesCached/prd_images/RANDOM_bouquet-noivas-gerbe.jpg';textArray[3] ='Gerberas e Alstroemerias importadas';
strikePriceArray[3] ='';
salePriceArray[3] ='R$ 168,00';
urlArray[3] = 'http://www.florencanto.com.br/Produto-detalhe.aspx?prd_id=655&CategoryID=26';



imgArray[4] ='http://www.florencanto.com.br/ImagesCached/prd_images/RANDOM_bouquet-noivas-calla.jpg';textArray[4] ='Callas';
strikePriceArray[4] ='';
salePriceArray[4] ='R$ 265,00';
urlArray[4] = 'http://www.florencanto.com.br/Produto-detalhe.aspx?prd_id=660&CategoryID=26';



imgArray[5] ='http://www.florencanto.com.br/ImagesCached/prd_images/RANDOM_bouquet-noivas-rosas.jpg';textArray[5] ='Rosas Mix';
strikePriceArray[5] ='';
salePriceArray[5] ='R$ 203,00';
urlArray[5] = 'http://www.florencanto.com.br/Produto-detalhe.aspx?prd_id=659&CategoryID=26';



imgArray[6] ='http://www.florencanto.com.br/ImagesCached/prd_images/RANDOM_bouquet-colorido-noivas.jpg';textArray[6] ='Rosas coloridas e miolos de hortencia';
strikePriceArray[6] ='';
salePriceArray[6] ='R$ 225,00';
urlArray[6] = 'http://www.florencanto.com.br/Produto-detalhe.aspx?prd_id=1128&CategoryID=26';



imgArray[7] ='http://www.florencanto.com.br/ImagesCached/prd_images/RANDOM_noiva_bouquet_lilas.jpg';textArray[7] ='Rosas Lilases';
strikePriceArray[7] ='';
salePriceArray[7] ='R$ 240,00';
urlArray[7] = 'http://www.florencanto.com.br/Produto-detalhe.aspx?prd_id=780&CategoryID=26';



imgArray[8] ='http://www.florencanto.com.br/ImagesCached/prd_images/RANDOM_bouquet-noiva-tulipas-roxa.jpg';textArray[8] ='Tulipas Roxas';
strikePriceArray[8] ='';
salePriceArray[8] ='R$ 260,00';
urlArray[8] = 'http://www.florencanto.com.br/Produto-detalhe.aspx?prd_id=936&CategoryID=26';



imgArray[9] ='http://www.florencanto.com.br/ImagesCached/prd_images/RANDOM_rosaRosaPink_pq.jpg';textArray[9] ='Mix Rosas Pink';
strikePriceArray[9] ='';
salePriceArray[9] ='R$ 203,00';
urlArray[9] = 'http://www.florencanto.com.br/Produto-detalhe.aspx?prd_id=731&CategoryID=26';



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('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;}}}}
												


