$(function(){

    $(".liasongroupmemberselect").change( function(){
        //alert('changing: ' + $(this).attr('formtype') + ' : ' + $(this).val());
        $("#lf_"+$(this).attr('formtype')+"_memberemail").val($(this).val())
    });


});


$(document).ready(function(){
	if($.cookie("reports") == null)
	{
		$("#HeaderLatest").css("display","block");
	}
	if($('#Nav').length > 0){
		$('#Nav a[href*="' + document.location.pathname + '"]:first').css('backgroundPosition','0 -24px');
		var subEl = $('#SubNav a[href*="' + document.location.pathname + '"]:first');
		
		if(subEl.length > 0){
			subEl.addClass('current');
			switch (document.location.pathname)
			{
			 case "/masterplanners.html":
			 case "/consultation-team.html":
			 case "/specialistconsultant.html":
				$('#Nav a.projecttab').css('backgroundPosition','0 -24px');
			 break;
			 case "/liason.html":
			 case "/calendar.html":
			    $('#Nav a.consultplantab').css('backgroundPosition','0 -24px');
			 break;

			 case "/news-reports.html":
			 case "/consultationreports.html":
			 case "/press-releases.html":
			 case "/consultation-archive.html":
			 case "/Presentations.html":
			 case "/height-map.html":
			 case "/pqq.html":
			    $('#Nav a.downloadstab').css('backgroundPosition','0 -24px');
			 break;
			 
			}
		}
	}
});
