

$(function() {
	
	// Externe links
	$("a[rel='external'], a.pdf, a.pdfNoIcon").click(function(){
		this.target = "_blank";
	});
	
	// Galery Pics
	$(".imgGallery li:even").addClass("even");
	
	var options = {
		overlayBgColor: "#000",
		fixedNavigation:false
	}
	$('.gallery a').lightBox(options);
	
	$('.imgGallery li a').lightBox({fixedNavigation:false});
	
	
	// d
	$("#newsPromote").click(function(){
		window.location = "ne.html";
		return false;
	});
	
	// f
	$("#newsPromoteF").click(function(){
		window.location = "ne_fr.html";
		return false;
	});
	
	// Newsmeldungen anzeigen
	
	
	
	$(".newsbox").click(function(){
		
		// Variable zerlegen
		var snip = $(this).attr("title");
		snip=snip.split(",");
		
		if(snip[1]=="d"){
			window.location = "ne_detail.html?newsId="+snip[0];
			// alert("d"+snip[0]);
		}
		
		if(snip[1]=="f"){
			window.location = "ne_fr_detail.html?newsId="+snip[0];
			// alert("f"+snip[0]);
		}
		
		return false;
	});
	
	
});

