	function setDisabled() {
	  $('a.disabled').click(function(e) {
        e.preventDefault();
    });
		$('a.disabled').css('cursor', 'default');
	  $('a.current').click(function(e) {
        e.preventDefault();
    });
		$('a.current').css('cursor', 'default');
		
	}
	
	function onTodoSelect() {
		var selected = $("#todoselect option:selected");
		var url = selected.val();
		window.location = burl + url;
	}		
	
	function showHideSetup() {
			$(".complete").hide();
			$(".expandshrink").toggle(function(){
         $(this).text("[less]").siblings(".complete").show();    
      }, function(){
         $(this).text("[more]").siblings(".complete").hide();    
      });
	}

	/* used by map_chain.js and map_main.js */
	function showMarkers() {
		var ilevel = 1000;
		var prefix = '<img src="' + burl + 'uphotos/thumb/';
		var suffix = '" /><br />';
		
    $("#map").gmap3(
	      { action: 'init',
   	      center: [clat, clng],
          zoom:zoom,
 	      },

				{ action: 'addMarkers',
					markers: pMarkers,
					marker:{
						options:{
							draggable: false,
							icon:burl+'img/sm_blue_pushpin.png'
						},
						events:{						
							mouseover: function(marker, event, data){
							 var map = $(this).gmap3('get'),
									infowindow = $(this).gmap3({action:'get', name:'infowindow'});
								if (infowindow){
									 infowindow.open(map, marker);
									 infowindow.setContent(prefix + data['img'] + suffix + '<b>' + data['hdr'] + '</b><br />Click marker for more info');
								} else {
									 $(this).gmap3(
									 	{action:'addinfowindow', 
											anchor:marker, 
											options:{
												content: prefix + data['img'] + suffix + '<b>' + data['hdr'] + '</b><br />Click marker for more info', 
												zIndex:++ilevel, 
												pixelOffset:po}});
								}
							},
							mouseout: function(){
								var infowindow = $(this).gmap3({action:'get', name:'infowindow'});
								if (infowindow){
									infowindow.close();
								}
							},
							click: function(marker, event, data) {
								window.location = burl + 'map/go/' + data['url'];
							}
						}
					}
				}
			);
	}
	

