/***********************************************
* Cool DHTML tooltip script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/
// tooltip content goes here (description)
var messages = new Array();
// multi-dimensional arrays containing: // image and text for tooltip
// optional: bgColor and color to be sent to tooltip
messages['width_map'] 			= 'The width of the map. The map value width will change to this value immediately, the height is the same as the width.';
messages['width_photograph'] 	= 'The width of the photograph. This is the size of the largest edge, the aspect ratio is preserved.<BR /><BR />As a rough guide we would suggest using a value which is about half the width of your monitor, to allow space for the descriptions of the photographs.';
messages['altitude_profile_height'] = 'The altitude profile width is the same as the width of the map. If this value is changed the profile has to be re created. If the map width is changed you may want to re create the profiles to suit.';
messages['altitude_min_height'] = 'The minimum height on the altitide profile.<br /><br /> So if you are on a plateau 1100m above sea level then setting this to 1000 will make the Y axis of the graph start at 1000.<br /><br />The units are either meters or feet, depending on your settings.<br /><br />Should this option be changed then all the GPX or OziExplorer files will need to be re processed.';
messages['spike_removal'] 		= 'A GPS can create spikes in the track, i.e. a spurious entry that implies that the speed has increased dramatically, so specify the maximum speed for the activity you are doing.';
messages['max_speed'] 			= 'The maximum speed, speeds above this are ignored when evaluating the distance.';
messages['max_vertical_speed'] = 'The maximum vertical speed, used to evaluate the ascent.';
messages['units'] 				= 'Hybrid uses metric as the basic unit but displays some distances in miles as well.<BR /><BR />Changing this means that all the GPX and/or OziExplorer files will need to be reprocessed to create the map and altitude profile data.';
messages['email'] 				= 'Your email address, a confirmation email will be sent to you before this is updated.';
messages['site_description'] 	= 'This is used as the title of your site in the search index page';
messages['country'] 				= 'The country in which most of the tracks are, it is used so that people can easily search for your tracks by using the country.';
messages['conversion'] 			= 'Converts the LAT/LONG values to a local co-ordinate system, or to display the LAT/LONG positions in Degrees Minutes and Seconds instead of decimal values. <BR /><BR />More options will be added, depending on the feedback we get. <BR /><BR />Should this option be changed then all the GPX or OziExplorer files will need to be re processed.';
messages['user'] 					= 'This is your name, it is only used to display your name when you have logged in.';
messages['pass'] 					= 'Password, for security reasons we can not tell you what your password is if you forget, all we can do is issue you with a new one, which is emailed to you. You can then change it to a more memorable one.';
messages['site'] 					= 'This is <B>IMPORTANT</B>. It is the name of your site, this is the name your friends will use to access your maps and photographs. So if you enter \'ted\' then to view your pages your friends would type:-<BR /><BR /><a href="http://www.gpssharing.com/map/ted">http://www.gpssharing.com/map/ted</a>';
messages['user'] 					= 'This is your name, it is only used to display your name when you have logged in.';
messages['upload'] 				= 'Select a file, from your computer, to upload to the server.';
messages['replace'] 				= 'If this is checked then if a file of this name exists on the server, it will be overwritten.';
messages['multiple'] 			= 'If checked then several files can be uploaded to the server, one at a time.';
messages['file'] 					= 'This is the file that has been processed, you may type in the name of another file by hand or use the process option instead.';
messages['download'] 			= 'If checked then the track file can be downloaded by any visitor to the web site.<BR /><BR />This is only available on the professional accounts.';
messages['activity'] 			= 'To allow people to find your site please specify the main activity your site is for.';

messages['info_add'] 			= 'Free sites will display adverts when you log in.';
messages['info_band']			= 'This is the monthly bandwidth allowance for your site.';
messages['info_batch'] 			= "Allows uploading of GeoTagged photographs, by FTP, for processing, rather than individually.";
messages['info_gps_file_size']= 'The size of the GPX or OziExplorer GPS file.<BR><BR>Typically the file will be around 150KB if the GPS is on defualt and is logging data for 8 hours.';
messages['info_keep_tracks'] 	= 'Only the free version does not allow this.<br /><br />We reserve the right to delete files that are over 7 days old.<br /><br />Once these files are processed they are no longer required.';
messages['info_no_tracks'] 	= 'The maximum number of tracks that can be saved.<br /<br />If this number is exceeded no more files can be uploaded, you may either upgrade your account or delete some old tracks, to make space for the new ones.';
messages['info_photographs'] 	= 'Apart from the free account, all accounts can store photographs.';
messages['info_photo_size'] 	= 'The maximum size of a photograph that can be uploaded. <br /><br />To get around this restriction simply re size your files before uploading them, using a graphics program such as XnView, see the help pages.';
messages['info_price'] 			= 'The cost, per year in Sterling. <br /><br />At the bottom of the page is a conversion table, this table is updated daily, using data from the Central European Bank.';
messages['info_private'] 		= 'Allows you to make your site private.<br /><br >Only users that you give a password to can view your site.';
messages['info_route_desc'] 	= 'All accounts allow you to write a description about the track.';
messages['info_track_download'] = 'This allows you to share your track with others, if you want to.';
messages['info_web_space'] 	= 'The amount of web space the account has.';

messages['privacy'] 					= 'This option is only available on the Super Pro account.<br /><br />It allows you to restrict who can view your site.';
messages['privacy_password_text']= 'The password for the users who can view your site.<br /><br />They login by using this password and the name of your site, as the Email/Site name in the Sign in box.<br /><br />The site name is displayed just above this form.';

messages['use_photo_gps'] = "If selected then the photographs are checked for GeoTag (GPS) data. This enables the photographs to be automatically positioned on the track.";
messages['geotag_radius'] = "This is a theoretical radius around the point which photographs were taken, all photographs within this radius will be assumed to have been taken at one location.";

var offsetxpoint=-60 //Customize x offset of tooltip
var offsetypoint=20 //Customize y offset of tooltip
var ie=document.all
var ns6=document.getElementById && !document.all
var enabletip=false
if (ie||ns6)
	var tipobj=document.all? document.all["dhtmltooltip"] : document.getElementById? document.getElementById("dhtmltooltip") : ""
	
function ietruebody()
{
	return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}
function ddrivetip(thetext, thecolor, thewidth)
{
	if (ns6||ie)
	{
	if (typeof thewidth!="undefined") tipobj.style.width=thewidth+"px"
	if (typeof thecolor!="undefined" && thecolor!="") tipobj.style.backgroundColor=thecolor
		//tipobj.innerHTML=thetext
	tipobj.innerHTML=messages[thetext]
	enabletip=true
	return false
	}
}
function positiontip(e)
{
	if (enabletip)
		{
		var curX=(ns6)?e.pageX : event.clientX+ietruebody().scrollLeft;
		var curY=(ns6)?e.pageY : event.clientY+ietruebody().scrollTop;
			//Find out how close the mouse is to the corner of the window
		var rightedge=ie&&!window.opera? ietruebody().clientWidth-event.clientX-offsetxpoint : window.innerWidth-e.clientX-offsetxpoint-20
		var bottomedge=ie&&!window.opera? ietruebody().clientHeight-event.clientY-offsetypoint : window.innerHeight-e.clientY-offsetypoint-20
		var leftedge=(offsetxpoint<0)? offsetxpoint*(-1) : -1000
			//if the horizontal distance isn't enough to accomodate the width of the context menu
		if (rightedge<tipobj.offsetWidth)
			//move the horizontal position of the menu to the left by it's width
			tipobj.style.left=ie? ietruebody().scrollLeft+event.clientX-tipobj.offsetWidth+"px" : window.pageXOffset+e.clientX-tipobj.offsetWidth+"px"
		else if (curX<leftedge)
			tipobj.style.left="5px"
		else
			//position the horizontal position of the menu where the mouse is positioned
		tipobj.style.left=curX+offsetxpoint+"px"
		//same concept with the vertical position
		if (bottomedge<tipobj.offsetHeight)
			tipobj.style.top=ie? ietruebody().scrollTop+event.clientY-tipobj.offsetHeight-offsetypoint+"px" : window.pageYOffset+e.clientY-tipobj.offsetHeight-offsetypoint+"px"
		else
			tipobj.style.top=curY+offsetypoint+"px"
			
		tipobj.style.visibility="visible"
		tipobj.style.zIndex=100;
		}
}
function hideddrivetip()
{
	if (ns6||ie)
		{
		enabletip=false
		tipobj.style.visibility="hidden"
		tipobj.style.left="-1000px"
		tipobj.style.backgroundColor=''
		tipobj.style.width=''
		}
}
document.onmousemove=positiontip

