var autoCambiado=false;function cambiarImagen(opt,automatico){if(automatico){for(x=0;x<imgTotal;x++){if(!imagenes[x].complete)return}}if(!automatico&&autoCambiado)autoCambiado=false;imgActual+=opt;if(imgActual==imgTotal)imgActual=0;else if(imgActual<0)imgActual=imgTotal-1;document.prodImg.src=imagenes[imgActual].src;document.prodImg.alt=imagenes[imgActual].alt}function autoCambiar(){if(autoCambiado){cambiarImagen(1,true);setTimeout("autoCambiar()",2500)}}function popUp(URL){day=new Date();id=day.getTime();window.open(URL,null,"toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=1,resizable=0,width=790,height=500,left = 245,top = 262")}function popUpAyuda(URL){day=new Date();id=day.getTime();window.open(URL,null,"toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=300,height=400,left = 245,top = 262")}function popUpFinancia(URL){day=new Date();id=day.getTime();window.open(URL,null,"toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=610,height=370,left = 245,top = 262")}function td(d){if(document.getElementById){var o=document.getElementById(d);if((o.style.display=="block")||(o.style.display==""))o.style.display="none";else o.style.display="block"}}function showonlyone(thechosenone){var o=document.getElementById(thechosenone);if((o.style.display=="block"))o.style.display="none";var newboxes=document.getElementsByTagName("div");for(var x=0;x<newboxes.length;x++){name=newboxes[x].getAttribute("name");if(name=='newboxes'){if(newboxes[x].id==thechosenone){newboxes[x].style.display='block'}else{newboxes[x].style.display='none'}}}}
