<!--

// -------------------------------------------------------------------
// <<Source>>: utilities.inc.js
//
// <<Description>>: javascript utilites
//
// <<Related Pages>>: 
//
// <<Functions>>:
//
// <<Change Log>>:
// Date_________Description_____________________________________________Name____________________
// 
// -------------------------------------------------------------------

// *******************************************************************
// MENU FUNCTIONS
// *******************************************************************
function about_btn_change() {
	var theImg = document.getElementById('btn_about').src;

	var x = theImg.split("/");
	var t = x.length - 1;
	var y = x[t];

	if (y == 'arrow.gif') {
		document.getElementById('about').style.display = 'block';
		document.getElementById('btn_about').src = '../images/arrow_up.gif';
		document.getElementById('btn_about').title = 'Less...';
	}
	else {
		document.getElementById('about').style.display = 'none';
		document.getElementById('btn_about').src = '../images/arrow.gif';
		document.getElementById('btn_about').title = 'More...';
	}
}

function services_btn_change() {
	var theImg = document.getElementById('btn_services').src;

	var x = theImg.split("/");
	var t = x.length - 1;
	var y = x[t];

	if (y == 'arrow.gif') {
		document.getElementById('services').style.display = 'block';
		document.getElementById('btn_services').src = '../images/arrow_up.gif';
		document.getElementById('btn_services').title = 'Less...';
	}
	else {
		document.getElementById('services').style.display = 'none';
		document.getElementById('btn_services').src = '../images/arrow.gif';
		document.getElementById('btn_services').title = 'More...';
	}
}

function contract_btn_change() {
	var theImg = document.getElementById('btn_contract').src;

	var x = theImg.split("/");
	var t = x.length - 1;
	var y = x[t];

	if (y == 'arrow.gif') {
		document.getElementById('contract').style.display = 'block';
		document.getElementById('btn_contract').src = '../images/arrow_up.gif';
		document.getElementById('btn_contract').title = 'Less...';
	}
	else {
		document.getElementById('contract').style.display = 'none';
		document.getElementById('btn_contract').src = '../images/arrow.gif';
		document.getElementById('btn_contract').title = 'More...';
	}
}

function news_btn_change() {
	var theImg = document.getElementById('btn_news').src;

	var x = theImg.split("/");
	var t = x.length - 1;
	var y = x[t];

	if (y == 'arrow.gif') {
		document.getElementById('news').style.display = 'block';
		document.getElementById('btn_news').src = '../images/arrow_up.gif';
		document.getElementById('btn_news').title = 'Less...';
	}
	else {
		document.getElementById('news').style.display = 'none';
		document.getElementById('btn_news').src = '../images/arrow.gif';
		document.getElementById('btn_news').title = 'More...';
	}
}

// *******************************************************************
// WINDOW FUNCTIONS
// *******************************************************************

// -------------------------------------------------------------------
// FUNCTION:: popUpWindow
//
// PARAMETERS:: url (url of new window), w (width), h (height)
//
// DESCRIPTION:: creates a pop up window with a width (w) and height (h)
//
// RELATED PAGES:: popupreport.php, cms.php, neworg.php, editorg.php, editevent.php, managesurveys.php, viewsurveyresults.php, manageappts.php, manageevents.php, viewagenda.php, managesuccessstories.php
//
// FUNCTIONS::
//
// UTILITY FUNCTIONS:: 
//
// CONFIGURATION VARIABLES::
//
// CHANGE LOG::
// -------------------------------------------------------------------
function popUpWindow(url, w, h) {
	window.open(url, '_blank', 'toolbar=0, scrollbars=1, location=0, statusbar=0, menubar=0, resizable=1, width=' + w + ', height=' + h);
}
// -------------------------------------------------------------------

-->