$(document).ready(function() {
	$('#main-nav ul li').hover(function() {
		//$(this).siblings('.sub-nav').css('display', 'block');
		$(this).children('ul').css('display', 'block');
		//$(this).children('ul').fadeIn('fast');
		$(this).children('a').addClass('hover');
	}, function() {
		$(this).children('ul').css('display', 'none');
		//$(this).children('ul').fadeOut('fast');
		$(this).children('a').removeClass('hover');
	});
	
	//alert(jQuery.browser.msie);
	
	if (jQuery.browser.msie && jQuery.browser.version == "6.0") {
		
	} else {
		$("#our-journey a").append("<em></em>");

	   	$("#our-journey a").hover(function() {
	   		$(this).find("em").animate({opacity: "show", top: "-80"}, "slow");
	   		var text = $(this).attr("title");  // Grab the title attribute from the anchor tag and place it in a javascript variable arbitrarily named "text". "text" now holds the information
	   		$(this).find("em").text(text);  // place "text" inside <em>. 
	   	}, function() {
	   		$(this).find("em").animate({opacity: "hide", top: "0"}, "slow");
	   	});
	}
	
	var bodyclass = $('body').attr("class");
	
	//alert(bodyclass);

	$('#pyt-nav ul li a.'+bodyclass).addClass("current");
	
	
	
	
});