
 window.location="http://www.nescafe.nl/";


initLoaded=false;
var browser = new Browser();

init = function() {

	//general properties
	backgroundWidth = 1024;
	 window.location="http://www.nescafe.nl/";

	//background layer
	layer = new Layer('background');
	//set background layer coordinates
	layerLeft	= (browser.width() - backgroundWidth) / 2;
	layerWidth	= layerLeft + backgroundWidth;
	//set image width
	if(browser.width()<backgroundWidth) imageWidth=layerWidth;
	else imageWidth = backgroundWidth;
	//set image height
	imageHeight = browser.height();
	//move background layer
	layer.x(layerLeft);
	//set background layer content
	layer.html("<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" bgcolor=\"#360000\" background=\"img/background_gradient.gif\"><tr><td><img src=\"img/empty.gif\" width=\""+imageWidth+"\" height=\""+imageHeight+"\"></td></tr></table>");
	//show background
	layer.show();

	//content layer
	var layer 	= new Layer('content');
	//set content layer coordinates
	contentLeft	= (browser.width() - layer.width()) / 2;
	contentTop	= (browser.height() - layer.height()) / 2;
	//move content layer
	layer.moveTo(contentLeft, contentTop);
	//show content layer
	layer.show();
	
	initLoaded=true;
	
	//fix blur
	if(document.layers) return; 
	if(document.getElementById) links = document.getElementsByTagName("A"); 
	if(document.all) links = document.all.tags("A"); 
	for(a = 0; a < links.length; a++) links[a].onfocus = new Function('this.blur()'); 
}

checkDateFieldFocus = function(object,stdvalue) {
	if(object.value==stdvalue) object.value="";
}

checkDateFieldBlur = function(object,stdvalue) {
	if(object.value=="") object.value=stdvalue;
}

