// JavaScript Document

var Genesis217="<b>Genesis 2:17</b> &ldquo;But of the tree of the knowledge of good and evil, you shall not eat of it: for in the day that you eatest thereof you shall surely die.&rdquo;"
var Genesis317="<b>Genesis 3:17</b> &ldquo;And unto Adam he said, Because you have hearkened unto the voice of your wife, and have eaten of the tree, of which I commanded you, saying, You shall not eat of it: cursed is the ground for your sake; in sorrow shall you eat of it all the days of your life;&rdquo;"
var Genesis65="<b>Genesis 6:5</b> &ldquo;And GOD saw that the wickedness of man was great in the earth, and that every imagination of the thoughts of his heart was only evil continually.&rdquo;"
var fKings846="<b>1 Kings 8:46</b> &ldquo;If they sin against you, (for there is no man that sinneth not,) and you be angry with them, and deliver them to the enemy, so that they carry them away captives unto the land of the enemy, far or near;&rdquo;"
var Job1712="<b>Job 1:7-12</b> &ldquo;And the LORD said unto Satan, Whence comest you? Then Satan answered the LORD, and said, From going to and fro in the earth, and from walking up and down in it. 8 And the LORD said unto Satan, Have you considered my servant Job, that there is none like him in the earth, a perfect and an upright man, one that feareth God, and escheweth evil? 9 Then Satan answered the LORD, and said, Does Job fear God for nought? 10 Have not you made an hedge about him, and about his house, and about all that he has on every side? you have blessed the work of his hands, and his substance is increased in the land. 11 But put forth thine hand now, and touch all that he has, and he will curse you to your face. 12 And the LORD said unto Satan, Behold, all that he has is in your power; only upon himself put not forth thine hand. So Satan went forth from the presence of the LORD.&rdquo;"
var Job226="<b>Job 2:2-6</b> &ldquo;And the LORD said unto Satan, From whence comest you? And Satan answered the LORD, and said, From going to and fro in the earth, and from walking up and down in it. 3 And the LORD said unto Satan, Have you considered my servant Job, that there is none like him in the earth, a perfect and an upright man, one that feareth God, and escheweth evil? and still he holdeth fast his integrity, although you movedst me against him, to destroy him without cause. 4 And Satan answered the LORD, and said, Skin for skin, yes, all that a man has will he give for his life. 5 But put forth thine hand now, and touch his bone and his flesh, and he will curse you to your face. 6 And the LORD said unto Satan, Behold, he is in thine hand; but save his life.&rdquo;"
var Job27="<b>Job 2:7</b> &ldquo;So went Satan forth from the presence of the LORD, and smote Job with sore boils from the sole of his foot unto his crown.&rdquo;"
var Job134="<b>Job 13:4</b> &ldquo;But you are forgers of lies, you are all physicians of no value.&rdquo;"
var Isaiah16="<b>Isaiah 1:6</b> &ldquo;From the sole of the foot even unto the head there is no soundness in it; but wounds, and bruises, and putrifying sores: they have not been closed, neither bound up, neither mollified with ointment.&rdquo;"
var Isaiah2913="<b>Isaiah 29:13</b> &ldquo;Wherefore the Lord said, Forasmuch as this people draw near me with their mouth, and with their lips do honour me, but have removed their heart far from me, and their fear toward me is taught by the precept of men:&rdquo;"
var Jeremiah822="<b>Jeremiah 8:22</b> &ldquo;Is there no balm in Gilead; is there no physician there? why then is not the health of the daughter of my people recovered?&rdquo;"
var Jeremiah179="<b>Jeremiah 17:9</b> &ldquo;The heart is deceitful above all things, and desperately wicked: who can know it?&rdquo;"
var Jeremiah301213="<b>Jeremiah 30:12-13</b> &ldquo;For thus saith the LORD, Your bruise is incurable, and your wound is grievous. 13 There is none to plead your cause, that you may be bound up: you have no healing medicines.&rdquo;"
var Jeremiah4611="<b>Jeremiah 46:11</b> &ldquo;Go up into Gilead, and take balm, O virgin, the daughter of Egypt: in vain shall you use many medicines; for you shall not be cured.&rdquo;"
var Ezekiel184="<b>Ezekiel 18:4</b> &ldquo;Behold, all souls are mine; as the soul of the father, so also the soul of the son is mine: the soul that sinneth, it shall die.&rdquo;"
var Ezekiel181920="<b>Ezekiel 18:19-20</b> &ldquo;Yet say you, Why? does not the son bear the iniquity of the father? When the son has done that which is lawful and right, and has kept all my statutes, and has done them, he shall surely live. 20 The soul that sinneth, it shall die. The son shall not bear the iniquity of the father, neither shall the father bear the iniquity of the son: the righteousness of the righteous shall be upon him, and the wickedness of the wicked shall be upon him.&rdquo;"
var Ezekiel2717="<b>Ezekiel 27:17</b> &ldquo;Judah, and the land of Israel, they were your merchants: they traded in your market wheat of Minnith, and Pannag, and honey, and oil, and balm.&rdquo;"
var Matthew424="<b>Matthew 4:24</b> &ldquo;And his fame went throughout all Syria: and they brought unto him all sick people that were taken with divers diseases and torments, and those which were possessed with devils, and those which were lunatick, and those that had the palsy; and he healed them.&rdquo;"
var Matthew101="<b>Matthew 10:1</b> &ldquo;And when he had called unto him his twelve disciples, he gave them power against unclean spirits, to cast them out, and to heal all manner of sickness and all manner of disease.&rdquo;"
var Matthew108="<b>Matthew 10:8</b> &ldquo;Heal the sick, cleanse the lepers, raise the dead, cast out devils: freely you have received, freely give.&rdquo;"
var Matthew102425="<b>Matthew 10:24-25</b> &ldquo;The disciple is not above his master, nor the servant above his lord. 25 It is enough for the disciple that he be as his master, and the servant as his lord. If they have called the master of the house Beelzebub, how much more shall they call them of his household?&rdquo;"
var Matthew161619="<b>Matthew 16:16-19</b> &ldquo;And Simon Peter answered and said, You are the Christ, the Son of the living God. 17 And Jesus answered and said unto him, Blessed are you, Simon Barjona: for flesh and blood has not revealed it unto you, but my Father which is in heaven. 18 And I say also unto you, That you are Peter, and upon this rock I will build my church; and the gates of hell [<i>hades</i>] shall not prevail against it. 19 And I will give unto you the keys of the kingdom of heaven: and whatsoever you shall bind [<i>forbid</i>] on earth shall [<i>already</i>] be bound in heaven: and whatsoever you shall loose [<i>permit</i>] on earth shall [<i>already</i>] be loosed in heaven.&rdquo;"
var Mark72023="<b>Mark 7:20-23</b> &ldquo;And he said, That which cometh out of the man, that defileth the man. 21 For from within, out of the heart of men, proceed evil thoughts, adulteries, fornications, murders, 22 Thefts, covetousness, wickedness, deceit, lasciviousness, an evil eye, blasphemy, pride, foolishness: 23 All these evil things come from within, and defile the man.&rdquo;"
var Mark1123="<b>Mark 11:23</b> &ldquo;For verily I say unto you, That whosoever shall say unto this mountain, Be you removed, and be you cast into the sea; and shall not doubt in his heart, but shall believe that those things which he saith shall come to pass; he shall have whatsoever he saith.&rdquo;"
var Luke91="<b>Luke 9:1</b> &ldquo;Then he called his twelve disciples together, and gave them power and authority over all devils, and to cure diseases.&rdquo;"
var Luke131113="<b>Luke 13:11-13</b> &ldquo;And, behold, there was a woman which had a spirit of infirmity eighteen years, and was bowed together, and could in no wise lift up herself. 12 And when Jesus saw her, he called her to him, and said unto her, Woman, you are loosed from thine infirmity. 13 And he laid his hands on her: and immediately she was made straight, and glorified God.&rdquo;"
var Luke1316="<b>Luke 13:16</b> &ldquo;And ought not this woman, being a daughter of Abraham, whom Satan has bound, lo, these eighteen years, be loosed from this bond on the sabbath day?&rdquo;"
var John8311="<b>John 8:3-11</b> &ldquo;And the scribes and Pharisees brought unto him a woman taken in adultery; and when they had set her in the midst, 4 They say unto him, Master, this woman was taken in adultery, in the very act. 5 Now Moses in the law commanded us, that such should be stoned: but what sayest you? 6 This they said, tempting him, that they might have to accuse him. But Jesus stooped down, and with his finger wrote on the ground, as though he heard them not. 7 So when they continued asking him, he lifted up himself, and said unto them, He that is without sin among you, let him first cast a stone at her. 8 And again he stooped down, and wrote on the ground. 9 And they which heard it, being convicted by their own conscience, went out one by one, beginning at the eldest, even unto the last: and Jesus was left alone, and the woman standing in the midst. 10 When Jesus had lifted up himself, and saw none but the woman, he said unto her, Woman, where are those thine accusers? has no man condemned you? 11 She said, No man, Lord. And Jesus said unto her, Neither do I condemn you: go, and sin no more.&rdquo;"
var John1020="<b>John 10:20</b> &ldquo;And many of them said, He has a devil, and is mad; why hear you him?&rdquo;"
var John1038="<b>John 10:38</b> &ldquo;But if I do, though you believe not me, believe the works: that you may know, and believe, that the Father is in me, and I in him.&rdquo;"
var John2031="<b>John 20:31</b> &ldquo;But these are written, that you might believe that Jesus is the Christ, the Son of God; and that believing you might have life through his name.&rdquo;"
var Acts1038="<b>Acts 10:38</b> &ldquo;How God anointed Jesus of Nazareth with the Holy Ghost and with power: who went about doing good, and healing all that were oppressed of the devil; for God was with him.&rdquo;"
var Acts104446="<b>Acts 10:44-46</b> &ldquo;While Peter yet spoke these words, the Holy Ghost fell on all them which heard the word. 45 And they of the circumcision which believed were astonished, as many as came with Peter, because that on the Gentiles also was poured out the gift of the Holy Ghost. 46 For they heard them speak with tongues, and magnify God...&rdquo;"
var Acts20912="<b>Acts 20:9-12</b> &ldquo;And there sat in a window a certain young man named Eutychus, being fallen into a deep sleep: and as Paul was long preaching, he sunk down with sleep, and fell down from the third loft, and was taken up dead. 10 And Paul went down, and fell on him, and embracing him said, Trouble not yourselves; for his life is in him. 11 When he therefore was come up again, and had broken bread, and eaten, and talked a long while, even till break of day, so he departed. 12 And they brought the young man alive, and were not a little comforted.&rdquo;"
var Romans425="<b>Romans 4:25</b> &ldquo;Who was delivered for our offences, and was raised again for our justification.&rdquo;"
var Romans51219="<b>Romans 5:12-19</b> &ldquo;Wherefore, as by one man sin entered into the world, and death by sin; and so death passed upon all men, for that all have sinned: 13 (For until the law sin was in the world: but sin is not imputed when there is no law. 14 Nevertheless death reigned from Adam to Moses, even over them that had not sinned after the similitude of Adam's transgression, who is the figure of him that was to come. 15 But not as the offence, so also is the free gift. For if through the offence of one many be dead, much more the grace of God, and the gift by grace, which is by one man, Jesus Christ, has abounded unto many. 16 And not as it was by one that sinned, so is the gift: for the judgment was by one to condemnation, but the free gift is of many offences unto justification. 17 For if by one man's offence death reigned by one; much more they which receive abundance of grace and of the gift of righteousness shall reign in life by one, Jesus Christ.) 18 Therefore as by the offence of one judgment came upon all men to condemnation; even so by the righteousness of one the free gift came upon all men unto justification of life. 19 For as by one man's disobedience many were made sinners, so by the obedience of one shall many be made righteous.&rdquo;"
var Romans517="<b>Romans 5:17</b> &ldquo;For if by one man's offence death reigned by one; much more they which receive abundance of grace and of the gift of righteousness shall reign in life by one, Jesus Christ.)&rdquo;"
var Romans61523="<b>Romans 6:15-23</b> &ldquo;What then? shall we sin, because we are not under the law, but under grace? God forbid. 16 Know you not, that to whom you yield yourselves servants to obey, his servants you are to whom you obey; whether of sin unto death, or of obedience unto righteousness? 17 But God be thanked, that you were the servants of sin, but you have obeyed from the heart that form of doctrine which was delivered you. 18 Being then made free from sin, you became the servants of righteousness. 19 I speak after the manner of men because of the infirmity of your flesh: for as you have yielded your members servants to uncleanness and to iniquity unto iniquity; even so now yield your members servants to righteousness unto holiness. 20 For when you were the servants of sin, you were free from righteousness. 21 What fruit had you then in those things whereof you are now ashamed? for the end of those things is death. 22 But now being made free from sin, and become servants to God, you have your fruit unto holiness, and the end everlasting life. 23 For the wages of sin is death; but the gift of God is eternal life through Jesus Christ our Lord.&rdquo;"
var Romans623="<b>Romans 6:23</b> &ldquo;For the wages of sin is death; but the gift of God is eternal life through Jesus Christ our Lord.&rdquo;"
var Romans81822="<b>Romans 8:18-22</b> &ldquo;For I reckon that the sufferings of this present time are not worthy to be compared with the glory which shall be revealed in us. 19 For the earnest expectation of the creature waiteth for the manifestation of the sons of God. 20 For the creature was made subject to vanity, not willingly, but by reason of him who has subjected the same in hope, 21 Because the creature itself also shall be delivered from the bondage of corruption into the glorious liberty of the children of God. 22 For we know that the whole creation groaneth and travaileth in pain together until now.&rdquo;"
var Romans82324="<b>Romans 8:23-24</b> &ldquo;And not only they, but ourselves also, which have the firstfruits of the Spirit, even we ourselves groan within ourselves, waiting for the adoption, to wit, the redemption of our body. 24 For we are saved by hope: but hope that is seen is not hope: for what a man seeth, why does he yet hope for?&rdquo;"
var Romans826="<b>Romans 8:26</b> &ldquo;Likewise the Spirit also helpeth our infirmities: for we know not what we should pray for as we ought: but the Spirit itself maketh intercession for us with groanings which cannot be uttered.&rdquo;"
var Romans830="<b>Romans 8:30</b> &ldquo;Moreover whom he did predestinate, them he also called: and whom he called, them he also justified: and whom he justified, them he also glorified.&rdquo;"
var fCorinthians122830="<b>1 Corinthians 12:28-30</b> &ldquo;And God has set some in the church, first apostles, secondarily prophets, thirdly teachers, after that miracles, then gifts of healings, helps, governments, diversities of tongues. 29 Are all apostles? are all prophets? are all teachers? are all workers of miracles? 30 Have all the gifts of healing? do all speak with tongues? do all interpret?&rdquo;"
var sCorinthians2511="<b>2 Corinthians 2:5-11</b> &ldquo;But if any have caused grief, he has not grieved me, but in part: that I may not overcharge you all. 6 Sufficient to such a man is this punishment, which was inflicted of many. 7 So that contrariwise you ought rather to forgive him, and comfort him, lest perhaps such a one should be swallowed up with overmuch sorrow. 8 Wherefore I beseech you that you would confirm your love toward him. 9 For to this end also did I write, that I might know the proof of you, whether you be obedient in all things. 10 To whom you forgive any thing, I forgive also: for if I forgave any thing, to whom I forgave it, for your sakes forgave I it in the person of Christ; 11 Lest Satan should get an advantage of us: for we are not ignorant of his devices.&rdquo;"
var sCorinthians514="<b>2 Corinthians 5:1-4</b> &ldquo;For we know that if our earthly house of this tabernacle were dissolved, we have a building of God, an house not made with hands, eternal in the heavens. 2 For in this we groan, earnestly desiring to be clothed upon with our house which is from heaven: 3 If so be that being clothed we shall not be found naked. 4 For we that are in this tabernacle do groan, being burdened: not for that we would be unclothed, but clothed upon, that mortality might be swallowed up of life.&rdquo;"
var sCorinthians113="<b>2 Corinthians 11:3</b> &ldquo;But I fear, lest by any means, as the serpent beguiled Eve through his subtilty, so your minds should be corrupted from the simplicity that is in Christ.&rdquo;"
var sCorinthians12710="<b>2 Corinthians 12:7-10</b> &ldquo;And lest I should be exalted above measure through the abundance of the revelations, there was given to me a thorn in the flesh, the messenger of Satan to buffet me, lest I should be exalted above measure. 8 For this thing I besought the Lord thrice, that it might depart from me. 9 And he said unto me, My grace is sufficient for you: for my strength is made perfect in weakness. Most gladly therefore will I rather glory in my infirmities, that the power of Christ may rest upon me. 10 Therefore I take pleasure in infirmities, in reproaches, in necessities, in persecutions, in distresses for Christ's sake: for when I am weak, then am I strong.&rdquo;"
var Galatians11112="<b>Galatians 1:11-12</b> &ldquo;But I certify you, brethren, that the gospel which was preached of me is not after man. 12 For I neither received it of man, neither was I taught it, but by the revelation of Jesus Christ.&rdquo;"
var Galatians413="<b>Galatians 4:13 NIV</b> &ldquo;As you know, it was because of an illness that I first preached the gospel to you.&rdquo;"
var Galatians41315="<b>Galatians 4:13-15</b> &ldquo;You know how through infirmity of the flesh I preached the gospel unto you at the first. 14 And my temptation which was in my flesh you despised not, nor rejected; but received me as an angel of God, even as Christ Jesus. 15 Where is then the blessedness you spoke of? for I bear you record, that, if it had been possible, you would have plucked out your own eyes, and have given them to me.&rdquo;"
var Ephesians28="<b>Ephesians 2:8</b> &ldquo;For by grace are you saved through faith; and that not of yourselves: it is the gift of God:&rdquo;"
var Philippians22527="<b>Philippians 2:25-27</b> &ldquo;Yet I supposed it necessary to send to you Epaphroditus, my brother, and companion in labour, and fellowsoldier, but your messenger, and he that ministered to my wants. 26 For he longed after you all, and was full of heaviness, because that you had heard that he had been sick. 27 For indeed he was sick nigh unto death: but God had mercy on him; and not on him only, but on me also, lest I should have sorrow upon sorrow.&rdquo;"
var Philippians310="<b>Philippians 3:10</b> &ldquo;That I may know him, and the power of his resurrection, and the fellowship of his sufferings, being made conformable unto his death;&rdquo;"
var Philippians32021="<b>Philippians 3:20-21</b> &ldquo;For our conversation is in heaven; from whence also we look for the Saviour, the Lord Jesus Christ: 21 Who shall change our vile body, that it may be fashioned like unto his glorious body, according to the working whereby he is able even to subdue all things unto himself.&rdquo;"
var Philippians321="<b>Philippians 3:21</b> &ldquo;Who shall change our vile body, that it may be fashioned like unto his glorious body, according to the working whereby he is able even to subdue all things unto himself.&rdquo;"
var fTimothy523="<b>1 Timothy 5:23 NIV</b> &ldquo;Stop drinking only water, and use a little wine because of your stomach and your frequent illnesses.&rdquo;"
var sTimothy316="<b>2 Timothy 3:16</b> &ldquo;All scripture is given by inspiration of God, and is profitable for doctrine, for reproof, for correction, for instruction in righteousness:&rdquo;"
var sTimothy420="<b>2 Timothy 4:20</b> &ldquo;Erastus abode at Corinth: but Trophimus have I left at Miletum sick.&rdquo;"
var sTimothy435="<b>2 Timothy 4:3-5</b> &ldquo;For the time will come when they will not endure sound doctrine; but after their own lusts shall they heap to themselves teachers, having itching ears; 4 And they shall turn away their ears from the truth, and shall be turned unto fables. 5 But watch you in all things, endure afflictions, do the work of an evangelist, make full proof of your ministry.&rdquo;"
var Titus1711="<b>Titus 1:7-11 GNB</b> &ldquo;For since a church leader is in charge of God's work, he should be without fault. He must not be arrogant or quick-tempered, or a drunkard or violent or greedy for money. 8 He must be hospitable and love what is good. He must be self-controlled, upright, holy, and disciplined. 9 He must hold firmly to the message which can be trusted and which agrees with the doctrine. In this way he will be able to encourage others with the true teaching and also to show the error of those who are opposed to it. 10 For there are many, especially the converts from Judaism, who rebel and deceive others with their nonsense. 11 It is necessary to stop their talk, because they are upsetting whole families by teaching what they should not, and all for the shameful purpose of making money.&rdquo;"
var Hebrews1269NIV="<b>Hebrews 12:6-9 NIV</b> &ldquo;because the Lord disciplines those he loves, and he punishes everyone he accepts as a son. 7 Endure hardship as discipline; God is treating you as sons. For what son is not disciplined by his father? 8 If you are not disciplined (and everyone undergoes discipline), then you are illegitimate children and not true sons. 9 Moreover, we have all had human fathers who disciplined us and we respected them for it. How much more should we submit to the Father of our spirits and live!&rdquo;"
var Hebrews121415="<b>Hebrews 12:14-15</b> &ldquo;Follow peace with all men, and holiness, without which no man shall see the Lord: 15 Looking diligently lest any man fail of the grace of God; lest any root of bitterness springing up trouble you, and thereby many be defiled;&rdquo;"
var James515="<b>James 5:15</b> &ldquo;And the prayer of faith shall save the sick, and the Lord shall raise him up; and if he have committed sins, they shall be forgiven him.&rdquo;"
var James51416="<b>James 5:14-16</b> &ldquo;Is any sick among you? let him call for the elders of the church; and let them pray over him, anointing him with oil in the name of the Lord: 15 And the prayer of faith shall save the sick, and the Lord shall raise him up; and if he have committed sins, they shall be forgiven him. 16 Confess your faults one to another, and pray one for another, that you may be healed. The effectual fervent prayer of a righteous man availeth much.&rdquo;"
var fPeter221="<b>1 Peter 2:21</b> &ldquo;For even hereunto were you called: because Christ also suffered for us, leaving us an example, that you should follow his steps:&rdquo;"
var sPeter159="<b>2 Peter 1:5-9</b> &ldquo;And beside this, giving all diligence, add to your faith virtue; and to virtue knowledge; 6 And to knowledge temperance; and to temperance patience; and to patience godliness; 7 And to godliness brotherly kindness; and to brotherly kindness charity. 8 For if these things be in you, and abound, they make you that you shall neither be barren nor unfruitful in the knowledge of our Lord Jesus Christ. 9 But he that lacketh these things is blind, and cannot see afar off, and has forgotten that he was purged from his old sins.&rdquo;"
var fJohn514="<b>1 John 5:14</b> &ldquo;And this is the confidence that we have in him, that, if we ask any thing according to his will, he heareth us:&rdquo;"
var Revelation214="<b>Revelation 21:4</b> &ldquo;And God shall wipe away all tears from their eyes; and there shall be no more death, neither sorrow, nor crying, neither shall there be any more pain: for the former things are passed away.&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
