$(document).ready(function(){
	
// Initialize Backgound Stretcher
if (screen.width == 800){
$(document).bgStretcher({
	images: ['fileadmin/background/bg_page_800.jpg'], 
	imageWidth: 800, 
	imageHeight: 600
	});	
}
if (screen.width == 1024){
$(document).bgStretcher({
	images: ['fileadmin/background/bg_page_1024.jpg'], 
	imageWidth: 800, 
	imageHeight: 600
	});	
}
if (screen.width == 1280){
$(document).bgStretcher({
	images: ['fileadmin/background/bg_page_1280.jpg'], 
	imageWidth: 800, 
	imageHeight: 600
	});	
}	
if (screen.width == 1440){
$(document).bgStretcher({
	images: ['fileadmin/background/bg_page_1440.jpg'], 
	imageWidth: 800, 
	imageHeight: 600
	});	
}	
if (screen.width == 1600){
$(document).bgStretcher({
	images: ['fileadmin/background/bg_page_1600.jpg'], 
	imageWidth: 800, 
	imageHeight: 600
	});	
}	
if (screen.width == 1680){
$(document).bgStretcher({
	images: ['fileadmin/background/bg_page_1680.jpg'], 
	imageWidth: 800, 
	imageHeight: 600
	});	
}	
if (screen.width == 1920){
$(document).bgStretcher({
	images: ['fileadmin/background/bg_page_1920.jpg'], 
	imageWidth: 800, 
	imageHeight: 600
	});	
}	
if (screen.width > 1920){
$(document).bgStretcher({
	images: ['fileadmin/background/bg_page.jpg'], 
	imageWidth: 800, 
	imageHeight: 600
	});	
}	
	// Accordion
	$(function(){
	$(".accordion").accordion({ header: "h3" });
	$( ".accordion" ).accordion({
						clearStyle: true,
						navigation: true
								});
				
	//hover states on the static widgets
	$('ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
		);	
	$( ".accordion" ).accordion({
			collapsible: true
		});

						
	});

		
});
