jQuery(document).ready(
	function(){
		
		//jQuery("#me-communityNav li > ul").attr("class","clearfix");

		// Position menu background images
		jQuery("#me-communityNav > ul > li").each(
			function(index, domElement) {
				var position = jQuery(domElement).position();
				jQuery(this).css("background-position", "-" +position.left + "px 0px");
				jQuery(this).find("li").css("background-position", "-" +position.left + "px 0px");
			}
		);
		jQuery("#me-communityNav > ul > li > ul > li:last-child").css("padding-bottom","5px");

		// Add event handler for menu drop downs for mouse events
		jQuery("#me-communityNav > ul > li").bind("mouseenter",
			function(e) {
				jQuery(this).children("ul").stop( {gotoEnd:true} );
				jQuery(this).children("ul").css("height","auto");
				jQuery(this).children("ul").slideDown(200);
			}
		);
		jQuery("#me-communityNav > ul > li").bind("mouseleave",
			function(e) {
				//jQuery(this).children("ul").stop( {gotoEnd:true} );
				jQuery(this).children("ul").slideUp(200);
			}
		);http://me-shop.local/community
		
		me_initModalWindows();

 		
		/* ----------------------------------------------------------------------------
 
		SIFR.replaceElement("<css_selector>", "<path_to_swf>", "#<text_color>", "#<link_color>", "#<hover_color>", "#<background_color>", nPaddingTop, nPaddingRight, nPaddingBottom, nPaddingLeft, vars, sCase );
		*/

		
		/*
		if(typeof sIFR == "function"){
			
			
			sIFR.replaceElement(".static h3 span", named({sFlashSrc: "/swf/sifrdin.swf", sColor: "#ffffff", sLinkColor: "#ffffff", sHoverColor: "#EBEEEF", sBgColor: "#EBEEEF", nPaddingTop: 0, nPaddingRight: 0, nPaddingBottom: 0, nPaddingLeft: 0, sWmode:"transparent", sCase: "lower"}));
			
			sIFR.replaceElement(".static h4", named({sFlashSrc: "/swf/sifrdin.swf", sColor: "#000000", sLinkColor: "#000000", sHoverColor: "#000000", sBgColor: "#ffffff", nPaddingTop: 0, nPaddingRight: 0, nPaddingBottom: 0, nPaddingLeft: 0, sWmode:"transparent"}));
		
		}*/
		
		
	}


);


	
