// JavaScript Document

	/*****************************************************
	Function: instText
	Purpose: Writes the content of the document in newWindow() below;
	Called: By newWindow()
	Source: J Glew 31 July 2007
	******************************************************/
		
		function instText(definition) {
			if (definition == "3rdplace") {
			//fills the new window with a document written on the fly
			helpWindow.document.write("<html><head><title>Definition of the 3rd place<\/title><\/head><body><h1>What is the third place?<\/h1>");
			helpWindow.document.write("<p><strong>The third place<\/strong> is a term used in the concept of community building to refer to social surroundings separate from the two usual social environments of home and the workplace.<\/p>");
			helpWindow.document.write("In his influential book <em>The Great, Good Place<\/em>, Ray Oldenburg argues that third places are important for civil society, democracy, civic engagement, and establishing feelings of a sense of place.");
			helpWindow.document.write("Oldenburg calls one's &quot;first place&quot; the home and those that one lives with.");
			helpWindow.document.write("The &quot;second place&quot; is the workplace &#8212; where people may actually spend most of their time.");
			helpWindow.document.write("Third places, then, are &quot;anchors&quot; of community life and facilitate and foster broader, more creative interaction.");
			helpWindow.document.write("All societies already have informal meeting places; what is new in modern times is the intentionality of seeking them out as vital to current societal needs.");
			helpWindow.document.write("<\/p>");
			helpWindow.document.write("<p>Oldenburg suggests these hallmarks of a true &quot;third place&quot;: <\/p>");
			helpWindow.document.write("<ul><li>Free or inexpensive;<\/li>");
			helpWindow.document.write("<li> Food and drink, while not essential, are important;<\/li>");
			helpWindow.document.write("<li>Highly accessible, proximate for many (walking distance);<\/li>");
			helpWindow.document.write("<li>Involving regulars – those who habitually congregate there;<\/li>");
			helpWindow.document.write("<li>Welcoming and comfortable;<\/li>");
			helpWindow.document.write("<li>Both new friends and old should be found there.<\/li><\/ul>");
			//click to close window
			helpWindow.document.write("<p style='text-align:center'>");
			helpWindow.document.write("<a href='javascript:self.close();'>Close window<\/a><\/p");
			helpWindow.document.write("<\/body><\/html>");
			}
		}

	

	
	/*****************************************************
	Function: newWindow
	Purpose: Opens a new window of an appropriate size to display content;
			 includes a facility to close the window again 
	Called: By a link in the body of the product page
	Source: Negrino and Smith, pp 112-113
	******************************************************/

		function newWindow(definition) {
		//opens a new window with the name 'helpWin',
		//this initially has no content,
		//it is set at a size big enough to accommodate the text and 'close window' facility,
		//it is resizeable 
		helpWindow = window.open("", "helpWin", "resizable=yes,width=650,height=500,scrollbars=yes");
		//call instText() to add document content
		instText(definition)
		//click to close window
		//helpWindow.document.write("<p style='text-align:center'>");
		//helpWindow.document.write("<a href='javascript:self.close();'>Close window<\/a><\/p");
		//helpWindow.document.write("<\/body><\/html>");
		//ends the creation of the document
		helpWindow.document.close();
		//brings the new window to the front
		helpWindow.focus();
		}
