function HomepageQuestion(question, link)
 {
   this.Question = question;
   this.Link = link;
 }

var myQuestions1 = new Array();
   myQuestions1[0] = new HomepageQuestion("how seawater can be made drinkable","/education/Water/SavingWater/default.aspx");
   myQuestions1[1] = new HomepageQuestion("how plants sweat","/education/water/NaturalWaterCycle/Transpiration.aspx");
   myQuestions1[2] = new HomepageQuestion("what the real names of clouds are","/education/water/NaturalWaterCycle/Condensation.aspx");
   myQuestions1[3] = new HomepageQuestion("where Canberra's water comes from","/education/water/UrbanWaterCycle/Catchments.aspx");
   myQuestions1[4] = new HomepageQuestion("how cooking pasta helps plants grow in our gardens","/education/water/SavingWater/Kitchen.aspx");
   myQuestions1[5] = new HomepageQuestion("how fossil fuels were created","/education/Energy/NonRenewableEnergy/FossilFuels/default.aspx");
   myQuestions1[6] = new HomepageQuestion("how electricity is made","/education/Energy/Electricity/MakingElectricity/default.aspx");

var myQuestions2 = new Array();
   myQuestions2[0] = new HomepageQuestion("how dog poo can help keep the lights on","/education/Energy/RenewableEnergy/Biomass/default.aspx");
   myQuestions2[1] = new HomepageQuestion("how many kilometres of electrical wire are under Canberra","/education/Energy/Electricity/ElectricityDistribution/ActewAGLFactsAndFigures.aspx");
   myQuestions2[2] = new HomepageQuestion("what can make hair stand on end","/education/energy/electricity/WhatIsElectricity/StaticElectricity.aspx");
   myQuestions2[3] = new HomepageQuestion("if the earth really is getting hotter","/education/sustainability/GreenhouseEffect/GlobalWarming.aspx");
   myQuestions2[4] = new HomepageQuestion("how you can help protect the planet","/education/sustainability/SustainabilityInAust/HowYouCanContribute.aspx");
   myQuestions2[5] = new HomepageQuestion("what governments and companies are doing to help protect the planet","/education/sustainability/GlobalResponse/SustainableLifestyles.aspx");

var myQuestions3 = new Array();
   myQuestions3[0] = new HomepageQuestion("what impacts global warming may have on Australia","/education/Sustainability/SustainabilityInAust/default.aspx");
   myQuestions3[1] = new HomepageQuestion("how we can reduce the pollution from fossil fuels","/Education/Sustainability/GlobalResponse/ReducingEmissions.aspx");
   myQuestions3[2] = new HomepageQuestion("how people behave on the internet","/education/communications/Internet/NetCulture/Default.aspx");
   myQuestions3[3] = new HomepageQuestion("who invented TV","/education/communications/Television/Development/default.aspx");
   myQuestions3[4] = new HomepageQuestion("how SMS on mobile phones work","/education/communications/MobilePhones/HowMobilesWork/SMSmessaging.aspx");
   myQuestions3[5] = new HomepageQuestion("what Morse code is - and why it is important","/education/communications/Telephone/TelephoneHistory/MorseCode.aspx");
   myQuestions3[6] = new HomepageQuestion("how old the internet is","/Education/Communications/Internet/Default.aspx");


	function showRandomQuestion(){
    var strStart = "<p>If you&rsquo;ve ever wondered ";
    var strEnd = ", then you&rsquo;ve come to the right place.</p>";

		var rnd1 = Math.round((myQuestions1.length-1)*Math.random());
		var rnd2 = Math.round((myQuestions2.length-1)*Math.random());
		var rnd3 = Math.round((myQuestions3.length-1)*Math.random());

//  alert(rnd1 + " " + rnd2 + " " + rnd3);

		var strOut1 = "<a href='" + myQuestions1[rnd1].Link + "'>";
		strOut1 = strOut1 + myQuestions1[rnd1].Question + "</a>, ";
		
		var strOut2 = "<a href='" + myQuestions2[rnd2].Link + "'>";
		strOut2 = strOut2 + myQuestions2[rnd2].Question + "</a>, or ";
		
		var strOut3 = "<a href='" + myQuestions3[rnd3].Link + "'>";
		strOut3 = strOut3 + myQuestions3[rnd3].Question + "</a>";

    var strOut = strStart + strOut1 + strOut2 + strOut3 + strEnd;
		document.getElementById('divRandomQ').innerHTML = strOut;
	}