	/********************************************/
	/*  SiteBuilder for Prototype 				*/
	/*  (c) 2007 i-labor.de, Michael Dinkelaker */
	/*  ilabor@gmail.com						*/
	/********************************************/


	function initApp() {
		preloadStart();
		init();
		doClick(0);
	}

	function preloadStart() {
		MM_preloadImages('pics/bg00.png', 'pics/plan.png', 'pics/bg01.png', 'pics/bg02.png', 'pics/bg03.png', 'pics/bg04.png','pics/pfeil.gif', 'pics/leer.gif', 'pics/dots.png');
	}

	function requestBack() {
		requestContent('agenturen.html');
		bgPic(1);
	}

	function requestContent(par) {
		$('infoContent').innerHTML = "laden...";
		par = 'page='+par;
  		var myAjaxC = new Ajax.Updater('infoContent', 'getter.php', { method: 'get', parameters: par });
  	}
  	function requestAContent(par) {
  		bgPic(4);
  		requestContent(par);	
  	}

  	function doROV(n) {
  		//var t = MM_findObj("txt"+n);  		
  		var t = MM_findObj("btn"+n);
  		t.src = "pics/pfeil.gif";  		
  		//t.style.textDecoration = "overline";
  	}

  	function doROU(n) { 
  		var t = MM_findObj("btn"+n);  		
  		clearBtns(); 
  	}  		
  	
  	function bgPic(n) {  		
  		t = MM_findObj("tbl_main");
  		t.style.backgroundImage = "url('pics/bg0"+n+".png')";
  	}

  	function doClick(n) {
  		clearBtns();
  		clearTxts();
  		var t = MM_findObj("txt"+n);
  		t.style.textDecoration = "none";
  		bgPic(n);
  		arr = ["was.html", "agenturen.html", "plan.html", "kontakt.html"];
  		requestContent(arr[n]);
  	}

  	function clearBtns() {
  		leer = "pics/leer.gif";
  		$('btn0').src = leer;
  		$('btn1').src = leer;
  		$('btn2').src = leer;
  		$('btn3').src = leer;
  	}

  	function clearTxts() {
  		$('txt0').style.textDecoration = "underline";
  		$('txt1').style.textDecoration= "underline";
  		$('txt2').style.textDecoration= "underline";
  		$('txt3').style.textDecoration= "underline";
  	}
