
	function Base() {
	hoehe = function() {
		hl = parseInt($('left').getStyle("height"));
		hm = parseInt($('main').getStyle("height"));
		if ( hl > hm ) $('main').setStyle("height",hl+"px");

	}
	
	
	navi = function() {
		
		/*
		$('navimain').setStyle("display","none");
		*/
		
	
		
		$$('#navimain li').addEvent("mouseover",function() {
			$('navimain').setStyle("z-index","141");
			$('container').setStyle("z-index","131");
			
		});
		
		$$('#navimain li').addEvent("mouseout",function() {
			$('navimain').setStyle("z-index","31");
			$('container').setStyle("z-index","141");			
		});	
	
		$$('#navimain ul').each(function(o) {
		
			o.addEvent("mouseover",function(){
				
			});
			
			o.addEvent("mouseout",function() {
				
				$('navimain').setStyle("z-index","-1");
				$('container').setStyle("z-index","141");				
				$('navimain').setStyle("z-index","5");
			});
			
		});
		/*
		*/
	}


window.addEvent( 'domready', function(){
  // for each toggleNest
  $$( '.rgaccord1-nest' ).each(function(item){
    var thisSlider = new Fx.Slide( item.getElement( '.rgaccord1-content' ), { duration: 500 } );
    thisSlider.hide();
  
    item.getElement( '.rgaccord1-toggle' ).addEvent( 'click', function(){ 
      thisSlider.toggle(); 

      // add the act class
      if (item.getElement( '.rgaccord1-toggle' ).hasClass('act')) {
        item.getElement( '.rgaccord1-toggle' ).removeClass('act');
      } else {
        item.getElement( '.rgaccord1-toggle' ).addClass('act');
      }
    
    });
  });
});
	

	
	this.init = function() {
	
		this.navi();
		this.accordion();
		this.hoehe();
		
	}
}
	

B = new Base();
window.addEvent('domready',B.init);

/* Schriftgr��e */

var fsmin=10;
var fsnorm=14;
var fsmax=24;
var fsstart=false;

function fontInit() {
	fread = Cookie.read("fontsize");
	if ( fread ) setFontSize(fread);
}

window.addEvent("domready",fontInit);

function getFontSize() {
	var fs = parseInt($('main').getStyle("font-size").replace("px",""));
	if ( !fsstart ) fsstart = fs;
	return fs;
}

function setFontSize(fs) {
	$('main').setStyle("font-size",fs+"px");
	$('main').setStyle("line-height",fs*1.2+"px");	
	
	Cookie.write("fontsize",fs);
}

function increaseFontSize() {
	fs = getFontSize();
	fs += 2;
	if ( fs >= fsmax ) fs = fsmax;
	
	setFontSize(fs);
}

function decreaseFontSize() {
	fs = getFontSize();
	fs -= 2;
	if ( fs <= fsmin ) fs = fsmin;
	
	setFontSize(fs);
}

function resetFontSize() {
	if ( !fsstart ) getFontSize();
	fs = 14;
	setFontSize(fs);	
}

