// Encodé en UTF-8

$(document).ready(function() {

	

	$(window).resize(function() {
		resizevanpip();
	});
	
	setTimeout("resizevanpip()",500);
	
});



function resizevanpip() {
	// calcul de la hauteur
	var windowHeight = $(window).height();
	var windowWidth = $(window).width();
	
	if (windowWidth < 950) {
		var divWidth = 950;
	} else {
		var divWidth = windowWidth;
	}
	
	if (windowHeight < 650) {
		var divHeight = 650;
	} else {
		var divHeight = windowHeight;
	}
	
	$('#flashDiv').css('width', divWidth + 'px');
	$('#flashDiv').css('height', divHeight + 'px');	
			
}
