$(document).ready(function() {
	$(document).pngFix();
	$("#header ul li:last-child").css("padding-right","0px");
	$("#header ul li:last-child").css("border","none");
	$("#menu ul li:last-child").css("border","none");
	$("#menu ul li:first-child").css("padding-left","0px");
	$("#sub_menu ul li:first-child").css("padding-left","0px");
	$("#sub_menu ul li:last-child").css("border","none");
	var currentLocation =  document.location.href;
	if(currentLocation != 'http://quartierdeprelaz.ch/agenda/'){
		var height = $("#txt_content").height();
		$("#sidebar").css("min-height",height);
		$("#sidebar").css("height",height);
	}	
	
});

$(function () {
	$('.anythingSlider').anythingSlider({
	    easing: "easeInOutExpo",        	// Anything other than "linear" or "swing" requires the easing plugin
	    autoPlay: false,                 			// This turns off the entire FUNCTIONALY, not just if it starts running or not.
	    delay: 10000,                    			// How long between slide transitions in AutoPlay mode
	    startStopped: false,            		// If autoPlay is on, this can force it to start stopped
	    animationTime: 1000,             		// How long the slide transition takes
	    hashTags: false,                 		// Should links change the hashtag in the URL?
	    buildNavigation: false,          		// If true, builds and list of anchor links to link to each slide
		pauseOnHover: true             		// If true, and autoPlay is enabled, the show will pause on hover
	});
});


