function showDetails (obj) {
	obj = obj.parentNode;
				
    do {
		obj = obj.nextSibling;
	} while (obj.nodeName == '#text' );
		if(obj.style.display == 'none' || !obj.style.display) {
			obj.style.display = 'block';
		} else {
			obj.style.display = "none";
		}
	}		
						
    function showFlash () {
        //alle flashfilme sammeln
        with(document.getElementById('head')) {
            for(var i = 0 ; i < getElementsByTagName('object').length;i++)
                getElementsByTagName('object')[i].style.display = 'block';
        }   
    }
                        
			window.onload = function () {             
                var ig = new Lightbox(images);
                    ig.addConfigValues(
                        {
                            imageWindow:{
                                iW_GroundLayer:document.getElementById('imageGround'), //important
                                iW_ViewLayer:document.getElementById('imageViewer'),   //important
                                iW_closeButton:document.getElementById('imageClose')  //important
                            },
                            imageLoad:{
                                iL_ajaxLoad:false,
                                iL_imageArray:images
                            },
                            controlPannel:{
                                show:true,
                                controlPannelObject:{
                                    groundLayer:null,
                                    prevButton:null,
                                    nextButton:null,
                                    slideShowButton:null,
                                    slideRuler:null
                                }
                            },
                            onLBClose:showFlash,
                            onlySlideShow:true,
                            resetOnClose:false
                        }
                    )
                                        
                document.getElementById('showGal').onclick = function () {
                    //alle flashfilme sammeln
                    with(document.getElementById('head')) {
                        for(var i = 0 ; i < getElementsByTagName('object').length;i++)
                            getElementsByTagName('object')[i].style.display = 'none';
                    }                
                    ig.initGallery();
                }
                
                var sm = new Schuppenmenu (document.getElementById('smenu_groundLayer'));
                    sm.initMenu();
                    
                BoxControl.enablePreloader({
                           position:'',
                           attrib:{
                            style:{
                             position:'absolute',
                             height:'29px',
                             width:'125px',
                             top:'100px',
                             left:'167px',
                             background:'#FFF',
                             border:'1px solid #737373',
                             zIndex:100
                            }
                           },
                           subObj:{
                            img:{
                                attrib:{
                                    src:'images/PanoPreloader5.gif',
                                    alt:'loading...'
                                }
                            }
                           }
                        });
                       
                BoxControl.addBoxObject(Element.get('groundLayer'));

				sGI = new Slideshow();  
				/*var angebot = new panoflex.Angebot(document.getElementById('angebot'));*/
			}
