// Tool Tips einrichten
window.addEvent('domready', function() {
	// Galerie-Ansicht
	$$('.gallery-icon a.lightbox img').each(function(element,index) {
		element.store('tip:text', 'Bild vergrößert anzeigen');
	});
	var tipz = new Tips('.gallery-icon a.lightbox img',{ 
	
	showDelay: 30,    //default is 100
	hideDelay: 1000,   //default is 100
 
	className: 'tipz', //default is null
 
	//this sets the x and y offets
	offsets: {
		'x': 52,       //default is 16
		'y': 52        //default is 16
	},
 
 	fixed: true,      //default is false
 
	//if you call the functions outside of the options
	//then it may "flash" a bit on transitions
	//much smoother if you leave them in here
	onShow: function(toolTipElement){
	    //passes the tooltip element
		//you can fade in to full opacity
		//or leave them a little transparent
    	toolTipElement.fade(1);
		$('show').highlight('#FFF504');
	},
	onHide: function(toolTipElement){
    	toolTipElement.fade(0);
		$('hide').highlight('#FFF504');
	}
		
	});
	
	// Kategorie-Thumbnail-Ansicht
	$$('a.gallery-thumbnail img').each(function(element,index) {
		element.store('tip:text', 'Bild vergrößert anzeigen');
	});
	var tipz = new Tips('a.gallery-thumbnail img',{ 
	
	showDelay: 30,    //default is 100
	hideDelay: 1000,   //default is 100
 
	className: 'tipz', //default is null
 
	//this sets the x and y offets
	offsets: {
		'x': 56,       //default is 16
		'y': 56        //default is 16
	},
 
 	fixed: true,      //default is false
 
	//if you call the functions outside of the options
	//then it may "flash" a bit on transitions
	//much smoother if you leave them in here
	onShow: function(toolTipElement){
	    //passes the tooltip element
		//you can fade in to full opacity
		//or leave them a little transparent
    	toolTipElement.fade(1);
		$('show').highlight('#FFF504');
	},
	onHide: function(toolTipElement){
    	toolTipElement.fade(0);
		$('hide').highlight('#FFF504');
	}
		
	});
	
});


window.addEvent('domready', function(){
	$$('#header ul li a').addEvents({
	'mouseenter': function(){
		// Always sets the duration of the tween to 1000 ms and a bouncing transition
		// And then tweens the height of the element
		this.set('tween', { duration: 200}).tween('padding-left', '15px');
	},
	'mouseleave': function(){
		// Resets the tween and changes the element back to its original size
		this.set('tween', {}).tween('padding-left', '10px');
	}
	});
	
});

window.addEvent('domready', function(){
	$$('h2.storytitleTimo a').addEvents({
	'mouseenter': function(){
		// Always sets the duration of the tween to 1000 ms and a bouncing transition
		// And then tweens the height of the element
		this.set('tween', { duration: 200}).tween('padding-left', '10px');
	},
	'mouseleave': function(){
		// Resets the tween and changes the element back to its original size
		this.set('tween', {}).tween('padding-left', '0px');
	}
	});
	
});