var siteVersion='normal';

$(document).ready(function(){
    if(swfobject.hasFlashPlayerVersion("1")) {
        $('.presentation').hide();
        siteVersion='flash';
    }
});


$(window).load(function(){
    if(siteVersion=='flash') startFlash();
    else hello();     
});



function startFlash() {

    var params = {
        menu: "false",
        scale: "noScale",
        allowFullscreen: "true",
        allowScriptAccess: "always",
        bgcolor: "none",
        menu:"false",
        wmode:"opaque"
    };
    var attributes = {
        id:"map"
    };

    swfobject.embedSWF(mapFile, "flashVersion", "940", "455", "10.0.0", "expressInstall.swf", null, params, attributes);

}


function hello() { 


    $('.presentation .textTop').animate({left:'536px',opacity:1},1000,function(){
    });



    $('.presentation .textBottom').animate({left:'536px',opacity:1},1000,function(){
    });



    $('.presentation .lineLeft').animate({left:'280px'},3500,function(){
    });


    $('.presentation .lineRight').animate({left:'670px'},3500,function(){
    });


    $('.presentation').animate({opacity:1},3000,function(){
        showMap();
    });



}


function showMap() {
    $('.presentation .mapWindow').animate({left:'-90px'},700,function(){
        $('.presentation').css({'background':'none'});
        $('.presentation .textTop').remove();
        $('.presentation .textBottom').remove();
        $('.presentation .lineLeft').remove();
        $('.presentation .lineRight').remove();
        $('.map').show();
        $('.presentation .mapWindow').animate({left:'950px'},700, function(){
            $('.presentation').remove();
        });
    });
}
