
//----------------------------------------
// Sets the class of the passed in object
// to null if the object's class was set
// to 'active_tab_hover'.
//----------------------------------------
function clearActiveTabHover(object) {
	if (object.className == "active_tab_hover")
	{
		object.setAttribute("class", "");
		object.setAttribute("className", "");
	}
}

//----------------------------------------
// Writes out the current year.
//----------------------------------------
function displayCopyrightYear() {
	var time = new Date();
	var current_year = time.getFullYear();
	
	document.write(current_year);
}

function setActiveTab(tabId) {
	var object = document.getElementById(tabId);
	
	object.setAttribute("class", "active_tab");
	object.setAttribute("className", "active_tab");
}

//----------------------------------------
// Sets the class of the passed in object
// to 'active_tab_hover' if that Object
// is not an active tab.
//----------------------------------------
function setActiveTabHover(object) {
	if(object.className != "active_tab")
	{
		object.setAttribute("class","active_tab_hover");
		object.setAttribute("className","active_tab_hover");
	}
}



function toggle_visibility(id) {
       var e = document.getElementById(id);
       if(e.style.display == 'block')
          e.style.display = 'none';
       else
          e.style.display = 'block';
}

function rand(n) {
	return (Math.floor(Math.random() * n + 1));
}

function displayGuidingPrincipal() {
	var principals = new Array(6);
	principals[0] = '"Our Customers are <em>the reason</em> we are in busi-<br />ness today"';
	principals[1] = '"We can <em>Never</em> take any Customer\'s business for granted"';
	principals[2] = '"We must strive to earn our Customer\'s business <em>every</em> day"';
	principals[3] = '"We must add <em>Value</em>, not cost to the operation of our Customers"';
	principals[4] = '"Customer inquiries / problems must be addressed in a timely manner"';
	principals[5] = '"There is no such thing as \'over-communicating\' with a Customer"';
	
	document.getElementById('sidebarGuidingPrincipals').innerHTML = principals[rand(6)-1];
}



















