var background_hq = new Image();
var background_hq_src = null;

function updateBackgroundFF() {
	document.body.style.backgroundImage = "url("+background_hq.src+")";
}

function updateBackgroundIE() {
	document.body.style.backgroundImage = "url("+background_hq.src+")";
}

window.addEvent('load', function() {
	var background_hq_src = new String();
	
	if(typeof getComputedStyle == 'function') {
		background_hq_src = getComputedStyle(document.body,'').getPropertyValue('background-image');
		background_hq_src = background_hq_src.substring(4,background_hq_src.length - 8) + "-hq.jpg";
		background_hq.onload = updateBackgroundFF;
		background_hq.src = background_hq_src;
	} else if(document.body.currentStyle) {
		background_hq_src = document.body.currentStyle.backgroundImage;
		background_hq_src = background_hq_src.substring(5,background_hq_src.length - 9) + "-md.jpg";
		background_hq.onload = updateBackgroundIE;
		background_hq.src = background_hq_src;

	}

	
});