var cont_tog = 1;
window.addEvent('domready', function(){


Fx.Style.implement({
    toggle: function(min,max){
        return this.start((this.element.getStyle(this.property).toInt() == min) ? max : min);
    }						 
});							 
							 
		var myMenu = new ImageMenu($$('#kwick .kwick'),{openWidth:390, onClick:openThumbs});

	

//$('aenderung').setStyle('opacity', 0);
//
//var aenderungFx = new Fx.Styles('aenderung', {duration:600, wait:false, transition: Fx.Transitions.expoOut});
//
//aenderungFx.start({
//		'opacity': 0,
//		'top': 85
//	}).chain(function() {
//		this.start.delay(100, this, {
//			'opacity': 0.8,
//			'top': 0
//			});
//	}).chain(function() {
//		this.start.delay(2700, this, {
//			'opacity': 0,
//			'top': 85
//		});
//	});



//triggers
			
			
//heights

		$('kwi1').addEvent('mouseover', function() {
				contheight = 320		
			});
			
		$('kwi2').addEvent('mouseover', function() {
				contheight = 320		
			});
			
		$('kwi3').addEvent('mouseover', function() {
				contheight = 320		
			});
		  		
  		$('kwi4').addEvent('mouseover', function() {
				contheight = 320		
			});
			
		$('kwi5').addEvent('mouseover', function() {
				contheight = 320		
			});
			
		$('kwi6').addEvent('mouseover', function() {
				contheight = 320		
			});
		$('kwi7').addEvent('mouseover', function() {
				contheight = 320		
			});

})

