$(document).ready(function(){

	nav_images = new Array();
	nav_images['Practices'] = "practices";
	nav_images['Sectors'] = "sectors";
	nav_images['Locations'] = "locations";
	nav_images['Success Stories'] = "success-stories";
	image_path = "/assets/images/global/side-nav/"
	
	//switch headings to images
	$(".navigationItemLabel").each(function (i) {
		contents = $(this).html();
		if (typeof( nav_images[contents]) != 'undefined') {
			new_contents = '<img src="'+ image_path + nav_images[contents] + '.gif' +'" alt="' + contents + '" />';
			$(this).removeClass('linksetLabel').html( new_contents );
		}
	});


	//add and remove the guillemets as necessary
	$(".linksetLinkInternal").children("a").append(" <small>&raquo;</small>");
	$("#navigation-38679180 .linksetSubMenu-2 a small").remove();		
	$("div.linksetLabel:contains('null')").html('');
	
	//try to highlight nav? this simply does nav matching, needs to be smarter
	$(".linksetLinkInternal a").each(function (i) {
		if ( $(this).attr("href") == window.location.href ) $(this).addClass("active").parent(".navigationItem").addClass("active");
	});
	
	//highlight "our team" somehow
	$("#navigation-38679180 a:contains('Our Team')").addClass("active").parent("div.navigationItem").addClass("active");

  $("#scroller ul").innerfade({
    animationtype:'slide',
    speed:'normal',
    timeout:9000,
    type:'sequence',
    containerheight:'26px'
  });

});