
def node_manage_instructions():
	from django.conf import settings
	value = ("<p><span class='boldText'>ARROWS:</span>"
					"<br> &bull; Move the pointer close to a topic.  Drag<br/>"
					"that pointer to another topic to connect the two,"
					"<br> &bull; OR Shift-drag between topics."
					"<br> &bull; If an arrow extends off-screen, you can<br/>"
					"automatically follow it by ALT-double-clicking it."
					"<br/><br><span class='boldText'>EDIT:</span>"
					"<br/> &bull; <span>Right</span>-click (Control-click on Mac) to edit or comment."
					"<br/><br><span class='boldText'>MOVE:</span>"
					"<br/> &bull; <span>Left</span>-click-and-drag to re-position."
          "<br/><br/><span class='boldText'>ENLARGE A SINGLE TOPIC</span> (for editing labels or watching videos):"
					"<br/> &bull; <span>Double left</span>-click"
          "<br/><br/><span class='boldText'>SELECT MULTIPLE TOPICS</span> (for deletion, changing colors, "+ settings.WHAT_A_CLUSTER_IS_CALLED + "ing, etc.):"
					"<br/> &bull; <span>Alt-drag an area</span>" )
	return(value)


def node_create_instructions():
	return ("<br/>&bull; Drag from or click in the docket at the upper right."
        "<span class='boldText'>OR</span>"
        "<br/>&bull; Click anywhere and just start typing."
        "<span class='boldText'> OR</span>"
        "<br/>&bull; Right-click (Control-click on Mac) and select 'Create'.")


def empty_node_tooltip():
	return("")  # FIXME: the below took up a ridiculous amount of screen space, and is more than most people will ever read.
	#value = ("<div class='alignLeft sizeText120percent lineHeight100'>"
					#" <span class='boldText' >TO CREATE MORE OF THESE:</span>")
	#value = value + node_create_instructions()
	#value = value + node_manage_instructions()
	#value = value + ("</div>")
	#return(value)


def empty_map_tooltip():
	value = ("<div class='sizeText150percent alignLeft lineHeight100'>"
        "<span class='boldText' >CREATE:</span>")
	value = value + node_create_instructions()
	value = value + ("</div>")
	return(value)


def tunnel_tooltip():
	value = ("<span class='boldText'>TUNNEL TO &quot;_mapname_"
				 "&quot;</span><br/>Description: <div class='nodeDescription'>_description_</div> <br/>"
				 "Owned by: <span class='boldText'>_owner_</span> <br/>Created: <span class='boldText'>"
				 "_creationDate_</span> <br/><span class='boldText colorRed'>Comments:_numcomments_</span>")
	return(value)

def node_tooltip_for_readonly():
	value = ("<span class='boldText'>&quot;_label_&quot;&hellip;</span><br/>"
					 "Description: <div class='nodeDescription'>_description_</div> <br/>Owned by: <span class='boldText'>"
					 "_owner_</span> <br/>Created: <span class='boldText'>_creationDate_</span>")
	return(value)


def node_tooltip():
	value = ("<span class='boldText'>&quot;_label_"
					 "&quot;</span><br/>Description: <div class='nodeDescription'>"
					 "_description_</div> <br/>Owned by: <span class='boldText'>"
					 "_owner_</span> <br/>Created: <span class='boldText'>"
					 "_creationDate_</span> <br/><span class='boldText colorRed'>Comments: _numcomments_</span>")
	return(value)


