<!--
	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 _open_win(url, target, ext)
	{
		if (ext)
		{
			window.open(url.replace(/&amp;/g, '&'), target, ext);
		}
		else
		{
			window.open(url.replace(/&amp;/g, '&'), target);
		}
		return false;
	}

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

			if (anchor.innerHTML.match(/^Anzeige: /))
			{
				anchor.innerHTML = '<span style="color: #6C6C6C;">' + anchor.innerHTML + '</span>';
			}
		}
	}

	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 selectCode(a)
	{
		// Get ID of code block
		var e = a.parentNode.parentNode.parentNode.getElementsByTagName('CODE')[0];

		// Not IE
		if (window.getSelection)
		{
			var s = window.getSelection();
			// Safari
			if (s.setBaseAndExtent)
			{
				s.setBaseAndExtent(e, 0, e, e.innerText.length - 1);
			}
			// Firefox and Opera
			else
			{
				var r = document.createRange();
				r.selectNodeContents(e);
				s.removeAllRanges();
				s.addRange(r);
			}
		}
		// Some older browsers
		else if (document.getSelection)
		{
			var s = document.getSelection();
			var r = document.createRange();
			r.selectNodeContents(e);
			s.removeAllRanges();
			s.addRange(r);
		}
		// IE
		else if (document.selection)
		{
			var r = document.body.createTextRange();
			r.moveToElementText(e);
			r.select();
		}
	}

	function changeElements()
	{
		externalLinks();
		// roundedCorners();
	}

	function load_iframe()
	{
		window.scrollTo(0,0);
	}

	window.onload = changeElements;

//-->
