var oMainCont;
var oBody;
var oSmallCont;
var bodyBg;
var http = null;


function getUrl(url)
{
	if (http == null) {
		if (window.XMLHttpRequest) {
		   http = new XMLHttpRequest();
		} else if (window.ActiveXObject) {
		   http = new ActiveXObject("Microsoft.XMLHTTP");
		}
	}

	if (http != null) {
	   http.open("GET", url, true);
	   http.onreadystatechange = output;
	   http.send(null);
	}
	return;
}


function output()
{
   if (http.readyState == 4) {
      oSmallCont.innerHTML = http.responseText;
   	  oSmallCont.style.visibility = "visible";
   }
   return;
}


function show(url)
{
	oMainCont = document.getElementById("container");
	oBody = document.getElementById("body");
	bodyBg = oBody.style.backgroundColor;
	oSmallCont = document.getElementById("container_klein");
	getUrl(url);
	//oSmallCont.style.visibility = "hidden";
	//oSmallCont.style.visibility = "visible";

	/* Transparenz Einstellungen bei versch. Browsern */
	oMainCont.style.filter = "alpha(opacity=30)"; /* IE */
	oMainCont.style.MozOpacity = 0.30; /* FF */
	oMainCont.style.Opacity = 0.30; /* Safari */

	//oBody.style.backgroundColor = "#CCCCCC";
}


function hide()
{
	oMainCont = document.getElementById("container");
	oBody = document.getElementById("body");
	oSmallCont = document.getElementById("container_klein");
	oSmallCont.style.visibility = "hidden";

	/* Transparenz Einstellungen bei versch. Browsern */
	oMainCont.style.filter = "alpha(opacity=100)"; /* IE */
	oMainCont.style.MozOpacity = 1.00; /* FF */
	oMainCont.style.Opacity = 1.00; /* Safari */

	oBody.style.backgroundColor = 	bodyBg;
}


function decode(s)
{
   var temp = "";
   var alt, neu;
   var delta = 1;
   for (var i=0; i<s.length; i++) {
      alt = s.charCodeAt(i);
      neu = alt - delta * (-1);
      temp += String.fromCharCode(neu);
   }
   location.href = "mailto:" + temp;
}


intvId = 0;
function laufschrift()
{
	e = document.getElementById("ls1");
	e.style.top = "000px";
	e.style.left = "100px";
	e.style.visibility = "visible";
	intvId = window.setInterval("text1(e)", 40);
}

function text1(e)
{
	n = e.style.top;
	n = n.replace("px","");
	n = eval(n);
	n = n+10;
	e.style.top = n.toString() + "px";
	if(n >= 400) {
		window.clearInterval(intvId);
		laufschrift2();
	}
}

function laufschrift2()
{
	e = document.getElementById("ls2");
	e.style.top = "000px";
	e.style.left = "150px";
	e.style.visibility = "visible";
	intvId = window.setInterval("text2(e)", 40);
}

function text2(e)
{
	n = e.style.top;
	n = n.replace("px","");
	n = eval(n);
	n = n+10;
	e.style.top = n.toString() + "px";
	if(n >= 450) {
		window.clearInterval(intvId);
		laufschrift3();
	}
}

function laufschrift3()
{
	e = document.getElementById("ls3");
	e.style.top = "000px";
	e.style.left = "300px";
	e.style.visibility = "visible";
	intvId = window.setInterval("text3(e)", 40);
}

function text3(e)
{
	n = e.style.top;
	n = n.replace("px","");
	n = eval(n);
	n = n+10;
	e.style.top = n.toString() + "px";
	if(n >= 500) {
		window.clearInterval(intvId);
		e = document.getElementById("ls4");
		e.style.top = "560px";
		e.style.left = "800px";
		e.style.visibility = "visible";
	}
}

/**
 *
 * @access public
 * @return void
 **/
function page2()
{
	e1 = document.getElementById("s1");
	e2 = document.getElementById("s2");
	e1.style.visibility = "hidden";
	e2.style.visibility = "visible";
}