// this file preloads the image links on the left side of the NAHRIS.ch portal site (top)
// and provides the function to provide css ticks (below)

if (document.images) {
		visNO = new Image
		visOV = new Image
		oveNO = new Image
		oveOV = new Image
		insNO = new Image
		insOV = new Image
		conNO = new Image
		conOV = new Image
		nnoNO = new Image
		nnoOV = new Image
		feeNO = new Image
		feeOV = new Image
		updNO = new Image
		updOV = new Image

		visNO.src = "nahris/library/leftlinks/visNO.gif"
		visOV.src = "nahris/library/leftlinks/visOV.gif"
		oveNO.src = "nahris/library/leftlinks/oveNO.gif"
		oveOV.src = "nahris/library/leftlinks/oveOV.gif"
		insNO.src = "nahris/library/leftlinks/insNO.gif"
		insOV.src = "nahris/library/leftlinks/insOV.gif"
		conNO.src = "nahris/library/leftlinks/conNO.gif"
		conOV.src = "nahris/library/leftlinks/conOV.gif"
		nnoNO.src = "nahris/library/leftlinks/nnoNO.gif"
		nnoOV.src = "nahris/library/leftlinks/nnoOV.gif"
		feeNO.src = "nahris/library/leftlinks/feeNO.gif"
		feeOV.src = "nahris/library/leftlinks/feeOV.gif"
		updNO.src = "nahris/library/leftlinks/updNO.gif"
		updOV.src = "nahris/library/leftlinks/updOV.gif"
	}
	else {
		visNO = ""
		visOV = ""
		oveNO = ""
		oveOV = ""
		insNO = ""
		insOV = ""
		conNO = ""
		conOV = ""
		nnoNO = ""
		nnoOV = ""
		feeNO = ""
		feeOV = ""
		updNO = ""
		updOV = ""
		
		document.vis = ""
		document.ove = ""
		document.ins = ""
		document.con = ""
		document.nno = ""
		document.fee = ""
		document.upd = ""
}


function changeInstitute() {
	var institution = document.getElementById("institution");
	var block_start = document.getElementById("otherinst_start_block");
	var f_value     = institution.options[institution.selectedIndex].value;
	
	if( f_value == "other" ) {
		document.location.href = "http://www.nahris.ch/?p=login&add=otherinst";
	}
}
