<!--
	
	function addLoadEvent(func) {
		var oldonload = window.onload;
		if (typeof window.onload != 'function') {
			window.onload = func;
		} else {
			window.onload = function() {
				oldonload();
				func();
			}
		}
	}
	
	
	function incLogin() {
		if (!document.getElementsByTagName) return false;
		if (!document.getElementById) return false;
		if (!document.getElementById("maincontentcell")) return false;
		var str = '<iframe id="iflogin" src="/cafe.cfm?act=member.showlogin&spanid=loginform" frameborder="0" width="0" height="0"></iframe>';
			str += '<span id="loginform">&nbsp;</span>';
	
		document.write(str);
	}
	
	
	function initPage() {
		if (!document.getElementsByTagName) return false;
		if (!document.getElementById) return false;
		if (!document.getElementById("quick-login")) return false;
		
		var quickLogin = document.getElementById("quick-login");
		var oInput = quickLogin.getElementsByTagName("input");
		
		for (var i=0; i<oInput.length; i++) {
			oInput[i].onfocus = function() {
				if (this.value == this.defaultValue) {
					this.value = "";
				}
			}
	
			oInput[i].onblur = function() {
				if (this.value == "") {
					this.value = this.defaultValue;
				}
			}
		}
	}
	
	if (window.addEventListener) {
		window.addEventListener("load", initPage, false);
	} else {
		window.attachEvent("onload", initPage);
	}
	
	
	function navigation() {
		if (!document.getElementsByTagName) return false;
		if (!document.getElementById) return false;
		if (!document.getElementById("maincontentcell")) return false;
	
	document.write('<div id="navigation">');
	document.write('<ul>');
	document.write('<li><a href="http://www.cali-pi.org/tools">Tools & Resources</a></li>');
  document.write('<li><a href="http://www.cali-pi.org/displaycommon.cfm?an=1&subarticlenbr=58">Services & Vendors</a></li>');
  document.write('<li><a href="http://www.cali-pi.org/about">About Us</a></li>');
	document.write('</ul>');
	document.write('</div>');
	}
		
	navigation();
	
	function homelink() {
		if (!document.getElementsByTagName) return false;
		if (!document.getElementById) return false;
		if (!document.getElementById("maincontentcell")) return false;
	
	document.write('<div id="homelink">');
	document.write('<a id="home" href="http://www.cali-pi.org">');
	document.write('<em>');
  document.write('California Association of Licensed Investigators');
  document.write('</em>');
  document.write('</a>');
	document.write('</div>');
	}
		homelink();
	
//-->