
$(document).ready( function() {

    var obj = $("div.window");
    obj.width( 80*(screen.width)/100 );
    obj.height( 70*(screen.height)/100 );
    obj.css( "left", 10*(screen.width)/100 );
    obj.css( "top", 7*(screen.height)/100 );
    ///

    var ieviejo = false;
    if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)){ //test for MSIE x.x;
        var ieversion = new Number(RegExp.$1) // capture x.x portion and store as a number
        if( ieversion <= 6 ) {
            ieviejo = true;
        }
    }

    if( ieviejo ) {
        window.location = "cover.html";
    /*
        $("*").css("border-top","solid");
        $("div.tofadein-0").fadeIn(500, function() {
            $("#biglogo").css({
                "height" : "165px",
                "width" : "530px"
            });
            $("div#langs").fadeIn(500,function() {

                $("span.rablog").fadeIn(function() {
                    var dest = $("div.logoandlangs").offset().top + $("div.logoandlangs").height() ;
                    $(this).animate({
                        "top" : dest
                    }, 1000, "swing");
                });
            });
        });
        */
    }
    else {

        $("div.tofadein-0").fadeIn(500, function() {
            
            $("#biglogo").animate({
                "height" : "165px",
                "width" : "530px"
            }, 1000, "swing", function() {
                $("div#langs").fadeIn(500,function() {

                    $("span.rablog").fadeIn(function() {
                        var dest = $("div.logoandlangs").offset().top + $("div.logoandlangs").height() ;
                        $(this).animate({
                            "top" : dest
                        }, 500, "swing");
                    });
                });
            });
        });
    }

    $("a").focus(function() {
        $(this).blur();
    });
    
});

