///////////////////////////////////////////////////////////////////////////
//
// translateText:  Returns a translated version of text
//
//	Notes:
// 	These translations can be modified to reflect the current language
//
// 	Parameters:
//	inText   (String)    The text to be translated
///////////////////////////////////////////////////////////////////////////

function translateText (inText) {


	var fromPage;	//The web page on which the tranlation is taking place
	var slashIndex;
	
	fromPage = window.location.pathname;
	slashIndex = fromPage.lastIndexOf("/");
	fromPage = fromPage.substring(slashIndex + 1);
	
	// To add a translation for a string add a "case" line for that string
	// and return the translated text.
	//
	// The text comparison is case senstive.
	//
	// Example:
	// case "Original Text":  return "Translated Text";
	switch (inText) {
	  //Put case statements here
	  // case "Original Text":  return "Translated Text";
	  default : 	return inText;
	}
	return inText;

}

///////////////////////////////////////////////////////////////////////////
//
// translateTextWrite:  Translates text and writes to document
//
// 	Parameters:
//	inText   (String)    The text to be translated
///////////////////////////////////////////////////////////////////////////

function translateTextWrite (inText) {

	document.write(translateText(inText));
	
}

///////////////////////////////////////////////////////////////////////////
//
// translateAlert:  Translates text and displays an alert
//
// 	Parameters:
//	inText   (String)    The text to be translated
///////////////////////////////////////////////////////////////////////////
function translateAlert (inText) {

	alert(translateText(inText));
	
}

///////////////////////////////////////////////////////////////////////////
//
// translateConfirm:  Translates text and displays an confirm
//
// 	Parameters:
//	inText   (String)    The text to be translated
///////////////////////////////////////////////////////////////////////////
function translateConfirm (inText) {

	return confirm(translateText(inText));
	
}

