function cerrar_boton(cual){
$(cual).set('tween', {transition: Fx.Transitions.Bounce.easeOut,duration: 1000});
$(cual).tween("height", "20px");

}
function abrir_boton(cual,alto){
var anterior =  document.getElementById('dafo').value;
if(anterior != 0) eval("cerrar_boton('"+anterior+"')");
$(cual).set('tween', {transition: Fx.Transitions.Bounce.easeOut,duration: 1000});
$(cual).tween("height", alto+"px");
document.getElementById('s'+cual).style.fontWeight =  'bold';
if(anterior != 0 && anterior != cual) document.getElementById('s'+anterior).style.fontWeight =  'normal';
document.getElementById('dafo').value =  cual;
}

function alto(cual,alto)
{
$(cual).set('tween', {transition: Fx.Transitions.Bounce.easeOut,duration: 1500});
$(cual).tween("height",alto);
}

function color()
{
//$('logueo').tween{property:'opacity', duration: 'long'};
$('logueo').set('tween', {duration: 6000});
$('logueo').tween('background-color', '#0ff','#f0f');
$('logueo').fade('toggle')
}
function transicion()
{

$('logueo').set('tween', {transition: Fx.Transitions.Elastic.easeOut});
$('logueo').set('tween', {duration: 1000});
$('logueo').tween('margin-top','50px');
}
/*
how - (mixed, optional: defaults to 'toggle') The opacity level as a number or string representation. Possible values include:
'in' - Fade the element to 100% opacity.
'out' - Fade the element to 0% opacity.
'show' - Immediately set the element's opacity to 100%.
'hide' - Immediately set the element's opacity to 0%.
'toggle' - If visible, fade the element out, otherwise, fade it in.
(number) - A float value between 0 and 1. Will fade the element to this opacity.
*/
function transforma()
{
/*Fx.CSS.Styles = ["backgroundColor", "backgroundPosition", "color", "width", "height", "left", "top", "bottom", "right", "fontSize", "letterSpacing", "lineHeight", "textIndent", "opacity"]; */
//$('logueo').set('Morph', {duration: 1000});
//$('myElement').morph('.class1');

$('logueo').morph({height: 100, width: 200,backgroundColor:'#000'});

}

function moverlo(quien,cuanto)
{
$(quien).set('tween', {transition: Fx.Transitions.easeOut,duration: 300});
$(quien).tween('padding-left',cuanto);

}

function deslizar()
{
$('fotito').slide('hide').slide('in');

}

function comprar()
{
formulario = document.forms["carro"];
formulario.submit();
}

function borrar(producto)
{
document.carro.item.value=producto;
document.carro.accion.value='Borrar';
formulario = document.forms["carro"];
formulario.submit();
}

function vermas()
{
if(document.getElementById('vermas').style.display=='none') document.getElementById('vermas').style.display='block'
else document.getElementById('vermas').style.display='none'
}

//===================================================
// CONFIRMA BORRADOS
//===================================================

// Borrado unitario
function confirmarBorrado(num,titulo)
{
var aceptar=confirm("¿Realmente desea eliminar\nde su compra el artículo: "+num+"\n"+titulo);
if (aceptar) {return true ;}
else {return false ;}
}

function confirmarBorrar(consulta)
{
var aceptar=confirm(consulta);
if (aceptar) {return true ;}
else {return false ;}
}
//===================================================

// CARGA SWF


