/*
 // Adapts CSS for client browsers which support JavaScript
 $(document).ready(function() {
    $( "#nav li li:has(ul) li" ).css({'position':'absolute','top':'0','z-index':'0'});
    $( "#nav li li:has(ul) ul" ).css({'margin-top':'-75px'});
});*/


$("#nav li").not(".here, .parent-here, #nav li ul li").hover(function() {$(this).children("ul").first().css('z-index','20').slideDown()},
function() {$(this).children("ul").first().slideUp()});

$(function() {
	$("#nav li").hover(function() {
		$(this).animate({ backgroundColor: "#F26522" }, 1000);
	},function() {
		$(this).animate({ backgroundColor: "#666" }, 500);
	});
	$("#subcontent a").hover(function() {
		$(this).animate({ backgroundColor: "#8DC63F" }, 1000);
	},function() {
		$(this).animate({ backgroundColor: "#F26522" }, 500);
	});
});


$(function() {
  $( "#sitemap-title" ).toggle(
    function() {
      $( "#sitemap" ).animate({
        width: '20%'
      }, 500 );
      $("#sitemap-title").stop().delay(250).animate({backgroundColor: "#9c39c3", paddingLeft: '2.25%', paddingRight: '0', width: '17.75%'},200,"linear");
    },
    function() {
      $( "#sitemap" ).stop().animate({
        width: 0
      }, 500 );
      $("#sitemap-title").animate({backgroundColor:"#666666", paddingRight: '25',paddingLeft: '15', width: '55px'},400,"linear");
    }
  );
});
