//
//	"sp_ex" setzt EMail-Adresse aus Parameter zusammen:
//
//	Aufruf: javascript:sp_ex('webmaster','lu','antoon','Ihr Foto bei LiW')
//


function sp_ex(p1, p2, p3, p4)
{
	x_str		= String.fromCharCode(109,97,105);
	x_str		= x_str + String.fromCharCode(108, 116, 111,58);
	x_str		= x_str + p1 + String.fromCharCode(64);
	x_str		= x_str + p3 + ".";
	x_str		= x_str + p2 + "?Sub";
	x_str		= x_str + "ject=" + p4.replace(/\"/g,"");
	location.href	= x_str;
}


//
//	
//
//

var pos1	= 600;

function nachlinks()
{
	document.getElementById("laufschrift1").style.visibility="visible";
	var laufschriftfg1 = document.getElementById("laufschrift1").style;
	
	if(pos1 > -158)
	{
		pos1-=1;
	} else 
	{
		return;
	}
	
	document.getElementById("laufschrift1").style.left = pos1 + "px";
	laufschleife();
}

function laufschleife()
{
	laufschrifttakt = setTimeout("nachlinks()",10);
}

//
// Einblenden der PopUps
//


	var value		= 0;
	var funcId		= 0;

	
	function reset(Id)
	{
		document.getElementById("opa").style.display	= "none";
		document.getElementById("opa").style.opacity	= 0;
		document.getElementById("opa").style.filter		= 'alpha(opacity=0)';
		document.getElementById("pic").style.display	= "none";
		document.getElementById("pic").style.opacity	= 0;
		document.getElementById("pic").style.filter		= 'alpha(opacity=0)';
		value											= 0;
		window.clearInterval(Id);
		funcId											= 0;
	}	
	
	function setOpacity(funcId) 
	{
		if (value > 100)
    		window.clearInterval(funcId);
    		
		if ( value < 70 )
		{
			document.getElementById('opa').style.zIndex		= 8;
			document.getElementById('opa').style.opacity 	= value/100;
			document.getElementById('opa').style.filter 		= 'alpha(opacity=' + value + ')';
		}
		if ( value < 101 )
		{
			document.getElementById('pic').style.zIndex		= 9;
			document.getElementById('pic').style.opacity 	= value/100;
			document.getElementById('pic').style.filter 		= 'alpha(opacity=' + value + ')';
		}
		value++;
	}
   
	
	function popUpPic(file, x_size, y_size, text)
	{
//		if (document.getElementById('video1'))
//		{
//			document.getElementById('video1').style.display	= "none";
//		}
//		if (document.getElementById('video2'))
//		{
//			document.getElementById('video2').style.display	= "none";
//		}
		funcId 	= window.setInterval("setOpacity(funcId)", 10);
		document.getElementById("opa").style.display	= "block";
		document.getElementById("pic").style.display	= "block";
		
		htmlcode										= "<div style='position:absolute; right:1px; top:1px;'>\n";
		htmlcode										= htmlcode + "<a href='javaScript:void(0)' onClick='reset(funcId)";
		if (document.getElementById('video1'))
		{ 
			htmlcode									= htmlcode + "; document.getElementById(\"video1\").style.display=\"block\"";
		}
		if (document.getElementById('video2'))
		{ 
			htmlcode									= htmlcode + "; document.getElementById(\"video2\").style.display=\"block\"";
		}
		htmlcode										= htmlcode + "'><img src='./images/close_button.jpg' border='0' title='Fenster ausblenden'></a>\n";
		htmlcode										= htmlcode + "</div>\n";
		htmlcode										= htmlcode + "<img src='" + file + "' alt='" + text + "' style='border: 3px double #9ea8b2;'>\n";
		htmlcode										= htmlcode + "<p style='text-align:center;'>" + text + "<br>\n";
		document.getElementById("pic").innerHTML		= htmlcode;
  	}

