/*
 * Image Background Changer by Dragonfire
 */
 
startSwap();
	
function startSwap() {
	if (screen.width >= 1920 && screen.height >= 1080) {
		swapBak("1920x1080.jpg");
	} else if (screen.width >= 1900 && screen.height >= 1200) {
		swapBak("1900x1200.jpg");
	} else if (screen.width >= 1600 && screen.height >= 1200) {
		swapBak("1600x1200.jpg");
	} else if (screen.width >= 1600 && screen.height >= 1024) {
		swapBak("1600x1024.jpg");
	} else if (screen.width >= 1280 && screen.height >= 1024) {
		swapBak("1280x1024.jpg");
	} else if (screen.width >= 1600 && screen.height >= 900) {
		swapBak("1600x900.jpg");
	} else if (screen.width >= 1440 && screen.height >= 900) {
		swapBak("1440x900.jpg");
	} else if (screen.width >= 1366 && screen.height >= 768) {
		swapBak("1366x768.jpg");
	} else if (screen.width >= 1280 && screen.height >= 960) {
		swapBak("1280x960.jpg");
	} else if (screen.width >= 1280 && screen.height >= 800) {
		swapBak("1280x800.jpg");
	} else if (screen.width >= 1280 && screen.height >= 768) {
		swapBak("1280x768.jpg");
	} else if (screen.width >= 1280 && screen.height >= 720) {
		swapBak("1280x720.jpg");
	} else if (screen.width >= 1152 && screen.height >= 864) {
		swapBak("1152x864.jpg");
	} else if (screen.width >= 1024 && screen.height >= 768) {
		swapBak("1024x768.jpg");
	} 
}

function swapBak(image) {
	document.body.style.backgroundImage = "url(http://xtremefreakz.de/inc/_templates_/xtr/images/bg/" + image + ")";
}
