var popupProfiles = {
	eventPhotos:
	{
		height:625,
		width:825,
		status:1,
		resizable:0,
		center:1
	}
};



/*----- Navigation ------*/
$(document).ready(function(){
			$("#mainmenu")
	.superfish({
		hoverClass	: "sfHover",
		pathClass	: "overideThisToUse",
		delay		: 800,
		animation	: {height:"show"},
		speed		: "normal",
		oldJquery	: false, /* set to true if using jQuery version below 1.2 */
		disableHI	: false, /* set to true to disable hoverIntent detection */
		onInit		: function(){},
		onBeforeShow	: function(){},
		onShow		: function(){},
		onHide		: function(){}
	})
	.find(">li:has(ul)").mouseover(function(){  //fixes ie6 bug
			$("ul", this).bgIframe({opacity:true});
		})
		.find("a").focus(function(){
				$("ul", $(".nav>li:has(ul)")).bgIframe({opacity:true});
			});;
			
	/*	Remove line after last menu item*/		
	$("#mainmenu li:last-child").css("border","none");		
			
			
			
	/* replace media classes */
	$("a.media").media();
	
	
	/* Initialize all popup windows */
	$(".popup").popupwindow(popupProfiles);

	
	// gets rid of focus box on click
	$("a").focus(function(){
	this.blur();
	});			
});

