$(document).ready(function(){
	setze_css_mittig();			
	$('#seite').attr({scrollTop:0,scrollLeft:0});
	$('#navigation').localScroll({
	target:'#inhalt',
	axis:'yx',
	duration:'800',	
	queue:true
});
	$('#inhalt').localScroll({
	target:'#inhalt',
	axis:'yx',
	duration:'800',	
	queue:true
});
var myShadow = $("h2").dropShadow({left: 1, top: 1});


});
window.size = function(){
	var w = 0;
	var h = 0;

	//IE
	if(!window.innerWidth)
	{
		//strict mode
		if(!(document.documentElement.clientWidth == 0))
		{
			w = document.documentElement.clientWidth;
			h = document.documentElement.clientHeight;
		}
		//quirks mode
		else
		{
			w = document.body.clientWidth;
			h = document.body.clientHeight;
		}
	}
	//w3c
	else
	{
		w = window.innerWidth;
		h = window.innerHeight;
	}
	return {width:w,height:h};
}
function setze_css_mittig(){		
	if (window.size().width>900)
	{				
		$('h4').css('color','#ff0000');				
		$('#rahmen').css('left','50%');
		$('#rahmen').css('margin-left','-430px');
	}
	if (window.size().height>600)
	{	
		$('#rahmen').css('top','50%');
		$('#rahmen').css('margin-top','-275px');
	}
}




