<!-- 
function changeStatus(text)
{
    window.status = text;
}
changeStatus("");
//-->
	var locationAfterPreload = "index1.php"
	var lengthOfPreloadBar = 150
	var heightOfPreloadBar = 5
	var yourImages = new Array(
	"templates/x-graphics/img/preload_skip.jpg",
	"templates/x-graphics/img/bg/grass.jpg",
	"templates/x-graphics/img/body.png",
	"templates/x-graphics/img/menuhover.png",
	"templates/x-graphics/img/menuhover_grass.png",
	"templates/x-graphics/img/menuhover_self.png",
	"templates/x-graphics/img/main/head.jpg",
	"templates/x-graphics/img/menuhover_sonne.png",
	"templates/x-graphics/img/menuhover_stone.png",
	"templates/x-graphics/img/st.png",
	"templates/x-graphics/img/main/head1.jpg",
	"templates/x-graphics/img/bg/grass_shadow.jpg",
	"templates/x-graphics/img/bg/st2.jpg",
	"templates/x-graphics/img/bg/st3.jpg",
	"templates/x-graphics/img/main/head3.jpg",
	"templates/x-graphics/img/bg/sw_default.png",
	"templates/x-graphics/img/bg/sw_grass.png",
	"templates/x-graphics/img/bg/sw_none.png",
	"templates/x-graphics/img/main/head4.jpg",
	"templates/x-graphics/img/bg/sw_sonne.png",
	"templates/x-graphics/img/bg/sw_stone.png",
	"templates/x-graphics/img/bg/sw_wood.png",
	"templates/x-graphics/img/main/head2.jpg",
	"templates/x-graphics/img/schweiz.jpg",
	"templates/x-graphics/img/usa.jpg",
	"templates/x-graphics/img/main/msg.png")

if (document.images) {
	var dots = new Array() 
	dots[0] = new Image(1,1)
	dots[0].src = "templates/x-graphics/img/preload_1.gif"
	dots[1] = new Image(1,1)
	dots[1].src = "templates/x-graphics/img/preload_2.gif"
	var preImages = new Array(),coverage = Math.floor(lengthOfPreloadBar/yourImages.length),currCount = 0
	var loaded = new Array(),i,covered,timerID
	var leftOverWidth = lengthOfPreloadBar%coverage
}
function loadImages() { 
	for (i = 0; i < yourImages.length; i++) { 
		preImages[i] = new Image()
		preImages[i].src = yourImages[i]
	}
	for (i = 0; i < preImages.length; i++) { 
		loaded[i] = false
	}
	checkLoad()
}
function checkLoad() {
	if (currCount == preImages.length) { 
		location.replace(locationAfterPreload)
		return
	}
	for (i = 0; i <= preImages.length; i++) {
		if (loaded[i] == false && preImages[i].complete) {
			loaded[i] = true
			eval("document.img" + currCount + ".src=dots[1].src")
			currCount++
		}
	}
	timerID = setTimeout("checkLoad()",10) 
}
