//Iconeweb RE:Sizepack
//attributions des fonctions selon les actions
window.onload = redimFlash;
window.onresize = redimFlash;
window.onload = fullScreen;

//taille du flash en fonction de la taille de la fenetre
function redimFlash() 
{
	var largeurF = document.body.clientWidth;
	var hauteurF = document.body.clientHeight;
	var conteneur = document.getElementById('flashcontent');
	
	if(largeurF <= 980){
		//alert('moins large');
		conteneur.style.width = '980px';
	} else {
		//alert('plus large');
		conteneur.style.width = '100%';
	}
	
	if(hauteurF <= 560) {
		//alert('moins haut');
		conteneur.style.height = '560';
	} else {
		//alert('plus haut');
		conteneur.style.height = '100%';
	}
}

function fullScreen()
{
	window.moveTo(0,0);
	if (document.all) { // IE
		window.resizeTo(screen.availWidth,screen.availHeight);
	} else { // NETSCAPE
		window.outerHeight = screen.availHeight;
		window.outerWidth = screen.availWidth;
	}
	window.focus();
}