function HiliteButton(id)
{
	obj = document.getElementById("button_" + id);
	obj.src = obj.src.replace("_normal", "_over");
}

function DeliteButton(id)
{
	obj = document.getElementById("button_" + id);
	obj.src = obj.src.replace("_over", "_normal");
}

function PreloadImages() 
{
	if(document.images)
	{ 
                var oBase = document.all.tags('BASE');
                oBase = (oBase && oBase.length)? oBase[0].href : "" ;
		
                if(!document.preloadArray) document.preloadArray = new Array();
		var j=document.preloadArray.length, args=PreloadImages.arguments; 
		
		for(var i=0; i<args.length; i++)
		{
			if (args[i].indexOf("#")!=0)
			{ 
				document.preloadArray[j]=new Image; 
                                document.preloadArray[j++].src=oBase + args[i];
			}
		}
	}
}

function Init()
{
	PreloadImages(	'images/buttons/abonneren_over.gif',
                        'images/buttons/archief_over.gif',
                        'images/buttons/relaties_over.gif',
                        'images/buttons/recepten_over.gif',
                        'images/buttons/contact_over.gif'
	 );
}

function OpenWindow(page, windowName, windowWidth, windowHeight)
{
	var features = "top=50,left=50,width=" + windowWidth + ",height=" + windowHeight;
	window.open(page, windowName, features);
}