function zesummeBauen(wou,zweetSteck,eischtSteck,MillenNumm) {
    var ufank1='ma';
    var ufank2='ilt';
    var ufank3='o:';
    var KA='@';
    var punti = '.';
    location=ufank1+ufank2+ufank3+eischtSteck+zweetSteck+KA+MillenNumm+punti+wou;
}

function fleckMailAdressen() {
	
	txt = $('content').innerHTML;
	$('content').innerHTML = txt.replace(/([a-zA-Z-_.]*)__Klammeraf__([a-zA-Z-_.]*)/g, "$1@$2");
	
}

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 opZouKlappen(id) {
	if (document.getElementById(id).style.height == 'auto' || document.getElementById(id).style.height == "" ) {
		document.getElementById(id).style.height='0';
		document.getElementById(id).style.overflow='hidden';
		document.getElementById(id+"_opzou").innerHTML="<a href='javascript:opZouKlappen(\""+id+"\")'><img src='/images/icons/down.gif' alt='v' title='opklappen' /></a>";
		 
	} else {
		document.getElementById(id).style.height='auto';
		document.getElementById(id).style.overflow='visible';
		document.getElementById(id+"_opzou").innerHTML="<a href='javascript:opZouKlappen(\""+id+"\")'><img src='/images/icons/up.gif' alt='^' title='zouklappen' /></a>";
	}
	
}


function $(id) {
	return document.getElementById(id);
}

function createXMLHttpRequest() {
	try { return new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) {}
	try { return new ActiveXObject("Microsoft.XMLHTTP"); } catch (e) {}
	try { return new XMLHttpRequest(); } catch (e) {}
	return null;
}

function youtube (video, placeholder, link) {
	//alert (link.href);
	link.href='javascript:void(0);';
	$(placeholder).innerHTML = '<br /><object width="425" height="373">' +
			'<param name="movie" value="http://www.youtube.com/v/'+video+'&amp;hl=en&amp;rel=0&amp;border=0"></param>' +
			'<param name="wmode" value="transparent"></param>' +
			'<embed src="http://www.youtube.com/v/'+video+'&amp;hl=en&amp;rel=0&amp;border=0" type="application/x-shockwave-flash" wmode="transparent" width="425" height="373"></embed>' +
		'</object><br />';
}
window.onload = externalLinks;
