document.write("<style type='text/css'>#container .centered .centered_inside #main .inside #content-main { overflow-y:hidden; }</style>");
window.addEvent("domready",function(){

    // INTRO Startgrafik
    if($defined($('intro-startgrafik'))) {
        $('intro-startgrafik').addEvent("click",function(e){
            $$('.tip').destroy();
            this.destroy();     
        });
        
        if($defined($$('#intro-startgrafik a')[0])) {
            new Tips($$('#intro-startgrafik a')[0]);
            $$('#intro-startgrafik a')[0].removeProperty("rel");
            $$('#intro-startgrafik a')[0].setProperty("href","#");
            
            if($defined($$('#intro-startgrafik a img')))
                $$('#intro-startgrafik a img')[0].setProperty("alt","");
        }
    }

    // Default Website Options
	if ($defined($E('#container'))) {
		$E('#container').setStyle("background-color", "#" + getStringColor($E('.nav a.active'), "bgColor_"));
		setWebsiteDefaultOptions();
		startSlideshow();
	}
    
    // Click Event fuer das Flash Intro
    $$('.linkFlashIntro').each(function(eliLink,cntLink){
        eliLink.setStyle("cursor","pointer");
        eliLink.addEvent("click",function(e){
            new Event(e).stop();
            window.location.href = "intro.html";
            return false;
        })    
    });
   
   // Coloring the Navigation
   $$('.nav a').each(function(el,cnt){
        var tmpColor = el.getStyle("color");

        el.addEvent('mouseenter', function(){
            el.setStyle("color","#" + getStringColor(el, "bgColor_"));
        });
        
        el.addEvent('mouseout', function(){
            el.setStyle("color",tmpColor);
        });
   });    
});


/*
window.addEvent("load",function(){ 
    
	if ($defined($E('#nav-top a'))) {
		// SOUNDS
		var songs = new Array("tl_files/mohr/audio/13658_LS_camera_click.mp3","tl_files/mohr/audio/filifunk.mp3");
		var sound = Playlist.loadSounds(songs);
		
		$$('#nav-top a').each(function(el, cnt){
			el.addEvent("mouseover", function(){
				sound.playSound(0);
			});
		});
	} 
    
});
*/

