//window.location = this.getElementsByTagName("a")[0].href

// activate on body onload
function init(){
	inheritLink();
}

// show extra selectbox if user has chosen a specific drop down item 
function parabolClient(oThis){
	oClient = document.getElementById("clientAt");
        if(oClient) {
            if (oThis.options[oThis.selectedIndex].value == "1"){
                    oClient.style.visibility = "visible";
            } else {
                    oClient.style.visibility = "hidden";
            }
        }

	oClient = document.getElementById("clientAt2");
        if(oClient) {
            if (oThis.options[oThis.selectedIndex].value == "1"){
                    oClient.style.visibility = "visible";
            } else {
                    oClient.style.visibility = "hidden";
            }
        }
}


function inheritLink(){
	oContainer = document.getElementById("bottomBoxes");
	if (oContainer){
		aDivs = oContainer.getElementsByTagName("div");
		
		for (i=0;i<aDivs.length;i++) {
			if (aDivs[i].className.indexOf("box") > -1) {
				aDivs[i].style.cursor = "pointer";
				
				// set onclick function on outer boxes
				aDivs[i].onclick = function (){
					window.location = this.getElementsByTagName("a")[0].href;
				}
				
				// set mouseover function to activate the link
				aDivs[i].onmouseover = function (){
					this.getElementsByTagName("a")[0].className = "over";
				}

				// set mouseout function to deactivate the link
				aDivs[i].onmouseout = function (){
					this.getElementsByTagName("a")[0].className = "";
				}
				
			}
		
		}
	}
}