function showKitchen(name, wheretoshow){		
				
				document.getElementById(wheretoshow).innerHTML = document.getElementById(name).innerHTML;
				document.getElementById(wheretoshow).style.display = '';	
							
	}
	function visible(element){
		if(document.getElementById(element).style.display != 'none'){
			return true;
		}else{
			return false;
		}
	}
	
	function closeModelle(){
		if(visible('modern')){new Effect.toggle('modern','SLIDE')}
	    if(visible('klassisch')){new Effect.toggle('klassisch','SLIDE')}
	    if(visible('lebensfroh')){new Effect.toggle('lebensfroh','SLIDE')}
	}
	function closeFronten(){
		if(visible('modern2')){new Effect.toggle('modern2','SLIDE');}
	    if(visible('klassisch2')){new Effect.toggle('klassisch2','SLIDE');}
	    if(visible('lebensfroh2')){new Effect.toggle('lebensfroh2','SLIDE');}
	}


	function openElement(element){
		if(element == 'modelle'){
		
		    if(visible('platten')){Effect.toggle('platten','SLIDE',{queue:{scope:'myscope', position:'end'}});}
		    if(visible('fronten')){Effect.toggle('fronten','SLIDE',{queue:{scope:'myscope', position:'end'}});closeFronten();}
			if(visible('modelle')){closeModelle();}
		}else if(element == 'platten'){
		
			if(visible('modelle')){Effect.toggle('modelle','SLIDE',{queue:{scope:'myscope', position:'end'}});closeModelle();}
			if(visible('fronten')){Effect.toggle('fronten','SLIDE',{queue:{scope:'myscope', position:'end'}});closeFronten();}
			
		}else if(element == 'fronten'){
		
			if(visible('modelle')){Effect.toggle('modelle','SLIDE',{queue:{scope:'myscope', position:'end'}});closeModelle();}
			if(visible('platten')){Effect.toggle('platten','SLIDE',{queue:{scope:'myscope', position:'end'}});}
			if(visible('fronten')){closeFronten();}
			
		}else if(element == 'modern'){
		
			if(visible('klassisch')){Effect.toggle('klassisch','SLIDE',{queue:{scope:'myscope', position:'end'}});}
		    if(visible('lebensfroh')){Effect.toggle('lebensfroh','SLIDE',{queue:{scope:'myscope', position:'end'}});}
			
		}else if(element == 'klassisch'){
		
			if(visible('modern')){Effect.toggle('modern','SLIDE',{queue:{scope:'myscope', position:'end'}});}
		    if(visible('lebensfroh')){Effect.toggle('lebensfroh','SLIDE',{queue:{scope:'myscope', position:'end'}});}
			
		}else if(element == 'lebensfroh'){
		
			if(visible('modern')){Effect.toggle('modern','SLIDE',{queue:{scope:'myscope', position:'end'}});}
		    if(visible('klassisch')){Effect.toggle('klassisch','SLIDE',{queue:{scope:'myscope', position:'end'}});}
			
		}else if(element == 'modern2'){
		
			if(visible('klassisch2')){Effect.toggle('klassisch2','SLIDE',{queue:{scope:'myscope', position:'end'}});}
		    if(visible('lebensfroh2')){Effect.toggle('lebensfroh2','SLIDE',{queue:{scope:'myscope', position:'end'}});}
			
		}else if(element == 'klassisch2'){
		
			if(visible('modern2')){Effect.toggle('modern2','SLIDE',{queue:{scope:'myscope', position:'end'}});}
		    if(visible('lebensfroh2')){Effect.toggle('lebensfroh2','SLIDE',{queue:{scope:'myscope', position:'end'}});}
			
		}else if(element == 'lebensfroh2'){
		
			if(visible('modern2')){Effect.toggle('modern2','SLIDE',{queue:{scope:'myscope', position:'end'}});}
		    if(visible('klassisch2')){Effect.toggle('klassisch2','SLIDE',{queue:{scope:'myscope', position:'end'}});}
			
		}
	
			Effect.toggle(element,'SLIDE',{queue:{scope:'myscope', position:'end'}});
		
	}
	
	function previousElement(name,previouspage){
			Effect.SlideUp(name+'_'+(previouspage+1),{queue:{scope:'myscope2', position:'end'}});
			Effect.SlideDown(name+'_'+previouspage,{queue:{scope:'myscope2', position:'end'}});
	}
	function nextElement(name,nextpage){
			Effect.SlideUp(name+'_'+(nextpage-1),{queue:{scope:'myscope2', position:'end'}});
			Effect.SlideDown(name+'_'+nextpage,{queue:{scope:'myscope2', position:'end'}});
	}
	
	function openAll(){
	    new Effect.toggle('fronten','SLIDE');
		new Effect.toggle('modelle','SLIDE');
		new Effect.toggle('platten','SLIDE');
		
		new Effect.toggle('modern','SLIDE');
		new Effect.toggle('klassisch','SLIDE');
		new Effect.toggle('lebensfroh','SLIDE');
		
		new Effect.toggle('modern2','SLIDE');
		new Effect.toggle('klassisch2','SLIDE');
		new Effect.toggle('lebensfroh2','SLIDE');
	}
	function ajaxLoader(url,id) { 
               if (document.getElementById) { 
                    var x = (window.ActiveXObject) ? new ActiveXObject("Microsoft.XMLHTTP") : new XMLHttpRequest(); 
               } 
               if (x) { 
                    x.onreadystatechange = function() { 
                         if (x.readyState == 4 && x.status == 200) { 
                              el = document.getElementById(id); 
                              el.innerHTML = x.responseText; 
                         } 
                    } 
                    x.open("GET", url, true); 
                    x.send(null); 
               } 
    } 


