jQuery(document).ready(function()
{
setSplashBodyDimentions();

});

function checkCookieSplash()
{
    switch($.cookie('Lang'))
	{
		case "FR":
		  document.location.href = "/fr/";
		break;

		case "EN":
		  document.location.href = "/en/";
        break;

	    case "NL":
		  document.location.href = "/nl/";
        break;

	}

}
$(window).resize(function(){setSplashBodyDimentions()});

function setSplashBodyDimentions(){

    body = $('body.splash');
    div = $('body.splash div');

    height = $(window).height() - 12;
    if(height < 350){
        height = 350;
        div.css('top','185px')
    }else{
        div.css('top','50%')
    }
    body.height(height);

    if($(window).width() < 758){
        body.width(770);
        div.css('left','385px')
    }else{
        div.css('left','50%')
    }
}
checkCookieSplash();

