/**
* Funktion um fehlende alt tags automatisch einzufügen ...
**/

$(document).ready(function(){
	$('a[@rel$="external"]').attr("target","_blank");						   
});

$(document).ready(function(){
	$('a[@rel$="top"]').attr("target","_top");						   
});


/**
* Funktion für zentrierte Seiten, damit sie wg. negativ margin nicht aus dem sichtbaren bereich scrollen
**/

/*$(document).ready(function(){
	resize();						   
});

$(window).resize( function(){
	resize();							 
});*/

function resize() {
	/*height = $(window).height();*/
	width = $(window).width();
	
	/*if(height <= 540) {
		//alert("height: "+height+"\nwidth "+width);
		$("#container").css({ "margin-top": "0px" });
		$("#container").css({ top: "0px" });
		$("#startlogo").css({ "margin-top": "0px" });
	} else {
		$("#container").css({ "margin-top": "-270px" });
		$("#container").css({ top: "50%" });
	}*/
	
	if(width <= 990) {
		//alert("height: "+height+"\nwidth "+width);
		$("#container").css({ "margin-left": "0px" });
		$("#container").css({ left: "0px" });
	} else {
		$("#container").css({ "margin-left": "-495px" });
		$("#container").css({ left: "50%" });
	}
}