	var wordList = new Array();
	var definitionList = new Array();
	wordList[0]="tpc"; definitionList[0]="SCWXA Thunderstorm Prediction Center";
	wordList[1]="vt"; definitionList[1]="Ventura";
	wordList[2]="sba"; definitionList[2]="Santa Barbara";
	wordList[3]="la"; definitionList[3]="Los Angeles";
	wordList[4]="sd"; definitionList[4]="San Diego";
	wordList[5]="riv"; definitionList[5]="Riverside";
	wordList[6]="oc"; definitionList[6]="Orange County";
	wordList[7]="imp"; definitionList[7]="Imperial";
	wordList[8]="slo"; definitionList[8]="San Luis Obispo";
	wordList[9]="sbd"; definitionList[9]="San Bernardino";
	wordList[10]="shear"; definitionList[10]="Wind shear is the change in speed or direction of wind over a relatively short distance or time period. Vertical wind shear is the most commonly described shear. Wind shear is considered to be severe if the horizontal velocity changes at least 15 m/sec over distances of 1 to 4 km. In the vertical, wind speeds change at rates greater than 500 ft/min.";
	wordList[11]="vorticity"; definitionList[11]="The measurement of the rotation of a small air parcel. It has vorticity when the parcel spins as it moves along its path. Although the axis of the rotation can extend in any direction, meteorologists are primarily concerned with the rotational motion about an axis that is perpendicular to the earth's surface. If it does not spin, it is said to have zero vorticity. In the Northern Hemisphere, the vorticity is positive when the parcel has a counterclockwise, or cyclonic, rotation. It is negative when the parcel has clockwise, or anticyclonic, rotation. ";
	wordList[12]="advection"; definitionList[12]="The horizontal transfer of any property in the atmosphere by the movement of air (wind). Examples include heat and moisture advection.";
	wordList[13]="divergence"; definitionList[13]="Wind movement that results in a horizontal net outflow of air from a particular region. Divergence at lower levels is associated with a downward movement of air from aloft. Contrast with convergence.";
	wordList[14]="lapse rate"; definitionList[14]="The change of an atmospheric variable, usually temperature, with height. A steep lapse rate implies a rapid decrease in temperature with height and is a sign of instability.";
	wordList[15]="dynamics"; definitionList[15]="A branch of mechanics that deals with forces and their relations to patterns of motion. In metorology, this relates especially to wind and water patterns.";
	wordList[16]="low"; definitionList[16]="Low pressure, or low as in altitude";
	wordList[17]="upper level"; definitionList[17]="Above 20,000 Feet";
	wordList[18]="mid level"; definitionList[18]="10,000 to 18,000 Feet";
	wordList[19]="low level"; definitionList[19]="5,000 Feet";
	wordList[20]="instability"; definitionList[20]="The state of equilibrium in which a parcel of air when displaced has a tendency to move further away from its original position. It is the condition of the atmosphere when spontaneous convection and severe weather can occur. Air parcels, when displaced vertically, will accelerate upward, often forming cumulus clouds and possibly thunderstorms.";
	wordList[21]="mid-upper"; definitionList[21]="10,000 to 21,000 feet";
	wordList[22]="jet"; definitionList[22]="Wind flow";
	wordList[23]="southland"; definitionList[23]="Native saying for Southern California";
	wordList[24]="progs"; definitionList[24]="Computer models and/or trends";
	wordList[25]="convection"; definitionList[25]="Rising warm air, sometimes talking about rising clouds to form thunderstorm and hail chances";
	wordList[26]="nne"; definitionList[26]="North-Northeast";
	wordList[27]="ne"; definitionList[27]="Northeast";
	wordList[28]="ene"; definitionList[28]="East-Northeast";
	wordList[29]="ese"; definitionList[29]="East-Southeast";
	wordList[30]="se"; definitionList[30]="Southeast";
	wordList[31]="sse"; definitionList[31]="South-Southeast";
	wordList[32]="ssw"; definitionList[32]="South-Southwest";
	wordList[33]="sw"; definitionList[33]="Southwest";
	wordList[34]="wsw"; definitionList[34]="West-Southwest";
	wordList[35]="wnw"; definitionList[35]="West-Northwest";
	wordList[36]="nw"; definitionList[36]="Northwest";
	wordList[37]="nnw"; definitionList[37]="North-Northwest";
	wordList[38]="residents"; definitionList[38]="Fine SCWXA Supporters";
    wordList[39]="cumulus congestus"; definitionList[39]="The towering of cumulus clouds, if they continue to grow may become thunderstorms";
	wordList[40]="cumulonimbus"; definitionList[40]="These are thunderclouds which sometimes bring lightning, thunder and rain";
    wordList[41]="cu"; definitionList[41]="The towering of cumulus clouds, if they continue to grow may become thunderstorms";
	wordList[42]="cb"; definitionList[42]="These are thunderclouds which sometimes bring lightning, thunder and rain";
	wordList[43]="action"; definitionList[43]="Action- Enjoyable weather to people at SCWXA, normally anything but the marine layer or clear skies";
	wordList[44]="subsidence"; definitionList[44]="Sinking Air";
	var midWindow = 0;	
	var tipContainer = "";
	var IE = navigator.appName == 'Microsoft Internet Explorer';
	var DE = document.documentElement && document.documentElement.scrollLeft || document.documentElement && document.documentElement.scrollTop;

	function stayHome(m){
		var currX,iL,iV=iL=currX=0;
		if (DE) {
			iL = document.documentElement.scrollLeft;
			iV = document.documentElement.scrollTop;
		} else {
			iL = document.body.scrollLeft;	
			iV = document.body.scrollTop;
		}
		if (IE) {
			currX = event.clientX;
			tipContainer.style.top = (event.clientY+iV)+'px';
		} else {
			currX = m.pageX;
			tipContainer.style.top = m.pageY+'px';
		}		
		if (currX > midWindow-30) {
			if (IE){tipContainer.style.left = (currX-tipContainer.clientWidth-10+iL)+'px';}
			else {tipContainer.style.left = (currX-tipContainer.clientWidth-10)+'px';}
		} else {
			if (IE){tipContainer.style.left = (currX+25+iL)+'px';}
			else {tipContainer.style.left = (currX+25)+'px';}
		}		
		tipContainer.style.zIndex="50";
	}

	function hideDefinition(){
		tipContainer.style.display = 'none';
		while (tipContainer.lastChild){tipContainer.removeChild(tipContainer.lastChild);}
	}

	function getDefinition(curWord){
		for (z=wordList.length-1; z>=0; z--){
			if (wordList[z] == curWord) {
				return definitionList[z];
			}
		}
		return "";
	}

	function showDefinition(defineWord){	
		var tipTxt = getDefinition(defineWord).split("|");
		tipContainer.style.display = '';
		for (i=0; i<tipTxt.length; i++){
			tipContainer.appendChild(document.createTextNode(tipTxt[i]))
			tipContainer.appendChild(document.createElement('br'))
		}
	}

	function getMidWindow(){
		if (DE) {
			midWindow = document.documentElement.clientWidth/2;
		} else {
			midWindow = document.body.clientWidth/2;
		}
	}

	function initContext(){
		var rawText = document.getElementsByTagName("body")[0];
		var workText = " " + rawText.innerHTML + " ";
		for (i=0; i<wordList.length; i++){
			workText = workText.replace(new RegExp("([\\s\\r\\n\\t,;.:?!]+"+wordList[i]+"[\\s\\t\\n,;.:?!]+)",'gi'),"<span class='word'>$1<\/span>");
		}
		rawText.innerHTML = workText;
	}

	function initTip(){
		tipContainer = document.getElementById('nFloat');
		tipContainer.style.display = 'none';
		if (!IE){document.captureEvents(Event.mousemove)}
		document.onmousemove=stayHome;
		getMidWindow();
	}

	function init(){
		initContext();
		var tipBox = document.createElement('div');
		tipBox.className = "definition";
		tipBox.id = "nFloat";
		document.getElementsByTagName('body')[0].appendChild(tipBox);
		initTip();
		var nWords = document.getElementsByTagName("body")[0].getElementsByTagName('span');
		for (i=nWords.length-1; i>=0; i--){
			if(nWords[i].className != 'word'){ continue; }
			nWords[i].onmouseover = function() {
				showDefinition(this.firstChild.data.toLowerCase().replace(/^\s+|\s+$/,"").replace(/[^a-zA-Z-\s]/g,"").replace(/^\s+|\s+$/,""));
			}
			nWords[i].onmouseout = function() {
				hideDefinition();
			}
		}
	}
	onload=init;
	onresize=getMidWindow;