function preloader() {
	if (document.images) {
		var img1 = new Image();
		var img2 = new Image();
		var img3 = new Image();
        var img4 = new Image();
        var img5 = new Image();
        var img6 = new Image();
        var img7 = new Image();
        var img8 = new Image();
        var img9 = new Image(); 

		img1.src = "../images/three_1a.png";
        img2.src = "../images/three_1.png";
		img3.src = "../images/slideshow2.jpg";
		img4.src = "../images/slideshow3.jpg";
        img5.src = "../images/slideshow4.jpg"; 
        img6.src = "../images/slideshow5.jpg";
        img7.src = "../images/button1.png"; 
        img8.src = "../images/button2.png";
        img9.src = "../images/button3.png";
	}
}
function addLoadEvent(func) {
	var oldonload = window.onload;
	if (typeof window.onload != 'function') {
		window.onload = func;
	} else {
		window.onload = function() {
			if (oldonload) {
				oldonload();
			}
			func();
		}
	}
}
addLoadEvent(preloader);
