	// **************************************************************************
	// Prototyp fuer AJAX Boxen 
	// - Ladefunktion
	// - Inhaltssteuerung (laden von content)
	// - Functionen fr verschieben, blttern usw.
	//
	// **************************************************************************
	var debug = false;
	
	function createBox(box, file){

		// host ermitteln
		current_host = window.location.host;
		current_path = document.URL.split("/");
		
		if((current_path[3]=="de" || current_path[3]=="en") && (current_path[4]=="at" || current_path[4]=="de" || current_path[4]=="int")){
			current_path = current_path[3]+"/"+current_path[4];
		} else {
			current_path = "";
		}
		file = "http://"+current_host+"/"+file;
		
		// file mit timestamp versehen um browser caching zu verhindern
		if(file.indexOf("?")==-1) 	file = file+"?rnd="+(new Date().getTime()).toString().substring(0, 8)+"&portal="+current_path;
		else 						file = file+"&rnd="+(new Date().getTime()).toString().substring(0, 8)+"&portal="+current_path;

		// prototype framework -> laden der daten
		new Ajax.Request(file, {
						 method:'get',
						 onSuccess: function(transport){
							xmldata = transport.responseText;
							document.getElementById(box).innerHTML = xmldata;
						 }
		});
	
	}
	
	function createBox(box, file, test){

		if(test)
			file = "cache/only_aut/data/teaserdata/daten_1_1.html";
			
		current_host = window.location.host;
		current_path = document.URL.split("/");
		
		if((current_path[3]=="de" || current_path[3]=="en") && (current_path[4]=="at" || current_path[4]=="de" || current_path[4]=="int")){
			current_path = current_path[3]+"/"+current_path[4];
		} else {
			current_path = "";
		}
		file = "http://"+current_host+"/"+file;

		// file mit timestamp versehen um browser caching zu verhindern
		if(file.indexOf("?")==-1) 	file = file+"?rnd="+(new Date().getTime()).toString().substring(0, 8)+"&portal="+current_path;
		else 						file = file+"&rnd="+(new Date().getTime()).toString().substring(0, 8)+"&portal="+current_path;
		// prototype framework -> laden der daten
		new Ajax.Request(file, {
						 method:'get',
						 onSuccess: function(transport){
							xmldata = transport.responseText;
							document.getElementById(box).innerHTML = xmldata;
						 }
		});
		
	}	

	function createBoxUPD(box, file){

		// if(test)
		//	file = "cache/only_aut/data/teaserdata/daten_1_1.html";
		// file mit timestamp versehen um browser caching zu verhindern
		if(file.indexOf("?")==-1) 	file = file+"?rnd="+new Date().getTime();
		else 						file = file+"&rnd="+new Date().getTime();
		// prototype framework -> laden der daten
		new Ajax.Updater(box, file, {
						 method:'get',
						 evalScripts: true
						 /*
						 onSuccess: function(transport){
							xmldata = transport.responseText;
							document.getElementById(box).innerHTML = xmldata;
						 }*/
		});
	
	}
	
	function createBoxUPD(box, file, test){

		if(test)
			file = "cache/only_aut/data/teaserdata/daten_1_1.html";

		// file mit timestamp versehen um browser caching zu verhindern
		if(file.indexOf("?")==-1) 	file = file+"?rnd="+new Date().getTime();
		else 						file = file+"&rnd="+new Date().getTime();
		// prototype framework -> laden der daten
		new Ajax.Updater(box, file, {
						 method:'get',
						 evalScripts: true
						 /*
						 onSuccess: function(transport){
							xmldata = transport.responseText;
							document.getElementById(box).innerHTML = xmldata;
						 }*/
		});
		
	}	
