<!--

/*
Image w/ description tooltip- By Dynamic Web Coding (www.dyn-web.com)
Copyright 2002 by Sharon Paine
Visit http://www.dynamicdrive.com for this script
*/

/* IMPORTANT: Put script after tooltip div or 
	 put tooltip div just before </BODY>. */

var dom = (document.getElementById) ? true : false;
var ns5 = ((navigator.userAgent.indexOf("Gecko")>-1) && dom) ? true: false;
var ie5 = ((navigator.userAgent.indexOf("MSIE")>-1) && dom) ? true : false;
var ns4 = (document.layers && !dom) ? true : false;
var ie4 = (document.all && !dom) ? true : false;
var nodyn = (!ns5 && !ns4 && !ie4 && !ie5) ? true : false;

// resize fix for ns4
var origWidth, origHeight;
if (ns4) {
	origWidth = window.innerWidth; origHeight = window.innerHeight;
	window.onresize = function() { if (window.innerWidth != origWidth || window.innerHeight != origHeight) history.go(0); }
}

// avoid error of passing event object in older browsers
if (nodyn) { event = "nope" }

///////////////////////  CUSTOMIZE HERE   ////////////////////
// settings for tooltip 
// Do you want tip to move when mouse moves over link?
var tipFollowMouse= true;	
// Be sure to set tipWidth wide enough for widest image
var tipWidth= 250;
var offX= 50;	// how far from mouse to show tip
var offY= 5; 
var tipFontFamily= "georgia";
var tipFontSize= "12pt";
// set default text color and background color for tooltip here
// individual tooltips can have their own (set in messages arrays)
// but don't have to
var tipFontColor= "#000000";
var tipBgColor= "#DDECFF"; 
var tipBorderColor= "#000080";
var tipBorderWidth= 2;
var tipBorderStyle= "ridge";
var tipPadding= 4;

// tooltip content goes here (image, description, optional bgColor, optional textcolor)
var messages = new Array();
// multi-dimensional arrays containing: 
// image and text for tooltip
// optional: bgColor and color to be sent to tooltip
messages[0] = new Array('images/red.jpg','"It is time that I..."',"#ffffff");
messages[1] = new Array('images/red.jpg','What was the most expensive item you have bought for yourself?',"#ffffff");
messages[2] = new Array('images/red.jpg','Describe yourself when you were a child of 8.',"#ffffff");
messages[3] = new Array('images/red.jpg','Begin your journal today with "I am happy with..."',"#ffffff");
messages[4] = new Array('images/red.jpg','Begin your journal today with "There is nothing like a..."',"#ffffff");
messages[5] = new Array('images/red.jpg','What was the first thing on your mind when you woke up this morning?',"#ffffff");
messages[6] = new Array('images/red.jpg','What 3 things did you worry about last week?',"#ffffff");
messages[7] = new Array('images/red.jpg','Begin your journal today with "The thing I like about ______ is..."',"#ffffff");
messages[8] = new Array('images/red.jpg','Recall the first time you flunked or failed at something.',"#ffffff");
messages[9] = new Array('images/red.jpg','What was your worst experience dining out?',"#ffffff");
messages[10] = new Array('images/red.jpg','My mother makes the best...',"#ffffff");
messages[11] = new Array('images/red.jpg','What job would you never take?',"#ffffff");
messages[12] = new Array('images/red.jpg','Recall and write about a time you and a parent learned or discovered something together.',"#ffffff");
messages[13] = new Array('images/red.jpg','Write about what one would see in your closet right now.',"#ffffff");
messages[14] = new Array('images/red.jpg','Recall and write about your most recent shopping "expedition."',"#ffffff");
messages[15] = new Array('images/red.jpg','"When it comes to ________, I am a ________..."',"#ffffff");
messages[16] = new Array('images/red.jpg','Recall and write about the time you owed someone money.',"#ffffff");
messages[17] = new Array('images/red.jpg','What issue do you feel strongly about today?',"#ffffff");
messages[18] = new Array('images/red.jpg','What was the most shocking thing anyone has ever told you?',"#ffffff");
messages[19] = new Array('images/red.jpg','Begin your journal today with "I always try to..."',"#ffffff");
messages[20] = new Array('images/red.jpg','"I can\'t forget how stupid I felt when..."',"#ffffff");
messages[21] = new Array('images/red.jpg','Write about your favorite (real life or fictional) villain.',"#ffffff");
messages[22] = new Array('images/red.jpg','What is your comfort food?',"#ffffff");
messages[23] = new Array('images/red.jpg','What has been the highest compliment you\'ve received?',"#ffffff");
messages[24] = new Array('images/red.jpg','Go back to 10 years ago. What would you undo?',"#ffffff");
messages[25] = new Array('images/red.jpg','What was the last thing on your mind when you drifted off to sleep last night?',"#ffffff");
messages[26] = new Array('images/red.jpg','What 10 things would you say to a friend you haven\'t seen in many years?',"#ffffff");
messages[27] = new Array('images/red.jpg','Make a top 10 list of things you like about someone close to you.',"#ffffff");
messages[28] = new Array('images/red.jpg','Begin your journal today with "I feel strongly about..."',"#ffffff");
messages[29] = new Array('images/red.jpg','Recall a time you panicked. What was it about?',"#ffffff");
messages[30] = new Array('images/red.jpg','"I honestly wish I could forget about ___________..."',"#ffffff");
messages[31] = new Array('images/red.jpg','What was the last good book you have read?',"#ffffff");
messages[32] = new Array('images/red.jpg','Begin your journal today with "This week was..."',"#ffffff");
messages[33] = new Array('images/red.jpg','Recall and write about a funny childhood incident.',"#ffffff");
messages[34] = new Array('images/red.jpg','If you had no fear of anything, what 20 things would you do?',"#ffffff");
messages[35] = new Array('images/red.jpg','Make a Gratitude List. Every day, add at least one thing on your list.',"#ffffff");
messages[36] = new Array('images/red.jpg','Reflect about the events that happened in your life one Christmas Eve.',"#ffffff");
messages[37] = new Array('images/red.jpg','Was there a time you celebrated Christmas alone? If yes, why were you alone? If no, who were the people you spent Christmas all these years?',"#ffffff");
messages[38] = new Array('images/red.jpg','What are your <i>Top 5 Christmas Movies</i> and why? (The movies don\'t necessarily have to be about Christmas.)',"#ffffff");
messages[39] = new Array('images/red.jpg','List 7 things you\'re passionate about. Write about one passion per day.',"#ffffff");
messages[40] = new Array('images/red.jpg','What are the top 10 things you want to be able to do and achieve this year?',"#ffffff");
messages[41] = new Array('images/red.jpg','What Christmas gift does your heart desire the most?',"#ffffff");
messages[42] = new Array('images/red.jpg','Write about a Christmas morning memory.',"#ffffff");
messages[43] = new Array('images/red.jpg','Rewind to your life 10 years ago. List 5-10 things you were not supposed to do back then but you did them anyway.',"#ffffff");
messages[44] = new Array('images/red.jpg','What "bad" habits do you want to leave behind?',"#ffffff");
messages[45] = new Array('images/red.jpg','Recall one of those times you opened presents on Christmas day. Write about how you felt at that time.',"#ffffff");
messages[46] = new Array('images/red.jpg','Does your family have a Christmas or New Year tradition? Write about it.',"#ffffff");
messages[47] = new Array('images/red.jpg','Write about a moment when you and another person (sibling, friend, parent, etc.) bonded.',"#ffffff");
messages[48] = new Array('images/red.jpg','If you could make a list of resolutions for your best friend, what are the 10 things you\'ll put in the list?',"#ffffff");
messages[49] = new Array('images/red.jpg','If money isn\'t a problem, what gifts would you give to the 5 most important people in your life?',"#ffffff");
messages[50] = new Array('images/red.jpg','Write about what Christmas is <i>not</i> to you.',"#ffffff");
messages[51] = new Array('images/red.jpg','Write about the person who gave you the worst advice.',"#ffffff");
messages[52] = new Array('images/red.jpg','What "good" habits do you want to continue having or doing this year?',"#ffffff");
messages[53] = new Array('images/red.jpg','Does your family have its own Christmas or Holiday tale? What is it?',"#ffffff");
messages[54] = new Array('images/red.jpg','Write about one of your most frenzied Christmas shopping experiences.',"#ffffff");
messages[55] = new Array('images/red.jpg','Think of an object you own that has sentimental value to you. Describe the place where you held that object for the first time.',"#ffffff");
messages[56] = new Array('images/red.jpg','Write a month-by-month prediction for this year. Start it with, "This month, I will..."',"#ffffff");
messages[57] = new Array('images/red.jpg','Which Christmas song is your favorite and why?',"#ffffff");
messages[58] = new Array('images/red.jpg','Who gave you the best Christmas gift?',"#ffffff");
messages[59] = new Array('images/red.jpg','List 14 simple pleasures. Every day for 2 weeks, write about one pleasure for 5 minutes.',"#ffffff");
messages[60] = new Array('images/red.jpg','Write about one of your beginnings.',"#ffffff");
messages[61] = new Array('images/red.jpg','If you were going to be alone one Christmas, how would you celebrate it?',"#ffffff");
messages[62] = new Array('images/red.jpg','Write about Christmas from the point of view of your 12-year old self.',"#ffffff");
messages[63] = new Array('images/red.jpg','What is a "hard day\'s work" for you?',"#ffffff");
messages[64] = new Array('images/red.jpg','Sundays are...',"#ffffff");
messages[65] = new Array('images/red.jpg','List 20 rules you\'ve broken.',"#ffffff");
messages[66] = new Array('images/red.jpg','How would your day go if it went perfectly?',"#ffffff");
messages[67] = new Array('images/red.jpg','What cliche describes you?',"#ffffff");
messages[68] = new Array('images/red.jpg','"Today, I am excited about..."',"#ffffff");
messages[69] = new Array('images/red.jpg','For 10 minutes, list all the "new" things you have in your life.',"#ffffff");
messages[70] = new Array('images/red.jpg','List 5 people you know -- co-worker, neighbor, paperboy, your hairstylist, anyone you know. Then describe each of them in less than 100 words.',"#ffffff");
messages[71] = new Array('images/red.jpg','What was the last thing you did last night before you went to bed?',"#ffffff");
messages[72] = new Array('images/red.jpg','"A secret I\'ve kept from everyone is..."',"#ffffff");
messages[73] = new Array('images/red.jpg','Write about the last time you laughed at yourself.',"#ffffff");
messages[74] = new Array('images/red.jpg','For 5 minutes, list all the questions you had when you were a child.',"#ffffff");
messages[75] = new Array('images/red.jpg','Who was the most prominent person in your life when you were a teen?',"#ffffff");
messages[75] = new Array('images/red.jpg','"People generally see me as..."',"#ffffff");
messages[76] = new Array('images/red.jpg','How do you replenish or recharge yourself after an emotionally draining situation?',"#ffffff");
messages[77] = new Array('images/red.jpg','We\'ve all been duped at one time or another. What was your most gullible moment?',"#ffffff");
messages[78] = new Array('images/red.jpg','What significant event do you recall during your childhood?',"#ffffff");
messages[79] = new Array('images/red.jpg','"The last thing I want to do right now is..."',"#ffffff");
messages[80] = new Array('images/red.jpg','When was the last time you made a new friend?',"#ffffff");
messages[81] = new Array('images/red.jpg','What\'s the most valuable thing you own that didn\'t come from a store?',"#ffffff");
messages[82] = new Array('images/red.jpg','List 20 things you fiercely believe in.',"#ffffff");
messages[83] = new Array('images/red.jpg','"I feel at peace when..."',"#ffffff");
messages[84] = new Array('images/red.jpg','List 30 things you love to do with your family.',"#ffffff");
messages[85] = new Array('images/red.jpg','List the at least 5 of the most difficult decisions you have made in your life. Then choose one and describe how you felt <i>after</i> you made that decision.',"#ffffff");
messages[86] = new Array('images/red.jpg','Return to your Gratitude List and add 10 more things you\'re thankful for.',"#ffffff");
messages[87] = new Array('images/red.jpg','"I love the sound of..."',"#ffffff");
messages[88] = new Array('images/red.jpg','What do your hands say about the kind of person you are?',"#ffffff");
messages[89] = new Array('images/red.jpg','List all the sounds you used to hear at your grandparents\' house.',"#ffffff");
messages[90] = new Array('images/red.jpg','What was the last awful movie you saw?',"#ffffff");
messages[91] = new Array('images/red.jpg','What was the worst food you\'ve eaten?',"#ffffff");
messages[92] = new Array('images/red.jpg','How do you deal with disappointments?',"#ffffff");
messages[93] = new Array('images/red.jpg','What does love smell like?',"#ffffff");
messages[94] = new Array('images/red.jpg','What line in a song do you often "hear" in your head?',"#ffffff");
messages[95] = new Array('images/red.jpg','List 10 things someone did for you when you were ill.',"#ffffff");
messages[96] = new Array('images/red.jpg','When was the last time you did something you\'re passionate about?',"#ffffff");
messages[97] = new Array('images/red.jpg','What does love sound like?',"#ffffff");
messages[98] = new Array('images/red.jpg','What would people find in your garbage bin?',"#ffffff");
messages[99] = new Array('images/red.jpg','Write about the kindest thing someone did to you.',"#ffffff");
messages[100] = new Array('images/red.jpg','List 50 things you love to do.',"#ffffff");
messages[101] = new Array('images/red.jpg','What does love taste like?',"#ffffff");
messages[102] = new Array('images/red.jpg','Write about the last social event you attended.',"#ffffff");
messages[103] = new Array('images/red.jpg','Write about the kindest thing you did for someone.',"#ffffff");
messages[104] = new Array('images/red.jpg','Write about one of your childhood dreams.',"#ffffff");
messages[105] = new Array('images/red.jpg','What does love look like?',"#ffffff");
messages[106] = new Array('images/red.jpg','What do you most dread about family reunions or gatherings?',"#ffffff");
messages[107] = new Array('images/red.jpg','Write about the memorable people in your hometown.',"#ffffff");
messages[108] = new Array('images/red.jpg','Write about a negative situation from which you recovered.',"#ffffff");
messages[109] = new Array('images/red.jpg','What does love feel like?',"#ffffff");
messages[110] = new Array('images/red.jpg','Write about 5 of your favorite words.',"#ffffff");
messages[111] = new Array('images/red.jpg','Describe the relative you like most.',"#ffffff");
messages[112] = new Array('images/red.jpg','Recall your fondest memory about someone who has passed away.',"#ffffff");
messages[113] = new Array('images/red.jpg','Write a memory about young love.',"#ffffff");
messages[114] = new Array('images/red.jpg','Write about one of the "warnings" given to you when you were a teenager.',"#ffffff");
messages[115] = new Array('images/red.jpg','Write about the time you were the most nervous you\'ve ever been.',"#ffffff");
messages[116] = new Array('images/red.jpg','List 20 things you cherish about your bestfriend/partner/spouse.',"#ffffff");
messages[117] = new Array('images/red.jpg','Write a letter to the person you love most.',"#ffffff");
messages[118] = new Array('images/red.jpg','What irritates you?',"#ffffff");
messages[119] = new Array('images/red.jpg','Begin your journal today with "Sundays are..."',"#ffffff");
messages[120] = new Array('images/red.jpg','Write about the trait or traits you got from your mother.',"#ffffff");
messages[121] = new Array('images/red.jpg','Begin your journal today with "I wanted so much to..."',"#ffffff");
messages[122] = new Array('images/red.jpg','What was the most creative excuse you\'ve come up with to get yourself out of a date, an appointment or doing a task?',"#ffffff");
messages[123] = new Array('images/red.jpg','Have you ever left your family and didn\'t come back for a long time? Write about it.',"#ffffff");
messages[124] = new Array('images/red.jpg','Write about the last time you became friends with someone.',"#ffffff");
messages[125] = new Array('images/red.jpg','What was the most outrageous thing you and your best friend did?',"#ffffff");
messages[126] = new Array('images/red.jpg','Write about someone you took care of when you were a teen.',"#ffffff");
messages[127] = new Array('images/red.jpg','What lesson did you learn from a sibling (or cousin)?',"#ffffff");
messages[128] = new Array('images/red.jpg','Begin your journal today with "I wish I could see..."',"#ffffff");
messages[129] = new Array('images/red.jpg','What makes you envious?',"#ffffff");
messages[130] = new Array('images/red.jpg','What\'s the one thing you won\'t ever talk about with anyone?',"#ffffff");
messages[131] = new Array('images/red.jpg','How do you typically react to failure or defeat?',"#ffffff");
messages[132] = new Array('images/red.jpg','How do you fight negative thoughts?',"#ffffff");
messages[133] = new Array('images/red.jpg','What is your biggest flaw and how do you overcome it?',"#ffffff");
messages[134] = new Array('images/red.jpg','What experience have you had that inspired you the most?',"#ffffff");
messages[135] = new Array('images/red.jpg','Describe what a beautiful view is to you.',"#ffffff");
messages[136] = new Array('images/red.jpg','Write about why you think or don\'t think that each of us is responsible for our own happiness',"#ffffff");
messages[137] = new Array('images/red.jpg','Who\'s the most unique person you know?',"#ffffff");
messages[138] = new Array('images/red.jpg','Describe a contradiction that may exist between your heart and your mind',"#ffffff");
messages[139] = new Array('images/red.jpg','What is the one task you do during a typical week that provides you with the most fulfillment?',"#ffffff");
messages[140] = new Array('images/red.jpg','Write about how a "sharp rock" turned into a "diamond" in your life. ',"#ffffff");
messages[141] = new Array('images/red.jpg','Why doesn\'t everything go your way?',"#ffffff");
messages[142] = new Array('images/red.jpg','What distractions and frustrations are the greatest obstacles to what you really long for?',"#ffffff");
messages[143] = new Array('images/red.jpg','What is the biggest fear you have about yourself?',"#ffffff");
messages[144] = new Array('images/red.jpg','What one thing seems to make life hard for you?',"#ffffff");
messages[145] = new Array('images/red.jpg','What personality type(s) drive you crazy?',"#ffffff");
messages[146] = new Array('images/red.jpg','Which part of your life are you able to control the least?',"#ffffff");
messages[147] = new Array('images/red.jpg','Write down three things you didn\’t do because you were afraid. What could have changed in your life if you had done them?',"#ffffff");
messages[148] = new Array('images/red.jpg','List things you have done for others. Then strike out the items in which you expected to receive any kind of reward, and be honest with yourself. Finally, evaluate what items have not been eliminated of the list. Are there enough items left?',"#ffffff");
messages[149] = new Array('images/red.jpg','Think about a joyful moment in your life. Then, write about how many people you shared that joyful moment with.',"#ffffff");
messages[150] = new Array('images/red.jpg','When was the last time you threw a party or organized a picnic?',"#ffffff");
messages[151] = new Array('images/red.jpg','Write down five areas in which you think you need improvement. How can you improve on those areas?',"#ffffff");
messages[152] = new Array('images/red.jpg','Make a list of the things you have created yourself.',"#ffffff");
messages[153] = new Array('images/red.jpg','Think about three moments of your life in which you didn’t give your best. Why didn\'t you pour out all your energy in those moments?',"#ffffff");
messages[154] = new Array('images/red.jpg','Think about three or four times that you were in need -- emotionally or physically. List the people who helped you during those hard times.',"#ffffff");
messages[155] = new Array('images/red.jpg','List about five things you do to harm yourself (e.g., smoking, eating too much, not eating enough, etc.) and ask yourself what you can do to take better care of yourself. ',"#ffffff");
messages[156] = new Array('images/red.jpg','Reflect on how you sometimes overcompensate for those qualities you feel are lacking within your personality. How have you done this in the past?',"#ffffff");
messages[157] = new Array('images/red.jpg','Describe the ideal person with whom you would feel comfortable enough to be yourself without fearing rejection.',"#ffffff");
messages[158] = new Array('images/red.jpg','Reflect on your daily life, and describe in detail how you could become more of an actor in your life, as opposed to a passive bystander.',"#ffffff");
messages[159] = new Array('images/red.jpg','It has been said, "It is not the destination that makes the journey worthwhile." Describe some of the times in your life that this proverb held true.',"#ffffff");
messages[160] = new Array('images/red.jpg','Think and write about some of the "disappointments" you\'ve had in life that actually turned out to be blessings in disguise.',"#ffffff");
messages[161] = new Array('images/red.jpg','If you were free from material want or need, and could live a life of unfettered creativity and passion, what would be your reason for living?',"#ffffff");
messages[162] = new Array('images/red.jpg','How well do you deal with peer-pressure? What could you do to improve your will power and ability to be yourself, at any cost?',"#ffffff");
messages[163] = new Array('images/red.jpg','Make a list of the qualities that you look for within an ideal friend or partner. Why do think you\'re attracted to these attributes above others? Compare and contrast these with your own personality.',"#ffffff");
messages[164] = new Array('images/red.jpg','Give several examples of what we would miss out on in life if our sole focus was material advancement.',"#ffffff");
messages[165] = new Array('images/red.jpg','Have you ever been forced to spend time with others that you couldn\'t get along well with? How did you resolve the situation?',"#ffffff");
messages[166] = new Array('images/red.jpg','What were some of the projects you\'ve undertaken in the past that required steady patience and diligence to complete?',"#ffffff");
messages[167] = new Array('images/red.jpg','Make a list of some of the difficult moments in your life, and how you came to a greater self-realization because of them.',"#ffffff");
messages[168] = new Array('images/red.jpg','How often do you find yourself in a depressing emotional state? How do you think you can break free from those dark moods when they occur?',"#ffffff");
messages[169] = new Array('images/red.jpg','Do you know what you want in life? Describe your agenda in detail.',"#ffffff");
messages[170] = new Array('images/red.jpg','What are some new skills you would like to take the time to acquire?',"#ffffff");
messages[171] = new Array('images/red.jpg','What do you believe is your purpose in life? ',"#ffffff");
messages[172] = new Array('images/red.jpg','What are some patterns of behavior that you notice yourself repeating with regular frequency?',"#ffffff");
messages[173] = new Array('images/red.jpg','Write about some of the times that you\'ve discovered that the grass is not always greener on the other side.',"#ffffff");
messages[174] = new Array('images/red.jpg','Your true character is shown in times of need; whether you rise to the challenge and solve the problems facing you, or succumb to the pressure and try to escape from the situation. Evaluate yourself honestly; which description best suits you?',"#ffffff");
messages[175] = new Array('images/red.jpg','What is your biggest fault and what are you doing to overcome it?',"#ffffff");
messages[176] = new Array('images/red.jpg','Give an example of what you thought was a fault in another person that turned out to be a strength in reality.',"#ffffff");
messages[177] = new Array('images/red.jpg','Why do you think each of us is responsible for our own happiness or unhappiness?',"#ffffff");
messages[178] = new Array('images/red.jpg','How do you think doubt allows you to explore things in an open and fresh way?',"#ffffff");
messages[179] = new Array('images/red.jpg','In what areas do you feel you have knowledge worth passing on to other people?',"#ffffff");
messages[180] = new Array('images/red.jpg','Why do you think that acts of kindness are never wasted? What effect do you think that they have?',"#ffffff");
messages[181] = new Array('images/red.jpg','What little victory has given you the most joy recently?',"#ffffff");
messages[182] = new Array('images/red.jpg','Usually, envy is portrayed as a purely negative emotion. Do you believe it is possible to harness the power of envy as a positive motivator?',"#ffffff");
messages[183] = new Array('images/red.jpg','Do you tend to be satisfied with knowing you did the right thing, or do you prefer to be praised for your good deeds?',"#ffffff");
messages[184] = new Array('images/red.jpg','Write about a time when humor saved you from a bad mood.',"#ffffff");
messages[185] = new Array('images/red.jpg','Do you think that humility is a vital virtue for happiness?',"#ffffff");
messages[186] = new Array('images/red.jpg','What do you think are your greatest virtues? Are you willing to display them overtly?',"#ffffff");
messages[187] = new Array('images/red.jpg','What do you believe is the best part of traveling -- seeing new things, or coming home again?',"#ffffff");
messages[188] = new Array('images/red.jpg','Have you ever disliked someone at first sight? Write about that experience and what, if anything, came of it.',"#ffffff");
messages[189] = new Array('images/red.jpg','Imagine trying to fit at least one small act of kindness into every day. What kinds of things could you do to achieve this goal?',"#ffffff");
messages[190] = new Array('images/red.jpg','Write about someone that you believe shows true integrity by doing the right thing even when no one else will know about it.',"#ffffff");
messages[191] = new Array('images/red.jpg','What kinds of humor do you enjoy the most?  Give examples from your favorite comedian, television show, book, and/or movie.',"#ffffff");
messages[192] = new Array('images/red.jpg','Write about someone that you believe is a true hero. Why do you feel that way?',"#ffffff");
messages[193] = new Array('images/red.jpg','Consider your life as a metaphor for driving, with your destination being the end of your life; what do you think the scenery would be?',"#ffffff");
messages[194] = new Array('images/red.jpg','Name five moments in your life so far that you believe that you will remember happily in your old age.',"#ffffff");
messages[195] = new Array('images/red.jpg','Do you think that tenacity is a major step toward reaching your goals? What other qualities do you think are necessary?',"#ffffff");
messages[196] = new Array('images/red.jpg','Do you feel that you are a success at life in general? Why or why not?',"#ffffff");
messages[197] = new Array('images/red.jpg','Write about someone that you know who is tenacious. Does that person tend to be successful?',"#ffffff");
messages[198] = new Array('images/red.jpg','Think about an activity that you could do in the next week specifically to create a happy memory for yourself.',"#ffffff");
messages[199] = new Array('images/red.jpg','Write about a time when you lit your candle from the knowledge of someone else. What was the experience like for you? What do you think it was like for your teacher?',"#ffffff");
messages[200] = new Array('images/red.jpg','',"#ffffff");
messages[201] = new Array('images/red.jpg','Can you think of anyone that you have rejected without getting to know them first? Do you think it might be worth giving yourself a second chance to like them?',"#ffffff");
messages[202] = new Array('images/red.jpg','What is the most heroic thing that you have done in your life?',"#ffffff");
messages[203] = new Array('images/red.jpg','Have you been the recipient of an act of kindness recently? What effect did that kindness have on your own day, or your own outlook?',"#ffffff");
messages[204] = new Array('images/red.jpg','Name one thing that someone close to you has that you want. What steps could you take to achieve the same things in your own life?',"#ffffff");
messages[205] = new Array('images/red.jpg','Other than virtues, what kinds of qualities do you think that you display at all times?',"#ffffff");
messages[206] = new Array('images/red.jpg','Do you believe that you are humble in general? Why or why not?',"#ffffff");
messages[207] = new Array('images/red.jpg','Think about something that is bothering you right now, and try to put it in a humorous light. Do you feel better about the situation?',"#ffffff");
messages[208] = new Array('images/red.jpg','Write about a time when you did the right thing, knowing that no one would ever notice. Was it a difficult decision for you?',"#ffffff");
messages[209] = new Array('images/red.jpg','How do you go about passing on your knowledge to others? Do you do it through writing, through a website, face-to-face, or by other methods?',"#ffffff");
messages[210] = new Array('images/red.jpg','How do you combat negative thinking?',"#ffffff");
messages[211] = new Array('images/red.jpg','Write about one of your long-term goals that became a reality. How did you realize that goal? What obstacles did you face?',"#ffffff");
messages[212] = new Array('images/red.jpg','Do you become easily jealous of the achievements of others? How could you go about turning that jealousy into joy?',"#ffffff");
messages[213] = new Array('images/red.jpg','Write about a time when you had to ask for forgiveness from someone else. Did you receive it?',"#ffffff");
messages[214] = new Array('images/red.jpg','Henry David Thoreau said that the only investment that never fails is goodness. How could you go about investing in goodness?',"#ffffff");
messages[215] = new Array('images/red.jpg','Make a list of five things that it seems that everybody wants, but you are just as happy not to have.',"#ffffff");
messages[216] = new Array('images/red.jpg','Of all the people you know, who do you think listens most closely to what you are really saying? How do you feel about that person?',"#ffffff");
messages[217] = new Array('images/red.jpg','Write about a time when you acted a certain way because of fear. What were the consequences?',"#ffffff");
messages[218] = new Array('images/red.jpg','When was the last time you experienced a dark period in your life? Did you learn anything from that experience?',"#ffffff");
messages[219] = new Array('images/red.jpg','What physical effects do you think you might see in yourself if you practice rejoicing in the good fortune of others?',"#ffffff");
messages[220] = new Array('images/red.jpg','What do you long for most right now? Do you think that you have a good chance of getting what you really want?',"#ffffff");
messages[221] = new Array('images/red.jpg','What is special about seeing something for the first time? How does that experience differ from seeing something for the fifth or the tenth time?',"#ffffff");
messages[222] = new Array('images/red.jpg','Think about your most persistent negative feelings. Do you think that you have been encouraging them to stay with you? Why or why not?',"#ffffff");
messages[223] = new Array('images/red.jpg','What actions would we have to take to implement a good heart a day?',"#ffffff");
messages[224] = new Array('images/red.jpg','How do you react when things do not go your way?',"#ffffff");
messages[225] = new Array('images/red.jpg','Do you believe that dark periods are the best opportunity for you to grow and learn? Why or why not?',"#ffffff");
messages[226] = new Array('images/red.jpg','What parts of your life make you feel most exuberant? How much of your time do you spend on them?',"#ffffff");
messages[227] = new Array('images/red.jpg','List ten things that you could do to add more compassion for others to your life.',"#ffffff");
messages[228] = new Array('images/red.jpg','What was the best welcome that you have ever received? What made it so special?',"#ffffff");
messages[229] = new Array('images/red.jpg','How can bad situations in our own lives help us to be more compassionate toward others?',"#ffffff");
messages[230] = new Array('images/red.jpg','Do you tend to think of problems in your life as opportunities or obstacles? How do you think that your outlook affects your ability to work through problems?',"#ffffff");
messages[231] = new Array('images/red.jpg','Spend a few minutes thinking about yourself in the past. What parts of your personality have you lost? What have you gained since then?',"#ffffff");
messages[232] = new Array('images/red.jpg','What do you think makes a good heart? What qualities does it have?',"#ffffff");
messages[233] = new Array('images/red.jpg','Name at least five demons that you usually run from. Do you think that avoidance makes them worse?',"#ffffff");
messages[234] = new Array('images/red.jpg','If you do not move to avoid bad things, what action should you take instead? How should you treat the bad things in your life?',"#ffffff");
messages[235] = new Array('images/red.jpg','What things tend to lift your spirits? Do these things have more to do with other people, or with solitary pursuits?',"#ffffff");
messages[236] = new Array('images/red.jpg','Make a list of at least 20 things in your life that could use growth or forgiveness. How could you go about addressing these things?',"#ffffff");
messages[237] = new Array('images/red.jpg','How do you feel when someone welcomes you without question? Describe that sensation.',"#ffffff");
messages[238] = new Array('images/red.jpg','What things could hinder you from expressing your own original ideas? How could you overcome these obstacles?',"#ffffff");
messages[239] = new Array('images/red.jpg','List some things you could do for other people without their repaying you (excluding donations to charities).',"#ffffff");
messages[240] = new Array('images/red.jpg','What personality traits do you feel you convey to people the first time you meet them?',"#ffffff");
messages[241] = new Array('images/red.jpg','Think of someone you know who does good work. What qualities does this person show in carrying out his or her work?',"#ffffff");
messages[242] = new Array('images/red.jpg','List some habits or activities in your life where you might need to exercise more self-control.',"#ffffff");
messages[243] = new Array('images/red.jpg','List some personal likes and dislikes that have changed over the years.',"#ffffff");
messages[244] = new Array('images/red.jpg','When you disagree with someone how do you express your disagreement? How do they react to your objections? Describe a specific case.',"#ffffff");
messages[245] = new Array('images/red.jpg','Turbulence often leads to a mixing or blending of things. Think about parts of your life or activities you do which are usually kept separate. What would happen if you mixed or blended these areas?',"#ffffff");
messages[246] = new Array('images/red.jpg','An aid to creativity is curiosity. List things that you are curious about.',"#ffffff");
messages[247] = new Array('images/red.jpg','Write about some constructive criticism you received that helped you make a better decision or do something better.',"#ffffff");
messages[248] = new Array('images/red.jpg','What provocations or temptations tend to cause you to lose self-control? What safeguards can you set against them?',"#ffffff");
messages[249] = new Array('images/red.jpg','Write a rant about someone you hate. Then make a list of their redeeming qualities.',"#ffffff");
messages[250] = new Array('images/red.jpg','What can you find at home that you can find nowhere else?',"#ffffff");
messages[251] = new Array('images/red.jpg','Write about experiences that have humbled you. What did you learn from them?',"#ffffff");
messages[252] = new Array('images/red.jpg','How do you determine what is the right thing? If everyone else around you does what you consider the wrong thing, how do you know that what you think is right IS right?',"#ffffff");
messages[253] = new Array('images/red.jpg','Write down the names of a few of your friends. Going through your list, what initially drew you to each of these people?',"#ffffff");
messages[254] = new Array('images/red.jpg','Describe an original idea that you have expressed in the past and how people received it. How did people react to your original idea?',"#ffffff");
messages[255] = new Array('images/red.jpg','If there is something of divinity in every human being, how can this quality be nurtured? How should this affect the way we treat other people?',"#ffffff");
messages[256] = new Array('images/red.jpg','If you could choose, which age would you be at, and why?',"#ffffff");
messages[257] = new Array('images/red.jpg','Write about an experience that has changed a long-held viewpoint or opinion that you have had.',"#ffffff");
messages[258] = new Array('images/red.jpg','Write about something you said or did when you were angry, but now regret.',"#ffffff");
messages[259] = new Array('images/red.jpg','What good example would you wish to set a child? What would you want a child to learn from you?',"#ffffff");
messages[260] = new Array('images/red.jpg','Isaac Newton likens his work to playing. Can you play in your work? If yes, write about the element of play in your work. If no, why not.',"#ffffff");
messages[261] = new Array('images/red.jpg','Under what circumstances do you normally do your best thinking?',"#ffffff");
messages[262] = new Array('images/red.jpg','Describe the last time you had your feelings hurt by a close friend or family member. How was this situation resolved?',"#ffffff");
messages[263] = new Array('images/red.jpg','List ten (or more, if you want) things that make you smile.',"#ffffff");
messages[264] = new Array('images/red.jpg','At what times in your life have you been at the mercy of others? How did you feel about their decisions?',"#ffffff");
messages[265] = new Array('images/red.jpg','Think of a time when you were unable to empathize with someone. Why were you not able to empathize?',"#ffffff");
messages[266] = new Array('images/red.jpg','Describe some activities or experiences you have had that have given you great joy. What was it about these experiences that inspired joy?',"#ffffff");
messages[267] = new Array('images/red.jpg','What things have happened to you today or recently that made you feel like the world was smiling at you?',"#ffffff");
messages[268] = new Array('images/red.jpg','Are there any circumstances when you can be justified in losing your temper? Give reasons for your answer.',"#ffffff");
messages[269] = new Array('images/red.jpg','Reflect on the contents of your mind. List thoughts that you think over and over again. Which ones are unproductive and should be cleaned out?',"#ffffff");
messages[270] = new Array('images/red.jpg','Write down an ethical decision you made, choosing what you believed was right. What criticism did you receive?',"#ffffff");
messages[271] = new Array('images/red.jpg','How far would you go to win? Are there actions you would rule out even if it meant you would lose?',"#ffffff");
messages[272] = new Array('images/red.jpg','Who was the last person to cheer you up when you were feeling down? What did he or she do to make you feel better?',"#ffffff");
messages[273] = new Array('images/red.jpg','If you had to create a report card for your current state of health, what would the subjects be and how would you grade yourself?',"#ffffff");
messages[274] = new Array('images/red.jpg','What would happen if you cut out the idea of moderation from your life, and instead did everything you wanted to the fullest extent?',"#ffffff");
messages[275] = new Array('images/red.jpg','List a few people that you have known for a long time. How are they different now from when they were younger?',"#ffffff");
messages[276] = new Array('images/red.jpg','What aspects of your personality do you think are the strongest and least likely to change as you get older?',"#ffffff");
messages[277] = new Array('images/red.jpg','Who, if anyone, in your life have you not been able to forgive for angering or hurting you? Who has been the hardest person to forgive?',"#ffffff");
messages[278] = new Array('images/red.jpg','What are some ways that you typically talk yourself out of doing something that frightens you?',"#ffffff");
messages[279] = new Array('images/red.jpg','What characteristics define yourself? What things make you different from anyone else you know?',"#ffffff");
messages[280] = new Array('images/red.jpg','How is wisdom acquired? Which experiences have made you wiser? Describe what you learnt from these experiences.',"#ffffff");
messages[281] = new Array('images/red.jpg','What things would you never sacrifice to reach your goal?',"#ffffff");
messages[282] = new Array('images/red.jpg','How would your friends, business acquaintances, and family describe your typical disposition?',"#ffffff");
messages[283] = new Array('images/red.jpg','What can you or do you do to keep yourself relatively happy and upbeat during the course of a day?',"#ffffff");
messages[284] = new Array('images/red.jpg','How does your mood affect your outward appearance and interactions with others?',"#ffffff");
messages[285] = new Array('images/red.jpg','In what ways do rumors and gossip affect your opinions? Describe a time where hearsay about something or someone influenced the way you approached a situation.',"#ffffff");
messages[286] = new Array('images/red.jpg','Describe a time when an unexpected event -- whether it be a natural disaster, a major news incident, or a more personal matter -- forced you to reconsider the way you looked at your life.',"#ffffff");
messages[287] = new Array('images/red.jpg','Although the answer to this might change every day, how would you answer this question right now: what do you want to get out of life?',"#ffffff");
messages[288] = new Array('images/red.jpg','How would your life be different if you felt free enough to express your own original ideas all the time?',"#ffffff");
messages[289] = new Array('images/red.jpg','What would inspire or motivate you to do something for someone if you knew beforehand that he or she would never be able to repay you?',"#ffffff");
messages[290] = new Array('images/red.jpg','What things in your life make it worth living? What do you value above all in your life?',"#ffffff");
messages[291] = new Array('images/red.jpg','What fundamental aspects of your personality have remained unchanged for as long as you can remember?',"#ffffff");
messages[292] = new Array('images/red.jpg','If you could share a happy moment with someone, who would that be and why?',"#ffffff");
messages[293] = new Array('images/red.jpg','What vices in your life have you overcome? What did you do to conquer them?',"#ffffff");
messages[294] = new Array('images/red.jpg','Write about a mistake that you have made once that you never want to make again.',"#ffffff");
messages[295] = new Array('images/red.jpg','What was the first thing you remember scaring you as a child?',"#ffffff");
messages[296] = new Array('images/red.jpg','Which qualities would you like to have that you lack? What actions could you perform to cultivate these qualities?',"#ffffff");
messages[297] = new Array('images/red.jpg','How long does it normally take you to make new friends? What factors play into your ability to make friends?',"#ffffff");
messages[298] = new Array('images/red.jpg','When you sit or lay down in silence, what thoughts generally tend to start filling your mind?',"#ffffff");
messages[299] = new Array('images/red.jpg','What things have you missed in life because you were going too fast?',"#ffffff");
messages[300] = new Array('images/red.jpg','What self-defeatist thoughts have gone through your mind? List them.',"#ffffff");
messages[301] = new Array('images/red.jpg','Creativity often contains an element of surprise or unexpectedness; for instance, the combining of two unrelated or disparate things in a new or surprising way. Think of two unrelated parts of your life. How could you combine them to produce something interesting and new?',"#ffffff");
messages[302] = new Array('images/red.jpg','How do you feel when someone loses his or her temper with you during an argument? How do you respond to his or her behavior? Write about a particular incident.',"#ffffff");
messages[303] = new Array('images/red.jpg','Think about an occasion when you had a disagreement with someone. Rewrite his or her point of view in your own words.',"#ffffff");
messages[304] = new Array('images/red.jpg','What compromises have you made in your life in order to deal with your fears?',"#ffffff");
messages[305] = new Array('images/red.jpg','In what ways could other people benefit if you shared some of your passions with them?',"#ffffff");
messages[306] = new Array('images/red.jpg','How would you distinguish between hope and wishful thinking?',"#ffffff");
messages[307] = new Array('images/red.jpg','Think of someone you consider wise. Give examples of their thoughts, words, or actions that reflect their wisdom.',"#ffffff");
messages[308] = new Array('images/red.jpg','In your opinion, what acts can be described as courageous and why?',"#ffffff");
messages[309] = new Array('images/red.jpg','What three things would you change about your life right now and why?',"#ffffff");
messages[310] = new Array('images/red.jpg','What is the main thing that builds and boosts your self-confidence and why?',"#ffffff");
messages[311] = new Array('images/red.jpg','If you could do something without anyone else knowing that you did it, what would you do and why?',"#ffffff");
messages[312] = new Array('images/red.jpg','What are the first thoughts that typically cross your mind when you wake up in the morning?',"#ffffff");
messages[313] = new Array('images/red.jpg','If you could go anywhere in the world right now, where would you go and why?',"#ffffff");
messages[314] = new Array('images/red.jpg','How would you define integrity in terms of human traits?',"#ffffff");
messages[315] = new Array('images/red.jpg','What goals have you been unable to accomplish because you have doubts about your abilities?',"#ffffff");
messages[316] = new Array('images/red.jpg','Have you ever done something for the sole purpose of pleasing someone else? If yes, what did you do and why was it important to you to please that person?',"#ffffff");
messages[317] = new Array('images/red.jpg','Do you act differently when you are around certain people? Why or why not?',"#ffffff");
messages[318] = new Array('images/red.jpg','What are some everyday kind things that your family and friends do for you that you are thankful for but for which you have never actually thanked them?',"#ffffff");
messages[319] = new Array('images/red.jpg','Recall a time in your life when you made a big change. Was the change positive or negative?',"#ffffff");
messages[320] = new Array('images/red.jpg','Do you have a weakness for something that overpowers your willpower? What is it? When was the last time you gave in to this weakness?',"#ffffff");
messages[321] = new Array('images/red.jpg','Recall a situation when your courage was tested.',"#ffffff");
messages[322] = new Array('images/red.jpg','List three mistakes you made that you intend never to make again.',"#ffffff");
messages[323] = new Array('images/red.jpg','Would you be happier doing your best or achieving perfection? Why?',"#ffffff");
messages[324] = new Array('images/red.jpg','What makes your family unique?',"#ffffff");
messages[325] = new Array('images/red.jpg','What virtues do you admire in others?',"#ffffff");
messages[326] = new Array('images/red.jpg','What is your idea of beauty?',"#ffffff");
messages[327] = new Array('images/red.jpg','Describe a time in your life when you gave up your most cherished dreams in exchange for something of lesser value.',"#ffffff");
messages[328] = new Array('images/red.jpg','What lessons in humility have you learned over the course of your life?',"#ffffff");
messages[329] = new Array('images/red.jpg','Think of the place that you consider to be home, even if you do not live there right now. Why does this place feel like home to you?',"#ffffff");
messages[330] = new Array('images/red.jpg','What was the last great movie you saw, song you heard, or book you read? In what ways did it affect you?',"#ffffff");
messages[331] = new Array('images/red.jpg','What bad habits or vices do you have that you want to change?',"#ffffff");
messages[332] = new Array('images/red.jpg','List 12 things you are confident about.',"#ffffff");
messages[333] = new Array('images/red.jpg','What was the biggest temptation that you ever faced as a teenager? How did you handle it?',"#ffffff");
messages[334] = new Array('images/red.jpg','What were some goals you had as child? Did those goals change when you got older?',"#ffffff");
messages[335] = new Array('images/red.jpg','Write about a time when someone showed you compassion.',"#ffffff");
messages[336] = new Array('images/red.jpg','What insight about life did you learn from the most recent bad situation you encountered?',"#ffffff");
messages[337] = new Array('images/red.jpg','If you knew you could not fail, what would you attempt to do?',"#ffffff");
messages[338] = new Array('images/red.jpg','What things have you experienced that have helped build your character to what it is today?',"#ffffff");
messages[339] = new Array('images/red.jpg','Recall a small problem that was blown out of proportion.',"#ffffff");
messages[340] = new Array('images/red.jpg','How can an enemy bring out the worst in you?',"#ffffff");
messages[341] = new Array('images/red.jpg','In your experience, how has charity and kindness on your part unlocked doors of opportunities for you?',"#ffffff");
messages[342] = new Array('images/red.jpg','Make a list of ten things -- material or not -- that you want right now.',"#ffffff");
messages[343] = new Array('images/red.jpg','What personality types drive you crazy?',"#ffffff");
messages[344] = new Array('images/red.jpg','Give an example of how you have shown dedication to a certain cause or goal in your life.',"#ffffff");
messages[345] = new Array('images/red.jpg','It is always easier to love someone who has been kind to you, but how much effort on your part is needed to love someone who has given you many problems?',"#ffffff");
messages[346] = new Array('images/red.jpg','Death does not always have to be physical. What other things can die or feel like a death?',"#ffffff");
messages[347] = new Array('images/red.jpg','What little victories have you experienced in the last three months, and what makes them memorable?',"#ffffff")
messages[348] = new Array('images/red.jpg','Think of something that you currently want but are unable to get. What would you settle for instead that would still make you happy?',"#ffffff");
messages[349] = new Array('images/red.jpg','Recall a situation when you wished you had more more strength and confidence.',"#ffffff");
messages[350] = new Array('images/red.jpg','How far would you say that you let others take control of your life and how could you remedy that?',"#ffffff");
messages[351] = new Array('images/red.jpg','What little things about your home and neighborhood have you noticed and grown to appreciate as you have lived there?',"#ffffff");
messages[352] = new Array('images/red.jpg','Who are the people who make up your personal support network?',"#ffffff");
messages[353] = new Array('images/red.jpg','In what ways have your closest friendships grown stronger over time?',"#ffffff");
messages[354] = new Array('images/red.jpg','What type of activity or task would you engage in if you always had an extra hour every day?',"#ffffff");
messages[355] = new Array('images/red.jpg','In what ways is time important to you?',"#ffffff");
messages[356] = new Array('images/red.jpg','What hardships have your personally had to overcome in order to appreciate what you have now?',"#ffffff");
messages[357] = new Array('images/red.jpg','Are you an optimist, pessimist or realist?',"#ffffff")
messages[358] = new Array('images/red.jpg','How tenacious do you think you are when you are trying to achieve a goal? What factors influence how persistent you are?',"#ffffff");
messages[359] = new Array('images/red.jpg','If you had the opportunity to give anything of yourself to the world, what would you give?',"#ffffff");
messages[360] = new Array('images/red.jpg','While each one of us is is unique, we tend to model ourselves after someone. Who played this role in your life and why?',"#ffffff");
messages[361] = new Array('images/red.jpg','Reflect on the goals you had before your high school or colloege graduation. How did these goals change with your experiences?',"#ffffff");
messages[362] = new Array('images/red.jpg','What, in your opinion, is the best general attitude to face life with the majority of the time?',"#ffffff");
messages[363] = new Array('images/red.jpg','In what areas of your life is it extremely important for you to strive for excellence?',"#ffffff");
messages[364] = new Array('images/red.jpg','What acts of kindness can you carry out every day that could make a difference to another individual?',"#ffffff");
messages[365] = new Array('images/red.jpg','What brings out the best in you?',"#ffffff");
messages[366] = new Array('images/red.jpg','How do you usually react to compliments?',"#ffffff");
messages[367] = new Array('images/red.jpg','True love happens but once in a lifetime. How did that love affect you at the time and how do you remember it now?',"#ffffff")
messages[368] = new Array('images/red.jpg','List three negative situations you can endure that you think will help strengthen your character.',"#ffffff");
messages[369] = new Array('images/red.jpg','What are some less-than-healthy activities that you regularly partake in?',"#ffffff");
messages[370] = new Array('images/red.jpg','What is it that you want so much to attain for yourself but which has yet remained the biggest challenge for yourself each day?',"#ffffff");
messages[371] = new Array('images/red.jpg','Recall a time when you responded positively to adversity. What did you do?',"#ffffff");
messages[372] = new Array('images/red.jpg','Describe someone in your life that you could never repay for all his or her kindness to you.',"#ffffff");
messages[373] = new Array('images/red.jpg','How would you define a life that is lived well?',"#ffffff");
messages[374] = new Array('images/red.jpg','What actions, if any, do you normally take when you are jealous of someone?',"#ffffff");
messages[375] = new Array('images/red.jpg','Think of the most important person in your life. How far would you trust him or her with your life?',"#ffffff");
messages[376] = new Array('images/red.jpg','How are you similar or different to the person you were ten years ago?',"#ffffff");
messages[377] = new Array('images/red.jpg','Reflect on the way that you treat people. What areas of that particular element of you have room for improvement?',"#ffffff")



////////////////////  END OF CUSTOMIZATION AREA  ///////////////////

// preload images that are to appear in tooltip
// from arrays above
if (document.images) {
	var theImgs = new Array();
	for (var i=0; i<messages.length; i++) {
  	theImgs[i] = new Image();
		theImgs[i].src = messages[i][0];
  }
}

// to layout image and text, 2-row table, image centered in top cell
// these go in var tip in doTooltip function
// startStr goes before image, midStr goes between image and text
var startStr = '<table width="' + tipWidth + '"><tr><td align="center" width="100%"><img src="';
var midStr = '" border="0"></td></tr><tr><td valign="top">';
var endStr = '</td></tr></table>';

////////////////////////////////////////////////////////////
//  initTip	- initialization for tooltip.
//		Global variables for tooltip. 
//		Set styles for all but ns4. 
//		Set up mousemove capture if tipFollowMouse set true.
////////////////////////////////////////////////////////////
var tooltip, tipcss;
function initTip() {
	if (nodyn) return;
	tooltip = (ns4)? document.tipDiv.document: (ie4)? document.all['tipDiv']: (ie5||ns5)? document.getElementById('tipDiv'): null;
	tipcss = (ns4)? document.tipDiv: tooltip.style;
	if (ie4||ie5||ns5) {	// ns4 would lose all this on rewrites
		tipcss.width = tipWidth+"px";
		tipcss.fontFamily = tipFontFamily;
		tipcss.fontSize = tipFontSize;
		tipcss.color = tipFontColor;
		tipcss.backgroundColor = tipBgColor;
		tipcss.borderColor = tipBorderColor;
		tipcss.borderWidth = tipBorderWidth+"px";
		tipcss.padding = tipPadding+"px";
		tipcss.borderStyle = tipBorderStyle;
	}
	if (tooltip&&tipFollowMouse) {
		if (ns4) document.captureEvents(Event.MOUSEMOVE);
		document.onmousemove = trackMouse;
	}
}

window.onload = initTip;

/////////////////////////////////////////////////
//  doTooltip function
//			Assembles content for tooltip and writes 
//			it to tipDiv
/////////////////////////////////////////////////
var t1,t2;	// for setTimeouts
var tipOn = false;	// check if over tooltip link
function doTooltip(evt,num) {
	if (!tooltip) return;
	if (t1) clearTimeout(t1);	if (t2) clearTimeout(t2);
	tipOn = true;
	// set colors if included in messages array
	if (messages[num][2])	var curBgColor = messages[num][2];
	else curBgColor = tipBgColor;
	if (messages[num][3])	var curFontColor = messages[num][3];
	else curFontColor = tipFontColor;
	if (ns4) {
		var tip = '<table bgcolor="' + tipBorderColor + '" width="' + tipWidth + '" cellspacing="0" cellpadding="' + tipBorderWidth + '" border="0"><tr><td><table bgcolor="' + curBgColor + '" width="100%" cellspacing="0" cellpadding="' + tipPadding + '" border="0"><tr><td>'+ startStr + messages[num][0] + midStr + '<span style="font-family:' + tipFontFamily + '; font-size:' + tipFontSize + '; color:' + curFontColor + ';">' + messages[num][1] + '</span>' + endStr + '</td></tr></table></td></tr></table>';
		tooltip.write(tip);
		tooltip.close();
	} else if (ie4||ie5||ns5) {
		var tip = startStr + messages[num][0] + midStr + '<span style="font-family:' + tipFontFamily + '; font-size:' + tipFontSize + '; color:' + curFontColor + ';">' + messages[num][1] + '</span>' + endStr;
		tipcss.backgroundColor = curBgColor;
	 	tooltip.innerHTML = tip;
	}
	if (!tipFollowMouse) positionTip(evt);
	else t1=setTimeout("tipcss.visibility='visible'",100);
}

var mouseX, mouseY;
function trackMouse(evt) {
	mouseX = (ns4||ns5)? evt.pageX: window.event.clientX + document.body.scrollLeft;
	mouseY = (ns4||ns5)? evt.pageY: window.event.clientY + document.body.scrollTop;
	if (tipOn) positionTip(evt);
}

/////////////////////////////////////////////////////////////
//  positionTip function
//		If tipFollowMouse set false, so trackMouse function
//		not being used, get position of mouseover event.
//		Calculations use mouseover event position, 
//		offset amounts and tooltip width to position
//		tooltip within window.
/////////////////////////////////////////////////////////////
function positionTip(evt) {
	if (!tipFollowMouse) {
		mouseX = (ns4||ns5)? evt.pageX: window.event.clientX + document.body.scrollLeft;
		mouseY = (ns4||ns5)? evt.pageY: window.event.clientY + document.body.scrollTop;
	}
	// tooltip width and height
	var tpWd = (ns4)? tooltip.width: (ie4||ie5)? tooltip.clientWidth: tooltip.offsetWidth;
	var tpHt = (ns4)? tooltip.height: (ie4||ie5)? tooltip.clientHeight: tooltip.offsetHeight;
	// document area in view (subtract scrollbar width for ns)
	var winWd = (ns4||ns5)? window.innerWidth-20+window.pageXOffset: document.body.clientWidth+document.body.scrollLeft;
	var winHt = (ns4||ns5)? window.innerHeight-20+window.pageYOffset: document.body.clientHeight+document.body.scrollTop;
	// check mouse position against tip and window dimensions
	// and position the tooltip 
	if ((mouseX+offX+tpWd)>winWd) 
		tipcss.left = (ns4)? mouseX-(tpWd+offX): mouseX-(tpWd+offX)+"px";
	else tipcss.left = (ns4)? mouseX+offX: mouseX+offX+"px";
	if ((mouseY+offY+tpHt)>winHt) 
		tipcss.top = (ns4)? winHt-(tpHt+offY): winHt-(tpHt+offY)+"px";
	else tipcss.top = (ns4)? mouseY+offY: mouseY+offY+"px";
	if (!tipFollowMouse) t1=setTimeout("tipcss.visibility='visible'",100);
}

function hideTip() {
	if (!tooltip) return;
	t2=setTimeout("tipcss.visibility='hidden'",100);
	tipOn = false;
}

//-->