
function initpopUp (){
	var x = document.getElementsByTagName('a');				

	for (var i=0;i<x.length;i++)
	{	
		if (x[i].className == 'popup')
		{
			x[i].onclick = function () {
				return popUp(this.href)
			}
			x[i].title += ' (Popup)';
		}
	}
}

function popUp(url){
	newwindow=window.open(url,'name','height=460,width=760,resizable=yes');
	if (window.focus) {newwindow.focus();}
	return false;
}

//Mailfunktion ********************************************************************************
var n,d,txt;

function ePost(n,d,txt){
var txt, lTxt, a, n, d, m, eLink;
	// Wert fuer nicht uebergebene Variblen zuweisen
	txt = (txt == null) ? "" : txt ;
	n   = (n   == null) ? "info" : n;	
	d   = (d   == null) ? "tk-script.de" : d;	
	
	a=n+"&#64;"+d;
	m="mailto:";
	
	eLink = txt+"<a href=\""+m+a+"\" " +
           "class=\" email \">"+a+"</a>";
		   return eLink;
}

// Automatik ***********************************************************************************
function mail_adr(){
	if (!document.getElementById || !document.createElement) return;
    
	if(document.getElementById("mailadr")){
		var obj = document.getElementById("mailadr");
		obj.innerHTML = '&raquo; <a href="&#x006D;ai&#x006C;to:i&#x006E;f&#111;&#x0040;&#x74;&#x6b;-&#x0073;c&#114;&#105;&#x70;&#x74;&#x2e;&#x0064;&#101;"> i&#x006E;f&#111;&#x0040;&#x74;&#x6b;-&#x0073;c&#114;&#105;&#x70;&#x74;&#x2e;&#x0064;&#101;</a>';
	}
			
		
}
 window.setTimeout("mail_adr();",500);


// Text ein und ausblenden, wenn Javascript eingeschaltet ist **********************************
// 1. Styleangabe zum Ausblenden
if (document.getElementById){
	var style = '<style type="text/css">.mehrtext{display:none;}</style>';
    document.write(style);
}
		   
// 2. Link [mehr] - nur wenn Javascript eingeschaltet ist		   
function textLink(id,a_text,css_style){
	if (document.getElementById){
 		var textLink = "<a href=\"javascript:showText(\'"+id+"\')\" class=\""+css_style+"\" onclick=\"this.style.display='none';\">"+a_text+"</a>";
		return textLink;
    }
}		    

// 3. Text anzeigen lassen		   
var action,lastClick="";		   
function showText(id){
	document.getElementById(id).style.display = "block";
}	

//*******************************************************************************************



