$(document).ready(function(){
						   
     $.reject({  
        closeCookie: true, // Set cookie to remmember close for this session  
     	header: 'Wussten Sie, dass Ihr Browser veraltet ist?', // Header of pop-up window  
     	paragraph1: 'Ihr Browser (Internet Explorer 6) ist veraltet und m&ouml;glicherweise nicht kompatibel mit dieser Webseite. Unten finden Sie eine Liste der meistverbreiteten und kompatiblen Browser', // Paragraph 1  
     	paragraph2: 'Klicken Sie auf eines der Icons um zum entsprechenden Download zu gelangen:', // Paragraph 2  
     	closeMessage: 'Indem sie das Fenster schliessen, k&ouml;nnen Sie mit der Webseite fortfahren. Eventuell kann es jedoch zu Darstellungsproblemen kommen.', // Message displayed below closing link  
     	closeLink: 'Fenster schliessen', // Text for closing link  
		 browserInfo: { // Settings for which browsers to display  
			 msie: {  
				 text: 'Internet Explorer 8+',  
				 url: 'http://www.microsoft.com/windows/Internet-explorer/default.aspx'  
			 },  
			 firefox: {  
				 text: 'Firefox 3.5+', // Text below the icon  
				 url: 'http://www.mozilla.com/firefox/' // URL For icon/text link  
			 },  
			 safari: {  
				 text: 'Safari 4+',  
				 url: 'http://www.apple.com/safari/download/'  
			 },  
			 opera: {  
				 text: 'Opera 10+',  
				 url: 'http://www.opera.com/download/'  
			 },  
			 chrome: {  
				 text: 'Chrome 3+',  
				 url: 'http://www.google.com/chrome/'  
			 },  
			 gcf: false
		 } 
     });  

	/*
	
		----> Grössenanpassung des Hintergrunds <----
		
		Version 2.0 mit variabler Seitenlänge
		
	*/

	var adapt_background = function(){
		var w  = $(window).width();
		var h  = $(window).height();
		var wb = $('#background > img').width();
		var hb = $('#background > img').height();
		if ((h*(wb/hb)) > w) {
			$('#background > img').width(h*(wb/hb));
			$('#background > img').height(h);
			//alert((h*(wb/hb))+' > '+w)
		}
		else {
			$('#background > img').width(w);
			$('#background > img').height(w*(hb/wb));
			//alert((h*(wb/hb))+' > '+w)
		}
	};
	
	/* Event für Grössenanpassung des Hintergrunds bei
	   wechselnder Fenstergrösse */
	$(window).resize(adapt_background);
	
	// Hintergrund-Anpassung am Anfang einmal durchführen
	adapt_background();


	/*
	
		----> Mouse-Over fuer Hauptnavigation <----
		
	*/
	 
	/* Mouse-Over */
	$("#haupt_navigation > ul > li > a > img").mouseover(function(){
        var image_url = $(this).attr("src");
		if (image_url.substr(image_url.length-5,5)!='a.png') {
			//$(this).fadeTo(50,0.2);
			$(this).attr("src",image_url.substr(0,image_url.length-5)+"o.png");
			//$(this).fadeTo(100,1);
		}
	});

	/* Mouse-Out */
	$("#haupt_navigation > ul > li > a > img").mouseout(function(){
        var image_url = $(this).attr("src");
		if (image_url.substr(image_url.length-5,5)!='a.png') {
			$(this).attr("src",image_url.substr(0,image_url.length-5)+"n.png");
		}
	});

	/*
	
		----> Mouse-Over fuer Servicenavigation <----
		
	*/
	 
	/* Mouse-Over */
	$("#service_navigation > ul > li > a > img").mouseover(function(){
        var image_url = $(this).attr("src");
		if (image_url.substr(image_url.length-5,5)!='a.png') {
			//$(this).fadeTo(50,0.2);
			$(this).attr("src",image_url.substr(0,image_url.length-5)+"o.png");
			//$(this).fadeTo(100,1);
		}
	});

	/* Mouse-Out */
	$("#service_navigation > ul > li > a > img").mouseout(function(){
        var image_url = $(this).attr("src");
		if (image_url.substr(image_url.length-5,5)!='a.png') {
			$(this).attr("src",image_url.substr(0,image_url.length-5)+"n.png");
		}
	});
	
	
});

