function s_focus(){
// &hellip; => … 
$('s').addEvents({
	   'focus': function(){ if(this.value=="Suche …") this.value = ''; },
	   'blur': function(){ if(this.value=='') this.value = "Suche …"; }
    });
}

function mouseover()
{
$$('img.fade').each(function(img) {
	var myFx = new Fx.Tween($(img),{link: 'chain', duration: 100});
	img.addEvent('mouseenter', function() { myFx.start('opacity', 1).wait(10).start('opacity', 0.75); });
	img.addEvent('mouseleave', function() { myFx.start('opacity', 0.75).wait(10).start('opacity', 1); });
});
   var myFx = new Fx.Tween($('searchsubmit'),{link: 'chain', duration: 30});	
   $('searchsubmit').addEvent('mouseenter', function() { myFx.start('opacity', 1).wait(10).start('opacity', 0.75); });
   $('searchsubmit').addEvent('mouseleave', function() { myFx.start('opacity', 0.75).wait(10).start('opacity', 1); });
}

function hc_load_scripts(){
	/// auf jeder seite anwenden ..
	s_focus();
	mouseover();
	hc_page_bookmark();
    hc_page_print();
}

/////////////////////////////////////////////////////////////////////


function hc_page_bookmark()
{
	jQuery("a.bookmark").click(function(event){
		event.preventDefault(); // prevent the anchor tag from sending the user off to the link
		var url = this.href;
		var title = this.title;
		
		var url = _page_url;
		var title = _page_title;

		if (window.sidebar) { // Mozilla Firefox Bookmark
			window.sidebar.addPanel(title, url,"");
		} else if( window.external ) { // IE Favorite
			window.external.AddFavorite( url, title);
		} else { // for Safari, Konq etc - browsers who do not support bookmarking scripts (that i could find anyway)
			 alert('Leider unterstützt dieser Browser nicht das Hinzufügen von Bookmarks über einen Link.\n'
			 + 'Bitte drücken Sie die Tasten <control>+D um diese Seite zu Ihren Lesezeichen hinzuzufügen.');
		}

	});
}

function hc_page_print() 
{
	jQuery("a.print_page").click(function(event){
		event.preventDefault(); // prevent the anchor tag from sending the user off to the link
        window.print();
	});
}
