

	$(function(){
			   
// Randbereich für Widescreen-Monitore einblenden				
				var browserWidth = $(window).width();
				if (browserWidth > 1100) {
				$('body').css('backgroundColor', '#2377ce');}
	
	
	// Randbereich für Widescreen-Monitore bei Window-Resize einblenden
	$(window).resize(function() {
						  
				var browserWidth = $(window).width();
				if (browserWidth > 1100) {
				$('body').css('backgroundColor', '#2377ce');}
				else {
				$('body').css('backgroundColor', '#fff');}
						  
	});
		
			   
// Menu up+down bei Mouseover		
			
				$("#menu").bind("mouseover",function(){
					$("a.mInactive").stop().animate({ top: 0 }, 300);
					return false;
				});
				
				$("#menu").bind("mouseout",function(){
					$("a.mInactive").stop().animate({ top: -27 }, 300);
					return false;
				});
			
				
// DOI Resolver Focus				
				var element = $('#searchfield');
				var currentValue = element.val();
				element.focus(function() {
				if(element.val() == currentValue) {
				element.val('doi:');
				element.css('backgroundPosition','26px 20px');
				}
				}).blur(function() {
				if(element.val() == 'doi:') {
				element.val(currentValue);
				element.css('backgroundPosition','26px 2px');
				}
				if(element.val() == '') {
				element.val(currentValue);
				element.css('backgroundPosition','26px 2px');
				}	
				});
				
			
// Füge allen Info-Boxen Close-Button hinzu
			$("div.iBox").append('<img class="btClose" src="img/btClose.png" alt="" />');
			
// Öffne Info-Box aus URL-Hash
			openInfoBox = $(location).attr("hash");
			$(openInfoBox).show();
				
			// Blende vorherige Info-Box aus und öffne neue Info-Box bei URL-Hash Änderung
 			 $(window).bind( 'hashchange', function(){
			 	$("div.iBox").hide();
    			openInfoBox = $(location).attr("hash");
				$(openInfoBox).show();
 			 });
	
			 $("area").bind("click",function(){
				$("div.iBox").hide();
				openInfoBox = $(this).attr("hash");
				$(openInfoBox).show();
			 });	

// Öffne Menü-Box
			
			$("#information-menu a, #fMenu a[name]").bind("click",function(){
				
				$("div.iBox").hide();
				openMenuBox = "#" + $(this).attr("name");
				$(openMenuBox).show();
                return false;														 
			});
			

// Schließe Info-Box bei Klick auf Close-Symbol
			$("img.btClose").bind("click",function(){
				$(this).parent().hide('fast');
			});

						  
	});
