    $(document).ready(function($) {
			
			projectMapHandler.init();
			
		    $(".addcategorybtn").click(function () {
		      $(".editcategory").slideUp("normal");
		      $(".managecategories").slideUp("normal");
		      $(".addcategory").slideDown("normal");					  
		    });

		    $(".edit").click(function () {
		      $(".editcategory").slideDown("normal");
		      $(".managecategories").slideUp("normal");
		      $(".addcategory").slideUp("normal");
			  ColdFusion.navigate('/members/ajax-categories-add.cfm?cat_id='+$(this).attr('id'),'editCat_cnt');
		    });

		    $(".adddocumentbtn").click(function () {
		      $(".adddocument").slideDown("normal");
		      $(".managedocuments").slideUp("normal");
		      $(".editdocument").slideUp("normal");			  
		    });						

		    $(".editalt").click(function () {
		      $(".addcategory").slideUp("normal");
		      $(".managecategories").slideDown("normal");
		      $(".editcategory").slideUp("normal");
		    });
		 		  
		    $(".manage").click(function () {
		      $(".managecategories").slideDown("normal");
		      $(".addcategory").slideUp("normal");
		      $(".editcategory").slideUp("normal");
			  ColdFusion.navigate('/members/ajax-categories.cfm?cat_id='+$(this).attr('id'),'manageCat_cnt');
		    });
			
			$(".addpollbtn").click(function () {
		      $(".managepolls").slideDown("normal");
			  ColdFusion.navigate('/members/ajax-polls.cfm?poll_id='+$(this).attr('id'),'managePoll_cnt');
		    });
			
			$(".editalt").click(function () {
		      $(".managepolls").slideDown("normal");
			  ColdFusion.navigate('/members/ajax-polls.cfm?poll_id='+$(this).attr('id'),'managePoll_cnt');
		    });

			$('.categorydelete').live('click',function(){
				confirm('Are you sure you want to Delete this Subcategory?');
			});

	    $(".addpollbtn").click(function () {
	      $(".managecategories").slideDown("normal");
	    });

		$('a.blue').click(function(){
			var enabled = '';
			$('a.blue').removeClass('selected');
			$(this).addClass('selected');
			if($(this).attr('href') == '/index.cfm?connectionSpeed=Low'){
				$("link[title=speedstylesheet]").attr({href : "/css/low.css"});
				$('h3 .sIFR-flash').hide();
				$('h3 .sIFR-alternate').css({position:'relative', width: 'auto', height: 'auto'});
				$('.toplevel .sIFR-flash').hide();
				$('.toplevel .sIFR-alternate').css({position:'relative', width: 'auto', height: 'auto'});
				$('.toplevel-selected .sIFR-flash').hide();
				$('.toplevel-selected .sIFR-alternate').css({position:'relative', width: 'auto', height: 'auto'});
				$('.secondlevel .sIFR-flash').hide();
				$('.secondlevel .sIFR-alternate').css({position:'relative', width: 'auto', height: 'auto'});
				$('.secondlevel-selected .sIFR-flash').hide();
				$('.secondlevel-selected .sIFR-alternate').css({position:'relative', width: 'auto', height: 'auto'});
				
			}else{
				$("link[title=speedstylesheet]").attr({href : "/css/high.css"});
				$('h3 .sIFR-flash').show();
				$('h3 .sIFR-alternate').css({position:'absolute', width: '0', height: '0'});
				$('.toplevel .sIFR-flash').show();
				$('.toplevel .sIFR-alternate').css({position:'absolute', width: '0', height: '0'});
				$('.toplevel-selected .sIFR-flash').show();
				$('.toplevel-selected .sIFR-alternate').css({position:'absolute', width: '0', height: '0'});
				$('.secondlevel .sIFR-flash').show();
				$('.secondlevel .sIFR-alternate').css({position:'absolute', width: '0', height: '0'});
				$('.secondlevel-selected .sIFR-flash').show();
				$('.secondlevel-selected .sIFR-alternate').css({position:'absolute', width: '0', height: '0'});
			}
			//return false;
		});
		
    });
	
	
	var projectMapHandler = {};
	
	projectMapHandler.init = function()
	{
		$('#projectNav a').click(function(){
			var mapId = $(this).attr('href') + '-map';
			var panelId = $(this).attr('href') + '-panel';
			
	
			$('#projectNav a').removeClass('selected');
			$(this).addClass('selected');
			
			$('div.pmap').hide();
			$(mapId).show();

			$('div.projects-list').hide();
			$(panelId).show();

			return false;
		});	
		
		$('.projectlinks dt a').click(function(){
			$('.projectlinks dd').each(function(){
				if($(this).css('display') == 'block'){
					$(this).slideUp();	
				}
			});
			if($(this).parent().next().css('display') == 'block'){
				$(this).parent().next().slideUp();	
			}else{
				$(this).parent().next().slideDown();	
			}

			return false;
		});
		
	}

