﻿function riempi() { 
	if (window.screen) { 
		var w = screen.availWidth; 
		var h = screen.availHeight; 
		window.moveTo(0, 0); 
		window.resizeTo(w, h); 
	} 
} 

function lancia() {
	var w = screen.width;
	var h = screen.height;
	if(w >= "1280"){
		larghezza = 815;
		altezza = 615;
	}else{
		larghezza = 815;
		altezza = 615;
	}
	var x = Math.round(w / 2) - Math.round(larghezza / 2);
	var y = Math.round(h / 2) - Math.round(altezza / 2);
	finestra = window.open ('natale/PAINIauguri.htm', null, 'left=' + x + ',screenX=' + x + ',top=' + y + 'screenY=' + y +',width=' + larghezza + ',height=' + altezza );
}

function preferiti(){
	var url="http://flash-mx.html.it/" 
	var titolo="Flash-MX.it - Risorse italiane su Flash" 
	if (document.all) {
		window.external.AddFavorite(url,titolo);
	}
} 

function paginaIniziale() {
	document.body.style.behavior='url(#default#homepage)';
	document.body.setHomePage('http://flash-mx.html.it/');
}