/***********************************************
* Image w/ description tooltip- By Dynamic Web Coding (www.dyn-web.com)
* Copyright 2002-2007 by Sharon Paine
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

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

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

var origWidth, origHeight;

// 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= 260;
var offX= 20;	// how far from mouse to show tip
var offY= 12; 
var tipFontFamily= "Verdana, arial, helvetica, sans-serif";
var tipFontSize= "8pt";
// 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= 1;
var tipBorderStyle= "ridge";
var tipPadding= 4;

// tooltip content goes here (image, description, optional bgColor, optional textcolor)
var messages = new Array();
var messageOne = "If the phone has a Calendar feature, the Alarm feature may be integrated with that, so an alarm is simply a Calendar event. Although some phones with a Calendar feature also have a separate Alarm feature.<br><br>Phones with a standalone Alarm function may allow only one alarm to be set,	or may allow three or more. Most allow alarms to be set to go off once, or on a recurring basis, such as daily or weekly.<br><br>Some phones require that the phone be turned on for the alarm to work, while others will sound an alarm even while powered off."; 
var messageTwo = "Bluetooth is a short-range wireless technology used to create PANs (Personal Area Networks) among your devices, and with other nearby devices. <br><br>You can also exchange contact or scheduling information with other Bluetooth-enabled phones nearby, or send such information to a nearby Bluetooth-enabled printer. <br><br>Another common use is to give your laptop computer or PDA wireless high-speed Internet access via Bluetooth and your phone. <br><br>Many newer automobiles also have Bluetooth, which can interface with a phone in a pocket, to allow automatic hands-free phone capability. <br><br>More innovative uses include playing a game against someone with a similar phone nearby, or using a special Bluetooth pen to send SMS messages by simply writing them on paper.";
var messageThree = "Most in-phone calculators only perform simple math, such as addition, subtraction, multiplication, and division. Some also include special-purpose tools such as tip calculators or currency converters.";
var messageFour = "This means that the phone has selectable ringtones that can be set to a custom melody (or \'ringer\') that you can change to something other than the ringtones included with the phone. <br><br>Some phones include a built-in \'composer\' that let you enter the notes manually and create your own ringtone right on the phone. <br><br>Others require that the ringtone be created elsewhere and downloaded to your phone via special SMS, EMS, or MMS messages, or via Wireless Internet. <br><br>Ringtones can also sometimes be transferred in the form of a file from another device, such as a phone, PDA, or PC, via a cable, infrared, or Bluetooth.";
var messageFive = "This means that the phone can be used like a modem to connect a separate computer to the Internet or other system. <br><br>With the proper equipment and network support, some phones also allow faxes to be sent and received.";
var messageSix = "Enables those who are deaf and hard of hearing to use a special TTY text device with digital service. <br><br>Without this feature, TTY devices are compatible only with analog service.";
var messageSeven = "Some phones include a full e-mail client that can connect directly to standard POP and/or IMAP e-mail servers, via a wireless data connection and the Internet. <br><br>Phones with Wireless Internet can also access sites offering e-mail, but this provides a more direct approach.";
var messageEight = "Many phones include simple games for the user to pass the time when waiting, travelling, etc. The games referred to here are ones built into the phone, that do not require a connection and airtime to play. (There are games available over the Wireless Internet that do require a connection and thus airtime.) <br><br>Many phones also include the ability to download new games wirelessly. There are several different technologies for downloadable games, including Java, BREW, Mophun, and WGE. The technologies are incompatible, although some phones support more than one technology.";
var messageNine = "Allows an external speaker and microphone to be used with the phone. Can be used with such accessories as a simple plug-in earbud, or a hands-free car kit with speakerphone.";
var messageTen = "J2ME (Java 2 Micro Edition) is a feature that allows the device to run small, user-installable software applications written especially for mobile devices such as phones. <br><br>J2ME applications can provide specific functions such as a tip calulator, they can be games, or they can be custom-written corporate applications. They can be Internet-enabled, so that, for example, a J2ME game might let you play someone else in real time over the Internet. They can be created by anyone - not just the phone manufacturer or your carrier. <br><br>You can download new applications to your phone at any time. Most phones allow you to download new applications directly to your phone using the Wireless Internet feature.";
var messageEleven = "MMS (Multimedia Messaging Service) is a descendent of SMS (Short Messaging Service). MMS extends text messaging to include longer text, graphics, photos, audio clips, video clips, or any combination of the above, within certain size limits. <br><br>MMS is frequently used to send photos and videos from camera phones to other MMS phones or email accounts. <br><br>Many newer MMS phones also support SMIL, which allows various parts of an MMS message to be arranged into a small multimedia \'slideshow\' to be viewed on another SMIL-capable MMS phone.";
var messageTwelve = "This means that an individual entry in the Phone Book can contain more than one phone number, such as Office, Home, Mobile, Fax, etc. <br><br>This is different from <strong>grouping</strong>, which lets you create group entries in the phone book, such as Office, Family, Food, etc.";
var messageThirteen = "PC Sync allows the user to connect the phone to a computer with a cable and synchronize calendar and contact information between the phone and a computer application such as Outlook.";
var messageFourteen = "Polyphonic ringtones can create multiple tones and/or notes simultaneously. This produces a more natural and realistic sound for melodies. Most polyphonic ringers can also simulate the sound of various instruments, instead of just tones. Different phones support a different number of simultaneous instruments (chords) - anywhere from 4 to 40 or more.";
var messageFifteen = "Side Keys are simply buttons on the side of the phone, designed to be used by your fingertips while holding the phone in your hand - one-handed operation. <br><br>Many phones have up/down keys or switches that can be used to adjust volume and scroll through menu options. Some also have a \'Select\' or \'OK\' button. Some also have a dedicated Voice-Memo key on the side.";
var messageSixteen = "Speaker phone allows the phone to be used at a short distance, without the phone being held next to the face, (and without using a headset.) It allows a small group of people near the phone to all hear and participate in the conversation. It is also useful for hands-free, safe operation in an automobile, and when on hold for a long period of time.";
var messageSeventeen = "A set of small keys specifically designed for entering text, beyond the standard 12-key numeric keypad. <br><br>Standard mini-keyboards have a QWERTY layout - a miniature version of a computer keyboard. <br><br>Alternate layouts such as Fastap blend numeric and text keyboards to create a keypad that\'s smaller, yet equally fast for entering large amounts of text.";
var messageEighteen = "Text Messaging, also called SMS (Short Message Service) allows short text messages to be received and displayed on the phone. 2-Way Text Messaging, also called MO-SMS (Mobile-Originated Short Message Service,) allows messages to be sent from the phone as well. <br><br>Messages can typically be sent to a phone via a special email address, through the carrier\'s web site, or with special messaging software and a modem. <br><br>Messages can be sent from one phone to another by addressing the message to the recipient\'s phone number. <br><br>Most phones and carriers also allow messages to be sent from a phone directly to an email Address.";
var messageNinteen = "To-Do list is simply an organized list of text items you can enter into the phone to help you remember and keep organized. Usually, they can be arranged in any order and removed at will. Some phones support priority and deadline information for to-do list items.";
var messageTwenty = "USB (Universal Serial Bus) is a type of plug-in connection that is used to connect devices, including some phones, to desktop or laptop computers. In a phone, USB is useful for quickly transferring files to and from phones, or for synchronizing address book and calendar information with a computer application such as Outlook. <br><br>The phone is typically recognized by the computer as an accessory, with the proper driver installed on the computer. <br><br>However, some phones support USB-Host (also called USB-OTG), which allows USB accessories to be connected directly to the phone, with no computer involved.";
var messageTwentyone = "The phone includes a mechanical device that can make the phone vibrate when it would otherwise ring or make a sound, such as an incoming call or an alarm. This is often useful for situations where an audible phone ringer would be innapropriate, such as in public or in office environments. <br><br>The feature can be enabled or disabled through the phone\'s settings. Some phones permit both a sound and vibration at the same time, some do not. Some phones vibrate more vigorously than others. In particular, since a motorized weight usually produces the vibrations, lighter-weight phones may have weaker vibrating mechanisms.";
var messageTwentytwo = "Also known as WAP, Wireless Web, or Mobile Web. This feature means that the phone contains mini-browser software that will let you navigate various services through the Internet, shown on the phone\'s display. <br><br>Most phones with Wireless Internet can only display pages specifically designed for phones - they cannot display most full web sites. Some newer phones can also display full web sites, although how well the page fits on the display varies depending on the mini-browser software. <br><br>Some traditional web sites do offer versions specifically designed for phones, however frequently only a fraction of the content or services are offered in the wireless version, such as features that are time- or location-sensitive.";


var messageTwentythree ="Calendar functions, sometimes also referred to as PIM (Personal Information Manager) functions, allow you to store scheduling and event information in your phone. Some phones also offer the ability to sound an alert (or vibrate) to remind you of upcoming events. These alerts may serve as an integrated Alarm feature. <br><br>Some phones can also synchronize this information with a PC, PDA, or laptop. See PC Sync and SyncML for more information.";
var messageTwentyfour ="Custom Graphics is a customization feature that allows the user to set custom graphics to appear on the phone\'s display. <br><br>The graphics may be downloaded via a cable from a computer, downloaded via Wireless Internet, or sent to the phone via SMS. <br><br>Various phones allow the graphics to used in different ways. Some ways include: as the main or background graphic during standby, as the background in menus, as the main graphic during an incoming call, and as a screen saver after the phone has been idle for a certain period of time.  <br><br>A related but distinct feature is Picture ID, which is where a phone allows custom graphics to be assigned to individual phone book entries, to be displayed when receiving an incoming call from that number.";
var messageTwentyfive ="GPS (Global Positioning System) is a global satellite-based system for determining precise location on Earth. <br><br>In a phone, this will allow operators to immediately receive your location when you call the emergency number (911 or 112). <br><br>When used with compatible Wireless Internet systems and services, and with the user\'s permission, it can also transmit location information to those services. For example, a location-enabled phone book service might tell you where the nearest Chinese restaurant is, without requiring manual entry of a zip code, etc. <br><br>Most phones with \'GPS\' in fact use A-GPS technology. The \'A\' stands for assisted, and means that the phone relies the network for help in determining location. Although the phone does receive GPS signals directly from the satellites, it can\'t determine actual location without help from the cell network.";
var messageTwentysix ="The phone includes memory storage for MP3 or similar music files, and software for playing that music. Generally, music can be downloaded into the phone from a computer and played back later through a headset attached to the phone. <br><br>Newer phones with High-Speed Data may support downloading music directly over the Wireless Internet.";
var messageTwentyseven ="Languages other than US English that the phone can be set to display its menus and text in.";
var messageTwentyeight ="Picture ID allows you to associate a specific photo or custom graphics with individual phone book entries. When that person calls, the associated graphic/photo is shown on the display. <br><br>Phones with built-in cameras can use the camera to capture a photo for Picture ID. Photos and graphics can also sometimes be downloaded into the phone directly from a computer, or downloaded via the Wireless Internet feature.";
var messageTwentynine ="Push-To-Talk (PTT) is a two-way communication service that works like a \'walkie talkie\'.A normal cell phone call is full-duplex, meaning both parties can hear each other at the same time. PTT is half-duplex, meaning communication can only travel in one direction at any given moment. <br><br>To control which person can speak and be heard, PTT requires the person speaking to press a button while talking and then release it when they are done. The listener then presses their button to respond. This way the system knows which direction the signal should be traveling in. <br><br>New PTT systems are being introduced in 2002 that use VoIP technology to provide PTT service digitally over 3G data networks. See VoIP.";
var messageThirty ="Also called distinctive ring or name ringer. This allows the user to assign specific ringtones to individual phone book entries, allowing the user to identify callers by the sound of the ringer.";
var messageThirtyone ="Ringer Profiles allow the user to create distinct \'profiles\', each consisting of an array of detailed ringer settings. These profiles can be pre-set and stored in the phone by the user, then quickly selected and activated at any time. <br><br>This feature is useful because many phones offer a very large array of ringer options. Different ringer options, (including tones, melodies, vibrate, flashing lights, or any combination thereof,) may be applied to incoming calls, incoming SMS, service status, incoming Wireless Internet push messages, alarms, etc. In addition, some phones allow different ringers to be used for incoming roaming calls, calls from numbers in the phone book, and even different ringers for individual numbers in the phone book. <br><br>With all of those options, profiles make it easy to create sets of settings that are appropriate for various situations, including work, home, public, etc.";
var messageThirtytwo ="This lets you speak a name to dial a number instead of entering a number manually or choosing it from the phone book. <br><br>There are two types: speaker-dependent (recorded) and speaker-independent (recognition). <br><br>With speaker-dependent, voice dial entries must be explicitly created by speaking and recording the name 1-3 times. The phone will only respond to recorded names, and usually only when spoken by the same person who recorded them. <br><br>With speaker-independent voice recognition, no recording is required. The name can be spoken by anyone, and the phone will automatically match the spoken name with the closest name entered in the phone book.";
var messageThirtythree ="Wi-FiŽ is a WLAN (Wireless Local Area Network) technology. It primarily provides short-range, high-speed data connections between mobile data devices (such as laptops) and nearby Wi-Fi access points (special hardware connected to a wired network). <br><br>Wi-Fi is a trademark of the Wi-Fi Alliance, a nonprofit industry association. <br><br>Range for Wi-Fi is typically around 100 to 300 feet indoors and 2000 feet outdoors. <br><br>Wi-Fi networks can be set up and operated by anyone, with different networks allowing different kinds of access. A public \'hot spot\' at an airport or coffee shop might charge an hourly rate for access. A hotel might offer free wi-fi to guests. A company or university might offer on-premises free access for verified employees/students. Or a home user could set up their own network to which only they had access.";
  
var messageThirtyfour = "Some phones feature the ability to take a still picture or video, using a camera. The pictures and/or video can then be sent wirelessly, or sometimes associated with phone book entries and used for Picture ID on incoming calls. <br><br>The phones listed with the Camera feature on this site have a built-in camera. Some other phones do not include a camera, but are designed to work with camera accessories. <br><br>Phones that can also record video are listed with the Video Capture feature on this site.";
var messageThirtyfive = "This device is less that 4 ounces.";
var messageThirtysix = "Voice Memo lets you record and store short voice messages that you can play back at any time. Many phones with this feature also let you record parts of phone conversations in progress. Some phones have a dedicated voice-memo button to activate the feature. <br><br>Some phones limit the memos to certain number of a certain length each, some limit number of memos and total length of all messages combined, while still others limit only total length.";

var messageThirtyseven = "Text Messaging templates provide pre-set text that can be used to quickly send common text (SMS) messages without typing the message itself.";
var messageThirtyeight = "Some phones include a dedicated small, bright white LED that functions as a flashlight. <br><br>In some camera phones with this feature, the LED light also does double-duty as a camera flash. However, not all camera phones with a flash allow flashlight (non-camera-related) use, and not all camera phones with a flashlight include camera flash capability. <br><br>If this flashlight feature is indicated for a phone on this site, that means the LED flashlight can be used independently of the camera functions.";
var messageThirtynine = "Predictive Text Entry, (also know by the most popular type, T9,) allows you to enter text by pressing only one key per letter. As you enter a word, the phone will automatically compare all of the possible letter combinations against a built-in dictionary of words, and determine which word you intended to type. If it guesses incorrectly, you can scroll through other possible words without re-typing the word. <br><br>This makes it much easier to enter long text messages and e-mail. The number of keystrokes is typically cut in half when using predictive text entry, compared to traditional methods, which require you to press 2 once for A, twice for B, three times for C, and so on for each key on the keypad.";
var messageFourty = "Voice Plans - Much Similar to Calling Plans, Select Yes and there will be 6 plans listed below.";

var messageFourtyone = "You must create new account with us or add an existing line to your account - <br /><br /><font color='red'><b>We do not Switch or Upgrade Sim cards!</b></font><br /><br />Any Questions:<br /> Please VP us at 866-637-4145";
var messageFourtytwo = "Send and receive any type of message you want, in any combination you want. Text, IM, picture, or video messages--it\'s up to you! Messaging Value Bundles are offered per line of service and not shared among FamilyTime (or other pooled account) customers.";
var messageFourtythree = "Unlimited Data Plan";
var messageFourtyfour = "Equipment Insurance, warrants the device for future replacements or repairs.";

var voiceplan1 = "<ul><li>Monthly Charge - $29.99</li><li>Whenever Minutes - 300</li><li>Weekend Minutes - Unlimited</li><li>Weeknight Minutes - N/A</li><li>Text Messages - N/A</li><li>Overage - $.40 per Minute</li><li>Mobile to Mobile - N/A</li></ul>Great for budget conscious customers and students";
var voiceplan2 = "<ul><li>Monthly Charge - $39.99</li><li>Whenever Minutes - 600</li><li>Weekend Minutes - Unlimited</li><li>Weeknight Minutes - Unlimited</li><li>Text Messages - N/A</li><li>Overage - $.40 per Minute</li><li>Mobile to Mobile - N/A</li></ul>Great for budget conscious customers and students";
var voiceplan3 = "<ul><li>Monthly Charge - $39.99</li><li>Whenever Minutes - 1000</li><li>Weekend Minutes - 0</li><li>Weeknight Minutes - 0</li><li>Text Messages - N/A</li><li>Overage - $.40 per Minute</li><li>Mobile to Mobile - N/A</li></ul>Great for budget conscious customers and students";
var voiceplan4 = "<ul><li>Monthly Charge - $49.99</li><li>Whenever Minutes - 1000</li><li>Weekend Minutes - Unlimited</li><li>Weeknight Minutes - Unlimited</li><li>Text Messages - N/A</li><li>Overage - $.40 per Minute</li><li>Mobile to Mobile - N/A</li></ul>Great for budget conscious customers and students";
var voiceplan5 = "<ul><li>Monthly Charge - $59.99</li><li>Whenever Minutes - 1500</li><li>Weekend Minutes - Unlimited</li><li>Weeknight Minutes - Unlimited</li><li>Text Messages - N/A</li><li>Overage - $.40 per Minute</li><li>Mobile to Mobile - N/A</li></ul>Great for budget conscious customers and students";
var voiceplan6 = "<ul><li>Monthly Charge - $99.99</li><li>Whenever Minutes - Unlimited</li><li>Weekend Minutes - Unlimited</li><li>Weeknight Minutes - Unlimited</li><li>Text Messages -Unlimited</li><li>Overage -N/A</li><li>Mobile to Mobile - N/A</li></ul>Great for user needing well over an hour of talk time per work day";


// multi-dimensional arrays containing: 
// image and text for tooltip
// optional: bgColor and color to be sent to tooltip
messages[0] = new Array('images/icons/alarm.gif',messageOne,"#DDECFF","Alarm");
messages[1] = new Array('images/icons/bluetooth.gif',messageTwo,"#DDECFF","BlueTooth");
messages[2] = new Array('images/icons/calculator.gif',messageThree,'#DDECFF',"Calculator");
messages[3] = new Array('images/icons/custom_ringtones.gif',messageFour,'#DDECFF',"Custom Ringtones");
messages[4] = new Array('images/icons/data_capable.gif',messageFive,'#DDECFF',"Data Capable");
messages[5] = new Array('images/icons/digital_tty_tdd.gif',messageSix,'#DDECFF',"Digital TTY");
messages[6] = new Array('images/icons/email_client.gif',messageSeven,'#DDECFF',"Email Client");
messages[7] = new Array('images/icons/games.gif',messageEight,'#DDECFF',"Games");
messages[8] = new Array('images/icons/headset.gif',messageNine,'#DDECFF',"HeadSet");
messages[9] = new Array('images/icons/java.gif',messageTen,'#DDECFF',"Java");
messages[10] = new Array('images/icons/mms.gif',messageEleven,'#DDECFF',"MMS");
messages[11] = new Array('images/icons/multiple_numbers_per_name.gif',messageTwelve,'#DDECFF',"Multiple Numbers Per Name");
messages[12] = new Array('images/icons/pc_sync.gif',messageThirteen,'#DDECFF',"PC Sync");
messages[13] = new Array('images/icons/polyphonic_ringtones.gif',messageFourteen,'#DDECFF',"Polyphonic Ringtomes");
messages[14] = new Array('images/icons/side_keys.gif',messageFifteen,'#DDECFF',"Side Keys");
messages[15] = new Array('images/icons/speakerphone.gif',messageSixteen,'#DDECFF',"SpeakerPhone");
messages[16] = new Array('images/icons/text_keyboard.gif',messageSeventeen,'#DDECFF',"Text Keyboard");
messages[17] = new Array('images/icons/text_messaging.gif',messageEighteen,'#DDECFF',"Text Messaging");
messages[18] = new Array('images/icons/todo.gif',messageNinteen,'#DDECFF',"To Do");
messages[19] = new Array('images/icons/usb.gif',messageTwenty,'#DDECFF',"USB");
messages[20] = new Array('images/icons/vibrate.gif',messageTwentyone,'#DDECFF',"Vibrate");
messages[21] = new Array('images/icons/wireless_internet.gif',messageTwentytwo,'#DDECFF',"Wlreless Internet");

messages[22] = new Array('images/icons/calendar.gif',messageTwentythree,'#DDECFF','Calendar');
messages[23] = new Array('images/icons/custom_graphics.gif',messageTwentyfour,'#DDECFF','Custom Graphics');
messages[24] = new Array('images/icons/global_roaming.gif',messageTwentyfive,'#DDECFF','Global Roaming');
messages[25] = new Array('images/icons/mp3.gif',messageTwentysix,'#DDECFF','MP3');
messages[26] = new Array('images/icons/multiple_languages.gif',messageTwentyseven,'#DDECFF','Multiple Languages');
messages[27] = new Array('images/icons/picture_id.gif',messageTwentyeight,'#DDECFF','Picture ID');
messages[28] = new Array('images/icons/pushtotalk.gif',messageTwentynine,'#DDECFF','Push To Talk');
messages[29] = new Array('images/icons/ringer_id.gif',messageThirty,'#DDECFF','Ringer ID');
messages[30] = new Array('images/icons/ringer_profiles.gif',messageThirtyone,'#DDECFF','Ringer Profiles');
messages[31] = new Array('images/icons/voice_dialing.gif',messageThirtytwo,'#DDECFF','Voice Dialing');
messages[32] = new Array('images/icons/wifi.gif',messageThirtythree,'#DDECFF','Wifi');

messages[33] = new Array('images/icons/camera.gif',messageThirtyfour,'#DDECFF','Camera');
messages[34] = new Array('images/icons/lightweight.gif',messageThirtyfive,'#DDECFF','Lightweight');
messages[35] = new Array('images/icons/voice_memo.gif',messageThirtysix,'#DDECFF','Voice Memo');
messages[36] = new Array('images/icons/text_messaging_templates.gif',messageThirtyseven,'#DDECFF','Text Messaging Template');
messages[37] = new Array('images/icons/flashlight.gif',messageThirtyeight,'#DDECFF','Flashlight');
messages[38] = new Array('images/icons/predictive_text.gif',messageThirtynine,'#DDECFF','Predictive Text');

messages[39] = new Array('images/icons/voice_dialing.gif',messageFourty,'#DDECFF','Voice Plans');

messages[40] = new Array('images/icons/side_keys.gif',messageFourtyone,'#DDECFF','Account Info');
messages[41] = new Array('images/icons/text_messaging_templates.gif',messageFourtytwo,'#DDECFF','Messaging Plans');
messages[42] = new Array('images/icons/data_capable.gif',messageFourtythree,'#DDECFF','Data Plans');
messages[43] = new Array('images/icons/voice_dialing.gif',messageFourtyfour,'#DDECFF','Equipment Protection (Insurance)');

messages[44] = new Array('images/icons/text_messaging_templates.gif',voiceplan1,'#DDECFF','Basic Plus');
messages[45] = new Array('images/icons/text_messaging_templates.gif',voiceplan2,'#DDECFF','Individual Value');
messages[46] = new Array('images/icons/text_messaging_templates.gif',voiceplan3,'#DDECFF','Individual Prime');
messages[47] = new Array('images/icons/text_messaging_templates.gif',voiceplan4,'#DDECFF','Individual Plus');
messages[48] = new Array('images/icons/text_messaging_templates.gif',voiceplan5,'#DDECFF','Individual Max');
messages[49] = new Array('images/icons/text_messaging_templates.gif',voiceplan6,'#DDECFF','Individual Ultra');



////////////////////  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="left" width="100%"><img src="';
var midStr = '" border="0">';
var iTitle = '</td></tr><tr><td valign="top">';
var endStr = '</td></tr></table>';

////////////////////////////////////////////////////////////
//  initTip	- initialization for tooltip.
//		Global variables for tooltip. 
//		Set styles
//		Set up mousemove capture if tipFollowMouse set true.
////////////////////////////////////////////////////////////
var tooltip, tipcss;
function initTip() {
	if (nodyn) return;
	tooltip = (ie4)? document.all['tipDiv']: (ie5||ns5)? document.getElementById('tipDiv'): null;
	tipcss = 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) {
		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 (ie4||ie5||ns5) {
		var tip = startStr + messages[num][0] + midStr + ' <b>' + messages[num][3] +'</b>' + iTitle + '<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) {
	standardbody=(document.compatMode=="CSS1Compat")? document.documentElement : document.body //create reference to common "body" across doctypes
	mouseX = (ns5)? evt.pageX: window.event.clientX + standardbody.scrollLeft;
	mouseY = (ns5)? evt.pageY: window.event.clientY + standardbody.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) {
		standardbody=(document.compatMode=="CSS1Compat")? document.documentElement : document.body
		mouseX = (ns5)? evt.pageX: window.event.clientX + standardbody.scrollLeft;
		mouseY = (ns5)? evt.pageY: window.event.clientY + standardbody.scrollTop;
	}
	// tooltip width and height
	var tpWd = (ie4||ie5)? tooltip.clientWidth: tooltip.offsetWidth;
	var tpHt = (ie4||ie5)? tooltip.clientHeight: tooltip.offsetHeight;
	// document area in view (subtract scrollbar width for ns)
	var winWd = (ns5)? window.innerWidth-20+window.pageXOffset: standardbody.clientWidth+standardbody.scrollLeft;
	var winHt = (ns5)? window.innerHeight-20+window.pageYOffset: standardbody.clientHeight+standardbody.scrollTop;
	// check mouse position against tip and window dimensions
	// and position the tooltip 
	if ((mouseX+offX+tpWd)>winWd) 
		tipcss.left = mouseX-(tpWd+offX)+"px";
	else tipcss.left = mouseX+offX+"px";
	if ((mouseY+offY+tpHt)>winHt) 
		tipcss.top = winHt-(tpHt+offY)+"px";
	else tipcss.top = mouseY+offY+"px";
	if (!tipFollowMouse) t1=setTimeout("tipcss.visibility='visible'",100);
}

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

document.write('<div id="tipDiv" style="position:absolute; visibility:hidden; z-index:100"></div>')
