var tips = ["<p><strong>Insulating your home</strong></p><p>Around 50% of the energy in the home is lost through the walls and loft. Insulating your home properly will significantly reduce your energy bills. </p>","<p><strong>Insulate your loft and save</strong></p><p>You would be surprised at how many properties we visit that have little or no loft insulation at all. Insulating the loft is one of the most cost effective ways to reduce the heat lost in a property and amongst the easiest measures to install. You should aim to have 270mm of loft insulation in place for maximum savings.</p>","<p><strong>Insulate your hot water tank</strong></p><p>You would be surprised at how many homes we visit that either don’t have enough insulation around the hot water tank or what is there is badly fitted. You should aim to have 75mm of insulation in place for maximum savings.</p>","<p><strong>Fit Draught Proofing on your doors and windows</strong></p><p>Cutting out the draughts in a property can dramatically improve the comfort for the occupants and help to create savings of 155kgs per year</p>","<p><strong>Fit Double Glazing</strong></p><p>Around 20% of the heat lost from your home is lost through the windows. By installing low energy double glazing the average 3 bed semi could reduce its CO2 emissions by around 300kgs a year.</p>","<p><strong>Turn the thermostat down</strong></p><p>The simplest way to reduce your heating bill is to turn your thermostat down. For each degree you go down you could making a saving of 10%.</p>","<p><strong>Turn the lights off when you leave the room </strong></p><p>The simplest way to reduce the amount of energy used in the home is switch the lights off when you leave the room.</p>"];
function getRandomTip(){
	numOfTips = tips.length;
	randNum = Math.floor(Math.random()*numOfTips);
	return tips[randNum];
}
function showTip(e) {
    el = document.getElementById(e);
    if (el != null)
    {
        el.innerHTML = getRandomTip();
    }
}