// Grafiken vorladen
clearImageOne = new Image(); 
clearImageOne.src = "/2011/gfx/logo.gif"; 
clearImage = new Image(); 
clearImage.src = "/2011/gfx/loader_white.gif"; 
clearImageTwo = new Image(); 
clearImageTwo.src = "/2011/gfx/loader_darkgrey.gif"; 
clearImageThree = new Image(); 
clearImageThree.src = "/2011/gfx/loader_grey.gif"; 

// Twitter, Facebook und RSS
jQuery(document).ready(function(){
	$("#subnav #subnavbar li a").hover(
		function(){
			$(this).css("cursor", "pointer");
			$(this).animate({ width: "115px"}, {queue:false, duration:"normal"} );
			var gewaehlt = $(this).attr("class");
			if (gewaehlt == "twitter") { $(this).toggleClass("twitteron"); }
			if (gewaehlt == "facebook") { $(this).toggleClass("facebookon"); }
			if (gewaehlt == "rss") { $(this).toggleClass("rsson"); }		
		}, 
		function(){
			$(this).animate({ width: "28px"}, {queue:false, duration:"normal"} );
			var gewaehlt = $(this).attr("class");
			if ($(this).hasClass("twitteron")) { $(this).toggleClass("twitteron"); }
			if ($(this).hasClass("facebookon")) { $(this).toggleClass("facebookon"); }
			if ($(this).hasClass("rsson")) { $(this).toggleClass("rsson"); }			
		});
});
