<!--
	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);
		}
	}
	
	function changeElements()
	{
		externalLinks();
		// roundedCorners();
	}

	window.onload = changeElements;


	function fontsizeup()
	{
		var active = getActiveStyleSheet();

		switch (active)
		{
/*			case 'A--':
				setActiveStyleSheet('A-');
			break;

			case 'A-':
				setActiveStyleSheet('A');
			break;
*/
			case 'A':
				setActiveStyleSheet('A+');
			break;

			case 'A+':
				setActiveStyleSheet('A++');
			break;

			case 'A++':
				setActiveStyleSheet('A');
			break;

			default:
				setActiveStyleSheet('A');
			break;
		}
	}

	function fontsizedown()
	{
		active = getActiveStyleSheet();

		switch (active)
		{
			case 'A++' : 
				setActiveStyleSheet('A+');
			break;

			case 'A+' : 
				setActiveStyleSheet('A');
			break;

/*			case 'A' : 
				setActiveStyleSheet('A-');
			break;

			case 'A-' : 
				setActiveStyleSheet('A--');
			break;

			case 'A--' : 
			break;

			default :
				setActiveStyleSheet('A--');
			break;*/
		}
	}

	function setActiveStyleSheet(title)
	{
		var i, a, main;

		for (i = 0; (a = document.getElementsByTagName('link')[i]); i++)
		{
			if (a.getAttribute('rel') && a.getAttribute('rel').indexOf('style') != -1 && a.getAttribute('title'))
			{
				a.disabled = true;
				if (a.getAttribute('title') == title)
				{
					a.disabled = false;
				}
			}
		}
	}

	function getActiveStyleSheet()
	{
		var i, a;

		for (i = 0; (a = document.getElementsByTagName('link')[i]); i++)
		{
			if (a.getAttribute('rel') && a.getAttribute('rel').indexOf('style') != -1 && a.getAttribute('title') && !a.disabled)
			{
				return a.getAttribute('title');
			}
		}

		return null;
	}

//-->
