var DOMtype=""

if (document.getElementById) {DOMtype='isID'}
else {
		 if (document.all) {DOMtype='isAll'}
		 else {DOMtype='isLayers'}
}

function findDOM(objectID){
				 switch (DOMtype){
				 case 'isID': {
				 return (document.getElementById(objectID).style);
				 break;}
				 case 'isAll': {
				 return (document.all[objectID].style);
				 break;}
				 default: {
				 return (document.layers[objectID])}
						}}

function display(layer){
				 domStyle=findDOM(layer)
				 if (domStyle.display=="none"){
				 		domStyle.display="block";}
				 else {domStyle.display="none";}
				 }

function highlight(para){
				 domStyle=findDOM(para)
				 domStyle.background="#6394CE";
				 domStyle.color="#F5F5F5";
				 domStyle.cursor="pointer";}

function highlighth(para){
				 domStyle=findDOM(para)
				 domStyle.background="#6394CE";
				 domStyle.color="#F5F5F5";
				 domStyle.cursor="pointer";}

function normal(para){
				 domStyle=findDOM(para)
				 domStyle.background="#F5F5F5";
				 domStyle.color="#000080";}

function normalh(para){
				 domStyle=findDOM(para)
				 domStyle.background="#F5F5F5";
				 domStyle.color="#000080";}
				 
function e(pre, org){
				 var pre
				 var org
				 document.write ("<a href='mailto:"+pre)
				 document.write ("@"+org+"'>")}
				 
function div(){
				var tag=1
				document.write ('<h3 id="para_'+tag+'" onmouseover="highlighth("')
				document.write ("'para_"+tag+"'); return true")
				document.write ('" onmouseout="normalh(')
				document.write ("'para_"+tag+"'); return true")
				document.write ('" onclick="display(')
				document.write ("'content_"+tag+"')")
				document.write ('">')}



/*The following script is from http://www.myscript.co.il/myscript/mydhtml/move_links.htm
Author:  Elad Rosenberg */  

//detecting mouse objects
var ns=(document.layers)
var ie=(document.all)
//capturing events
if (ns){document.captureEvents(Event.MOUSEMOVE)}
document.onmousemove = mouseMove
//x,y cordinates
function mouseMove(el) {
	if (ns) {x=el.pageX; y=el.pageY;TheLength=document.layers.length}
	if (ie) {x=event.x; y=event.y;TheLength=document.all.length}
	
	for (i=1; i<TheLength; i++) {
       if (ns) {whichEl = document.layers[i];var whichMove=whichEl}
	   if (ie) {whichEl = document.all[i];whichMove=document.all[i].style}
       if (whichEl.id.indexOf("child")!= -1) {
                  whichMove.left=x+5
				  whichMove.top=y+3}}}
//show the layer when mouseover
function sign(el,c) {
if (ns){document.layers["child"+c].visibility="show";}
	 else{document.all["child"+c].style.visibility="visible";}
		document.onmousemove = mouseMove}
//hide the layer when mouseout
function hide(c) {
        if (ns){document.layers["child"+c].visibility="hide";}
				else{document.all["child"+c].style.visibility="hidden";}
		//release event when hiding layer
		if (ns){releaseEvents(Event.MOUSEMOVE)}
		document.onmousemove=""}

//assigns div tag ids to parent text
var tag=2;		
function par(){
				 document.write("<div id='Parent'"+tag+"'>");
				 document.write("<a class='mouse' onmouseover='sign");
				 document.write('("parent'+tag+'", '+tag+')');
				 document.write("' onmouseout='hide("+tag+")'>");
				 tag++;
}
//assigns div tag ids to child text
var daughter=2
function son(){
				 document.write("<div id='child"+daughter+"' class ='nte'><p class='nt'>");
				 daughter++;}
/*
<h4>year</h4>
<p><div id="Parentx"> <a class="mouse" style=text-decoration:none onmouseover="sign('parentx',x)" onmouseout="hide(x)">
*Text*</a></p>
</div> 
			 <div id="childx" class="child"><p class="ch">*Note*</p></div> 
*/
