function mainmenu(){
	$(" #navbar ul ").css({display: "none"}); // Opera Fix
	
	$(" #navbar li").hover(
		function(){
			$(this).find('ul:first').css({visibility: "visible", display: "none"}).show(200);
		},
		function(){
			$(this).find('ul:first').css({visibility: "hidden"});
		}
	);
}

$(document).ready(function(){					
	mainmenu();
	
  $('.eventIndex li')
    .css('pointer','default')
    .css('list-style-image','none');
  $('.eventIndex li:has(ul)')
    .click(function(event){
      if (this == event.target) {
        $(this).css('list-style-image',
          (!$(this).children().is(':hidden')) ? 'url(/images/gold_arrow_right.gif)' : 'url(/images/gold_arrow_down.gif)');
        $(this).children().toggle('slow');
      }
      return true;
    })
    .css({cursor:'pointer', 'list-style-image':'url(/images/gold_arrow_down.gif)'});
  $('.eventIndex li:not(:has(ul))').css({cursor:'default', 'list-style-image':'none'});
});  
//  .children().hide()