/* Function to resize window */
function resizeWin() {
	if (window.screen) {
		var wide = screen.availWidth;
		var high = screen.availHeight;
			if (screen.availWidth > 1024) {
				wide = 1024;
				high = 912;
			}
		window.resizeTo(wide, high);
	}
}

/* Functions to show and hide hidden divs */
function showBlock(blocknum,id) {
	for(i=1;i<=blocknum;i++) {
		if(document.getElementById('hideblock'+i).style.display == "block") {
			if('hideblock'+i == id) {
				document.getElementById('hideblock'+i).style.display = "block";
			} else {
				document.getElementById('hideblock'+i).style.display = "none";
			}
		}
	}
	showhide(id);
}
function showhide(id) {
	if(document.getElementById(id).style.display == "none") {
		document.getElementById(id).style.display = "block";
	} else {
		document.getElementById(id).style.display = "none";
	}
}

