<!--
	
	function addLoadEvent(func) {
		var oldonload = window.onload;
		if (typeof window.onload != 'function') {
			window.onload = func;
		} else {
			window.onload = function() {
				oldonload();
				func();
			}
		}
	}
	
	function adjustStructure() {
		if (!document.getElementsByTagName) return false;
		if (!document.getElementById) return false;
		if (!document.getElementById("maincontenttable")) return false;
		if (document.getElementById("structuraltable")) return false;
		
		var findTables = document.getElementsByTagName("table");
		findTables[0].className = "structuraltable";
	}
	
	function homeLink() {
		if (!document.getElementsByTagName) return false;
		if (!document.getElementById) return false;
		if (!document.getElementById("maincontenttable")) return false;
		
		var homeBtn = '<div id="homelink"><a href="http://www.safeta.org"><img src="/images/msmimg1111/trans1.gif" /></a></div>';
		
		document.write(homeBtn);
	}
	
	function setOnclick(setThis) {
		setThis.onclick = function() {
			alert("You are now leaving the SAFEta web site. The Office on Violence Against Women takes no responsibility for and exercises no control over the organizations, views, accuracy, copy write or trademark acceptance or legality of the material contained on the server. Thank you for visiting our site.");
		}     
		
		setThis.setAttribute("target", "_blank");  
	
	}
	
	// checks links to see if they are leaving the site
	function checkLinks() {
		if (!document.getElementsByTagName) return false;
		if (!document.getElementById) return false;
		if (!document.getElementById("maincontentcell")) return false;
		
		var mainContent = document.getElementById("maincontentcell");
		var siteLinks = mainContent.getElementsByTagName("a");
		
		for (var i=0; i<siteLinks.length; i++) {
			var linkUrl = siteLinks[i].getAttribute("href", 2);
			var findHttp = "http://";
			var siteUrl1 = "safeta.org";
			var siteUrl2 = "safeta.affiniscape.com";
			
			if (linkUrl.indexOf(findHttp) != -1) {
				 setOnclick(siteLinks[i]);
			}
		}
		
	}
	
//-->	