/***********************************************
* 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
***********************************************/
// Title of tooltip
//
var tooltiptitleweight = "bold"
var tooltiptitlefontfamily = "arial"
var tooltiptitlefontsize = "8pt"
//
// Title of text
//
var tooltiptextweight = "normal"
var tooltiptextfontfamily = "arial"
var tooltiptextfontsize = "8pt"

var tooltipdata = new Array()
//
// tooltipdata (Title on tooltip, 
//              Explanation, 
//              Text colour of title, 
//              Background colour of title
//              Text colour of explanation, 
//              Background colour of explanation,
//              Width of popup)
//
// Vision
//
tooltipdata["Vision"] = new Array(
"Vision", 
"This step focuses on identifying the stakeholders' vision and aspirations for the catchment and its waterways. This then allows more specific environmental management goals and water quality objectives/targets to be specified based on the aspirational values and uses of the waterways.", 
//"<b>Databases:</b><br /> Halophila ovalis; Halophila spinulosa; Thalassia hemprichii; Syringodium isoetifolium, Halodule uninervis; Cymodocea serrulata; Zostera mulleri; Udotea; Caulerpa; Rhizoclonium; Ulva; Lyngbya; Padina; Hincksia and Hydroclathrus.  <br /><b>Owners:</b> <br />Environmental Earth Observation (EEO) Group, CSIRO Land and Water; <br />Centre for Remote Sensing and Spatial Information Science School of Geography, Planning and Environmental Management, The University of Queensland Brisbane, QLD, 4072, Australia; (Chris Roelfsema and Stuart Phinn).",
"#ffffff", 
"#4a9ed6", 
"#000066", 
"#ffffff",
400
)
tooltipdata["Understanding"] = new Array(
"Current understanding", 
"Documenting the current knowledge and understanding of your catchment and waterways is fundamental to all components of the water quality management framework. Information from stakeholders is pooled with on-going research. This helps define the broader context of the problem or planning opportunity. Understanding of the natural and social systems is refined and knowledge gaps are identified. This knowledge is continually updated by new information (adaptive management). For example, the detailed quantitative assessments in the 'planning', 'implementation' and 'monitoring and review' components of the framework will eventualy become part of current understanding.", 
"#ffffff", 
"#845994", 
"#000066", 
"#ffffff",
400
)
tooltipdata["Monitoring"] = new Array(
"Monitoring and review", 
"Following the decision to implement a water quality management strategy, it is essential to monitor and review the effects of the strategy against the agreed environmental values, management goals and water quality objectives.", 
"#ffffff", 
"#f79e42", 
"#000066", 
"#ffffff",
400
)
tooltipdata["Planning"] = new Array(
"Planning", 
"Planning is where management actions to address the 'causes' of water pollution are devised, and social, economic and ecological impacts are evaluated to negotiate and define a preferred strategy. A range of impact assessment techniques are used to asess impacts and prioritise solutions.", 
"#ffffff", 
"#73b621", 
"#000066", 
"#ffffff",
400
)
tooltipdata["Implementation"] = new Array(
"Implementation", 
"This step focuses on the implementation of the agreed necessary actions with the assignment of agreed roles and responsibilities.", 
"#000000", 
"#ffef6b", 
"#000066", 
"#ffffff",
400
)
tooltipdata["People"] = new Array(
"People and processes", 
"The people who have an impact on the quality of your waterway and/or use the waterways, and the processes for involving them, must underpin all steps in the water quality management process. Good communication is fostered between scientists, managers and other resource stakeholders, and sharing of information helps build the knowledge of all stakeholders. This allows options for management solutions to be scoped, agreed and more easily implemented.", 
"#ffffff", 
"#bd2418", 
"#000066", 
"#ffffff",
400
)

// QLD
tooltipdata["Green Island"] = new Array(
"Green Island", 
"<b>Databases:</b><br /> Halophila ovalis; Thalassia hemprichii; Syringodium isoetifolium and Halodule uninervis. <br /><b>Owners:</b> <br />Environmental Earth Observation (EEO) Group, CSIRO Land and Water; <br />Centre for Remote Sensing and Spatial Information Science School of Geography, Planning and Environmental Management, The University of Queensland Brisbane, QLD, 4072, Australia; (Chris Roelfsema and Stuart Phinn).",
"#ffffff", 
"#256a0a", 
"#000000", 
"#ffffff",
300
)

tooltipdata["Magnetic Island/Townsville"] = new Array(
"Magnetic Island/Townsville", 
"<b>Databases:</b><br /> Halophila ovalis; Thalassia hemprichii; Syringodium isoetifolium; Halodule uninervis and Cymodocea serrulata. <br /><b>Owners:</b> <br />Environmental Earth Observation (EEO) Group, CSIRO Land and Water; <br />Centre for Remote Sensing and Spatial Information Science School of Geography, Planning and Environmental Management, The University of Queensland Brisbane, QLD, 4072, Australia; (Chris Roelfsema and Stuart Phinn).",
"#ffffff", 
"#256a0a", 
"#000066", 
"#ffffff",
300
)

tooltipdata["Moreton Bay"] = new Array(
"Moreton Bay", 
"<b>Databases:</b><br /> Halophila ovalis; Halophila spinulosa; Thalassia hemprichii; Syringodium isoetifolium; Halodule uninervis; Cymodocea serrulata; Zostera mulleri; Udotea; Caulerpa; Rhizoclonium; Ulva; Lyngbya; Padina; Hincksia and Hydroclathrus.  <br /><b>Owners:</b> <br />Environmental Earth Observation (EEO) Group, CSIRO Land and Water; <br />Centre for Remote Sensing and Spatial Information Science School of Geography, Planning and Environmental Management, The University of Queensland Brisbane, QLD, 4072, Australia; (Chris Roelfsema and Stuart Phinn).",
"#ffffff", 
"#256a0a", 
"#000066", 
"#ffffff",
300
)

tooltipdata["Heron Island/Capricornia Group"] = new Array(
"Heron Island/Capricornia Group", 
"<b>Databases:</b><br /> Dictyopteris; Dictyota; Turbinaria; Ecklonia; Laurencia; Chlorodesmis and Caulerpa.  <br /><b>Owners:</b> <br />Environmental Earth Observation (EEO) Group, CSIRO Land and Water; <br />Centre for Remote Sensing and Spatial Information Science School of Geography, Planning and Environmental Management, The University of Queensland Brisbane, QLD, 4072, Australia; (Chris Roelfsema and Stuart Phinn).",
"#ffffff", 
"#256a0a", 
"#000066", 
"#ffffff",
300
)

tooltipdata["Lihou Reef"] = new Array(
"Lihou Reef", 
"<b>Databases:</b><br />Halimeda and Caulerpa.  <br /><b>Owners:</b> <br />Environmental Earth Observation (EEO) Group, CSIRO Land and Water.",
"#ffffff", 
"#256a0a", 
"#000066", 
"#ffffff",
300
)

tooltipdata["Coringa Herald Isles"] = new Array(
"Coringa Herald Isles", 
"<b>Databases:</b><br />Halimeda and Chlorodesmis.  <br /><b>Owners:</b> <br />Environmental Earth Observation (EEO) Group, CSIRO Land and Water; <br />Centre for Remote Sensing and Spatial Information Science School of Geography, Planning and Environmental Management, The University of Queensland Brisbane, QLD, 4072, Australia; (Chris Roelfsema and Stuart Phinn).",
"#ffffff", 
"#256a0a", 
"#000066", 
"#ffffff",
300
)
// VIC
tooltipdata["Port Phillip Bay"] = new Array(
"Port Phillip Bay", 
"<b>Databases:</b><br />Heterozostera tasmanicac; Ulva; Zonaria;  Caulerpa and Polysiphonia.  <br /><b>Owners:</b> <br />Environmental Earth Observation (EEO) Group, CSIRO Land and Water.",
"#ffffff", 
"#256a0a", 
"#000066", 
"#ffffff",
300
)
// VIC
tooltipdata["Boags Rocks"] = new Array(
"Boags Rocks", 
"<b>Databases:</b><br />Bryopsis; Ulva; Durvillaea; Hormosira;  Caulerpa; Turbinaria; Phyllospora and Scytothalia.  <br /><b>Owners:</b> <br />Environmental Earth Observation (EEO) Group, CSIRO Land and Water.",
"#ffffff", 
"#256a0a", 
"#000066", 
"#ffffff",
300
)

//WA
tooltipdata["Cockburn Sound"] = new Array(
"Cockburn Sound", 
"<b>Databases:</b><br />Halophila ovalis; Amphibolis griffithii; Posidonia australis; Posidonia coriacea;  Posidonia sinuosa and Heterozostera tasmanica.  <br /><b>Owners:</b> <br />Environmental Earth Observation (EEO) Group, CSIRO Land and Water.",
"#ffffff", 
"#256a0a", 
"#000066", 
"#ffffff",
300
)

tooltipdata["Ningaloo Reef"] = new Array(
"Ningaloo Reef", 
"<b>Databases:</b><br />Halimeda; Codiolum; Ulva; Hydroclathrus;  Sargassum and Turbinaria.  <br /><b>Owners:</b> <br />School of Environmental Science, Murdoch University, South Street, Murdoch Western Australia 6150; Contact: Halina Kobryn.",
"#ffffff", 
"#256a0a", 
"#000066", 
"#ffffff",
300
)

//SA
tooltipdata["Adelaide Coastal Waters"] = new Array(
"Adelaide Coastal Waters", 
"<b>Databases:</b><br />Halophila ovalis; Amphibolis antarctica; Posidonia australis; Posidonia sinuosa; Heterozostera tasmanica; Zostera mulleri; Ulva; Dictyota; Scaberia; Gelidium and Sargassum.  <br /><b>Owners:</b> <br />Environmental Earth Observation (EEO) Group, CSIRO Land and Water.",
"#ffffff", 
"#256a0a", 
"#000066", 
"#ffffff",
300
)

//NSW
tooltipdata["Sussex Inlet"] = new Array(
"Sussex Inlet", 
"<b>Databases:</b><br />Halophila ovalis; Ruppia; Posidonia australis; Zostera capricorni (aka Zostera muelleri ssp capricorni); Colpomenia; Cystoseira; Phyllophora; Hormosira; Ecklonia and Caulerpa.  <br /><b>Owners:</b> <br />Sue Fyfe (formerly University of Wolllongong now DEWHA).",
"#ffffff", 
"#256a0a",  
"#000066", 
"#ffffff",
300
)

tooltipdata["StGeorges Basin/Lake Illawara"] = new Array(
"StGeorges Basin/Lake Illawara", 
"<b>Databases:</b><br />Halophila ovalis; Posidonia australis; Zostera capricorni (aka Zostera muelleri ssp capricorni) and Caulerpa.  <br /><b>Owners:</b> <br />Sue Fyfe (formerly University of Wolllongong now DEWHA).",
"#ffffff", 
"#256a0a", 
"#000066", 
"#ffffff",
300
)

tooltipdata["Port Hacking"] = new Array(
"Port Hacking", 
"<b>Databases:</b><br />Halophila ovalis; Posidonia australis; Zostera capricorni (aka Zostera muelleri ssp capricorni) and Caulerpa.  <br /><b>Owners:</b> <br />Sue Fyfe (formerly University of Wolllongong now DEWHA).",
"#ffffff", 
"#256a0a", 
"#000066", 
"#ffffff",
300
)

tooltipdata["Pittwater"] = new Array(
"Pittwater", 
"<b>Databases:</b><br />Posidonia australis; Zostera capricorni (aka Zostera muelleri ssp capricorni) and Caulerpa.  <br /><b>Owners:</b> <br />Sue Fyfe (formerly University of Wolllongong now DEWHA).",
"#ffffff", 
"#256a0a", 
"#000066", 
"#ffffff",
300
)

tooltipdata["Wallis Lake"] = new Array(
"Wallis Lake", 
"<b>Databases:</b><br />Halophila ovalis; Ruppia; Posidonia australis; Zostera capricorni (aka Zostera muelleri ssp capricorni); Gracilaria; Cystoseira  and Turbinaria.  <br /><b>Owners:</b> <br />Environmental Earth Observation (EEO) Group, CSIRO Land and Water.",
"#ffffff", 
"#256a0a", 
"#000066", 
"#ffffff",
400
)

tooltipdata["Lake Berringer/Lake Conjola"] = new Array(
"Lake Berringer/Lake Conjola", 
"<b>Databases:</b><br />Zostera capricorni (aka Zostera muelleri ssp capricorni) and Caulerpa.  <br /><b>Owners:</b> <br />Environmental Earth Observation (EEO) Group, CSIRO Land and Water.",
"#ffffff", 
"#256a0a", 
"#000066", 
"#ffffff",
300
)

tooltipdata["Keppel Islands"] = new Array(
"Keppel Islands ", 
"<b>Databases:</b> Coral<br /> <b>Owners:</b> Centre for Remote Sensing and Spatial Information Science School of Geography, Planning and Environmental Management, The University of Queensland Brisbane, QLD, 4072, Australia (Chris Roelfsema and Stuart Phinn).<br />.",
"#ffffff", 
"#dd1717", 
"#000066", 
"#ffffff",
300
)

tooltipdata["Triluck"] = new Array(
"Triluck", 
"<b>Databases:</b><br /> <br /><b>Owners:</b> <br />.",
"#ffffff", 
"#167db8", 
"#000066", 
"#ffffff",
300
)

tooltipdata["Crocodile waterhole"] = new Array(
"Crocodile waterhole", 
"<b>Databases:</b><br /> <br /><b>Owners:</b> <br />.",
"#ffffff", 
"#167db8", 
"#000066", 
"#ffffff",
300
)
tooltipdata["Highbury waterhole"] = new Array(
"Highbury waterhole", 
"<b>Databases:</b><br /> <br /><b>Owners:</b> <br />.",
"#ffffff", 
"#167db8", 
"#000066", 
"#ffffff",
300
)
tooltipdata["Palmer River waterhole"] = new Array(
"Palmer River waterhole", 
"<b>Databases:</b><br /> <br /><b>Owners:</b> <br />.",
"#ffffff", 
"#167db8", 
"#000066", 
"#ffffff",
300
)
tooltipdata["Ten Mile Lagoon"] = new Array(
"Ten Mile Lagoon", 
"<b>Databases:</b><br /> <br /><b>Owners:</b> <br />.",
"#ffffff", 
"#167db8", 
"#000066", 
"#ffffff",
300
)
tooltipdata["Mission Creek"] = new Array(
"Mission Creek", 
"<b>Databases:</b><br /> <br /><b>Owners:</b> <br />.",
"#ffffff", 
"#167db8", 
"#000066", 
"#ffffff",
300
)

tooltipdata["Cairo Lagoon"] = new Array(
"Cairo Lagoon", 
"<b>Databases:</b><br /> <br /><b>Owners:</b> <br />.",
"#ffffff", 
"#167db8", 
"#000066", 
"#ffffff",
300
)

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)
function ddrivetip(whichone){
if (ns6||ie){
//if (typeof thewidth!="undefined") tipobj.style.width=thewidth+"px"
//if (typeof thecolor!="undefined" && thecolor!="") tipobj.style.backgroundColor=thecolor

tipobj.style.width=tooltipdata[whichone][6]+"px";
			ContentInfo = "<table width=100% cellspacing='0' cellpadding='3'>"+
								"<tr>"+
								"<td style='font-weight: " + 
								tooltiptitleweight + 
								";font-family: " + tooltiptitlefontfamily + 
								";font-size: " + 
								tooltiptitlefontsize + 
								";color: " + 
								tooltipdata[whichone][2] + 
								";background-color: " + 
								tooltipdata[whichone][3] + 
								"'>" + 
								tooltipdata[whichone][0] + 
								"</td>"+
								"</tr>"+
	 							"<tr>"+
								"<td style='font-weight: " + 
								tooltiptextweight + 
								";font-family: " + 
								tooltiptextfontfamily + 
								";font-size: " + 
								tooltiptextfontsize + 
								";color: " + 
								tooltipdata[whichone][4] + 
								";background-color: " + 
								tooltipdata[whichone][5] + "'>" + 
								tooltipdata[whichone][1] + 
								"</td>" +
								"</tr>";
	tipobj.innerHTML=ContentInfo;
//tipobj.innerHTML=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"
}
}

function hideddrivetip(){
if (ns6||ie){
enabletip=false
tipobj.style.visibility="hidden"
tipobj.style.left="-1000px"
tipobj.style.backgroundColor=''
tipobj.style.width=''
}
}

document.onmousemove=positiontip
