function facebook(key){
	//u=location.href+'?facebookkey='+key;
	u='http://'+location.host+'/'+'?facebookkey='+key;
	t=document.title;
	//console.log(u);
	window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t),'sharer','toolbar=0,status=0,width=626,height=436');
}

(function($){
	$.log = function(obj){
		if(window.console && window.console.log)
			console.log(obj);
	}
})(jQuery);

function indirectAlert(message){
	from = ["ae", "ue", "oe"];
	to = ["ä", "ü", "ö"];
	for(i in from) {
		var intIndexOfMatch = message.indexOf( from[i] );
		
		while (intIndexOfMatch != -1){
			message = message.replace( from[i], to[i] );
			intIndexOfMatch = message.indexOf( from[i] );
		}
	}
	alert( message );
}
