
	// SELECT nav header
	function nav_on(navID) {
		document.getElementById(navID).src = "images/" + navID + "_on.gif";
	}
	// NAV SWAP image by reference/state
	function navSwapGif(_this, _state) {
		_this.src = "images/header_nav/" + _this.id + "_" + _state + ".gif";
	}
	
	// SWAP image by reference/state
	function imgSwap(_this,_state) {
		imgType = _this.src.substring(_this.src.lastIndexOf("."),_this.src.length)
		_this.src = "images/" + _this.id + "_" + _state + imgType;
	}
	// SWAP image by reference/state
	function imgSwapJpg(_this, _state) {
		_this.src = "images/" + _this.id + "_" + _state + ".jpg";
	}
	// SWAP image by reference/src
	function imgSwapSrc(_this, _src) {
		_this.src = "images/" + _src;
	}
	// SWAP image by id/src
	function imgSwapId(_id, _src) {
		_this = document.getElementById(_id)
		_this.src = "images/" + _src;
	}
	// LOAD page
	function loadPage(PageURL) {
		window.location.href = PageURL;
	}
	// OPEN new window
	function openPage(PageURL,w,h) {
		width=w
		height=h
		winName = stripClean(PageURL) //srtip URL for windowname so that each unique link will have a unique window
		return window.open(PageURL,winName,'width='+width+',height='+height+',toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,copyhistory=no,resizable=yes')
	
	}
	// HIDE Element by ID
	function hideEle(inID) {
		document.getElementById(inID).style.visibility = "hidden";
	}
	// SHOW Element by ID
	function showEle(inID) {
		document.getElementById(inID).style.visibility = "visible";
	}
	// NONE Element by ID
	function removeEle(inID) {
		try {document.getElementById(inID).style.display = "none";}
		catch (e) {};
	}
	// BLOCK Element by ID
	function displayEle(inID) {
		try {document.getElementById(inID).style.display = "block";}
		catch (e) {};
	}
	// HTTP/HTTPS
	function secit(_secure) {
		var eLink=document.getElementsByTagName("a");
		
		//alert(eLink.length)
		
		for(var i=0;i<eLink.length;i++){
			eHref = eLink[i].getAttribute('href')
			if(eHref) {
			
				if (eHref.indexOf("javascript") < 0) {
				
					domain = window.location.href.split('.com/')[0];
					if (eHref.indexOf(domain) > -1) {
					
					} else {
						eHref = domain + ".com/"+ eHref
					}
					if (_secure) eHref = eHref.replace("http","https");
					else eHref = eHref.replace("https","http");
					eLink[i].href = eHref
				}
			
			}
		}
	}
	// SET JS YEAR to 4 digit
	function y2k(_year) { return (_year < 1000) ? _year + 1900 : _year; }
	// STRIP TEXT STRING
	function stripClean(_string) {
		_string = _string.replace(/\./g,"");
		_string = _string.replace(/-/g,"");
		_string = _string.replace(/\(/g,"");
		_string = _string.replace(/\)/g,"");
		_string = _string.replace(/ /g,"");
		_string = _string.replace(/:/g,"");
		_string = _string.replace(/\//g,"");
		return _string
	}
	