<!--//hidden

////////////////////////////////////////////////////////
// Coded by Jesse Knowles | http://www.jesseknowles.com
// description: Common functions used in most websites
// Author: jesse@jesseknowles.com
// Last Modified: 07-09-03
////////////////////////////////////////////////////////

////////////////////////////////////
// Popup window in center of screen
////////////////////////////////////

var popupDir = null; // this is to tell the popup that we are in the root dir

function popupWin(thisLink,popWidth,popHeight){
	var winleft = (screen.width - popWidth) / 2;
	var winUp = (screen.height - popHeight) / 2;
	window.open(thisLink, 'popup','toolbar=no, scrollbars=no, resizable=yes,width='+popWidth+',height='+popHeight+',left='+winleft+',top='+winUp);
}

function popupPrint(thisLink){
	popWidth = 510;
	popHeight = 480;
	var winleft = (screen.width - popWidth) / 2;
	var winUp = (screen.height - popHeight) / 2;
	window.open(thisLink, 'popup','toolbar=no, scrollbars=yes, resizable=yes,width='+popWidth+',height='+popHeight+',left='+winleft+',top='+winUp);
}


//////////////////
// show or hide id
//////////////////

function showHide(ctrl){
	if(document.getElementById(ctrl).style.display == "none"){ document.getElementById(ctrl).style.display = ""; }
	else{ document.getElementById(ctrl).style.display = "none"; }
}

//////////////////////////////////////////////////
// sets onblur and onfocus values of form elements
//////////////////////////////////////////////////

function formFocus(ctrl, initVal){
	if(ctrl.value == '' || ctrl.value == initVal){ 
		ctrl.className = "focus";
		if(initVal != ''){
			ctrl.value = '';
		}
	}
}

function formBlur(ctrl, initVal){
	if(ctrl.value == '' || ctrl.value == initVal){ 
		ctrl.className=''; 
		if(initVal != ''){
			ctrl.value = initVal;
		}
	}		
}


var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-16396701-1']);
_gaq.push(['_trackPageview']);

(function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();

// -->
