/*
#####################################################
# 
# Drago
# Global JavaScript utilities library
#
# Aggregated by Phenotype (phenotype.net)
# See source comments for individual credits
#
#####################################################
*/

	////////////////////////////////////////////////////////////////////
	//	Function definitions
	////////////////////////////////////////////////////////////////////
	
	/* 
	externalLinks()
	
	Function to open links to external sites in a new browser window
	(target attribute not allowed by XHTML 1.0 Strict)
	
	(c) SitePoint.com 2003
	(http://www.sitepoint.com/article/standards-compliant-world/)
	-----------------------------------------------------------------------
	*/
	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";
		}
	} // End externalLinks()

	/* Example usage:

	<a href="#" rel="external">Link</a>
	*/