jQuery(document).ready(function(){
				
		jQuery(".supportlist li a").hover(
		      function (event) {
			    event.preventDefault();
		        jQuery(this).css("color" , "#74B64A");
		      }, 
		      function (event) {
		      	event.preventDefault();
		        jQuery(this).css("color" , "#B0B0B0");
		      }
		    );
		 		
		jQuery("a[href^='#']").click(function () { 
	      
	    	var anchornameraw = jQuery(this).attr("href");
	    	var anchorname = anchornameraw.substr(1);
	    	var scrolltopanchor = jQuery("a[name=" + anchorname + "]").offset().top;
	    	if (anchorname != "pagetopper") {
	    		scrolltopanchor = scrolltopanchor - 30;
	    	}
	    	var issupportcont = jQuery("a[name=" + anchorname + "]").parent().parent().hasClass("supportlistcont");
	    	var istofootnote = jQuery("a[name=" + anchorname + "]").parent().parent().hasClass("footnote");
	    	if (issupportcont) { scrolltopanchor = jQuery("a[name='supportresources']").offset().top; }
	    	
	    	jQuery("html, body").animate({
							scrollTop: scrolltopanchor
							}, 800);
			
			
				if (issupportcont) {
						
						
						jQuery("a[name=" + anchorname + "]").each(function(){
							jQuery(this).parent().parent().children().children().children("img").css({"background-position" : "0px -34px", "opacity" : "1.0"});
							jQuery(this).animate({
										color: "#74B64A"
										}, 800 );
							jQuery(this).parent().parent().children("h4").animate({
										color: "#74B64A"
										}, 800);
							jQuery(this).parent().parent().children().children().children("a").animate({
										color: "#74B64A"
										}, 800);
							jQuery(this).parent().parent().children().children("li").animate({
										color: "#74B64A"
										}, 800);
						});
			
				}
							
			
				if (issupportcont) {
				
						jQuery("a[name=" + anchorname + "]").each(function(){
							jQuery(this).animate({
										color: "#565656"
										}, 1300);							
				    		jQuery(this).parent().parent().children("h4").animate({
										color: "#565656"
										}, 1300);
							jQuery(this).parent().parent().children().children().children("a").animate({
										color: "#B0B0B0"
										}, 1300);
							jQuery(this).parent().parent().children().children("li").animate({
										color: "#565656"
										}, 1300);
							jQuery(this).parent().parent().children().children().children("img").animate({
										opacity : 0
										}, 1300);
						});
			
				}
				
				if (istofootnote) {
					
					jQuery("a[name=" + anchorname + "]").each(function(){
						jQuery(this).parent().parent().animate({
										color: "#74B64A"
										}, 800 );
						jQuery(this).animate({
										color: "#74B64A"
										}, 800 );
					});
					
				}
				
				if (istofootnote) {
				
					jQuery("a[name=" + anchorname + "]").each(function(){
						jQuery(this).parent().parent().animate({
										color: "#C0C0C0"
										}, 2200 );
						jQuery(this).animate({
										color: "#C0C0C0"
										}, 2200 );
					});
				
				}
							    	
	    	return false;
	    
	    });
	    
	    

  	 });