/*
 *
 *	Generic library
 *
 */

/* Open external links in new window BEGIN */
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";
	}
}
window.onload = externalLinks;
/* Open external links in new window END */




/* addto bookmarks BEGIN */
var addtoLayout=0;						// 0=Horizontal 1 row, 1=Horizontal 2 rows, 2=Vertical, 3=Vertical text only
var addtoMethod=1;						// 0=direct link, 1=popup window
var AddURL = encodeURIComponent(document.location.href);	// this is the page's URL
var AddTitle = escape(document.title);	// this is the page title
/* addto bookmarks END */