<!--
	var onload_functions = new Array();
	var onunload_functions = new Array();

	function show_content(id)
	{
		display_box = (document.getElementById(id).style.display == 'none' ) ? 'block' : 'none';
		document.getElementById(id).style.display = display_box;
	}

	// Set display of page element
	// s[-1,0,1] = hide,toggle display,show
	function dE(n, s, type)
	{
		if (!type)
		{
			type = 'block';
		}

		var e = document.getElementById(n);
		if (!s)
		{
			s = (e.style.display == 'block') ? -1 : 1;
		}
		e.style.display = (s == 1) ? type : 'none';
	}

	function popup(url, width, height, target)
	{
		window.open(url, target, 'height=' + height + ',resizable=yes,scrollbars=yes, width=' + width);
		return false;
	}

	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";
		}
	}

	function roundedCorners() 
	{
		var divs = document.getElementsByTagName('div');
		var rounded_divs = [];
		// First locate all divs with 'rounded' in their class attribute
		for (var i = 0; i < divs.length; i++) 
		{
			if (/\brounded\b/.exec(divs[i].className)) 
			{
				rounded_divs[rounded_divs.length] = divs[i];
			}
		}

		// Now add additional divs to each of the divs we have found
		for (var i = 0; i < rounded_divs.length; i++) 
		{
			var original = rounded_divs[i];
			
			// Make it the inner div of the four
			original.className = original.className.replace('rounded', '');
			
			// Now create the outer-most div
			var tr = document.createElement('div');
			tr.className = 'rounded2';
			
			// Swap out the original (we'll put it back later)
			original.parentNode.replaceChild(tr, original);
			
			// Create the two other inner nodes
			var tl = document.createElement('div');
			var br = document.createElement('div');
			
			// Now glue the nodes back in to the document
			tr.appendChild(tl);
			tl.appendChild(br);
			br.appendChild(original);
		}
	}
	
	window.onload = function()
	{
		for (var i = 0; i < onload_functions.length; i++)
		{
			eval(onload_functions[i]);
		}
	}

	window.onunload = function()
	{
		for (var i = 0; i < onunload_functions.length; i++)
		{
			eval(onunload_functions[i]);
		}
	}

	onload_functions.push('externalLinks()');

//-->
