
sfHover = function() {
	var sfEls = document.getElementById("nav-top").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}

if (window.attachEvent) window.attachEvent("onload", sfHover);


function createBookmarkLink(url, title)
{
	try {
		if (window.sidebar) { // Mozilla Firefox Bookmark
			return window.sidebar.addPanel(title, url, "");
		} else if( window.external ) { // IE Favorite
			return window.external.AddFavorite( url, title); 
		} else if(window.opera && window.print) { // Opera Hotlist
			return true; 
		}
	}
	catch(err)
	{
		// do nothing
	}
	
	alert('Could not create a bookmark on your client.\n\nTo return to ' + title + ' you must manually create a bookmark to: \n' + url + '.');
}



function writeBookmarkLink(url, title) 
{
	try {
		if (window.sidebar) { // Mozilla Firefox Bookmark
			return document.write('<a class="bookmark" href="javascript:createBookmarkLink(\'' + url + '\', \'' + title + '\')");"><img src="images/icon_bookmark.gif" alt="Bookmark" />Bookmark</a>'); 
		} else if (window.external) { // IE Favorite
			return document.write('<a class="bookmark" href="javascript:createBookmarkLink(\'' + url + '\', \'' + title + '\')");"><img src="images/icon_bookmark.gif" alt="Bookmark" />Bookmark</a>'); 
		} else if (window.opera && window.print) { // Opera Hotlist
			return document.write('<a class="bookmark" rel="sidebar" href="' + url + '" title="' + title + '"><img src="images/icon_bookmark.gif" alt="Bookmark" />Bookmark</a>');
		} 
	}
	catch(err) 
	{
		// do nothing
	}
	
	return document.write('To return to ' + title + ' create a bookmark to: <a style="color: white;" href="' + url + '">' + url + '</a>');
}