// JavaScript Document

var fCorinthians127="<b>1 Corinthians 12:7</b> &ldquo;But the manifestation of the Spirit is given to every man to profit withal.&rdquo;"
var fCorinthians12811="<b>1 Corinthians 12:8-11</b> &ldquo;For to one is given by the Spirit the word of wisdom; to another the word of knowledge by the same Spirit; 9 To another faith by the same Spirit; to another the gifts of healing by the same Spirit; 10 To another the working of miracles; to another prophecy; to another discerning of spirits; to another divers kinds of tongues; to another the interpretation of tongues: 11 But all these worketh that one and the selfsame Spirit, dividing to every man severally as he will.&rdquo;"
var fCorinthians1230="<b>1 Corinthians 12:30</b> &ldquo;Have all the gifts of healing? do all speak with tongues? do all interpret?&rdquo;"
var fCorinthians1231="<b>1 Corinthians 12:31</b> &ldquo;But covet earnestly the best gifts: and yet show I unto you a more excellent way.&rdquo;"
var fCorinthians1313="<b>1 Corinthians 13:1-3 CEV</b> &ldquo;What if I could speak all languages of humans and of angels? If I did not love others, I would be nothing more than a noisy gong or a clanging cymbal. 2 What if I could prophesy and understand all secrets and all knowledge? And what if I had faith that moved mountains? I would be nothing, unless I loved others. 3 What if I gave away all that I owned and let myself be burned alive? I would gain nothing, unless I loved others.&rdquo;"
var fCorinthians144="<b>1 Corinthians 14:4 CEV</b> &ldquo;By speaking languages that others don't know, you help only yourself. But by prophesying you help everyone in the church.&rdquo;<br><b>1 Corinthians 14:4 KJV</b> &ldquo;He that speaketh in an unknown tongue edifieth himself; but he that prophesieth edifieth the church.&rdquo;"
var fCorinthians1427="<b>1 Corinthians 14:27 NKJV</b> &ldquo;If anyone speaks in a tongue, let there be two or at the most three, each in turn, and let one interpret.&rdquo;"

var offsetfromcursorX=12 //x offset of tooltip
var offsetfromcursorY=10 //y offset of tooltip

var offsetdivfrompointerX=10 //x offset of tooltip DIV relative to pointer image
var offsetdivfrompointerY=14 //y offset of tooltip DIV relative to pointer image. Tip: Set it to (height_of_pointer_image-1).

document.write('<div id="dhtmltooltip"></div>')
document.write('<img id="dhtmlpointer1" src="images/arrowup.gif">')
document.write('<img id="dhtmlpointer2" src="images/arrowdown.gif">')

var ie=document.all
var ns6=document.getElementById && !document.all
var enabletip=false
if (ie||ns6)
var tipobj=document.all? document.all["dhtmltooltip"] : document.getElementById? document.getElementById("dhtmltooltip") : ""

var pointerobj=document.all? document.all["dhtmlpointer1"] : document.getElementById? document.getElementById("dhtmlpointer1") : ""
var pointerobjnew=document.all? document.all["dhtmlpointer2"] : document.getElementById? document.getElementById("dhtmlpointer2") : ""

function ietruebody(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function vtip(thetext, thewidth, thecolor){
if (ns6||ie){
if (typeof thewidth!="undefined") tipobj.style.width=thewidth+"px"
if (typeof thecolor!="undefined" && thecolor!="") tipobj.style.backgroundColor=thecolor
tipobj.innerHTML=thetext
enabletip=true
return false
}
}

function positiontip(e){
if (enabletip){
var nondefaultpos=false
var curX=(ns6)?e.pageX : event.clientX+ietruebody().scrollLeft;
var curY=(ns6)?e.pageY : event.clientY+ietruebody().scrollTop;
//Find out how close the mouse is to the corner of the window
var winwidth=ie&&!window.opera? ietruebody().clientWidth : window.innerWidth-20
var winheight=ie&&!window.opera? ietruebody().clientHeight : window.innerHeight-20

var rightedge=ie&&!window.opera? winwidth-event.clientX-offsetfromcursorX : winwidth-e.clientX-offsetfromcursorX
var bottomedge=ie&&!window.opera? winheight-event.clientY-offsetfromcursorY : winheight-e.clientY-offsetfromcursorY

var leftedge=(offsetfromcursorX<0)? offsetfromcursorX*(-1) : -1000

//if the horizontal distance isn't enough to accomodate the width of the context menu
if (rightedge<tipobj.offsetWidth){
//move the horizontal position of the menu to the left by it's width
tipobj.style.left=curX+44-tipobj.offsetWidth+"px"
pointerobj.style.left=curX-'-12'+"px" //new code to shift pointer to opposite side
pointerobjnew.style.left=curX-'-12'+"px"
nondefaultpos=false //changed to false to reveal pointer
}
else if (curX<leftedge)
tipobj.style.left="5px"
else{
//position the horizontal position of the menu where the mouse is positioned
tipobj.style.left=curX+offsetfromcursorX-offsetdivfrompointerX+"px"
pointerobj.style.left=curX+offsetfromcursorX+"px"
pointerobjnew.style.left=curX+offsetfromcursorX+"px"
}

//same concept with the vertical position
pointerobj.style.visibility="hidden"
pointerobjnew.style.visibility="hidden"
if (bottomedge<tipobj.offsetHeight){
tipobj.style.top=curY-tipobj.offsetHeight-offsetfromcursorY+"px"
pointerobjnew.style.top=curY-19+"px"
var ua = navigator.userAgent.toLowerCase(); //shadow does not work in firefox, fix pointer offset by 8px
if ( ua.indexOf( "firefox" ) != -1 ) {
pointerobjnew.style.top=curY-11+"px"
}
nondefaultpos=true
}
else{
tipobj.style.top=curY+offsetfromcursorY+offsetdivfrompointerY+"px"
pointerobj.style.top=curY+offsetfromcursorY+"px"
pointerobjnew.style.top=curY+offsetfromcursorY+"px"
}
tipobj.style.visibility="visible"
if (!nondefaultpos)
pointerobj.style.visibility="visible"
else
pointerobjnew.style.visibility="visible" //changed to objnew and visible
}
}

function hidevtip(){
if (ns6||ie){
enabletip=false
tipobj.style.visibility="hidden"
pointerobj.style.visibility="hidden"
pointerobjnew.style.visibility="hidden"
tipobj.style.left="-1000px"
tipobj.style.backgroundColor=''
tipobj.style.width=''
}
}

document.onmousemove=positiontip
