/**
 * @author daniel de la garza
 */
var loginState = 1;

function loginSlideUp(){
    var loginForm = jQuery("#contenedor_dinamico");
    var contenedor = jQuery("#content");
    
    jQuery("#btn_content").css("background", "url(assets/templates/images/triangulo.png)");
    contenedor.animate({
        "height": "380px"
    }, "slow");
    jQuery("#ct_texto, #animacion_saludo, #flash,#menu4,#contenido_galeria,#menuizq").show();
    
    loginForm.animate({
        "height": "419px"
    }, "slow");
    loginState = 1;
}

function loginSlideDown(){
    var loginForm = jQuery("#contenedor_dinamico");
    var contenedor = jQuery("#content");
    
    jQuery("#btn_content").css("background", "url(assets/templates/images/trianguloup.png)");
    contenedor.animate({
        "height": "0px"
    }, "slow");
    jQuery("#ct_texto, #animacion_saludo, #flash,#menu4,#contenido_galeria,#menuizq").hide();
    
    
    //.nextALL().css('display', 'none');
    jQuery("#contenedor_dinamico").animate({
        "height": "39px"
    }, "slow")
    loginState = 0;
}

jQuery(document).ready(function(){

    jQuery("#content-pri #contenedor_dinamico").css({
        height: "419px",
        bottom: "-15px",
        position: "absolute"
    });
    //jQuery("#content-pri #btn_content").css("background", "url(assets/templates/images/triangulo.jpg)");
    
    
    jQuery("#btn_content").click(function(){
        if (loginState == 0) {
            loginSlideUp();
        }
        else {
            loginSlideDown();
        }
        return false;
    });
});





