function LoadLayers(){	runSlideShow();}//Code to control co-branding content frame----------------------------------// Set the slideshow speed (in milliseconds)var SlideShowSpeed = 15000;//-------------------------------------------// Set the duration of crossfade (in seconds)var CrossFadeDuration = .025;//-------------------------------------------var Picture1 = new Array(); // don't change thisvar Picture2 = new Array(); // don't change thisvar Caption = new Array(); // don't change thisvar link = new Array(); // don't change this//logos here---------------------------------Picture1[1] = 'imagefolder/rolling_FLC.gif';Picture1[2] = 'imagefolder/rolling_FLC.gif';/*Picture1[2] = 'imagefolder/rolling_FLC.gif';Picture1[3] = 'imagefolder/rolling_FLC.gif';Picture1[4] = 'imagefolder/gastrogard_logo.gif';Picture1[5] = 'imagefolder/frontline_logo.gif';Picture1[6] = 'imagefolder/ivomec_premix_logo.gif';Picture1[7] = 'imagefolder/oravet_logo.gif';*///-------------------------------------------//right side animal imagefolder here-----------------Picture2[1] = 'imagefolder/rolling_1.jpg';Picture2[2] = 'imagefolder/rolling_1.jpg';/*Picture2[2] = 'imagefolder/rolling_2.jpg';Picture2[3] = 'imagefolder/rolling_3.jpg';Picture2[4] = 'imagefolder/equine_01.jpg';Picture2[5] = 'imagefolder/cat_01.jpg';Picture2[6] = 'imagefolder/swine_02.jpg';Picture2[7] = 'imagefolder/dogcat_01.jpg';*///---------------------------=----------------//taglines here------------------------------Caption[1]  = "<span class='sottotitolo_nero'>Protegge Cani e Gatti da Pulci, Zecche e Pidocchi</span><BR><span class='sottotitolo_verde'>Previene l'infestazione della Casa da uova e larve di Pulci</span><br><br><br>&Egrave; un medicinale veterinario: chiedi consiglio al tuo veterinario. Leggere attentamente il foglio illustrativo. L'uso scorretto pu&ograve; essere nocivo.<br>Aut. Pub. N. 56/VET/2009";Caption[2]  = "<span class='sottotitolo_nero'>Protegge Cani e Gatti da Pulci, Zecche e Pidocchi</span><BR><span class='sottotitolo_verde'>Previene l'infestazione della Casa da uova e larve di Pulci</span><br><br><br>&Egrave; un medicinale veterinario: chiedi consiglio al tuo veterinario. Leggere attentamente il foglio illustrativo. L'uso scorretto pu&ograve; essere nocivo.<br>Aut. Pub. N. 56/VET/2009";/*Caption[2]  = "<br>Elimina le pulci (<i>Ctenocefalides spp.</i>). L'attivit&agrave; nei confronti di nuove infestazioni da pulci adulte persiste per 8 settimane. Previene la moltiplicazione delle pulci inibendo lo sviluppo delle uova (attivit&agrave; ovicida) delle pupe e delle larve (attivit&agrave; larvicida) nate dalle uova deposte dalle pulci adulte, per 8 settimane dopo l’applicazione.<BR>Pu&ograve; essere utilizzato nel programma per il controllo della Dermatite Allergica da Pulce.";Caption[3]  = "<br>Elimina le zecche (<i>Ixodes ricinus</i>, <i>Dermacentor variabilis</i>, <i>Rhipicephalus sanguineus</i>). Il prodotto ha un'attivit&agrave; acaricida nei confronti delle zecche persistente fino a 4 settimane.<BR>Elimina i pidocchi masticatori (<i>Trichodectes canis</i>).<BR>Pu&ograve; essere utilizzato durante la gravidanza e nel periodo dell’allattamento.<BR>Immersioni in acqua o bagni settimanali con shampoo medicati al 2% di clorexidina per 6 settimane non ne riducono l'efficacia.";Caption[4]  = "Gastrogard®, il primo e soltanto il farmaco hanno approvato dalla FDA per trattare ed impedire la ricorrenza delle ulcere gastriche in cavalli, persino mentre i cavalli continuano ad addestrare. Usi prego questo luogo per imparare che più circa EGUS (sindrome equina dell'ulcera gastrica) ed i benefici Gastrogard può fornire nel trattarlo.";Caption[5]  = "Quando viene alle pulci ed ai battiti, non ci è stanza per il compromesso. Ecco perchè più veterinarii scelgono la raccomandazione di FRONTLINE-the #1 dei veterinarii per protezione completa del battito e della pulce per i cani ed i gatti. I prodotti di marca di FRONTLINE offrono il lungo-durevole, la maggior parte di pulce e della protezione complete del battito disponibili. FRONTLINE uccide 100% delle pulci sul vostro animale domestico in 18 ore e continua a funzionare un intero mese o più.";Caption[6]  = "I produttori contano su IVOMEC affinchè i prodotti di marca dei maiali controllino e per sradicare il profitt-furto dei parassiti dei maiali. Quattro formulazioni differenti di IVOMEC per i prodotti di marca dei maiali forniscono la convenienza così come il trattamento efficace ed il controllo della specie nociva di ascaridi, di lungworms, di kidneyworms, di threadworms, di pidocchi e di acari gastrointestinali del mange in maiali.";Caption[7]  = "OraVet funziona in un nuovo senso efficace. Riduce significativamente la formazione del tartaro e della piastra generando una barriera invisibile che impedisce ai batteri di fissare ai denti del vostro animale domestico.";*///-------------------------------------------//links here---------------------------------link[1] = "/pet_owners/index.asp";/*link[2] = "/pet_owners/dogs/fleas.asp"link[3] = "/pet_owners/cats/fleas.asp";link[4] = "/pet_owners/dogs/products_cardotek30.asp";link[5] = "/pet_owners/dogs/products_frontline_combo.asp";link[6] = "/pet_owners/dogs/products_previcox.asp";link[7] = "#";*///--------------------------------------------var tss;var iss;var Lo = 1//var Hi = 9var Hi = 3var ranNum = (getCookie('cobrand')*1)if (ranNum != '' && ranNum != null){ranNum = ranNum + 1}else{ranNum = 1}if (ranNum>Hi) ranNum=1;setCookie('cobrand',ranNum);var jss = ranNum;var pss = Picture1.length-1;var preLoad1 = new Array();for (iss = 1; iss < pss+1; iss++){preLoad1[iss] = new Image();preLoad1[iss].src = Picture1[iss];}var preLoad2 = new Array();for (iss = 1; iss < pss+1; iss++){preLoad2[iss] = new Image();preLoad2[iss].src = Picture2[iss];}function runSlideShow(){if (document.all){document.images.PictureBox1.style.filter="blendTrans(duration="+CrossFadeDuration+")";document.images.PictureBox1.filters.blendTrans.Apply();document.images.PictureBox2.style.filter="blendTrans(duration="+CrossFadeDuration+")";document.images.PictureBox2.filters.blendTrans.Apply();}document.images.PictureBox1.src = preLoad1[jss].src;document.images.PictureBox2.src = preLoad2[jss].src;document.getElementById('logolink').href=link[jss];document.getElementById('piclink').href=link[jss];CrossFadeDuration = .35if (document.all) document.images.PictureBox1.filters.blendTrans.Play();if (document.all) document.images.PictureBox2.filters.blendTrans.Play();if (document.getElementById) document.getElementById("TextLayer").innerHTML= Caption[jss];jss = jss + 1;if (jss > (pss)) jss=1;tss = setTimeout('runSlideShow()', SlideShowSpeed);}	 function getCookie(name) { // use: getCookie("name");  	var objCookie = document.cookie;    var index = objCookie.indexOf(name + "=");    if (index == -1) return null;    index = objCookie.indexOf("=", index) + 1; // first character    var endstr = objCookie.indexOf(";", index);    if (endstr == -1) endstr = objCookie.length; // last character    return unescape(objCookie.substring(index, endstr));  }    function setCookie(name, value) { var days = 365; if (!days) days = 1; // default to 1 day if empty  var expdate = new Date();  expdate.setTime(expdate.getTime() + days*24*60*60*1000);  document.cookie = name + "=" + escape(value) + "; expires=" + expdate.toGMTString();  }   function openImage(imagename,title){//	 width=width of image//	 height=height of image	 strFeatures = 'left=0,top=0,height='+height+',width='+width+',menubar=no,toolbar=no,status=no,scrollbars=no'	 	 window.open(imagename,title,strFeatures); }  function trim(strValue) {  var objRegExp = /^(\s*)$/;  if(objRegExp.test(strValue)) {    strValue = strValue.replace(objRegExp, '');    if( strValue.length == 0)      return strValue;  }  objRegExp = /^(\s*)([\W\w]*)(\b\s*$)/;  if(objRegExp.test(strValue)) {    strValue = strValue.replace(objRegExp, '$2');  }  return strValue;}//Validate email address: function emailCheck (emailStr) {   var emailPat=/^(.+)@(.+)$/   var specialChars="\\(\\)<>@,;:\\\\\\\"\\.\\[\\]"   var validChars="\[^\\s" + specialChars + "\]"   var quotedUser="(\"[^\"]*\")"   var ipDomainPat=/^\[(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})\]$/   var atom=validChars + '+'   var word="(" + atom + "|" + quotedUser + ")"   var userPat=new RegExp("^" + word + "(\\." + word + ")*$")   var domainPat=new RegExp("^" + atom + "(\\." + atom +")*$")   var matchArray=emailStr.match(emailPat)   if (matchArray==null)   {     alert("The Email Address is incorrect (check @ and .'s)")     return false   }   var user=matchArray[1]   var domain=matchArray[2]   if (user.match(userPat)==null)   {     alert("The Username doesn't seem to be valid.")     return false   }   var IPArray=domain.match(ipDomainPat)   if (IPArray!=null)   {     for (var i=1;i<=4;i++)   {   if (IPArray[i]>255)   {     alert("Destination IP address is invalid!")     return false   } } return true }   var domainArray=domain.match(domainPat)     if (domainArray==null)   {     alert("The Domain Name doesn't seem to be valid.")     return false   }   var atomPat=new RegExp(atom,"g")   var domArr=domain.match(atomPat)   var len=domArr.length     if (domArr[domArr.length-1].length<2 || domArr[domArr.length-1].length>3)   {     alert("The Email Address must end in a three-letter domain, or two letter country.")     return false   }   if (len<2)   {     var errStr="The Email Address is missing a hostname!"     alert(errStr)     return false   }   return true; }