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 >= "1024"){
		larghezza = 990;
		altezza = 670;
		var x = Math.round(w / 2) - Math.round(larghezza / 2);
		var y = Math.round(h / 2) - Math.round(altezza / 2);
		finestra = window.open ('flash990.htm', null, 'left=' + x + ',screenX=' + x + ',top='
		+ y + 'screenY=' + y +',width=' + larghezza + ',height=' + altezza );
	}else{
		larghezza = 773;
		altezza = 580;
		var x = Math.round(w / 2) - Math.round(larghezza / 2);
		var y = 20;
		finestra = window.open ('flash700.htm', null, 'left=' + x + ',screenX=' + x + ',top='
		+ y + 'screenY=' + y +',width=' + larghezza + ',height=' + altezza );
	}
} 

function launch() {
var w = screen.width;
var h = screen.height;
if(w >= "1024"){
larghezza = 990;
altezza = 670;
var x = Math.round(w / 2) - Math.round(larghezza / 2);
var y = Math.round(h / 2) - Math.round(altezza / 2);
finestra = window.open ('flashen990.htm', null, 'left=' + x + ',screenX=' + x + ',top='
+ y + 'screenY=' + y +',width=' + larghezza + ',height=' + altezza );
}else{
larghezza = 773;
altezza = 580;
var x = Math.round(w / 2) - Math.round(larghezza / 2);
var y = 20;
finestra = window.open ('flashen700.htm', null, 'left=' + x + ',screenX=' + x + ',top='
+ y + 'screenY=' + y +',width=' + larghezza + ',height=' + altezza );
}
}

function preferiti(){
var url="http://www.dooral.it/"
var titolo="DOOR AL s.r.l. - Portoni in alluminio, pannelli bugnati."
if (document.all) {
window.external.AddFavorite(url,titolo);
}
} 

function paginaIniziale() {
document.body.style.behavior='url(#default#homepage)';
document.body.setHomePage('http://www.dooral.it/');
}

function openPopUp(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
