

//popup thingy

function openpopup(popurl){
var winpops=window.open(popurl,"","toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=520,height=650,left = 262,top = 20")
}

//referrer page
function start() {
var ref = document.getElementById('referrer');
ref.value = document.referrer;
}
onload = start; 


//
function showstuff(boxid){ document.getElementById(boxid).style.display="block"; }
function hidestuff(boxid){ document.getElementById(boxid).style.display="none"; }




//show hide more info


function change() {

if (document.getElementById("showhide").style.display == "none") {

document.getElementById("showhide").style.display = "inline";

document.getElementById("thetext").innerHTML = "Hide Information";

} else {

document.getElementById("showhide").style.display = "none";

document.getElementById("thetext").innerHTML = "Further Information";

}

}



var lastDiv = "";
function showDiv(divName) {
	// hide last div
	if (lastDiv) {
		document.getElementById(lastDiv).className = "hiddenDiv";
	}
	//if value of the box is not nothing and an object with that name exists, then change the class
	if (divName && document.getElementById(divName)) {
		document.getElementById(divName).className = "visibleDiv";
		lastDiv = divName;
	}
}
