/****************************************************
 * File:		main.js
 * Author:		Harm - ws1
 * Created:		9-7-2004
 * Description:	Keeps our nice .js functions.
 ***************************************************/

function preloadImages() {
	var d = document;
	if (d.images) {
		if (!d.preloadedimg) d.preloadedimg = new Array();
		a = preloadImages.arguments;
		for(i = 0; i < a.length; i++) {
			j = d.preloadedimg.length;
			d.preloadedimg[j] = new Image;
			d.preloadedimg[j].src = a[i];
		}
	}
	return true;
}

function overImage(img, src) {
	var d = document;
	if ((img.src != '') && d.preloadedimg) {
		if (!d.overedimg) d.overedimg = '';
		d.overedimg = img.src;
		img.src = src;
	}
	return true;
}

function outImage(img) {
	var d = document;
	if ((img.src != '') && d.overedimg) {
		img.src = d.overedimg;
	}
	return true;
}

function overMenu(td) {
	if (td) {
		td.className = 'headline_over';
	}
	return true;
}

function outMenu(td) {
	if (td) {
		td.className = 'headline';
	}
	return true;
}