function popup(url) {
 fenster=window.open(url, "Popupfenster","width=1280,height=1024,resizable=yes");
 fenster.focus();
 return false;
}

function showModule(module,view){  
	 //unFocus.History.addHistory(module);	  
	 var xmlHttp;
      try{    
		 xmlHttp=new XMLHttpRequest();    
      }catch (e){      
	   try{      
		 xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");      
	   }catch (e){
         try{        
		   xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");        
	     }catch (e){        
		   alert("Your browser does not support AJAX!");        
		   return false;        
		 }          
	   } 
     }
     xmlHttp.onreadystatechange=function(){
	  if(xmlHttp.readyState==4){
			var cont=document.getElementById(view);
			cont.innerHTML=utf8_decode(xmlHttp.responseText);
			window.setTimeout(shiftTopLeft,"8000");
			go();
     		
	  }else{
	  }
     }
     xmlHttp.open("GET",module,true);
     xmlHttp.send(null);
}

function initME(){
	//showModule('load.php?id=ass_start_de.php','content');
}

function shiftTopLeft(){
	  window.clearTimeout(shiftTopLeft);
	  var cont=document.getElementById("TopFullPic");
	  var xmlHttp;
      try{    
		 xmlHttp=new XMLHttpRequest();    
      }catch (e){      
	   try{      
		 xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");      
	   }catch (e){
         try{        
		   xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");        
	     }catch (e){        
		   alert("Your browser does not support AJAX!");        
		   return false;        
		 }          
	   } 
     }
     xmlHttp.onreadystatechange=function(){
	 if(xmlHttp.readyState==4){
			if( document.getElementById("TopFullPic") ) document.getElementById("TopFullPic").src = xmlHttp.responseText;
			else if ( document.getElementById("TopFull") )  document.getElementById("TopFull").style.backgroundImage = "url('"+xmlHttp.responseText+"')" ;
	 }else{
	  }
     }
     if(document.getElementById("TopFullPic")){
		path = cont.title;
	    xmlHttp.open("GET",path,true);
     	xmlHttp.send(null);
	 }
	 else if(document.getElementById("TopFull")){
		xmlHttp.open("GET",'http://www.apartments-swiss-star.ch/2009/shifter.php?id=Start',true);
     	xmlHttp.send(null);
	 }			
}
