jQuery(function($){
	
	var settings = {
		"effect" 		: "crossfade",
		"duration"		: "5",
		"bullets"		: true
	}
	
	if($("#slideshowContainer").length > 0)
		$("#slideshowContainer").slideshow(settings);
	
	var offset = $("#containerSidebar").offset();
	
	$(window).scroll(function(){
		if(offset != null)
		{
			if(offset.top <= $(window).scrollTop())
			{
				$("#containerSidebar").css({
					"position" : "fixed",
					"top" : "0px"
				});
			}
			else if(offset.top >= $(window).scrollTop())
			{
				$("#containerSidebar").css({
					"position" : "relative",
					"top" : "",
					"margin-left" : ""
				});
			}
		}
	});
	
});
