/********************************************/
/*				funciones.js	     		*/
/*  		Autor: Alex cáceres 			*/
/********************************************/
uds=0;
function visorp(id,w,h){
	url="visorproductos.php?id="+id;

	
	x=(screen.Width-w)/2;
	y=(screen.Height-h)/2;
	ventana=window.open(url,'popup','width='+w+',height='+h+',left='+x+',top='+y+',location=no,scrollbars=no,resize=no,status=no');
	//la doy foco
	ventana.focus();
	
}

function showHide(id){
	if(document.getElementById(id).style.display=="block" ){
		if(document.getElementById("lista_"+id))
		{
			document.getElementById("lista_"+id).className = "";
		}
		
		document.getElementById(id).style.display="none";
		document.getElementById("img_"+id).src=document.getElementById("img_"+id).src.replace("minus","plus");
	}else{
		document.getElementById(id).style.display="block";
		document.getElementById("img_"+id).src=document.getElementById("img_"+id).src.replace("plus","minus");
		if(document.getElementById("lista_"+id))
		{
			document.getElementById("lista_"+id).className = "active";
		}
	}
}



//Alex rollOver 2.0
function over(id){
	on=document.getElementById(id).src;
	document.getElementById(id).src=on.replace("off.gif","on.gif");
}

//Alex rollOut 2.0
function out(id){
	off=document.getElementById(id).src;
	document.getElementById(id).src=off.replace("on.gif","off.gif");
}
