

$(document).ready(function() {

// Menu Image Toggle

$("#header-menu a").mouseover(function(){
	imgsrc = $(this).children("img").attr("src");
	matches = imgsrc.match(/_over/);
		if (!matches) {
			imgsrcON = imgsrc.replace(/-idle.png$/ig,"-active.png");
			$(this).children("img").attr("src", imgsrcON);
		}
});

$("#header-menu a").mouseout(function(){
	$(this).children("img").attr("src", imgsrc);
});
/*
$("#header-menu img").each(function() {
	rollsrc = $(this).attr("src");
	rollON = rollsrc.replace(/-idle.png$/ig,"-active.png");
	$("<img>").attr("src", rollON);
});
*/


/*

   $('#branding').css('cursor','pointer');
   $('#branding').attr('title','Go to HOME');
   //$('#branding').mouseenter(function(){window.status='Go to "http://blog.aagd.de/"';}).mouseleave(function(){window.status='';});
   $('#branding').click(function() {
     window.location = 'http://aagd.de/';
   });
*/

});


function noSpam(user,domain){
	locationstring = "mailto:" + user + "@" + domain;
	window.location = locationstring;
} 






