/*<![CDATA[*/
//<!--

scr = new Object();
scr.width = screen.width;
scr.height = screen.height;
scr.availWidth = typeof(screen.availWidth)=="undefined"?screen.availWidth:screen.width;
scr.availHeight = typeof(screen.availHeight)=="undefined"?screen.availHeight:screen.height;
scr.availHeight = (scr.width==scr.availHeight && scr.height==scr.availHeight)?scr.height-28:scr.availHeight;
scr.availLeft = typeof(screen.availLeft)=="undefined"?screen.availLeft:0;
scr.availLeft = typeof(screen.availTop)=="undefined"?screen.availTop:0;

function getWidth() {
	if(typeof(top.outerWidth)!="undefined") {
		return top.outerWidth;
	}
	else if(typeof(top.document.documentElement.offsetWidth)!="undefined") {
		var bodyW1 = parseInt(top.document.documentElement.offsetWidth);
		var bodyH1 = parseInt(top.document.documentElement.offsetHeight);
		top.blur();
		top.resizeTo(300,300);
		var offsetW= 300-top.document.documentElement.offsetWidth;
		var offsetH= 300-top.document.documentElement.offsetHeight;
		var width = offsetW+bodyW1;
		var height = offsetH+bodyH1;
		top.resizeTo(width, height);
		top.focus();
		return width;
	}
	else if(typeof(top.document.body)!="undefined" && typeof(top.document.body.offsetWidth)!="undefined") {
		var bodyW1 = parseInt(top.document.body.offsetWidth);
		var bodyH1 = parseInt(top.document.body.offsetHeight);
		top.blur();
		top.resizeTo(300,300);
		var offsetW= 300-top.document.body.offsetWidth;
		var offsetH= 300-top.document.body.offsetHeight;
		var width = offsetW+bodyW1;
		var height = offsetH+bodyH1;
		top.resizeTo(width, height);
		top.focus();
		return width;
	}
	else if(typeof(top.screenLeft)!="undefined") {
		return ((top.screenLeft)*2)+4;
	}
	else return "niente";
}

function getHeight() {
	if(top.outerHeight!==undefined) {
		return top.outerHeight-top.innerHeight;
	}
	else if(typeof(top.document.documentElement.offsetHeight)!="undefined") {
		var bodyW1 = parseInt(top.document.documentElement.offsetWidth);
		var bodyH1 = parseInt(top.document.documentElement.offsetHeight);
		top.blur();
		top.resizeTo(300,300);
		var offsetW= 300-top.document.documentElement.offsetWidth;
		var offsetH= 300-top.document.documentElement.offsetHeight;
		var width = offsetW+bodyW1;
		var height = offsetH+bodyH1;
		top.resizeTo(width, height);
		top.focus();
		return height;
	}
	else if(typeof(top.document.body)!="undefined" && typeof(top.document.body.offsetWidth)!="undefined") {
		var bodyW1 = parseInt(top.document.body.offsetWidth);
		var bodyH1 = parseInt(top.document.body.offsetHeight);
		top.blur();
		top.resizeTo(300,300);
		alert(top.document.body.offsetWidth);
		var offsetW= 300-top.document.body.offsetWidth;
		var offsetH= 300-top.document.body.offsetHeight;
		var width = offsetW+bodyW1;
		var height = offsetH+bodyH1;
		top.resizeTo(width, height);
		top.focus();
		return height;
	}
	else if(top.screenTop!==undefined) {
		return top.screenTop;
	}
	else return "niente";
}

window.onload = function() {
	// 1024 
	var larghezza = 1024;
	if(getWidth()<larghezza && scr.width>=larghezza) {
		top.moveTo(scr.availLeft, scr.availTop);
		top.resizeTo(scr.availWidth, scr.availHeight);
		top.focus();
	}
}

//-->
/*]]>*/