function initMenu(){
menuVisible = false;

/*

  $("#menubutton").click(function(){
	  $("#dropdown").slideToggle("slow");
	  menuVisible = true;
	  event.stopPropagation();
  });
*/

	//CRUTCH!!!
	//REMOVING PORTFOLIO SUBS
  $( function () {
  	$("#dropdown A[href='/portfolio/branches'], #dropdown A[href='/portfolio/types']").each(function(){
  		$(this).parents('LI:first').children('ul').remove();
   	});
   	//END CRUTCH

	$('#dropdown li:has(ul)').click( function (evt) {
											   //alert(evt.target.parentNode==this);
		if ( evt.target.parentNode != this ) {

			//$('ul:eq(0)', this).slideUp("slow");
			return;
		}

		if($('.item.level1', this).length>0)
		if($('.item.level1', this).css('background-image').indexOf('down')>0)
			$(this).attr('opened','true');

		if(typeof($(this).attr('opened'))=='undefined'||$(this).attr('opened')=='false'){
			$('.item.level1',this).css({background:'right no-repeat url(/img/arrow_down2.gif)'});
			$(this).attr('opened','true');
		} else
		{
			$('.item.level1',this).css({background:'right no-repeat url(/img/arrow_right_orange.gif)'});
			$(this).attr('opened','false');
		};

		$('ul:eq(0)', this).toggle("slow");
		evt.stopPropagation();
	});

	inaccessible = new Array(
	'/portfolio'
	);
	for(index in inaccessible){
		_url = inaccessible[index];
		$("._item A").each(function(){
			if($(this).attr('href')==_url){
				$(this).replaceWith($(this).html());
			}
		})

	}
  });




$('#menubutton').click(function(event) {
	if(menuVisible==false){
		$("#dropdown").slideDown("slow");
		menuVisible = true;
	} else {
		$("#dropdown").slideUp("slow");
		menuVisible = false;

	}

  event.stopPropagation();

});

$('body').click(function(event) {
	if(menuVisible==true){
		$("#dropdown").slideUp("slow");
		menuVisible = false;
	}
});




};
