function setbg(id) {
	document.getElementById("td"+id).style.background = "#000033";
}
function unsetbg(id) {
	for (var i=0; i<=10; i++) {
		document.getElementById("td"+id).style.background = "#CFD6DD";
	}
}
function showImage(id) {
	document.getElementById(id).style.visibility  = "visible";
	document.getElementById("contentContainer").style.visibility  = "hidden";
	document.getElementById("footer").style.visibility  = "hidden";
}
function hideImage(id) {
	document.getElementById(id).style.visibility  = "hidden";
	document.getElementById("contentContainer").style.visibility  = "visible";
	document.getElementById("footer").style.visibility  = "visible";
}
function getRanVal () {
	numArray = new Array(0, 1, 2, 3, 4, 5, 6, 7, 8);
	ranNr1=Math.round(Math.random()*(numArray.length-1));
	numArray.splice(ranNr1,1);
	var ran=Math.round(Math.random()*(numArray.length-1));
	ranNr2=numArray[ran];
}
function writeTeaser () {
	document.write("<a href=\"#\" onclick=\"showImage('imgDiv')\"><img src=\"img/imgBuild0"+ranNr1+"_sm.jpg\" width=\"131\" height=\"98\" border=\"0\" class=\"space\" \/><\/a><a href=\"#\" onclick=\"showImage('imgDiv2')\"><img src=\"img/imgBuild0"+ranNr2+"_sm.jpg\" width=\"131\" height=\"98\" border=\"0\" class=\"space\" \/><\/a>");
}
function writeDiv () {
	document.writeln("<div id=\"imgDiv\" class=\"imgDiv\"><a href=\"#\"  onclick=\"hideImage('imgDiv')\"><img src=\"img\/imgBuild0"+ranNr1+"_big.jpg\" width=\"678\" height=\"509\" border=\"0\" \/><\/a><\/div>");
	document.writeln("<div id=\"imgDiv2\" class=\"imgDiv\"><a href=\"#\"  onclick=\"hideImage('imgDiv2')\"><img src=\"img\/imgBuild0"+ranNr2+"_big.jpg\" width=\"678\" height=\"509\" border=\"0\" \/><\/a><\/div>");
}
getRanVal();
