function header_menu_select(){
	href = window.location.pathname + window.location.search;

	if (href.substring(0, 1) != '/') { 
		href = '/' + href;
	}
	
	uls = document.getElementsByTagName('ul');
	for (i = 0; i < uls.length; i++) { 
		ul = uls[i];
		
		if (ul.className == 'main_menu') { 
			for (j = 0; j < ul.childNodes.length; j++) {
			node = ul.childNodes[j];
				if (node.tagName == 'li' || node.tagName == 'LI') { 
					for (k = 0; k < node.childNodes.length; k++) { 
					inode = node.childNodes[k];
					if (inode.tagName == 'a' || inode.tagName == 'A') { 
						//path = inode.pathname + inode.search;
						path = inode.pathname + inode.search;
						
					if (path.substring(0, 1) != '/') { 
						path = '/' + path;
					}

				
					if (path == href) {
				//alert(path + " / " + href);
						inode.className = 'on';
				
					}
				}
			}
}
}
}
}
}


window.onload = function() {
   header_menu_select();  
}


/*
This script is written by Eric (Webcrawl@usa.net)
For full source code, installation instructions,
100's more DHTML scripts, and Terms Of
Use, visit dynamicdrive.com
*/

function printit(){  
	if (window.print) {
		window.print() ;  
	} else {
		var WebBrowser = '<OBJECT ID="WebBrowser1" WIDTH=0 HEIGHT=0 CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>';
	document.body.insertAdjacentHTML('beforeEnd', WebBrowser);
		WebBrowser1.ExecWB(6, 2);//Use a 1 vs. a 2 for a prompting dialog box    WebBrowser1.outerHTML = "";  
	}
}



/***********************************************
* Bookmark site script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

/* Modified to support Opera */
function bookmarksite(){
	
var url = this.location;
var page = document.title;	

	
if (window.sidebar) // firefox
	window.sidebar.addPanel(page, url, "");
else if(window.opera && window.print){ // opera
	var elem = document.createElement('a');
	elem.setAttribute('href',url);
	elem.setAttribute('title',page);
	elem.setAttribute('rel','sidebar');
	elem.click();
} 
else if(document.all)// ie
{
	window.external.AddFavorite(url, page);
}


}







