$(document).ready(function() {
    var altura_port = "397px";
    var altura_outros = "354px";
    // PORTFOLIO
    $("#portfolio").click(function(){
       $("#conteudo").empty();
       $("#conteudo").css("height",altura_port);
       $("#mainContent").css("height",altura_port);       
       $("#conteudo").flash(
            {
                src: 'images/swf/portfolio.swf',
                width: 756,
                height: 397,
				wmode: 'transparent',
                flashvars: {
                    quality: 'high',
                    align: 'middle',
                    play: 'true',
                    loop: 'true',
                    scale: 'showall',
                    devicefont: 'false',
                    id: 'portfolio_swf',					
                    name: 'portfolio_swf',
                    menu: 'true',
                    allowFullScreen: 'false',
                    allowScriptAccess: 'sameDomain',
                    salign: ''
                }
            },
            { version: 9}
        );
    });

    // PREMIO
    $("#premios").click(function(){
       $("#conteudo").empty();
       $("#conteudo").css("height",altura_outros);
       $("#mainContent").css("height",altura_outros);
       
       $("#conteudo").flash(
            {
                src: 'images/swf/premios.swf',
                width:756,
                height: 348,
				bgcolor: '#292313',
                flashvars: {
                    quality: 'high',
                    align: 'middle',
                    play: 'true',
                    loop: 'true',
                    scale: 'showall',
                    wmode: 'window',
                    devicefont: 'false',
                    id: 'premios_swf',                    
                    name: 'premios_swf',
                    menu: 'true',
                    allowFullScreen: 'false',
                    allowScriptAccess: 'sameDomain',
                    salign: ''
                }
            },
            { version: 9 }
        );
    });

    // CONHECA
    $("#conheca").click(function(){
       $("#conteudo").empty();
       $("#conteudo").css("height",altura_outros);
       $("#mainContent").css("height",altura_outros);
       
       $("#conteudo").flash(
            {
                src: 'images/swf/conheca.swf',
                width:756,
                height: 348,
				bgcolor: '#292313',
                flashvars: {
                    quality: 'high',
                    align: 'middle',
                    play: 'true',
                    loop: 'true',
                    scale: 'showall',
                    wmode: 'window',
                    devicefont: 'false',
                    id: 'conheca_swf',                    
                    name: 'conheca_swf',
                    menu: 'true',
                    allowFullScreen: 'false',
                    allowScriptAccess: 'sameDomain',
                    salign: ''
                }
            },
            { version: 9}
        );
    });

    // CLIENTES
    $("#clientes").click(function(){
       $("#conteudo").empty();
       $("#conteudo").css("height",altura_outros);
       $("#mainContent").css("height",altura_outros);
       
       $("#conteudo").flash(
            {
                src: 'images/swf/clientes_flash.swf',
                width:756,
                height: 348,
				bgcolor: '#292313',
                flashvars: {
                    quality: 'high',
                    align: 'middle',
                    play: 'true',
                    loop: 'true',
                    scale: 'showall',
                    wmode: 'window',
                    devicefont: 'false',
                    id: 'clientes_flash',
                    name: 'clientes_flash',
                    menu: 'true',
                    allowFullScreen: 'false',
                    allowScriptAccess: 'sameDomain',
                    salign: ''
                }
            },
            { version: 9}
        );
    });

    // ACAO
    $("#acao").click(function(){
       $("#conteudo").empty();
       $("#conteudo").css("height",altura_outros);
       $("#mainContent").css("height",altura_outros);
       
       $("#conteudo").flash(
            {
                src: 'images/swf/acao.swf',
                width:756,
                height: 348,
				bgcolor: '#292313',
                flashvars: {
                    quality: 'high',
                    align: 'middle',
                    play: 'true',
                    loop: 'true',
                    scale: 'showall',
                    wmode: 'window',
                    devicefont: 'false',
                    id: 'acao_swf',
                    name: 'acao_swf',
                    menu: 'true',
                    allowFullScreen: 'false',
                    allowScriptAccess: 'sameDomain',
                    salign: ''
                }
            },
            { version: 9}
        );
    });

    // CONTATO
    $("#contato").click(function(){
       $("#conteudo").empty();
       $("#conteudo").css("height",altura_outros);
       $("#mainContent").css("height",altura_outros);
       $("p").remove();
       $("#conteudo").flash(
            {
                src: 'images/swf/contato_flash.swf',
                width:756,
                height: 348,
				bgcolor: '#292313',
                flashvars: {
                    quality: 'high',
                    align: 'middle',
                    play: 'true',
                    loop: 'true',
                    scale: 'showall',
                    wmode: 'window',
                    devicefont: 'false',
                    id: 'contato_flash',
                    name: 'contato_flash',
                    menu: 'true',
                    allowFullScreen: 'false',
                    allowScriptAccess: 'sameDomain',
					movie: 'contato_flash',
                    salign: ''
                }
            },
            { version: 9}
        );
    });

    // HOME
     $("#index").click(function(){
        $("#conteudo").empty();
        $("#conteudo").css("height",altura_outros);
        $("#mainContent").css("height",altura_outros);

        $("#conteudo").flash(
            {
                src: 'images/swf/home.swf',
                width:756,
                height: 348,
				bgcolor: '#292313',
                flashvars: {
                        quality: 'high',
                        align: 'middle',
                        play: 'true',
                        loop: 'true',
                        scale: 'showall',
                        wmode: 'window',
                        devicefont: 'false',
                        id: 'conheca',
                        name: 'conheca',
                        menu: 'true',
                        allowFullScreen: 'false',
                        allowScriptAccess: 'sameDomain',
                        salign: ''
                    }
            },
            { version: 9}
        );
     });

    // HOME
    $("#conteudo").empty();
    $("#conteudo").css("height",altura_outros);
    $("#mainContent").css("height",altura_outros);
    
    $("#conteudo").flash(
        {
            src: 'images/swf/home.swf',
            width:756,
            height: 348,
			bgcolor: '#292313',
            flashvars: {
                    quality: 'high',
                    align: 'middle',
                    play: 'true',
                    loop: 'true',
                    scale: 'showall',
                    wmode: 'window',
                    devicefont: 'false',
                    id: 'conheca',
                    name: 'conheca',
                    menu: 'true',
                    allowFullScreen: 'false',
                    allowScriptAccess: 'sameDomain',
                    salign: ''
                }
        },
        { version: 9}
    );

    $("#1").lavaLamp({
        fx: "backout",
        speed: 700,
        click: function(event, menuItem) {
            return false;
        }
    });
});
