function switchBg(){
	if ( screen.availWidth <= 1100 ){
		document.getElementById('body1').setAttribute('background','pics/fade_1024.jpg');
	} else {
		if ( screen.availWidth <= 1200 ){
			document.getElementById('body1').setAttribute('background','pics/fade_1152.jpg');
		} else {
			if ( screen.availWidth <= 1300 ){
				document.getElementById('body1').setAttribute('background','pics/fade_1280.jpg');
			} else {
				if ( screen.availWidth > 1300 ){
					document.getElementById('body1').setAttribute('background','pics/fade_1600.jpg');
				}
			}
		}			
	}
			
}


function switchImg(element, src, element2, text){
	var img = new Image();
	img.src = src;
	element.style.backgroundImage = 'url(' + img.src + ')';	
	element2.innerHTML = text;
	element2.innerHTML.replace(/<([^<>]*)>/g,"");

}

function showDiv(showDiv){
	var theDiv = document.getElementById(showDiv);
	theDiv.style.visibility = 'visible';
	/*
	theDiv.style.top = (document.body.offsetHeight / 2) - (theDiv.offsetHeight / 1.25);
	theDiv.style.left = (document.body.offsetWidth / 2) - (theDiv.offsetWidth / 2);
	*/
	
	theDiv.style.top = 454; //(document.body.offsetHeight / 2) - (theDiv.offsetHeight / 1.25);
	theDiv.style.left = (document.body.offsetWidth / 2) + 240; //(theDiv.offsetWidth / 2);
}

function hideDiv(hideDiv){
	var theDiv = document.getElementById(hideDiv);
	theDiv.style.visibility = 'hidden';		
}


