$(document).ready(function() {
	CustomDrop("#langNav");//the selector of the containing element of the unordered list goes in the argument
});

function CustomDrop(container) {
	$(container+" ul").addClass("Jstyle");
	$(container +" li").addClass("hide");
	$(container +" li:eq(0)").removeClass("hide");

	$(container+" ul").clone().addClass("blocked hide").removeClass("Jstyle").appendTo(container);
	$(container+" .blocked li").removeClass("hide");
	
	//Initialize the dropdown | 'mousedown' for Click, 'mouseenter' for Hover
	$(container+" .Jstyle a").bind("mousedown",function () {
		$(container+" .blocked").removeClass("hide");
		return false;
	});
	
	$(container+" .Jstyle a").click(function() { return false; });
	
	$(container).bind("mouseleave",function(){
		$(container+" .blocked").addClass("hide");						
	});
}