var resizeWindow = function(w, h, x, y) {

	var n = window,
	d = document,
	s = n.screen;

	// First resize...
	n.resizeTo(w, h);

	if (w > s.width)
	{
		n.width = s.width;
	}
	if (h > s.height)
	{
		n.height = s.height;
	}

	// ... then reposition
	if (x || x == 0)
	{
		if (Math)
		{
			x = Math.max(1, Math.min(x, s.width - w));
		}
		n.moveTo(x, n.y);
	}

	if (y || y == 0)
	{
		if (Math)
		{
			y = Math.min(y, s.height - h);
		}
		n.moveTo(n.x, y);
	}

}


function init()
 {
	/* Handy shortcut */
	function $(id) {
		return document.getElementById(id);
	}

	$("set_size_left").onclick = function() {
		resizeWindow(1024, 1440, 0);
	}

	$("set_size_right").onclick = function() {
		resizeWindow(1024, 1440, 1034);
	}

	$("butterfly").onclick = function() {
		document.location = 'http://margou.arievanboxel.nl/';
	}
}

function getYear() 
{ 
	return new Date().getFullYear(); 
}

