

/*#
 * 
 * 
 * Main Js file combined with JS library to decrease server requests
 * 
 * 
 */
// are you safari? body.safari for safari
	
if ($.browser.safari) {
    $("body").addClass("safari");
  }

      $('#columnLeft> div:not(div:last)').hide();  
	  $('#columnLeft').css("display", "block");
		jQuery('#columnLeft').accordion({
		autoHeight: false,
		clearStyle: true,
		header: '.homepageTitles'
		});

   /*  $(document).ready(function() {
		$('#columnLeft> h2').hover(
			function() {
				$(this).css("color", "#F04E3F");
			},
			function() {
				$(this).css("color", "#fff");
			}
		)
  
        $('#columnLeft> h2').click(function() {

          $(this).next('div:hidden').show()

          .siblings('div:visible').hide();

        });

      });
     */ 
// create variables
var subNavTimer;
var open;
// to make sure that when user mouses over sub menu ul it stays open
$("ul.subNav").mouseover(function() {
	$(this).show();
	// lets remember what's open
	open = $(this).parent();
});
	
// when user mouses over main item in navbar
$("li.navMainLink").mouseover(function() {
	// close other nav item submenus
	if (typeof open == "object") open.children("ul").hide();
	// stop the timer
	clearTimeout(subNavTimer);
	// show this nav item's sub menu
	if ($(this) != open) $(this).children("ul:hidden").show();
	
});

// when user's mouse leaves the navbar item
$("li.navMainLink").mouseout(function() {
	// lets keep tabs of what is open
		open = $(this);
	// start the timer for 2 seconds until it closes.
		subNavTimer = setTimeout('open.children("ul:visible").hide();', 2000);
});



$("div#calendarWrapper li:odd").css("background-color", "#DFD1D1");

