/****************************************************************************
	Client Scripts
	Zac Hester
****************************************************************************/

/**
 * Basic Page Globals
 */
var detect = navigator.userAgent.toLowerCase();
var isIE = detect.indexOf('msie') != -1;
var isIE7 = false;
if(isIE) {
	var check = navigator.appVersion.match(/MSIE (\d+\.\d+)/, '');
	isIE7 = check != null && Number(check[1]) >= 7.0;
}


/**
 * load_js
 * Imports JavaScript into the page
 */
function load_js(uri) {
	var scr = document.createElement('script');
	scr.setAttribute('type', 'text/javascript');
	scr.setAttribute('src', uri);
	document.getElementsByTagName('head').item(0).appendChild(scr);
}



/**
 * Page initialization.
 */
function init() {


	//Run MSIE Hacks
	if(isIE) {
		if(!isIE7) {
			//IEHacks.pngAlpha();
		}
	}
}



/**
 * Run Page Initialization
 */
if(window.addEventListener) {
	window.addEventListener('load', init, false);
}
else if(window.attachEvent) {
	window.attachEvent('onload', init);
}
