function resize_me(){
	self.moveTo(0,0)
	self.resizeTo(screen.availWidth,screen.availHeight)
}

function newFade(image) {
	var div1;
	var div2;
	new Effect.Fade('news',{duration:0.1});
	div1 = document.getElementById('div1');
	div2 = document.getElementById('div2');
	div1.style.backgroundImage = div2.style.backgroundImage;
	div2.style.display = "none";
	div1.style.display="block";
	div2.style.backgroundImage = 'url(img/'+image+')';
	new Effect.Appear('div2',{duration:0.5,fps:25});
}

function proto_window(url, title) {
	Dialog.info(url, {
		className: "mac_os_x",
		title: title,
		top:400, left:100, width:300, height:200,
		draggable: true
		});
	Dialog.setConstraint(true, {left:0, right:0, top: 30, bottom:10})
	/*var win = new Window({
		className: "mac_os_x",
		title: title,
		top:400, left:100, width:300, height:200,
		url: url,
		showEffectOptions: {duration:1.5},
		overlayShowEffectOptions: {duration:0.5}
		})
		win.show();*/
}
