function simplePopup(theUrl,windowName,features)
{
window.open(theUrl,windowName,features);
void 0;
}

function layerchange(tabOn,divOn)
{
//turn off alltabs and divs
document.getElementById('c0').style.background='#023A5B';
document.getElementById('c1').style.background='#023A5B';
document.getElementById('c2').style.background='#023A5B';
document.getElementById('c3').style.background='#023A5B';
document.getElementById('c4').style.background='#023A5B';
document.getElementById('c0').style.color='#FFF';
document.getElementById('c1').style.color='#FFF';
document.getElementById('c2').style.color='#FFF';
document.getElementById('c3').style.color='#FFF';
document.getElementById('c4').style.color='#FFF';

document.getElementById('deptlayoutwhy').style.display='none';
document.getElementById('deptlayoutfaculty').style.display='none';
document.getElementById('deptlayoutdegrees').style.display='none';
document.getElementById('deptlayoutcourses').style.display='none';
document.getElementById('deptlayoutcareers').style.display='none';

//turn on the correct divs and tabs
document.getElementById(tabOn).style.background='#C3D1DC';
document.getElementById(tabOn).style.color='#FFF';
document.getElementById(divOn).style.display='block';
}

function setIdProperty(id, property, value) {
	var hideElement = 'none';
	var styleObject = document.getElementById(id+"Content");
	var callerObject =  document.getElementById(id);
	var className="contentLinkSelected";
	if (styleObject != null) {
		
		styleObject = styleObject.style;
		
		if (styleObject[property] == value) {
			value = 'none';
			className="contentLink";
		}
		
		styleObject[property] = value;
		callerObject.className = className;

	}
}
function hideAll(item, id, length) {
	/*Hide All Items on click*/
	var property = 'display';
	var styleObject;
	
	for (var i=1;i<length+1;i++) {
		styleObject = styleObject = document.getElementById(item+i);
		if (styleObject != null) {
			styleObject.style[property] = 'none';
		}
	}
	/*Now Show Selected Item*/
	setIdProperty((item+id), property, 'block');
}