// JavaScript Document

var Genesis115="<b>Genesis 1:1-5</b> &ldquo;In the beginning God created the heaven and the earth. 2 And the earth was without form, and void; and darkness was upon the face of the deep. And the Spirit of God moved upon the face of the waters. 3 And God said, Let there be light: and there was light. 4 And God saw the light, that it was good: and God divided the light from the darkness. 5 And God called the light Day, and the darkness he called Night. And the evening and the morning were the first day.&rdquo;"
var Genesis23="<b>Genesis 2:3</b> &ldquo;And God blessed the seventh day, and sanctified it: because that in it he had rested from all his work which God created and made.&rdquo;"
var Genesis213="<b>Genesis 2:1-3</b> &ldquo;Thus the heavens and the earth were finished, and all the host of them. 2 And on the seventh day God ended his work which he had made; and he rested on the seventh day from all his work which he had made. 3 And God <i>blessed the seventh day</i>, and <i>sanctified it</i>: because that in it he had rested from all his work which God created and made.&rdquo;"
var Exodus16430="<b>Exodus 16:4-30</b> &ldquo;Then the Lord said to Moses, Behold, I will rain bread from heaven for you. And the people shall go out and gather a certain quota every day, that I may <i>test them</i>, whether they will <i>walk in My law or not.</i> 5 And it shall be on the sixth day that they shall prepare what they bring in, and it shall be twice as much as they gather daily. &hellip; 26 Six days you shall gather it, but on the seventh day, which is the Sabbath, there will be none. 27 Now it happened that some of the people went out on the seventh day to gather, but they found none. 28 And the Lord said to Moses, <i>How long do you refuse to keep My commandments and My laws?</i> 29 See! For the Lord has given you the Sabbath; therefore He gives you on the sixth day bread for two days. Let every man remain in his place; let no man go out of his place on the seventh day. 30 So the people rested on the seventh day.&rdquo;"
var Exodus2010="<b>Exodus 20:10</b> &ldquo;But the seventh day is the sabbath of the LORD your God: in it you shall not do any work, you, nor your son, nor your daughter, your manservant, nor your maidservant, nor your cattle, nor your stranger that is within your gates:&rdquo;"
var Exodus2011="<b>Exodus 20:11</b> &ldquo;For in six days the LORD made heaven and earth, the sea, and all that in them is, and rested the seventh day: wherefore the LORD blessed the sabbath day, and hallowed it.&rdquo;"
var Exodus20811="<b>Exodus 20:8-11</b> &ldquo;Remember the Sabbath day, to keep it holy. 9 Six days shall you labour, and do all your work: 10 But the seventh day is the Sabbath of the LORD your God: in it you shall not do any work, you, nor your son, nor your daughter, your manservant, nor your maidservant, nor your cattle, nor your stranger that is within your gates: 11 For in six days the LORD made heaven and earth, the sea, and all that in them is, and rested the seventh day: wherefore the LORD blessed the Sabbath day, and hallowed it.&rdquo;"
var Exodus3113="<b>Exodus 31:13</b> &ldquo;Speak you also unto the children of Israel, saying, Verily MY Sabbaths you shall keep: for it is a SIGN between me and you throughout your generations; that you may know that I am the LORD that does <i>sanctify</i> you.&rdquo;"
var Exodus311617="<b>Exodus 31:16-17</b> &ldquo;Wherefore the children of Israel shall keep the Sabbath, to observe the Sabbath throughout their generations, for a <i>perpetual covenant</i>. 17 It is a sign between me and the children of Israel <i>for ever</i>: for in six days the LORD made heaven and earth, and on the seventh day he rested, and was refreshed.&rdquo; <i>See also Romans 2:28-29 and Galatians 3:28-29</i>."
var Exodus3118="<b>Exodus 31:18</b> &ldquo;And he gave unto Moses, when he had made an end of communing with him upon mount Sinai, two tables of testimony, tables of stone, written with the finger of God.&rdquo;"
var Exodus3421="<b>Exodus 34:21</b> &ldquo;Six days you shall work, but on the seventh day you shall rest: in earing time and in harvest you shall rest.&rdquo;"
var Deuteronomy41213="<b>Deuteronomy 4:12-13</b> &ldquo;And the LORD spoke unto you out of the midst of the fire: you heard the voice of the words, but saw no similitude; only you heard a voice. 13 And he declared unto you his covenant, which he commanded you to perform, even ten commandments; and he wrote them upon two tables of stone.&rdquo;"
var Deuteronomy522="<b>Deuteronomy 5:22</b> &ldquo;These words the LORD spoke unto all your assembly in the mount out of the midst of the fire, of the cloud, and of the thick darkness, with a great voice: and he added no more. And he wrote them in two tables of stone, and delivered them unto me.&rdquo;"
var Deuteronomy105="<b>Deuteronomy 10:5</b> &ldquo;And I turned myself and came down from the mount, and put the tables <i>in the ark</i> which I had made; and there they be, as the LORD commanded me.&rdquo;"
var Nehemiah1318="<b>Nehemiah 13:18</b> &ldquo;Did not your fathers thus, and did not our God bring all this evil upon us, and upon this city? yet you bring more wrath upon Israel by profaning the sabbath.&rdquo;"
var Isaiah5626="<b>Isaiah 56:2, 6</b> &ldquo;Blessed is the man that doeth this, and the son of man that layeth hold on it; that keepeth the sabbath from polluting it, and keepeth his hand from doing any evil. 6 Also the sons of the stranger, that join themselves to the LORD, to serve him, and to love the name of the LORD, to be his servants, every one that keepeth the sabbath from polluting it, and taketh hold of my covenant;&rdquo;"
var Isaiah581213="<b>Isaiah 58:12-13</b> &ldquo;And they that shall be of you shall build the old waste places: you shall raise up the foundations of many generations; and you shall be called, The repairer of the breach, The restorer of paths to dwell in. 13 If you turn away your foot from the sabbath, from doing your pleasure on my holy day; and call the sabbath a delight, the holy of the LORD, honourable; and shall honour him, not doing thine own ways, nor finding thine own pleasure, nor speaking thine own words:&rdquo;"
var Isaiah5813="<b>Isaiah 58:13</b> &ldquo;If you turn away your foot from the sabbath, from doing your pleasure on my holy day; and call the sabbath a delight, the holy of the LORD, honourable; and shall honour him, not doing thine own ways, nor finding thine own pleasure, nor speaking thine own words:&rdquo;"
var Isaiah662223="<b>Isaiah 66:22-23</b> &ldquo;For as the new heavens and the new earth, which I will make, shall remain before me, saith the LORD, so shall your seed and your name remain. 23 And it shall come to pass, that from one new moon to another, and from one sabbath to another, shall <i>all flesh</i> come to worship before me, saith the LORD.&rdquo;"
var Jeremiah1727="<b>Jeremiah 17:27</b> &ldquo;But if you will not hearken unto me to hallow the sabbath day, and not to bear a burden, even entering in at the gates of Jerusalem on the sabbath day; then will I kindle a fire in the gates thereof, and it shall devour the palaces of Jerusalem, and it shall not be quenched.&rdquo;"
var Lamentations17="<b>Lamentations 1:7</b> &ldquo;Jerusalem remembered in the days of her affliction and of her miseries all her pleasant things that she had in the days of old, when her people fell into the hand of the enemy, and none did help her: the adversaries saw her, and did mock at HER sabbaths.&rdquo;"
var Ezekiel201213="<b>Ezekiel 20:12-13</b> &ldquo;Moreover also I gave them my sabbaths, to be a sign between me and them, that they might know that I am the LORD that sanctify them. 13 But the house of Israel rebelled against me in the wilderness: they walked not in my statutes, and they despised my judgments, which if a man do, he shall even live in them; and my sabbaths they greatly polluted: then I said, I would pour out my fury upon them in the wilderness, to consume them.&rdquo;"
var Ezekiel2020="<b>Ezekiel 20:20</b> &ldquo;And hallow MY Sabbaths; and they shall be a SIGN between me and you, that you may know that I am the LORD your God.&rdquo;"
var Ezekiel461="<b>Ezekiel 46:1</b> &ldquo;Thus saith the Lord GOD; The gate of the inner court that looketh toward the east shall be shut the six working days; but on the sabbath it shall be opened, and in the day of the new moon it shall be opened.&rdquo;"
var Daniel725="<b>Daniel 7:25</b> &ldquo;And he shall speak great words against the most High, and shall wear out the saints of the most High, and <i>think to change times and laws</i>: and they shall be given into his hand until a time and times and the dividing of time.&rdquo;"
var Hosea211="<b>Hosea 2:11</b> &ldquo;I will also cause all HER mirth to cease, HER feast days, HER new moons, and HER sabbaths, and all her solemn feasts.&rdquo;"
var Matthew51719="<b>Matthew 5:17-19</b> &ldquo;Think not that I am come to destroy the law, or the prophets: I am not come to destroy, but to fulfil. 18 For verily I say unto you, Till heaven and earth pass, one jot or one tittle shall in no wise pass from the law, till all be fulfilled. 19 Whosoever therefore shall break one of these least commandments, and shall teach men so, he shall be called the least in the kingdom of heaven: but whosoever shall do and teach them, the same shall be called great in the kingdom of heaven.&rdquo;"
var Matthew1212="<b>Matthew 12:12</b> &ldquo;How much then is a man better than a sheep? Wherefore it is lawful to do well on the sabbath days.&rdquo;"
var Matthew2420="<b>Matthew 24:20</b> &ldquo;But pray you that your flight be not in the winter, neither on the sabbath day:&rdquo;"
var Matthew281="<b>Matthew 28:1</b> &ldquo;In the end of the sabbath, as it began to dawn toward the first day of the week, came Mary Magdalene and the other Mary to see the sepulchre.&rdquo;"
var Mark227="<b>Mark 2:27</b> &ldquo;And he said unto them, The sabbath was <i>made for man</i>, and not man for the sabbath:&rdquo;"
var Mark22728="<b>Mark 2:27-28</b> &ldquo;And he said unto them, The sabbath was made for man, and not man for the sabbath: 28 Therefore the Son of man is Lord also of the sabbath.&rdquo;"
var Mark769="<b>Mark 7:6-9</b> &ldquo;He replied, Isaiah was right when he prophesied about you hypocrites; as it is written: 'These people honour me with their lips, but their hearts are far from me. 7 They worship me in vain; their teachings are but rules taught by men.' 8 You have let go of the commands of God and are holding on to the traditions of men. 9 And he said to them: You have a fine way of setting aside the commands of God in order to observe your own traditions!&rdquo;"
var Mark1629="<b>Mark 16:2, 9</b> &ldquo;And very early in the morning the first day of the week, they came unto the sepulchre at the rising of the sun. 9 Now when Jesus was risen early the first day of the week, he appeared first to Mary Magdalene, out of whom he had cast seven devils.&rdquo;"
var Luke416="<b>Luke 4:16</b> &ldquo;And he came to Nazareth, where he had been brought up: and, as his custom was, he went into the synagogue on the sabbath day, and stood up for to read.&rdquo;"
var Luke235556="<b>Luke 23:55-56</b> &ldquo;And the women also, which came with him from Galilee, followed after, and beheld the sepulchre, and how his body was laid. 56 And they returned, and prepared spices and ointments; and rested the sabbath day according to the Commandment.&rdquo;"
var John1510="<b>John 15:10</b> &ldquo;If you keep my commandments, you shall abide in my love; even as I have kept my Father's commandments, and abide in his love.&rdquo;"
var John20119="<b>John 20:1, 19</b> &ldquo;The first day of the week cometh Mary Magdalene early, when it was yet dark, unto the sepulchre, and seeth the stone taken away from the sepulchre. 19 Then the same day at evening, being the first day of the week, when the doors were shut where the disciples were assembled for fear of the Jews, came Jesus and stood in the midst, and saith unto them, Peace be unto you.&rdquo;"
var Luke241="<b>Luke 24:1</b> &ldquo;Now upon the first day of the week, very early in the morning, they came unto the sepulchre, bringing the spices which they had prepared, and certain others with them.&rdquo;"
var Acts246="<b>Acts 2:46 GNB</b> &ldquo;Day after day they met as a group in the Temple, and they had their meals together in their homes, eating with glad and humble hearts,&rdquo;<br><b>Acts 2:46 KJV</b> &ldquo;And they, continuing daily with one accord in the temple, and breaking bread from house to house, did eat their meat with gladness and singleness of heart,&rdquo;"
var Acts1314="<b>Acts 13:14</b> &ldquo;But when they departed from Perga, they came to Antioch in Pisidia, and went into the synagogue on the sabbath day, and sat down.&rdquo;"
var Acts1327="<b>Acts 13:27</b> &ldquo;For they that dwell at Jerusalem, and their rulers, because they knew him not, nor yet the voices of the prophets which are read every sabbath day, they have fulfilled them in condemning him.&rdquo;"
var Acts1342="<b>Acts 13:42</b> &ldquo;And when the Jews were gone out of the synagogue, the Gentiles besought that these words might be preached to them the next sabbath.&rdquo;"
var Acts1344="<b>Acts 13:44</b> &ldquo;And the next sabbath day came almost the whole city together to hear the word of God.&rdquo;"
var Acts1521="<b>Acts 15:21</b> &ldquo;For Moses of old time has in every city them that preach him, being read in the synagogues every sabbath day.&rdquo;"
var Acts1613="<b>Acts 16:13</b> &ldquo;And on the sabbath we went out of the city by a river side, where prayer was wont to be made; and we sat down, and spoke unto the women which resorted thither.&rdquo;"
var Acts1712="<b>Acts 17:1-2</b> &ldquo;Now when they had passed through Amphipolis and Apollonia, they came to Thessalonica, where there was a synagogue of the Jews. 2 Then Paul, as his custom was, went in to them, and for three Sabbaths reasoned with them from the Scriptures,&rdquo;"
var Acts184="<b>Acts 18:4</b> &ldquo;And he reasoned in the synagogue every sabbath, and persuaded the Jews and the Greeks.&rdquo;"
var Acts207="<b>Acts 20:7 GNB</b> &ldquo;On Saturday evening we gathered together for the fellowship meal. Paul spoke to the people and kept on speaking until midnight, since he was going to leave the next day.&rdquo;<br><b>Acts 20:7 KJV</b> &ldquo;And upon the first day of the week, when the disciples came together to break bread, Paul preached unto them, ready to depart on the morrow; and continued his speech until midnight.&rdquo;"
var Romans635="<b>Romans 6:3-5</b> &ldquo;Know you not, that so many of us as were baptized into Jesus Christ were baptized into his death? 4 Therefore we are buried with him by baptism into death: that like as Christ was raised up from the dead by the glory of the Father, even so we also should walk in newness of life. 5 For if we have been planted together in the likeness of his death, we shall be also in the likeness of his resurrection:&rdquo;"
var Romans145="<b>Romans 14:5</b> &ldquo;One man esteemeth one day above another: another esteemeth every day alike. Let every man be fully persuaded in his own mind.&rdquo;"
var fCorinthians162="<b>1 Corinthians 16:2</b> &ldquo;Upon the first day of the week let every one of you lay by him in store, as God has prospered him, that there be no gatherings when I come.&rdquo;"
var Galatians4910="<b>Galatians 4:9-10</b> &ldquo;But now, after that you have known God, or rather are known of God, how turn you again to the weak and beggarly elements, whereunto you desire again to be in bondage? 10 You observe days, and months, and times, and years.&rdquo;"
var Colossians21417="<b>Colossians 2:14-17</b> &ldquo;Blotting out the handwriting of ordinances that was against us, which was contrary to us, and took it out of the way, nailing it to his cross; 15 And having spoiled principalities and powers, he made a show of them openly, triumphing over them in it. 16 Let no man therefore judge you in meat, or in drink [<i>offerings</i>], or in respect of an holyday, or of the new moon, or of the sabbath days: 17 Which are a shadow of things to come; but the body is of Christ.&rdquo;"
var Hebrews44910AMP="<b>Hebrews 4:4, 9-10 Amplified Bible</b> &ldquo;For in a certain place He has said this about the seventh day: And God rested on the seventh day from all His works. 9 So then, there is still awaiting a full and complete <i>Sabbath-rest</i> reserved for the [true] people of God; 10 For he who has once entered [God\'s] rest also has ceased from [the weariness and pain] of human labors, just as God rested from those labors peculiarly His own.&rdquo;"
var Hebrews44910ASV="<b>Hebrews 4:4, 9-10 American Standard Version</b> &ldquo;For he hath said somewhere of the seventh day on this wise, And God rested on the seventh day from all his works; 9 There remaineth therefore a <i>sabbath rest</i> for the people of God. 10 For he that is entered into his rest hath himself also rested from his works, as God did from his.&rdquo;"
var Hebrews44910BBE="<b>Hebrews 4:4, 9-10 Bible in Basic English</b> &ldquo;For in one place he has said of the seventh day, And God had rest from all his works on the seventh day; 9 So that there is still a <i>Sabbath-keeping</i> for the people of God. 10 For the man who comes into his rest has had rest from his works, as God did from his.&rdquo;"
var Hebrews44910Darby="<b>Hebrews 4:4, 9-10 Darby Bible</b> &ldquo;For he has said somewhere of the seventh day thus, And God rested on the seventh day from all his works: 9 There remains then a <i>sabbatism</i> to the people of God. 10 For he that has entered into his rest, he also has rested from his works, as God did from his own.&rdquo;"
var Hebrews44910ESV="<b>Hebrews 4:4, 9-10 English Standard Version</b> &ldquo;For he has somewhere spoken of the seventh day in this way: &quot;And God rested on the seventh day from all his works.&quot; 9 So then, there remains a <i>Sabbath rest</i> for the people of God, 10 for whoever has entered God's rest has also rested from his works as God did from his.&rdquo;"
var Hebrews44910ISV="<b>Hebrews 4:4, 9-10 International Standard Version</b> &ldquo;For somewhere he has spoken about the seventh day as follows: &quot;On the seventh day God rested from all his works,&quot; 9 There remains, therefore, a <i>Sabbath rest<i> for the people of God. 10 For the one who enters God's rest has himself rested from his own works, just as God did from his.&rdquo;"
var Hebrews44910NASB="<b>Hebrews 4:4, 9-10 New American Standard Bible</b> &ldquo;For He has said somewhere concerning the seventh day: &quot;AND GOD RESTED ON THE SEVENTH DAY FROM ALL HIS WORKS&quot;; 9 So there remains a <i>Sabbath rest</i> for the people of God. 10 For the one who has entered His rest has himself also rested from his works, as God did from His.&rdquo;"
var Hebrews44910NIV="<b>Hebrews 4:4, 9-10 New International Version</b> &ldquo;For somewhere he has spoken about the seventh day in these words: And on the seventh day God rested from all his work. 9 There remains, then, a <i>Sabbath-rest</i> for the people of God; 10 for anyone who enters God\'s rest also rests from his own work, just as God did from his.&rdquo;"
var Hebrews44910NRSV="<b>Hebrews 4:4, 9-10 New Revised Standard Version</b> &ldquo;For in one place it speaks about the seventh day as follows, &quot;And God rested on the seventh day from all his works.&quot; 9 So then, a <i>sabbath rest</i> still remains for the people of God; 10 for those who enter God\'s rest also cease from their labors as God did from his.&rdquo;"
var Hebrews44910RSV="<b>Hebrews 4:4, 9-10 Revised Standard Version</b> &ldquo;For he has somewhere spoken of the seventh day in this way, &quot;And God rested on the seventh day from all his works.&quot; 9 So then, there remains a <i>sabbath rest</i> for the people of God; 10 for whoever enters God\'s rest also ceases from his labors as God did from his.&rdquo;"
var Hebrews44910WEB="<b>Hebrews 4:4, 9-10 World English Bible</b> &ldquo;For he has said this somewhere about the seventh day, &quot;God rested on the seventh day from all his works;&quot; 9 There remains therefore a <i>Sabbath rest</i> for the people of God. 10 For he who has entered into his rest has himself also rested from his works, as God did from his.&rdquo;"
var fJohn34="<b>1 John 3:4</b> &ldquo;Whosoever committeth sin transgresseth also the law: for sin is the transgression of the law.&rdquo;"
var Revelation110="<b>Revelation 1:10</b> &ldquo;I was in the Spirit on the Lord's day, and heard behind me a great voice, as of a trumpet,&rdquo;"
var AdamClarke725="<b>Adam Clarke's Commentary on the Bible, LL.D., F.S.A., (1762-1832)</b><br /><b>Daniel 7:25 - He shall speak great words against the Most High -</b> Sermones quasi Deus loquetur; &ldquo;He shall speak as if he were God.&rdquo; So St. Jerome quotes from Symmachus. To none can this apply so well or so fully as to the popes of Rome. They have assumed infallibility, which belongs only to God. They profess to forgive sins, which belongs only to God. They profess to open and shut heaven, which belongs only to God. They profess to be higher than all the kings of the earth, which belongs only to God. And they go beyond God in pretending to loose whole nations from their oath of allegiance to their kings, when such kings do not please them! And they go against God when they give indulgences for sin. This is the worst of all blasphemies!<br /><b>And shall wear out the saints -</b> By wars, crusades, massacres, inquisitions, and persecutions of all kinds. What in this way have they not done against all those who have protested against their innovations, and refused to submit to their idolatrous worship? Witness the exterminating crusades published against the Waldenses and Albinenses. Witness John Huss, and Jerome of Prague. Witness the Smithfield fires in England! Witness God and man against this bloody, persecuting, ruthless, and impure Church!<br /><b>And think to change times and laws -</b> Appointing fasts and feasts; canonizing persons whom he chooses to call saints; granting pardons and indulgences for sins; instituting new modes of worship utterly unknown to the Christian Church; new articles of faith; new rules of practice; and reversing, with pleasure, the laws both of God and man. - Dodd.<br /><b>Until a time and times and the dividing of time -</b> In prophetic language a time signifies a year; and a prophetic year has a year for each day. Three years and a half will amount to one thousand two hundred and sixty years, if we reckon thirty days to each month, as the Jews do. &hellip;<br />In 1798 the French republican army under General Berthier took possession of the city of Rome, and entirely superseded the whole papal power. This was a deadly wound, though at present it appears to be healed; but it is but skinned over, and a dreadful cicatrice remains. The Jesuits, not Jesus, are now the Church's doctors."
var ConstantineQuote="<b>First Sunday Law enacted by Emperor Constantine - March, 321 A.D.</b><br />&ldquo;On the venerable Day of the Sun let the magistrates and people residing in cities rest, and let all workshops be closed. In the country, however, persons engaged in agriculture may freely and lawfully continue their pursuits; because it often happens that another day is not so suitable for grain-sowing or for vine-planting; lest by neglecting the proper moment for such operations the bounty of heaven should be lost. (Given the 7th day of March, Crispus and Constantine being consuls each of them for the second time [A.D. 321].)&rdquo; <b>Source: Codex Justinianus, lib. 3, tit. 12, 3; trans. in Philip Schaff, History of the Christian Church, Vol.3 (5th ed.; New York: Scribner, 1902), p.380, note 1.<br><br>NOTE:</b> In 330 A.D., Constantine moved his capital from Rome to Constantinople (modern Istanbul), thus preparing the way for the Roman Catholic Popes to reign in Rome as the successors of Constantine. As the Papal Church grew in power, it opposed Sabbath observance in favour of Sunday sacredness and made the day change official in the Council of Laodicea (A.D. 363-364). Constantine&rsquo;s change was now fully accepted by the Papal Church and the Sabbath to Sunday change was complete. Some correctly teach that Constantine only instituted the first Sunday law, but they very conveniently fail to acknowledge the remainder of the story. The Council of Laodicea around A.D. 364 decreed 59 Canon laws.<br><br><b>Canon XXIX:</b> &ldquo;<i>Christians must not judaize by resting on the Sabbath, but must work on that day, rather honouring the Lord's Day; and, if they can, resting then as Christians. But if any shall be found to be judaizers, let them be anathema from Christ.</i>&rdquo; (Percival Translation)."
var SunWorship="&ldquo;The Church made a sacred day of Sunday ... largely because it was the weekly festival of the sun; for it was a definite Christian policy to take over the pagan festivals endeared to the people by tradition, and to give them a Christian significance.&rdquo; <b>Source: Arthur Weigall, The Paganism in Our Christianity, p. 145. Copyright 1928 by G. p. Putnam's Sons, New York.</b>"
var quote6="<b>People's New Testament (1891) by B. W. Johnson</b><br><b>Romans 14:5-9 -</b> One man esteemeth one day above another. A second difference of opinion is now cited. Some, Jewish converts or Gentiles who did not understand that the old covenant was ended, believed that the <i>Jewish sabbaths</i> and <i>new moons</i> should be kept sacred. Compare Colossians 2:16 and Galatians 4:10."

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
