function verDiv(nombreDiv,ver)
{
	elemento = document.getElementById(nombreDiv);
	if (ver == 'on')
	{
    	//************** Aparecer
        document.getElementById(nombreDiv).style.visibility='hidden';
	}
	else
	{
       //************** Desaparecer
        document.getElementById(nombreDiv).style.visibility='hidden';
	}
	return false;

}

function oculta(a, b)
{
a = document.getElementById(a);
c = b.tipo_producto[0].selected;


if(a.style.display=="block" || c==false)
{
a.style.display = "none";
} else {
a.style.display = "block";
}

}
/*************** sube carrito baja carrito   ********************/
 
    var initHeight = 0;
	var slidedown_direction = 1;
	var slidedownContentBox = false;
	var slidedownContent = false;
	var slidedownActive = false;
	var contentHeight = false;
	var slidedownSpeed = 3; 	// Higher value = faster script
	var slidedownTimer = 7;	// Lower value = faster script
	function slidedown_showHide()
	{
		if(initHeight==0)slidedown_direction=slidedownSpeed; else slidedown_direction = slidedownSpeed*-1;
		if(!slidedownContentBox){
			slidedownContentBox = document.getElementById('dhtmlgoodies_contentBox');
			slidedownContent = document.getElementById('dhtmlgoodies_content');
			contentHeight = document.getElementById('dhtmlgoodies_content').offsetHeight;
			contentHeight = contentHeight ;
			//alert(contentHeight);

		}
		slidedownContentBox.style.visibility='visible';
		cambiaFlecha('arriba'); //spequeno
		slidedownActive = true;
		slidedown_showHide_start();

	}
	function slidedown_showHide_start()
	{
		if(!slidedownActive)return;
		initHeight = initHeight/1 + slidedown_direction;
		if(initHeight <= 0){
			slidedownActive = false;	
			slidedownContentBox.style.visibility='hidden';
			cambiaFlecha('abajo'); //spequeno
			initHeight = 0;
		}
		if(initHeight>contentHeight){
			slidedownActive = false;	
		}
		//slidedownContentBox.style.height = initHeight + 9  + 'px';
		//slidedownContent.style.top = initHeight - contentHeight - 3 + 'px';
		slidedownContentBox.style.height = initHeight + 'px';
		slidedownContent.style.top = initHeight - contentHeight + 'px';
		setTimeout('slidedown_showHide_start()',slidedownTimer);	// Choose a lower value than 10 to make the script move faster
	}
	
	function setslidedownWidth(newWidth)
	{
		//document.getElementById('dhtmlgoodies_slidedown').style.width = newWidth + 'px';
		//document.getElementById('dhtmlgoodies_contentBox').style.width = newWidth + 'px';
	}
	


/********************** Abre Ventana **************************/
	function open_window(url, scrollbars, width, height, name, toolbar)	{
	window.open (url,name, "width="+width+", height="+height+", toolbar="+toolbar+",directories=no,scrollbars="+scrollbars+",status=no");
}