/**********************************************************************************   
ChangeText 
*   Copyright (C) 2001 <a href="/dhtmlcentral/thomas_brattli.asp">Thomas Brattli</a>
*   This script was released at DHTMLCentral.com
*   Visit for more great scripts!
*   This may be used and changed freely as long as this msg is intact!
*   We will also appreciate any links you could give us.
*
*   Made by <a href="/dhtmlcentral/thomas_brattli.asp">Thomas Brattli</a> 
*********************************************************************************/

function lib_bwcheck(){ //Browsercheck (needed)
	this.ver=navigator.appVersion
	this.agent=navigator.userAgent
	this.dom=document.getElementById?1:0
	this.opera5=this.agent.indexOf("Opera 5")>-1
	this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom && !this.opera5)?1:0; 
	this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom && !this.opera5)?1:0;
	this.ie4=(document.all && !this.dom && !this.opera5)?1:0;
	this.ie=this.ie4||this.ie5||this.ie6
	this.mac=this.agent.indexOf("Mac")>-1
	this.ns6=(this.dom && parseInt(this.ver) >= 5) ?1:0; 
	this.ns4=(document.layers && !this.dom)?1:0;
	this.bw=(this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns6 || this.opera5)
	return this
}
var bw=new lib_bwcheck()

if(document.layers){
	scrX= innerWidth; scrY= innerHeight;
	onresize= function(){if(scrX!= innerWidth || scrY!= innerHeight){history.go(0)} }
}

msgFont="Verdana,Arial,Helvetiva,sans-serif"
msgFontSize=12
msgFontColor="#003366"
msgWidth= "100%"

messages=new Array()
messages[0]=""
messages[1]="<span class=\"anatomyDefinition\">Upper punctum:</span> oval opening in the upper lid margin where tears enter to flow to the lacrimal sac. Much less important than the lower punctum. If the upper punctum becomes ineffective, the lower arm of the lacrimal drainage system can absorb the overload.<p>&nbsp;<br>"
messages[2]="<span class=\"anatomyDefinition\">Plica semilunaris:</span> a crescentic fold in the medial conjunctiva lying lateral to the caruncle. It has no special function.<p>&nbsp;<br>"
messages[3]="<span class=\"anatomyDefinition\">Caruncle:</span> a crescent of modified skin that is a vestige of the nictitating membrane, or third eyelid, in lower animals. Together with the plica semilunaris, lying lateral, it becomes especially inflamed in some forms of infectious conjunctivitis. It has no special function.<p>&nbsp;<br>"
messages[4]="<span class=\"anatomyDefinition\">Upper canaliculus:</span> epithelial-lined tube that carries tears from the punctum to the lacrimal sac. It is much less important than the lower canaliculus. If severed or obstructed, tearing is unlikely to result because the lower canaliculus can absorb the overload.<p>&nbsp;<br>"
messages[5]="<span class=\"anatomyDefinition\">Medial canthus:</span> the medial confluence of upper and lower eyelid margins.<p>&nbsp;<br>"
messages[6]="<span class=\"anatomyDefinition\">Lacrimal sac:</span> collects tears coming from the canaliculi. Can become inflamed&#151;swollen, red, tender&#151;as \"dacrocystitis,\" especially if the nasolacrimal duct is obstructed.<p>&nbsp;<br>"
messages[7]="<span class=\"anatomyDefinition\">Lacrimal gland:</span> tucked under the upper outer orbital rim, the lacrimal gland provides tears during crying. Basic wetting of the eye is handled by glands scattered throughout the conjunctiva. The main concern about the lacrimal gland is that it harbors chronic inflammation (Sj&#246;gren's, sarcoidosis, infectious granulomas) and neoplasms, both benign and malignant (epithelial and lymphoid).<p>&nbsp;<br>"
messages[8]="<span class=\"anatomyDefinition\">Lower punctum:</span> oval opening in the lower lid margin where tears enter to flow to lacrimal sac. If the lower punctum is not well apposed to the conjunctiva, or becomes distorted or closed by inflammation or trauma, the patient will have a tearing problem.<p>&nbsp;<br>"
messages[9]="<span class=\"anatomyDefinition\">Lower canaliculus:</span> epithelial-lined tube that carries tears from the punctum to the lacrimal sac. Of the two canaliculi, the lower is the more important. It is often severed in medial lower lid lacerations. If is it not perfectly reconnected, the patient will probably have a serious tearing problem.<p>&nbsp;<br>"
messages[10]="<span class=\"anatomyDefinition\">Common canaliculus:</span> the confluence of the upper and lower canaliculi.<p>&nbsp;<br>"
messages[11]="<span class=\"anatomyDefinition\">Nasolacrimal duct:</span> carries tears from the lacrimal sac into the nose. The duct ends under the inferior turbinate. Often imperforate at birth, causing back-up of tears and sometimes inflammation of lacrimal sac (\"dacryocystitis\"). Usually opens spontaneously within first six months of life. If not, needs to be opened by a probe passed through canaliculus. Can also be damaged by nasal trauma or chronic nasal mucosal disease.<p>&nbsp;<br>"
messages[12]="<span class=\"anatomyDefinition\">Lateral canthus:</span> the lateral confluence of upper and lower eyelid margins.<p>&nbsp;<br>"
messages[13]="<span class=\"anatomyDefinition\">Sclera:</span> the collagenous outer wall of the eyeball. Its outermost portion, called the episclera, has a rich vascular network. It is here that bilirubin accumulates to stain the superficial sclera yellow (\"icterus\"). The sclera becomes inflamed in connective tissue diseases, usually forming a nodule with a tangle of hyperemic episcleral and conjunctival vessels. The episclera is covered by the conjunctiva, a vascular mucous membrane.<p>&nbsp;<br>"
messages[14]="<span class=\"anatomyDefinition\">Limbus:</span> the outer margin of the cornea.<p>&nbsp;<br>"
messages[15]="<span class=\"anatomyDefinition\">Iris:</span> the diaphragm that controls the amount of light entering the eye. It has two layers, a posterior pigment epithelium and an anterior stroma made of collagen, muscle and pigment cells. The more pigment in these stromal cells, the darker the iris. There are two muscles: a circumferential parasympathetically-controlled sphincter that constricts the pupil and a radial sympathetically-controlled muscle that dilates it.<p>&nbsp;<br>"
messages[16]="<span class=\"anatomyDefinition\">Cilia:</span> a fancy word for eyelashes. If the eyelid becomes distorted by disease, trauma, or senescence, cilia may aim inward (\"trichiasis\") and abrade the cornea. This hurts.<p>&nbsp;<br>"

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

function makeChangeTextObj(obj){
   	this.css = bw.dom?document.getElementById(obj).style:bw.ie4?document.all[obj].style:bw.ns4?document.layers[obj]:0;	
   	this.writeref = bw.dom?document.getElementById(obj):bw.ie4?document.all[obj]:bw.ns4?document.layers[obj].document:0;	
	this.writeIt = b_writeIt;					
}
function b_writeIt(text,num){
	if (bw.ns4){
		this.writeref.write(text)
		this.writeref.close()
	}
    else this.writeref.innerHTML = messages[num]
}

function changeText(num){
	if(bw.bw) oMessage.writeIt('<table width="'+msgWidth+'" border="0" cellpadding="0" cellspacing="0"><tr><td class="anatomyText">'+messages[num]+'</td></tr></table>', num)}

function changeTextInit(){
	bw.opera5 = (navigator.userAgent.indexOf("Opera")>-1 && document.getElementById)?true:false
	if (bw.opera5) bw.ns6 = 0
	
	oMessage = new makeChangeTextObj('divMessage')
	oLinks = new makeChangeTextObj('divLinks')
	if(bw.dom || bw.ie4){
		with(oMessage.writeref.style){fontFamily=msgFont; color=msgFontColor}
//		with(oMessage.writeref.style){fontFamily=msgFont; fontSize=msgFontSize+"px"; color=msgFontColor}
	}
	oMessage.css.visibility= "visible"
	oLinks.css.visibility= "visible"
}

if (bw.bw) onload = changeTextInit

function link() {
}
