<!--

function channelChange(channel, homepage){

	document.getElementById('brooksTVimage').src = document.getElementById('thumb' + channel).src;

	if(homepage){
		document.getElementById('brooksTVlink').title = 'Click for ' + document.getElementById('thumb' + channel).alt;
		document.getElementById('TVdirections').style.visibility = 'visible';

		switch(channel)
		{
		case '1':
			document.getElementById('brooksTVlink').href = 'frontStep.htm';
			break;
		case '2':
			document.getElementById('brooksTVlink').href = 'roadWall.htm';
			break;
		case '3':
			document.getElementById('brooksTVlink').href = 'spoutWall.htm';
			break;
		case '4':
			document.getElementById('brooksTVlink').href = 'poolGate.htm';
			break;
		case '5':
			document.getElementById('brooksTVlink').href = 'fireplace.htm';
			break;
		default:
			document.getElementById('brooksTVlink').href = '#';
		}
	}
}

function dropDownFix() {
	var width = 0;
	if( typeof( window.innerWidth ) == 'number' ) {
		//Non-IE
    		width = window.innerWidth;
  	} else if( document.documentElement && ( document.documentElement.clientWidth ) ) {
    		//IE 6+ in 'standards compliant mode'
    		width = document.documentElement.clientWidth;
		width = width * 0.8;
  	} else if( document.body && ( document.body.clientWidth ) ) {
    		//IE 4 compatible
    		width = document.body.clientWidth;
		width = width * 0.8;
  	}
	var margin = String(Math.round(width/2 - 305)) + 'px';
  	document.getElementById('projectsDropDown').style.marginLeft = margin;
}

function toggleElement(id) {

	var obj = document.getElementById(id).style;
	
	if(obj.visibility == 'hidden'){
		obj.visibility = 'visible';
	}
	else{
		obj.visibility = 'hidden';
	}
}

//-->
