<!--
/***************************************************************************
Name:         Dictionary.js
Version:      12/07/2006 - 12/08/2006
Author(s):    John L. Whiteman
Dependencies: N/A
Description:

***************************************************************************/

var pos = new Array();
pos["abv"] = "An adverb represents a shorten form of a word or phrase.";
pos["adj"] = "An adjective describes an attribute of a noun or pronoun.";
pos["artd"] = "A definite article restricts a noun to a specific thing that the speaker has in mind.";
pos["arti"] = "An indefinite articledoes not restrict a noun to a specific thing that the speaker has in mind.";
pos["conj"] = "A conjunction joins other words, phrases, clauses, or sentences.";
pos["cop"] = "A copula a linking verb that can occur optionally between the subject and predicate in non-verbal clauses in Indonesian sentences.";
pos["exp"] = "An expression is a phrase that communicates an idea in a way unique to the language one is speaking.";
pos["goc"] = "This is a polite word or phrase used to welcome or salute someone.";
pos["idm"] = "An idiom is peculiar to itself and its meaning cannot be literally translated by using just its words.";
pos["imp"] = "This is a word relating to or constituting the emotion that expresses a request or command.";
pos["interj"] = "An interjection is capable of expressing emotion with a sudden, short utterance.";
pos["n"] = "A noun is used to name a person, place, or thing as well as a quality or action.";
pos["nprop"] = "A proper noun specifies a specific person, place, or thing and are always capitalized.";
pos["ono"] = "An onomotopoetic imitates the sound it denotes.";
pos["par"] = "A particle by itself doesn't clearly belong to a part of speech category; however, provides a grammatical function or purpose when used with other words in a sentence.";
pos["prep"] = "A preposition links nouns, pronouns and phrases to other words in a sentence.";
pos["pron"] = "A pronoun is used in place of a noun or noun phrase.";
pos["pronp"] = "A personal pronoun is a pronoun that refers to the first, second, or third person.";
pos["undec"] = "This word has not yet been categorized, but will be at a later date.";
pos["undef"] = "This word that can't be easily categorized.";
pos["vb"] = "A verb expresses action, existence, or an occurrance of someone or something.  In this form, the verb can be either transitive or intransitive, depending upon the context of the sentence.";
pos["vba"] = "An auxiliary verb is a verb that accompanies a primary verb in a clause and helps to make distinctions in mood, voice, aspect, and tense.  Sometimes called a helper verb.";
pos["vbi"] = "An intransitive verb is a verb  that does not take an object.";
pos["vbt"] = "A transitive verb is a verb that does take an object.";

var eti = new Array();

eti["for"] = "A formal word most often used during official or serious communication.";
eti["imp"] = "An impolite word, but not vulgar.";
eti["inf"] = "An informal word used around friends and close family members.";
eti["pol"] = "A polite word used to show courtesy, tact, or deference to someone or something.";
eti["sla"] = "A slang word exclusive to a paritcular group or region.";
eti["sta"] = "A common word suitable for everyday situations.";
eti["vul"] = "A vulgar, profane, obscene, or distasteful word.";


var Dictionary={


	/**********************************************************************
	 **********************************************************************/
	hideAllHelp:function(numIds) {

		for(i = 1; i <= numIds; i++) {

			Dictionary.hideHelp("iHelp" + i.toString());
		}

		return;
	},
	/**********************************************************************
	 **********************************************************************/
	hideHelp:function(id) {

		var tmp = document.getElementById(id);

		if (!tmp) return;

		tmp.style.display = "none";

		tmp.innerHTML = "";

		return;
	},
	/**********************************************************************
	 **********************************************************************/
	showHelp:function(id, pkey, type) {

		var tmp = document.getElementById(id);

		if (!tmp) return;
	
		tmp.style.display = "block";

		if (type == 'pos') {

			tmp.innerHTML = 
			'<div align="center"><b>[Part of Speech]</b><br>' + 
			pos[pkey] + '<br></div>';

		} else if (type == 'eti') {

			tmp.innerHTML = 
			'<div align="center"><b>[Etiquette]</b><br>' + 
			eti[pkey] + '<br></div>';

		} else {

			Dictionary.hideHelp(id);
		}

		//tmp.style.visibility = "hidden";

		return;
	}
}
/**************************************************************************
**************************************************************************/
// -->