// JavaScript Documentfunction elmShow(elm) {	$('btn'+elm).update(getUpdateHide(elm));	new Effect.BlindDown(document.getElementById(elm, {duration: 2.0}));}function elmHide(elm) {	$('btn'+elm).update(getUpdateShow(elm));	new Effect.BlindUp(document.getElementById(elm, {duration: 2.0}));}function getAbout(elm){	var result = "";	switch (elm)	{	case "index":		result = "<br /><br /><P>Featured Display</p><p>This page features curated displays of code by invited curators or selected from the Display Repository by KURATOR. Use the + buttons to expand content to find out more information about the display and the curator, public comments on the display, and further details on the code assigned to the display.</p><p>If you are interested in looking at other Featured Displays click on the 'View previously featured displays >>' button.</p>";		break;	case "collect":		result = " <br /><br /><P>Add a new article of code to the Code Repository</p><p>To manually upload your code you need to be logged in. You can either browse for a file on your computer and upload the entire contents of the file, or you can copy and paste your chosen selection of code into the textbox below.</p><p>Then simply complete all of the details below and tag your code with keywords, with at least one per category. You can add new keywords to tag your code by entering them in the input box provided and then clicking the 'Add >>' tab. Please use the - symbol for joining words (i.e. instead of 'net art', use 'net-art').</p><p>To save the code to Code Repository, click the 'Upload Code >>' tab to save the code to the repository. To assign the code to your Display check the box. </p>";  break;	case "search":		result = "<br /><br /><P>Code Browser</p><p>Code Browser works on two levels: simple Browse and Advanced Browse. If you are searching for two words join them together with '-'. For instance for net art use 'net-art' instead of 'net' and 'art' as this will provide results relating to both words 'net' and 'art' separately.</p><p>Alternatively you can do an advanced search by ticking the tags in each section to perform a match on all code that has been correspondingly tagged.</p><p>In this section you can also assign the code to a Display, which you can later save to be visible to all users of the site. Simply click the 'Assign to Display >>' button to add that article of code to a temporary display shown on the left. To save your display to the Display Repository click the 'Organise Display' menu option which will become available once you haveassigned your first article of code.</p>";  break;	case "organise":		result = "<br /><br /><P>Amend, mark and remove your code</p><p>This page allows you to organise the code you have uploaded to the source repository.  You can amend the details, re-tag the code or remove it.</p>";  break;  case "archive":		result = "<br /><br /><P>Repository of All Displays</p><p>This repository includes all displays created by users, invited curators and generated by kurator software. You can view each display in more detail by clicking on the 'View Display >>' tab.</p><p>Alternatively, you can use the 'Search tags >>' option to search all archived displays in this section that match your tags. When you are searching for two words join them together with '-' to make your search more specific (for instance for 'net art' use 'net-art' instead of 'net art'; the latter will search code relating to both  words 'net' and 'art' separately).</p>";  break;    case "archivefeatured":		result = "<br /><br /><P>Repository of Featured Displays</p><p>This repository includes all displays created by invited curators and selected by KURATOR from the public repository that featured on kurator's 'Featured Display' page. You can view each display in more detail by clicking on the 'View Display >>' tab.</p><p>Alternatively, you can use the 'Browse >>' option to search all archived displays in this section that match your tags. When you are searching for two words join them together with '-' to make your search more specific (for instance for 'net art' use 'net-art' instead of 'net art'; the latter will search code relating to both  words 'net' and 'art' separately).</p>";  break;  case "organisedisplays":		result = "<br /><br /><P>Amend, mark and remove your displays</p><p>This page allows you to organise the displays you have created using the kurator software.  You can remove code from the display, re-tag the display, or delete the display from the repository</p>";  break;    case "login":		result = "<br /><br /><P>Login to your kurator account</p><p>To save your code and/or displays you have created to the kurator repository you first need to create your kurator account and login in. This will allow you to easily manage your displays and create new ones in the future. </p>";  break;      case "signup":		result = "<br /><br /><P>Create an account with kurator</p><p>To save your code and displays to the kurator repository you first need to create your kurator account by completing the details below and agreeing to kurator's Terms and Conditions.</p>";  break;  case "previewdisplay":		result = "<br /><br /><P>Preview your display</p><p>This is a preview of how your display will look once it has been committed to the repository.  You can contiune to search for code, or return to the organise display page to amend its details.  Once you are happy with your display you will need to login to your account to save it.</p>";  break;    case "previewcode":		result = "<br /><br /><P>Preview your code</p><p>This is a preview of how your code will look once it has been committed to the repository.  You canreturn to the collect page to amend its details, and once you are happy with your code you will need to login to your account to save it to the repository.</p>";  break;    case "newdisplay":		result = "<br /><br /><P>Create Your display</p><p>In this section you assign the code to a Display, which you can later save to be visible to all users of the site. Simply click the 'Assign to Display >>' button to add that article of code to a temporary display shown on the left. To save your display to the Display Repository click the 'Organise Display' menu option which will become available once you have assigned your first article of code.</p>";  break;				}		return result;}function getUpdateHide(elm){	var result = '';	switch (elm)	{	case "aboutpage":		result = "<a  class='tagged' href='javascript:aboutpageHide(\"" +elm+ "\");' >About this page -</a>";	  	break;	default:		result = "<a href='javascript:elmHide(\"" +elm+ "\");' class='plusminus'>-</a>";	  break;	}	return result;}function getUpdateShow(elm){	var result = '';	switch (elm)	{	case "aboutpage":		result = "<a class='tagged' href='javascript:aboutpageShow(\"" +elm+ "\");' >About this page +</a>";	  	break;	default:	 	result = "<a href='javascript:elmShow(\"" +elm+ "\");'  class='plusminus'>+</a>";	}	return result;}