// EXTRAS.JS


// External Links
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";
			if (anchor.getAttribute("title"))
				anchor.title += " ";
			anchor.title += "(opens in new window)";
		}
	}
}

window.onload = function() {
	externalLinks();
}

// Create Email Address
function createAddress(account, domain, tld, title) {
	emailE = account
	emailE = (emailE + '@' + domain + tld)
	document.write('<a href="mailto:' + emailE + '" title="' + title +'">' + emailE + '</a>')
}

// Load Flash File
function loadFlash(fsrc, fwidth, fheight) {
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="' + fwidth + '" height="' + fheight + '">');
	document.write('<param name="movie" value="' + fsrc + '" />');
	document.write('<param name="wmode" value="transparent" />');
	document.write('<param name="quality" value="high" />');
	document.write('<param name="menu" value="false" />');
	document.write('<embed src="' + fsrc + '" wmode="transparent" quality="high" menu="false" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="' + fwidth + '" height="' + fheight + '"></embed>');
	document.write('</object>');
}

