var LaFromagerie =
{
	init:function($)
	{
		this.showMonths($);
	},
	
	lightBox:function($)
	{
		$("a[rel='lightbox']").lightBox({
			overlayBgColor: '#000',
			overlayOpacity: '0',
			containerBorderSize: '2',
			imageLoading: 'mysite/javascript/lightbox/images/lightbox-ico-loading.gif', // (string) Path and the name of the loading icon
			imageBtnPrev: 'mysite/javascript/lightbox/images/lightbox-btn-prev.gif', // (string) Path and the name of the prev button image
			imageBtnNext: 'mysite/javascript/lightbox/images/lightbox-btn-next.gif', // (string) Path and the name of the next button image
			imageBtnClose: 'mysite/javascript/lightbox/images/lightbox-btn-close.gif', // (string) Path and the name of the close btn
			imageBlank: 'mysite/javascript/lightbox/images/lightbox-blank.gif'
		});
	},
	
	showMonths:function($)
	{
		if ($('ol#Archive').length) {
			$("ol#Archive ol").hide();
			this.showSection($);
			$("ol#Archive h4").css("cursor", "pointer").click(function(){
				$(this).next().slideToggle("normal");
				$(this).parent().toggleClass("open");
				$(this).parent().siblings().removeClass("open");
				$(this).parent().siblings().children("ol").slideUp("normal");
			});
		}
	},
	
	showSection:function($)
	{
		$("ol#Archive ol a").each(function()
		{
			if (this.href == window.location.href) 
			{
				$(this).css("font-weight", "bold");
				$(this).parent().parent().show();
			}
		})
	}
}

jQuery.noConflict();
jQuery(function($) 
{
	LaFromagerie.init($);
});