function makeVis(index)
{
	var layerName1 = getObject("def");	
	var layerName2 = getObject("defimg");		
	var layerNameProp1 = getObject1("def");	
	var layerNameProp2 = getObject1("defimg");		
	
	
	// not used
	var layerName1Prop = getObject1("def");
	
	
	if(index == 0)
	{
		alert("Please select a term");
	}
	else
	{
	
		if(isNav)
		{
				
			pos = 0;
			layerName2.clip.bottom = 0;

			//add approriate line break in the layer so that it word wraps properly

			
			var input = meaning[index] ;

			var oldpos = 0;
			var searchFor = ' ';
			var count = 1;
			var layerWidth;
			var strpos = 0;
			var buf = 0;
			var iWidth =30;

			layerWidth = iWidth;
			while(strpos <= input.length)	
			{
				strpos = input.indexOf(searchFor,oldpos + 1)
				
				var string1 = input.substring(0,strpos);
				var string2 = input.substring(strpos + 1,input.length)
	
				//alert(input + "\n" + "pos = " + pos +  "\n" + "oldpos = " + oldpos + "\n" + "layerwidth = " + layerWidth) ;
		
	
				if( strpos >= layerWidth ) 
				{
	
					input = string1 + "<br>" + string2;
					strpos += 4;
					layerWidth = layerWidth + iWidth + 4;
				}
		
			if(strpos == -1)
				break;
			else   
				oldpos = strpos + 1;
				
			}
		
			// write into the layer
		
			layerName1.document.open();
			layerName1.document.write("<font class=\"info1\" >" + input + "</font>");	
			layerName1.document.close();
			
			layerName2.document.open();
			if(imgs[index]  == "")
			{	
				layerName2.document.write("");
			}
			else
			{
				layerName2.document.write('<img src="' + imgs[index] + '"  width="200" height="125" hspace="0" vspace="0" border="0">');	
			}
			layerName2.document.close();	
			
			//make it visible
			
			layerName1.visibility = "visible";
			layerName2.visibility = "visible";
			
			
			pullOut();
		}
		else 
		{	
			if(isIE)
			{
				// write into the layer
				
				var input1 = meaning[index];
				
				 
				layerNameProp1.pixelTop = 700;
								
				layerNameProp2.pixelTop = 885;

				layerName1.innerHTML = input1;
				
				if( imgs[index]  == "")
				{
					var input2 = ""
				}
				else
				{	
					var input2 = '<img src="' + imgs[index] + '" width="200" height="125" hspace="0" vspace="0" border="0">'	
				}	
				
				layerName2.innerHTML = input2;
				
				pos = 0;
				layerNameProp2.clip = "rect(0 200 0 0)";	
				//alert(layerNameProp2.top);
				//make it visible
				layerNameProp1.visibility = "visible";
				layerNameProp2.visibility = "visible";
				
				pullOut();
				
			}
		}
	}	
}

function clearOut1()
{
	var layerName1 = getObject("def");	
	var layerName1Prop = getObject1("def");
	
	if(isNav)
	{
		//alert("Netscape");

		//hide layer
		
		layerName1.visibility= "hidden";
		
		//empty contents

		layerName1.document.open();
		layerName1.document.write("");	
		layerName1.document.close();
	}
	else 
	{	if(isIE)
		{
			//alert("IE");	
			
			//Hide Layer			
			layerName1Prop.visibility = "hidden";

			//empty contents
			layerName1.innerHTML = "";
		}
	}
}