var Site = {
	start: function(){
		
var ajax =new Ajax('/fileadmin/templates/lib/tipsx3.js', {method: 'get',evalScripts: 'true', 
		 onComplete: function() {
			 new TipsX3 ($$('a[title^=DOM:], area'), {showDelay: 0});


			 	}
				});	
ajax.request();

if ($$('area')!=0) {


//console.log('tips loaded');	
}
if ($$('.searchinput')!=0) {
$$('.searchinput').addEvents({
'mouseenter':function () {if (this.getValue()=='Suche')this.value = '';
},
'mouseleave': function () {	if (this.getValue() == '')this.value ='Suche'; 
}
	});}
new SmoothScroll();

$$('a, input[type=image]').addEvents({'focus':function () {this.blur()}  });


function hover (el,enter,leave,effekt) {
$$(el).addEvents({
'domready':function () {
if (!this.hasClass('current')) 
this.effect(effekt,{duration: 200,wait:false}).start(enter,leave);
},
'mouseenter':function () {
if (!this.hasClass('current')) 
this.effect(effekt, {duration: 200,wait:false}).start(leave,enter);
},
'mouseleave': function () {	
if (!this.hasClass('current')) 
this.effect(effekt,{duration: 200,wait:false}).start(enter,leave);
}
	});
}

hover('.news-latest-item','#eeeeee','#ffffff','background-color');

}
};

window.addEvent('domready', Site.start);

