/***********************************************
* Cool DHTML tooltip script II- © 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
***********************************************/

messages = new Array();
messages[0] = new Array('DCNET Site 001 (NOAA Hoover, Washington, DC)','wrfdcnetDC001',38.893703,-77.032483,0);
messages[1] = new Array('DCNET Site 002 (Hoover Two, Washington, DC)','wrfdcnetDC002',38.9216640,-77.0206630,0);
messages[2] = new Array('DCNET Site 003 (National Acad Science, Washington, DC)','wrfdcnetDC003',38.8930490,-77.0478180,0);
messages[3] = new Array('DCNET Site 004 (NOAA Silver Spring, Washington, DC)','wrfdcnetDC004',38.9923780,-77.0302840,0);
messages[4] = new Array('DCNET Site 005 (National Arboretum, Washington, DC)','wrfdcnetDC005',38.9162890,-76.9642470,0)
messages[5] = new Array('DCNET Site 006 (DOE Forrestal, Washington, DC)','wrfdcnetDC006',38.8866000,-77.0250700,0)
messages[6] = new Array('DCNET Site 007 (NY EML, New York, NY)','wrfdcnetDC007',40.7259600,-74.0076000,0);
messages[7] = new Array('DCNET Site 008 (Frank Reeves Municipal Center, Washington, DC)','wrfdcnetDC008',38.9173650,-77.0325660,0);
messages[8] = new Array('DCNET Site 009 (Navy Annex, Washington, DC)','wrfdcnetDC009',38.8683360,-77.0678860,0);
messages[9] = new Array('DCNET Site 010 (Times Square, New York, NY)','wrfdcnetDC010',40.7603000,-73.9837000,0);
messages[10] = new Array('DCNET Site 011 (Naval Research Lab, Washington, DC)','wrfdcnetDC011',38.8211950,-77.0248070,0);
messages[11] = new Array('DCNET Site 012 (DC EMA 2, Washington, DC)','wrfdcnetDC012',38.8539870,-76.9953860,0);
messages[12] = new Array('DCNET Site 013 (RFK Stadium, Washington, DC)','wrfdcnetDC013',38.8894970,-76.9728050,0);
messages[13] = new Array('DCNET Site 014 (Ft. A. P. Hill, Bowling Green, VA)','wrfdcnetDC014',38.0716210,-77.3271850,0);
messages[14] = new Array('DCNET Site 016 (West Wortham Elementary School, Saucier, MS)','wrfdcnetDC016',30.5667800,-89.1807940,0);
messages[15] = new Array('DCNET Site 017 (Harrison Central High School, Gulfport, MS)','wrfdcnetDC017',30.5150170,-89.1027090,0);
messages[16] = new Array('DCNET Site 018 (National Education Association, Washington, DC)','wrfdcnetDC018',38.9059260,-77.0362140,0);
messages[17] = new Array('DCNET Site 019 (WTOP, Washington, DC)','wrfdcnetDC019',38.9358020,-77.0738700,0);
messages[18] = new Array('DCNET Site 020 (Howard University, Washington, DC)','wrfdcnetDC020',38.9217070,-77.0208670,0);
messages[19] = new Array('DCNET Site 021 (American Geophysical Union, Washington, DC)','wrfdcnetDC021',38.9146870,-77.0452280,0);
messages[20] = new Array('DCNET Site 022 (CSPAN South, Washington, DC)','wrfdcnetDC022',38.9629450,-77.0262770,0);
messages[21] = new Array('DCNET Site 023 (CSPAN North, Washington, DC)','wrfdcnetDC023',38.9629450,-77.0262770,0);
messages[22] = new Array('RAMAN Site 001 (NOAA/ATDD, Oak Ridge, TN)','wrframanMET001',36.0031,-84.2492,2);
messages[23] = new Array('RAMAN Site 003 (Oak Ridge Municipal, Oak Ridge, TN)','wrframanMET003',36.0109,-84.2598,2);
messages[24] = new Array('RAMAN Site 110 (Oak Ridge Water Treatment Plant, Oak Ridge, TN)','wrframanMET110',35.9961,-84.2475,2);
messages[25] = new Array('RAMAN Site 112 (Lenoir City Firetower, Lenoir City, TN)','wrframanMET112',35.8403,-84.3310,2);
messages[26] = new Array('RAMAN Site 113 (Bluebird Ridge Firetower, Heiskell, TN)','wrframanMET113',36.1401,-84.0637,2);
messages[27] = new Array('RAMAN Site 114 (Sharps Ridge Firetower, Knoxville, TN)','wrframanMET114',36.0019,-83.9447,2);
messages[28] = new Array('RAMAN Site 115 (Morristown NWS, Morristown, TN)','wrframanMET115',36.1682,-83.4027,2);
messages[29] = new Array('RAMAN Site 116 (Sweetwater Firetower, Madisonville, TN)','wrframanMET116',35.5765,-84.3788,2);
messages[30] = new Array('RAMAN Site 117 (Pone Knob, Decatur, TN)','wrframanMET117',35.5296,-84.7187,2);
messages[31] = new Array('RAMAN Site 119 (Walker Branch Tower, Oak Ridge, TN)','wrframanMET119',35.9587,-84.2875,2);
messages[32] = new Array('RAMAN Site 220 (Powell Mountain, Springdale, TN)','wrframanMET220',36.4376,-83.5050,2);
messages[33] = new Array('RAMAN Site 222 (Purchase Knob, Cove Creek, NC)','wrframanMET222',35.5869,-83.0731,2);
messages[34] = new Array('RAMAN Site 223 (Cove Mountain Firetower, Gatlinburg, TN)','wrframanMET223',35.6966,-83.6098,2);
messages[35] = new Array('RAMAN Site 225 (English Mountain Firetower, Newport, TN)','wrframanMET225',35.9011,-83.2979,2);
messages[36] = new Array('RAMAN Site 226 (Mt. Roosevelt, Rockwood, TN)','wrframanMET226',35.8669,-84.7142,2);
messages[37] = new Array('RAMAN Site 227 (Walnut Mountain, LaFollette, TN)','wrframanMET227',36.4097,-84.1757,2);

var offsetfromcursorX=12 //Customize x offset of tooltip
var offsetfromcursorY=10 //Customize y offset of tooltip

var offsetdivfrompointerX=10 //Customize x offset of tooltip DIV relative to pointer image
var offsetdivfrompointerY=14 //Customize y offset of tooltip DIV relative to pointer image. Tip: Set it to (height_of_pointer_image-1).

document.write('<div id="dhtmltooltip"></div>') //write out tooltip DIV
document.write('<img id="dhtmlpointer" src="images/arrow2.gif">') //write out pointer image

var ie=document.all
var ns6=document.getElementById && !document.all
var enabletip=false
if (ie||ns6)
var tipobj=document.all? document.all["dhtmltooltip"] : document.getElementById? document.getElementById("dhtmltooltip") : ""

var pointerobj=document.all? document.all["dhtmlpointer"] : document.getElementById? document.getElementById("dhtmlpointer") : ""

function ietruebody(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function ddrivetip(thetext, thewidth, thecolor){
if (ns6||ie){
if (typeof thewidth!="undefined") tipobj.style.width=thewidth+"px"
if (typeof thecolor!="undefined" && thecolor!="") tipobj.style.backgroundColor=thecolor
tipobj.innerHTML=thetext
enabletip=true
return false
}
}

function positiontip(e){
if (enabletip){
var nondefaultpos=false
var curX=(ns6)?e.pageX : event.clientX+ietruebody().scrollLeft;
var curY=(ns6)?e.pageY : event.clientY+ietruebody().scrollTop;
//Find out how close the mouse is to the corner of the window
var winwidth=ie&&!window.opera? ietruebody().clientWidth : window.innerWidth-20
var winheight=ie&&!window.opera? ietruebody().clientHeight : window.innerHeight-20

var rightedge=ie&&!window.opera? winwidth-event.clientX-offsetfromcursorX : winwidth-e.clientX-offsetfromcursorX
var bottomedge=ie&&!window.opera? winheight-event.clientY-offsetfromcursorY : winheight-e.clientY-offsetfromcursorY

var leftedge=(offsetfromcursorX<0)? offsetfromcursorX*(-1) : -1000

//if the horizontal distance isn't enough to accomodate the width of the context menu
if (rightedge<tipobj.offsetWidth){
//move the horizontal position of the menu to the left by it's width
tipobj.style.left=curX-tipobj.offsetWidth+"px"
nondefaultpos=true
}
else if (curX<leftedge)
tipobj.style.left="5px"
else{
//position the horizontal position of the menu where the mouse is positioned
tipobj.style.left=curX+offsetfromcursorX-offsetdivfrompointerX+"px"
pointerobj.style.left=curX+offsetfromcursorX+"px"
}

//same concept with the vertical position
if (bottomedge<tipobj.offsetHeight){
tipobj.style.top=curY-tipobj.offsetHeight-offsetfromcursorY+"px"
nondefaultpos=true
}
else{
tipobj.style.top=curY+offsetfromcursorY+offsetdivfrompointerY+"px"
pointerobj.style.top=curY+offsetfromcursorY+"px"
}
tipobj.style.visibility="visible"
if (!nondefaultpos)
pointerobj.style.visibility="visible"
else
pointerobj.style.visibility="hidden"
}
}

function hideddrivetip(){
if (ns6||ie){
enabletip=false
tipobj.style.visibility="hidden"
pointerobj.style.visibility="hidden"
tipobj.style.left="-1000px"
tipobj.style.backgroundColor=''
tipobj.style.width=''
}
}

document.onmousemove=positiontip