/***********************************************
* 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
***********************************************/

//This is tool tip strings for customer and address information
var COMPANY_TIP = "If this quote is for a business, please enter the trading name.";
var EMAIL_TIP			= "Your quote will be sent via email, you must enter a valid email address if you wish to receive a quote.";
var PHONE_TIP			= "You must enter at least one phone number.";
var ADDR_TIP 			= "Installation address is the location where the solar panels will be installed.";
var STATE_TIP			= "You must choose a state in order to populate the town / suburb list. The town list may take a few moments to load.";
var SUBURB_TIP		= "Choosing the correct town will load the historical climate data so you can see how much power your system will produce. If you town is not on the list, choose the closest town, or contact us to add your town to the list.";
var POSTCODE_TIP= "Make sure you enter the correct postcode, your postcode will determine the amount of rebate you can claim.";

//This is tool tip strings for Solar Grid Connect information
var PANEL_TIP			= "Choose the type of panel you would like to use. They are arranged from least expensive to most expensive (left to right). For more information about the panels please click the links for more information.";
var PANEL_NUM_TIP= "Choose the number of panels you would like. The amount of roof space required and the size of the system will be displayed below in the system data summary. You can adjust this value until you find a combination that meets your power and space requirements. A standard system is around 1.5kW - which, for example, equals 9 Solarfun panels.";
var INV_LOC_TIP 	= "An inverter converts the energy from the solar panels (DC electricity) into 240V AC power, suitable for use in the home. Please choose where you would like to place the inverter. Outdoor inverters can be more expensive to install, but can be more desirable as some inverters will emit humming sound when operating.";
var INVERTER_TIP	= "Choose the type of inverter you would like to use. The inverter type will depend on the number and type of panels chosen, and whether the inverter will be mounted outdoors. Inverter efficiency will displayed below in the system data summary. Inverter efficiency will affect the output of your system.";


//This is tool tip strings for Solar Grid Connect SUMMARY information
var SGC_SUMMARY_TIP="This table shows a summary of expected outputs for the system you selected in your town.";
var POWER_OUTPUT_TIP = "This is the rated power output of the panels you have chosen.";
var ROOF_SPACE_TIP = "This is the minimum of unshaded roof space (or ground space) that is required to installed the panels you have chose.";
var PEAK_EFF_TIP 		= "This is the peak efficiency of the inverter you have chosen, the higher the efficiency the more power your system will produce.";
var AVG_PROD_TIP = "This is the average expected production for the system you have chosen during the peak of summer in the installation town you have chosen.";
var ANNUAL_PROD_TIP = "This is the average annual production for the system you have chosen in the installation town you have chosen.";
var AVG_PROD_WINTER_TIP = "This is the average expected production for the system you have chosen during the middle of winter in the installation town you have chosen.";
var ANNUAL_OUTPUT_TIP = "This is the expected annual power output of your system in the installation town you have chosen.";
var CO2_TIP = "This is the expected number of kilograms (kg) of CO2 your system will offset in one year.";
var AVG_POWER_OUTPUT_TIP = "This is the average monthly power output of your system in the installation town you have chosen.";
var CO2_MONTH_TIP = "This is the expected number of kilograms (kg) of CO2 your system will offset in one month.";


//This is tool tip strings for SITE INFORMATION information
var ROOF_ANGLE_TIP = "A north facing pitched roof is ideal. East or west facing roofs will also work, but we will not install on south facing roofs. Flat roofs will incur higher installation costs during to extra mounting rails.";
var ROOF_TYPE_TIP = "Choose the your roof type.";
var WINDY_TIP = "High wind areas will require extra mounting.";

var ROOF_INS_TIP = "If you have an electric hot water system, then you are likely eligible for the $1600 Federal Government Energy Efficient Homes Solar Hot Water/Insulation Rebate. All or part of this rebate may only be claimed once.";
var NUM_PEOPLE_TIP = "How many people does the hot water system cater for on average";
var SHW_SYS_SIZE_TIP = "It’s best to size your solar hot water system to match the size to your current unit";
var SWH_RUN_OUT_TIP = "If you are currently running out of hot water, we will look at upsizing your solar system to make the most of the Sun’s energy to deliver required hot water volumes.";
var SWH_AGE_TIP = "If you’re existing hot water unit is more than 7 years old, it will likely be past the original warranty period and now is the time to consider having it replaced";
var ROOF_ORIEN_TIP = "It’s best to install solar hot water on a north facing roof. If you don’t have north access we will upsize the collector area to make the most of the east or west facing roof space, at no time a system can be installed with a southerly aspect";
var SWH_ENERGY_TIP = "Does your current hot water system use electricity, gas or solid fuels? If you currently use electricity the most cost effective option is to install an electric boosted solar system. Gas hot water units can only be converted to gas solar hot water systems. If you want to change switch fuel sources there will likely be higher charges for installation and may miss out on some rebates.";
var SWH_SUPPLY_TIP = "What’s the quality of your water supply? In soft water conditions a stainless steel tank will last longer and never need any maintenance. Hard water systems generally work best with Vitreous Enamel tanks including a sacrificial anode that will need to be replaced every 3 to 5 years";
var SHW_LOC_TIP = "If your existing system is indoor or outside, we will be able to install a pumped split system unit. If, however, you currently have a gravity fed system in the roof space, then it will be best to install a thermosyphon system; whereby the tank and collectors are on the roof utilizing the existing pipework in the roof space";

var LOCATION_TIP = "If your installation location is more than 100km from the GPO, it is considered to be a regional installation";

/*
var _TIP = ;
var _TIP = ;
*/

//This is tool tip strings for marketing information
var NEWS_LETTER_TIP = "In addition to recieving renewable energy news and notications about our latest specials, for each visitor to our site who signs up for the free Energy Matters Newsletter, we will sponsor a tree on their behalf!.";

var LOCAL_INSTALLER = "Energy Matters staff cannot complete all jobs. Please indicate if you do not want your details, eg. address, phone number, etc, passed on to local installers or sub-contractors that may perform the installation on Energy Matter's behalf.";



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="/common/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

