website_path = "http://client.acropolisinc.com/intermark/html/";

// (C) 2000 www.CodeLifter.com
// http://www.codelifter.com
// Free for all users, but leave in this  header

function bookmark(){
	url = document.URL;
	who = document.title;
	
	var ver = navigator.appName
	var num = parseInt(navigator.appVersion)
	if ((ver == "Microsoft Internet Explorer")&&(num >= 4)) {
	   window.external.AddFavorite(url,who);
	}else{
       alert("Press Ctrl+D to bookmark this page.");
	} 
	
}



function emailtoassociate(){
	
	url = document.URL;
	sendtofriend_page = "sendtofriend.php";
	
	// check if this is in root directory or one more level down
	
	// if the url MINUS the website path contains a /, then we know we have to go another level down
	if(url.substring(website_path.length).search("\/") >= 0)
		sendtofriend_page = "../" + sendtofriend_page;
	
	window.open(sendtofriend_page + "?page=" + url, "sendtofriend", "width=400, height=300");
}

function expand(id){
	if (document.getElementById) { // DOM3 = IE5, NS6, MOZILLA
		if (document.getElementById(id).style.display == "inline"){
			document.getElementById(id).style.display = 'none';
		} else {
			document.getElementById(id).style.display = 'inline';			
		}	
	} else { 
		if (document.layers) {	
			if (document.id.display == "none"){
				document.id.display = 'inline';
			} else {
				document.id.display = 'none';
			}
		} else {
			if (document.all.id.style.visibility == "none"){
				document.all.id.style.display = 'inline';
			} else {
				document.all.id.style.display = 'none';
			}
		}
	}
}
