//Specify the slider's width (in pixels)
var sliderwidth="172px"
//Specify the slider's height
var sliderheight="235px"
//Specify the slider's slide speed (larger is faster 1-10)
var slidespeed=1
//configure background color:
slidebgcolor=""
//how many miliseconds to pause
pauseForMiliseconds=4000


//Specify the slider's images
var leftrightslide=new Array()
var finalslide=''


function titleLine(title){
	theTitle='<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td class=rdhomenews><b>'+title+'</b></td></tr></table>';
	return theTitle
}
function prodLine(img,prod,txt,vlink){
	theProd='<table width="100%"  border="0" cellspacing="0" cellpadding="0"><tr valign="top"><td width="50"><img src="peluqueria/fotos/'+img+'" width="50" height="71" class="ProductBorder"></td><td width="7"><img src="icon/nada.gif" width="7" height="10"></td><td class=rdhomenews><strong>'+prod+'</strong><br>'+txt+'<br><a href="'+vlink+'" class="rdhomenews">Leer m&aacute;s &raquo;</a> </td></tr></table>';
	return theProd
}

var emptyLine = '<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td>&nbsp;</td></tr></table>'
var dotsLine = '<table width="100%"  border="0" cellspacing="0" cellpadding="0"><tr><td height="18" ><div align="center"><img src="icon/dots.gif" width="169" height="5"></div></td></tr></table>';

leftrightslide[0]= emptyLine;
leftrightslide[1]= titleLine('Lanzamientos:');
leftrightslide[2]= emptyLine;
leftrightslide[3]=prodLine('lan2165mini.jpg','Salerm Cosmetics','Color Soft: más capacidad, más color...','peluqueria/articulo_display.php?numero=2165');
leftrightslide[4]=dotsLine;
leftrightslide[5]=prodLine('lan2166mini.jpg','Indola','Nueva imagen en su línea para cabello maduro Innova Age Expertise...','peluqueria/articulo_display.php?numero=2166');
leftrightslide[6]=dotsLine;
leftrightslide[7]=prodLine('lan2090mini.jpg','Capel-lo','Nueva línea de productos para el mantenimiento de las extensiones...','peluqueria/articulo_display.php?numero=2090');
leftrightslide[8]=dotsLine;
leftrightslide[9]=prodLine('lan1654mini.jpg','Cindarella','Cocoon Nude lavacabezas regulable...','peluqueria/articulo_display.php?numero=1654');
leftrightslide[10]=dotsLine;
leftrightslide[11]=prodLine('lan2169mini.jpg','Schwarzkopf','Lujoso champú en crema que ofrece un cuidado máximo...','peluqueria/articulo_display.php?numero=2169');
leftrightslide[12]=dotsLine;
leftrightslide[13]=prodLine('lan1657mini.jpg','Selective Professional','Nuevos productos refuerzan la línea Artistic Flair...','peluqueria/articulo_display.php?numero=1657');
leftrightslide[14]=dotsLine;
leftrightslide[15]=prodLine('lan1659mini.jpg','Sassoon Professional','Nueva línea Color Protect...','peluqueria/articulo_display.php?numero=1659');
leftrightslide[16]=dotsLine;
leftrightslide[17]= emptyLine;
leftrightslide[18]= titleLine('Novedades:');
leftrightslide[19]= emptyLine;
leftrightslide[20]=prodLine('nov1668mini.jpg','Sangrá Hair','Extensiones quita y pon...','peluqueria/articulo_display.php?numero=1668');
leftrightslide[21]=dotsLine;
leftrightslide[22]=prodLine('nov1629mini.jpg','Nanomax','Reconstrucción capilar avanzada...','peluqueria/articulo_display.php?numero=1629');
leftrightslide[23]=dotsLine;
leftrightslide[24]=prodLine('nov1543mini.jpg','Artero','Protege tus tijeras con el Cube System...','peluqueria/articulo_display.php?numero=1543');
leftrightslide[25]=dotsLine;
leftrightslide[26]=prodLine('nov1541mini.jpg','Yunsey','Vida y color para el cabello...','peluqueria/articulo_display.php?numero=1541');
leftrightslide[27]=dotsLine;
leftrightslide[28]=prodLine('nov2188mini.jpg','L\'Oréal Professionnel','Llega INOA, la coloración del futuro...','peluqueria/articulo_display.php?numero=2188');
leftrightslide[29]=dotsLine;

//Specify gap between each image (use HTML):
var imagegap=" "

//Specify pixels gap between each slideshow rotation (use integer):
var slideshowgap=0
var counter=0


////NO NEED TO EDIT BELOW THIS LINE////////////

var copyspeed=slidespeed
leftrightslide='<nobr>'+leftrightslide.join(imagegap)+'</nobr>'
var iedom=document.all||document.getElementById
if (iedom)
document.write('<span id="temp" style="visibility:hidden;position:absolute;top:-100px;left:-100px">'+leftrightslide+'</span>')
var actualheight=''
var pelcross_slide, peluns_slide

function pelfillup(){
if (iedom){
	pelcross_slide=document.getElementById? document.getElementById("test2pp") : document.all.test2pp
	pelcross_slide2=document.getElementById? document.getElementById("test3pp") : document.all.test3pp
	pelcross_slide3=document.getElementById? document.getElementById("test4pp") : document.all.test4pp
	pelcross_slide.innerHTML=pelcross_slide2.innerHTML=pelcross_slide3.innerHTML=leftrightslide
	actualheight=document.all? pelcross_slide.offsetHeight : document.getElementById("temp").offsetHeight
	pelcross_slide2.style.top=actualheight+slideshowgap+"px"
	pelcross_slide3.style.top=(2*actualheight)+(2*slideshowgap)+"px"
	}
	else if (document.layers){
	peluns_slide=document.peluns_slidemenu.document.peluns_slidemenu2
	peluns_slide2=document.peluns_slidemenu.document.peluns_slidemenu3
	peluns_slide3=document.peluns_slidemenu.document.peluns_slidemenu4
	
	peluns_slide.document.write(leftrightslide)
	peluns_slide.document.close()
	
	actualheight=peluns_slide.document.height
	peluns_slide2.top=actualheight+slideshowgap
	peluns_slide2.document.write(leftrightslide)
	peluns_slide2.document.close()
	
	peluns_slide3.top=(2*actualheight)+(2*slideshowgap)
	peluns_slide3.document.write(leftrightslide)
	peluns_slide3.document.close()
	}

	lefttime=setInterval("pelslideup()",30)
	
}

window.onload=pelfillup



function pelslideup(){
if (iedom){
	
	if (parseInt(pelcross_slide.style.top)>(actualheight*(-1)+8))
	pelcross_slide.style.top=parseInt(pelcross_slide.style.top)-copyspeed+"px"
	else
	pelcross_slide.style.top=parseInt(pelcross_slide3.style.top)+actualheight+slideshowgap+"px"

	if (parseInt(pelcross_slide2.style.top)>(actualheight*(-1)+8))
	pelcross_slide2.style.top=parseInt(pelcross_slide2.style.top)-copyspeed+"px"
	else
	pelcross_slide2.style.top=parseInt(pelcross_slide.style.top)+actualheight+slideshowgap+"px"

	if (parseInt(pelcross_slide3.style.top)>(actualheight*(-1)+8))
	pelcross_slide3.style.top=parseInt(pelcross_slide3.style.top)-copyspeed+"px"
	else
	pelcross_slide3.style.top=parseInt(pelcross_slide2.style.top)+actualheight+slideshowgap+"px"

	if(copyspeed==0)
	setTimeout("copyspeed=slidespeed",pauseForMiliseconds);
	
	
	
	
	
	
	if (iedom)
	x=(parseInt(pelcross_slide.style.top) % actualheight)
	else
	x=(parseInt(peluns_slide.top) % actualheight)
	
	if(x==0) {
		copyspeed=0;
		setTimeout("copyspeed=slidespeed",pauseForMiliseconds);
	}
	
	


}
	else if (document.layers){
	if (peluns_slide.top>(actualheight*(-1)+8))
	peluns_slide.top-=copyspeed
	else
	peluns_slide.top=peluns_slide3.top+actualheightslideshowgap
	
	if (peluns_slide2.top>(actualheight*(-1)+8))
	peluns_slide2.top-=copyspeed
	else
	peluns_slide2.top=peluns_slide.top+actualheight+slideshowgap
	
	if (peluns_slide3.top>(actualheight*(-1)+8))
	peluns_slide3.top-=copyspeed
	else
	peluns_slide3.top=peluns_slide2.top+actualheight+slideshowgap
	}
}


if (iedom||document.layers){
with (document){
document.write('<table border="0" cellspacing="0" cellpadding="0"><td>')
if (iedom){
write('<div style="position:relative;width:'+sliderwidth+';height:'+sliderheight+';overflow:hidden">')
write('<div style="position:absolute;width:'+sliderwidth+';height:'+sliderheight+';background-color:'+slidebgcolor+'" onMouseover="copyspeed=0" onMouseout="copyspeed=slidespeed">')
write('<div id="test2pp" style="position:absolute;left:0px;top:0px"></div>')
write('<div id="test3pp" style="position:absolute;left:0px;top:-1px"></div>')
write('<div id="test4pp" style="position:absolute;left:0px;top:-2px"></div>')
write('</div></div>')
}
else if (document.layers){
write('<ilayer width='+sliderwidth+' height='+sliderheight+' name="peluns_slidemenu" bgColor='+slidebgcolor+'>')
write('<layer name="peluns_slidemenu2" left=0 top=0 onMouseover="copyspeed=0" onMouseout="copyspeed=slidespeed"></layer>')
write('<layer name="peluns_slidemenu3" left=0 top=0 onMouseover="copyspeed=0" onMouseout="copyspeed=slidespeed"></layer>')
write('<layer name="peluns_slidemenu4" left=0 top=0 onMouseover="copyspeed=0" onMouseout="copyspeed=slidespeed"></layer>')
write('</ilayer>')
}
document.write('</td></table>')
}
}
