// <![CDATA[
// Can go away someday
function popsshow(url) {
	newwindow=window.open(url,'name','height=560,width=650');
	if (window.focus) {newwindow.focus()}
	return false;
}

//  Found at http://www.quirksmode.org/js/popup.html      
function popvirtual(url) {
	newwindow=window.open(url,'name','height=535,width=740');   
	if (window.focus) {newwindow.focus()}
	return false;
}

function popfilemanager(url) {
	newwindow=window.open(url,'name','height=550,width=1000');   
	if (window.focus) {newwindow.focus()}
	return false;
}

function popAgentPhoto(url) {
	newwindow=window.open(url,'name','height=450,width=425');   
	if (window.focus) {newwindow.focus()}
	return false;
}

// give anchors with attribute rel="external" a target attribute of "_blank" -->
function externalLinks() {
 if (!document.getElementsByTagName) return;
 var anchors = document.getElementsByTagName("a");
 for (var i=0; i<anchors.length; i++) {
   var anchor = anchors[i];
   if (anchor.getAttribute("href") &&
       anchor.getAttribute("rel") == "external")
     anchor.target = "_blank";
 }
} 

function init() {         // fires up some javascript routines.  Triggered by the body onload in each page.
	externalLinks();
	highlight();
}

// ]]>
