schedule("window", insertSWFs); 

/*
	** Each SWF file that needs to be inserted should have a separate function.
	23/12/2009 - Couple going to static images, disabling them here.
	Also someone really needs to learn functions!
*/
function insertSWFs() 
{
	if(document.getElementById("alberiparkFeature")) insertAlberiparkSWF();
	if(document.getElementById("apartmentsFeature")) insertApartmentsSWF();
	if(document.getElementById("arcadiawoodsFeature")) insertArcadiawoodsSWF();
	if(document.getElementById("auction2009Feature")) insertAuction2009SWF();
	if(document.getElementById("cardiniagroveFeature")) insertCardiniagroveSWF();
	if(document.getElementById("cedarviewFeature")) insertCedarviewSWF();
	if(document.getElementById("centralparkFeature")) insertCentralparkSWF();
	if(document.getElementById("coomerasanctuaryFeature")) insertCoomerasanctuarySWF();
	if(document.getElementById("communitiesFeature")) insertCommunitiesSWF();
//  if(document.getElementById("communitiesqldFeature")) insertCommunitiesqldSWF();
	if(document.getElementById("communitiessaFeature")) insertCommunitiessaSWF();
	if(document.getElementById("communitiesvicFeature")) insertCommunitiesvicSWF();
	if(document.getElementById("contactFeature")) insertContactSWF();
	if(document.getElementById("corporateFeature")) insertCorporateSWF();
	if(document.getElementById("easystepsFeature")) insertEasystepsSWF();
	if(document.getElementById("edenbrookFeature")) insertEdenbrookSWF();
	if(document.getElementById("financeFeature")) insertFinanceSWF();
	if(document.getElementById("golflinksFeature")) insertGolflinksSWF();
	if(document.getElementById("hideawayFeature")) insertHideawaySWF();
	if(document.getElementById("homefinishesFeaturevic")) insertHomefinishesvicSWF();
	if(document.getElementById("homepageFlash")) insertHomepageSWF();	
	if(document.getElementById("homelandFeature")) insertHomelandSWF();
	if(document.getElementById("homelandFeatureqld")) insertHomelandqldSWF();
	if(document.getElementById("homelandFeaturesa")) insertHomelandsaSWF();
	if(document.getElementById("homelandFeaturevic")) insertHomelandvicSWF();
	if(document.getElementById("investorsFeature")) insertInvestorsSWF();
	if(document.getElementById("lakesideFeature")) insertLakesideSWF();
	if(document.getElementById("thelinksFeature")) insertThelinksSWF();
	if(document.getElementById("moorookyleFeature")) insertMoorookyleSWF();
	if(document.getElementById("mountviewFeature")) insertMountviewSWF();
	if(document.getElementById("nauticaledgeFeature")) insertNauticaledgeSWF();
	if(document.getElementById("oakwoodFeature")) insertOakwoodSWF();
	if(document.getElementById("oceanviewFeature")) insertOceanviewSWF();
	if(document.getElementById("parksideFeature")) insertParksideSWF();
	if(document.getElementById("riverparksFeature")) insertRiverparksSWF();
	if(document.getElementById("riverwoodFeature")) insertRiverwoodSWF();
	if(document.getElementById("salescentresFeature")) insertSalescentresSWF();
	if(document.getElementById("salescentresqldFeature")) insertSalescentresqldSWF();
	if(document.getElementById("salescentressaFeature")) insertSalescentressaSWF();
	if(document.getElementById("salescentresvicFeature")) insertSalescentresvicSWF();
	if(document.getElementById("sanctuarygardensFeature")) insertSanctuarygardensSWF();
	if(document.getElementById("sandstonelakesFeature")) insertSandstonelakesSWF();
	if(document.getElementById("seagreenFeature")) insertSeagreenSWF();
	if(document.getElementById("seminarsFeature")) insertSeminarsSWF();
	if(document.getElementById("testimonialsFeature")) insertTestimonialsSWF();
	if(document.getElementById("thepinesFeature")) insertThepinesSWF();
	if(document.getElementById("theriseFeature")) insertTheriseSWF();
	if(document.getElementById("toursFeature")) insertToursSWF();
	if(document.getElementById("toursqldFeature")) insertToursqldSWF();
	if(document.getElementById("tourssaFeature")) insertTourssaSWF();
	if(document.getElementById("toursvicFeature")) insertToursvicSWF();
	if(document.getElementById("wattleparkFeature")) insertWattleparkSWF();	
	
	if(document.getElementById("fla080630Feature")) insertfla080630SWF();	
	
	if(document.getElementById("mapFeature")) insertMapSWF();
	
	/*seminar forms*/
	if(document.getElementById("peppercornSeminarFeat")) insertWattleparkSWF();	
};


function insertMapSWF()
{
	var element = document.getElementById("mapFeature");
	var classValues = document.getElementById("mapFeature").className.split('-');
	var version = deconcept.SWFObjectUtil.getPlayerVersion();
	if (version['major'] > 7) {				
		if(classValues.length>2)
		{
			var xmlSource = classValues[0];
			var path = classValues[1];
			var level = classValues[2];
			
			var so = new SWFObject(getLocationToRoot()+"media/flash/maps.swf", "mapsINS", "208", "201", "7", "#ffffff");
			so.addParam("wmode", "transparent");
			so.addVariable("xml", xmlSource);
			so.addVariable("path", path);
			so.addVariable("level", level);
			so.addVariable("uri", "./"+getLocationToRoot()+"media%2Fflash%2F");
			
			so.write("mapFeature");
		}
	}else{
		var so = new SWFObject("../media/flash/mapsUpdater.swf", "mapsINS", "208", "201", "5", "#ffffff");
		so.addParam("wmode", "transparent");
		so.addVariable("versionNumber", version['major']);
		so.write("mapFeature");
	}
};


function insertAlberiparkSWF() 
{
	var so = new SWFObject("../media/flash/rotator.swf", "alberiparkINS", "741", "213", "6", "#ffffff");
	so.addParam("wmode", "transparent");
	so.addVariable("xmlLocation", "media/flash/alberipark.xml");
	so.write("alberiparkFeature");
};

function insertApartmentsSWF() 
{
	var so = new SWFObject("../media/flash/rotator.swf", "apartmentsINS", "741", "213", "6", "#ffffff");
	so.addParam("wmode", "transparent");
	so.addVariable("xmlLocation", "media/flash/apartments.xml");
	so.write("apartmentsFeature");
};

function insertArcadiawoodsSWF() 
{
	var so = new SWFObject("../media/flash/rotator.swf", "arcadiawoodsINS", "741", "213", "6", "#ffffff");
	so.addParam("wmode", "transparent");
	so.addVariable("xmlLocation", "media/flash/arcadiawoods.xml");
	so.write("arcadiawoodsFeature");
};

function insertAuction2009SWF() 
{
	var so = new SWFObject("../media/flash/rotator.swf", "alberiparkINS", "741", "213", "6", "#ffffff");
	so.addParam("wmode", "transparent");
	so.addVariable("xmlLocation", "media/flash/auction2009.xml");
	so.write("auction2009Feature");
};

function insertCardiniagroveSWF() 
{
	var so = new SWFObject("../media/flash/rotator.swf", "cardiniagroveINS", "741", "213", "6", "#ffffff");
	so.addParam("wmode", "transparent");
	so.addVariable("xmlLocation", "media/flash/cardiniagrove.xml");
	so.write("cardiniagroveFeature");
};

function insertCedarviewSWF() 
{
	var so = new SWFObject("../media/flash/rotator.swf", "cedarviewINS", "741", "213", "6", "#ffffff");
	so.addParam("wmode", "transparent");
	so.addVariable("xmlLocation", "media/flash/cedarview.xml");
	so.write("cedarviewFeature");
};

function insertCentralparkSWF() 
{
	var so = new SWFObject("../media/flash/rotator.swf", "centralparkINS", "741", "213", "6", "#ffffff");
	so.addParam("wmode", "transparent");
	so.addVariable("xmlLocation", "media/flash/centralpark.xml");
	so.write("centralparkFeature");
};

function insertCommunitiesSWF() 
{
	var so = new SWFObject("../media/flash/rotator.swf", "communitiesINS", "741", "213", "6", "#ffffff");
	so.addParam("wmode", "transparent");
	so.addVariable("xmlLocation", "media/flash/communities.xml");
	so.write("communitiesFeature");
};

function insertCommunitiesqldSWF() 
{
	var so = new SWFObject("../media/flash/rotator.swf", "communitiesqldINS", "741", "213", "6", "#ffffff");
	so.addParam("wmode", "transparent");
	so.addVariable("xmlLocation", "media/flash/communitiesqld.xml");
	so.write("communitiesqldFeature");
};

function insertCommunitiessaSWF() 
{
	var so = new SWFObject("../media/flash/rotator.swf", "communitiessaINS", "741", "213", "6", "#ffffff");
	so.addParam("wmode", "transparent");
	so.addVariable("xmlLocation", "media/flash/communitiessa.xml");
	so.write("communitiessaFeature");
};

function insertCommunitiesvicSWF() 
{
	var so = new SWFObject("../media/flash/rotator.swf", "communitiesvicINS", "741", "213", "6", "#ffffff");
	so.addParam("wmode", "transparent");
	so.addVariable("xmlLocation", "media/flash/communitiesvic.xml");
	so.write("communitiesvicFeature");
};

function insertContactSWF() 
{
	var so = new SWFObject("../media/flash/rotator.swf", "contactINS", "741", "213", "6", "#ffffff");
	so.addParam("wmode", "transparent");
	so.addVariable("xmlLocation", "media/flash/contact.xml");
	so.write("contactFeature");
};

function insertCoomerasanctuarySWF() 
{
	var so = new SWFObject("../media/flash/rotator.swf", "cardiniagroveINS", "741", "213", "6", "#ffffff");
	so.addParam("wmode", "transparent");
	so.addVariable("xmlLocation", "media/flash/coomerasanctuary.xml");
	so.write("coomerasanctuaryFeature");
};

function insertCorporateSWF() 
{
	var so = new SWFObject(getLocationToRoot()+"/media/flash/rotator.swf", "corporateINS", "741", "213", "6", "#ffffff");
	so.addParam("wmode", "transparent");
	so.addVariable("xmlLocation", getLocationToRoot()+"/corporate/media/flash/corporate.xml");
	so.write("corporateFeature");
};

function insertEasystepsSWF() 
{
	var so = new SWFObject("../media/flash/rotator.swf", "easystepsINS", "741", "213", "6", "#ffffff");
	so.addParam("wmode", "transparent");
	so.addVariable("xmlLocation", "media/flash/easysteps.xml");
	so.write("easystepsFeature");
};

function insertEdenbrookSWF() 
{
	var so = new SWFObject("../media/flash/rotator.swf", "easystepsINS", "741", "213", "6", "#ffffff");
	so.addParam("wmode", "transparent");
	so.addVariable("xmlLocation", "media/flash/edenbrook.xml");
	so.write("edenbrookFeature");
};

function insertFinanceSWF() 
{
	var so = new SWFObject("../media/flash/rotator.swf", "financeINS", "741", "213", "6", "#ffffff");
	so.addParam("wmode", "transparent");
	so.addVariable("xmlLocation", "media/flash/finance.xml");
	so.write("financeFeature");
};

function insertGolflinksSWF() 
{
	var so = new SWFObject("../media/flash/rotator.swf", "golflinksINS", "741", "213", "6", "#ffffff");
	so.addParam("wmode", "transparent");
	so.addVariable("xmlLocation", "media/flash/golflinks.xml");
	so.write("golflinksFeature");
};

function insertHideawaySWF() 
{
	var so = new SWFObject("../media/flash/rotator.swf", "hideawayINS", "741", "213", "6", "#ffffff");
	so.addParam("wmode", "transparent");
	so.addVariable("xmlLocation", "media/flash/hideaway.xml");
	so.write("hideawayFeature");
};

function insertHomefinishesvicSWF() 
{
	var so = new SWFObject("../media/flash/rotator.swf", "homefinishesvicINS", "741", "213", "6", "#ffffff");
	so.addParam("wmode", "transparent");
	so.addVariable("xmlLocation", "media/flash/homefinishesvic.xml");
	so.write("homefinishesFeaturevic");
};

function insertHomepageSWF() 
{
	var so = new SWFObject("media/flash/rotator.swf", "homepageFlashINS", "741", "213", "6", "#ffffff");
	so.addParam("wmode", "transparent");
	so.addVariable("xmlLocation", "media/flash/homepage.xml");
	so.write("homepageFlash");
};

function insertHomelandSWF() 
{
	var so = new SWFObject("../media/flash/rotator.swf", "homelandINS", "741", "213", "6", "#ffffff");
	so.addParam("wmode", "transparent");
	so.addVariable("xmlLocation", "media/flash/homeland.xml");
	so.write("homelandFeature");
};

function insertHomelandqldSWF() 
{
  
	var so = new SWFObject("../media/flash/devine_rumpus_room_ebro.swf", "homelandqldINS", "741", "213", "6", "#21428f");
	so.addParam("wmode", "transparent");
	so.addVariable("xmlLocation", "media/flash/homelandqld.xml");
	so.write("homelandFeatureqld");
	//document.getElementById('homelandFeatureqld').innerHTML = '<img src="../communities/images/devine_communities_banner_v2.jpg" alt="Queensland Communities" />';
};

function insertHomelandsaSWF() 
{
//	var so = new SWFObject("../media/flash/Devine_SA_flash banner.swf", "homelandsaINS", "741", "213", "6", "#403b87");
	var so = new SWFObject("../media/flash/devine_SA_web_banner_jan10.swf", "homelandsaINS", "741", "213", "6", "#1bab5a");
	so.addParam("wmode", "transparent");
	so.addVariable("xmlLocation", "media/flash/homelandsa.xml");
	so.write("homelandFeaturesa");
};

function insertHomelandvicSWF() 
{
	//older var so = new SWFObject("../media/flash/vic-rotator.swf", "homelandvicINS", "741", "213", "6", "#ffffff");
	// newer var so = new SWFObject("../media/flash/rotator.swf", "homelandvicINS", "741", "213", "6", "#ffffff");
	//var so = new SWFObject("../media/flash/Think again_V1.swf", "homelandvicINS", "741", "213", "6", "#ffffff");
	var so = new SWFObject("../media/flash/Devine_VIC_flash_banner.swf", "salescentresvicINS", "741", "213", "6", "#ffffff");
	so.addParam("wmode", "transparent");
	so.addVariable("xmlLocation", "media/flash/homelandvic.xml");
	so.write("homelandFeaturevic");
};

function insertInvestorsSWF() 
{
	var so = new SWFObject("media/flash/rotator.swf", "investorsFlashINS", "741", "213", "6", "#ffffff");
	so.addParam("wmode", "transparent");
	so.addVariable("xmlLocation", "media/flash/investors.xml");
	so.write("investorsFlash");
};

function insertLakesideSWF() 
{
	var so = new SWFObject("../media/flash/rotator.swf", "lakesideINS", "741", "213", "6", "#ffffff");
	so.addParam("wmode", "transparent");
	so.addVariable("xmlLocation", "media/flash/lakeside.xml");
	so.write("lakesideFeature");
};

function insertThelinksSWF() 
{
	var so = new SWFObject("../media/flash/rotator.swf", "thelinksINS", "741", "213", "6", "#ffffff");
	so.addParam("wmode", "transparent");
	so.addVariable("xmlLocation", "media/flash/thelinks.xml");
	so.write("thelinksFeature");
};

function insertMoorookyleSWF() 
{
	var so = new SWFObject("../media/flash/rotator.swf", "moorookyleINS", "741", "213", "6", "#ffffff");
	so.addParam("wmode", "transparent");
	so.addVariable("xmlLocation", "media/flash/moorookyle.xml");
	so.write("moorookyleFeature");
};

function insertMountviewSWF() 
{
	var so = new SWFObject("../media/flash/rotator.swf", "mountviewINS", "741", "213", "6", "#ffffff");
	so.addParam("wmode", "transparent");
	so.addVariable("xmlLocation", "media/flash/mountview.xml");
	so.write("mountviewFeature");
};

function insertNauticaledgeSWF() 
{
	var so = new SWFObject("../media/flash/rotator.swf", "thepinesINS", "741", "213", "6", "#ffffff");
	so.addParam("wmode", "transparent");
	so.addVariable("xmlLocation", "media/flash/nauticaledge.xml");
	so.write("nauticaledgeFeature");
};

function insertOakwoodSWF() 
{
	var so = new SWFObject("../media/flash/rotator.swf", "oakwoodINS", "741", "213", "6", "#ffffff");
	so.addParam("wmode", "transparent");
	so.addVariable("xmlLocation", "media/flash/oakwood.xml");
	so.write("oakwoodFeature");
};

function insertOceanviewSWF() 
{
	var so = new SWFObject("../media/flash/rotator.swf", "oceanviewINS", "741", "213", "6", "#ffffff");
	so.addParam("wmode", "transparent");
	so.addVariable("xmlLocation", "media/flash/oceanview.xml");
	so.write("oceanviewFeature");
};

function insertParksideSWF() 
{
	var so = new SWFObject("../media/flash/rotator.swf", "parksideINS", "741", "213", "6", "#ffffff");
	so.addParam("wmode", "transparent");
	so.addVariable("xmlLocation", "media/flash/parkside.xml");
	so.write("parksideFeature");
};

function insertRiverparksSWF() 
{
	var so = new SWFObject("../media/flash/rotator.swf", "riverparksINS", "741", "213", "6", "#ffffff");
	so.addParam("wmode", "transparent");
	so.addVariable("xmlLocation", "media/flash/riverparks.xml");
	so.write("riverparksFeature");
};

function insertRiverwoodSWF() 
{
	var so = new SWFObject("../media/flash/rotator.swf", "riverwoodINS", "741", "213", "6", "#ffffff");
	so.addParam("wmode", "transparent");
	so.addVariable("xmlLocation", "media/flash/riverwood.xml");
	so.write("riverwoodFeature");
};

function insertSalescentresSWF() 
{
	var so = new SWFObject("../media/flash/rotator.swf", "salescentresINS", "741", "213", "6", "#ffffff");
	so.addParam("wmode", "transparent");
	so.addVariable("xmlLocation", "media/flash/salescentres.xml");
	so.write("salescentresFeature");
};

function insertSalescentresqldSWF() 
{
	var so = new SWFObject("../media/flash/rotator.swf", "salescentresqldINS", "741", "213", "6", "#ffffff");
	so.addParam("wmode", "transparent");
	so.addVariable("xmlLocation", "media/flash/salescentresqld.xml");
	so.write("salescentresqldFeature");
};

function insertSalescentressaSWF() 
{
	var so = new SWFObject("../media/flash/rotator.swf", "salescentressaINS", "741", "213", "6", "#ffffff");
	so.addParam("wmode", "transparent");
	so.addVariable("xmlLocation", "media/flash/salescentressa.xml");
	so.write("salescentressaFeature");
};

function insertSalescentresvicSWF() 
{
	//older var so = new SWFObject("../media/flash/vic-rotator.swf", "salescentresvicINS", "741", "213", "6", "#ffffff");
	//newer var so = new SWFObject("../media/flash/rotator.swf", "salescentresvicINS", "741", "213", "6", "#ffffff");
	//var so = new SWFObject("../media/flash/Think again_V1.swf", "salescentresvicINS", "741", "213", "6", "#ffffff");
	var so = new SWFObject("../media/flash/Devine_VIC_flash_banner.swf", "salescentresvicINS", "741", "213", "6", "#ffffff");
	so.addParam("wmode", "transparent");
	so.addVariable("xmlLocation", "media/flash/salescentresvic.xml");
	so.write("salescentresvicFeature");
};

function insertSandstonelakesSWF() 
{
	var so = new SWFObject("../media/flash/rotator.swf", "sandstonelakesINS", "741", "213", "6", "#ffffff");
	so.addParam("wmode", "transparent");
	so.addVariable("xmlLocation", "media/flash/sandstonelakes.xml");
	so.write("sandstonelakesFeature");
};

function insertSanctuarygardensSWF() 
{
	var so = new SWFObject("../media/flash/rotator.swf", "sanctuarygardensINS", "741", "213", "6", "#ffffff");
	so.addParam("wmode", "transparent");
	so.addVariable("xmlLocation", "media/flash/sanctuarygardens.xml");
	so.write("sanctuarygardensFeature");
};

function insertSeagreenSWF() 
{
	var so = new SWFObject("../media/flash/rotator.swf", "seagreenINS", "741", "213", "6", "#ffffff");
	so.addParam("wmode", "transparent");
	so.addVariable("xmlLocation", "media/flash/seagreen.xml");
	so.write("seagreenFeature");
};

function insertSeminarsSWF() 
{
	var so = new SWFObject("../media/flash/rotator.swf", "seminarsINS", "741", "213", "6", "#ffffff");
	so.addParam("wmode", "transparent");
	so.addVariable("xmlLocation", "media/flash/seminars.xml");
	so.write("seminarsFeature");
};

function insertTestimonialsSWF() 
{
	var so = new SWFObject("../media/flash/rotator.swf", "testimonialsINS", "741", "213", "6", "#ffffff");
	so.addParam("wmode", "transparent");
	so.addVariable("xmlLocation", "media/flash/testimonials.xml");
	so.write("testimonialsFeature");
};

function insertThepinesSWF() 
{
	var so = new SWFObject("../media/flash/rotator.swf", "thepinesINS", "741", "213", "6", "#ffffff");
	so.addParam("wmode", "transparent");
	so.addVariable("xmlLocation", "media/flash/thepines.xml");
	so.write("thepinesFeature");
};

function insertTheriseSWF() 
{
	var so = new SWFObject("../media/flash/rotator.swf", "theriseINS", "741", "213", "6", "#ffffff");
	so.addParam("wmode", "transparent");
	so.addVariable("xmlLocation", "media/flash/therise.xml");
	so.write("theriseFeature");
};

function insertToursSWF() 
{
	var so = new SWFObject("../media/flash/rotator.swf", "toursINS", "741", "213", "6", "#ffffff");
	so.addParam("wmode", "transparent");
	so.addVariable("xmlLocation", "media/flash/tours.xml");
	so.write("toursFeature");
};

function insertToursqldSWF() 
{
	var so = new SWFObject("../media/flash/rotator.swf", "toursqldINS", "741", "213", "6", "#ffffff");
	so.addParam("wmode", "transparent");
	so.addVariable("xmlLocation", "media/flash/toursqld.xml");
	so.write("toursqldFeature");
};

function insertTourssaSWF() 
{
	var so = new SWFObject("../media/flash/rotator.swf", "tourssaINS", "741", "213", "6", "#ffffff");
	so.addParam("wmode", "transparent");
	so.addVariable("xmlLocation", "media/flash/tourssa.xml");
	so.write("tourssaFeature");
};

function insertToursvicSWF() 
{
	//older var so = new SWFObject("../media/flash/vic-rotator.swf", "toursvicINS", "741", "213", "6", "#ffffff");
	//newer var so = new SWFObject("../media/flash/rotator.swf", "toursvicINS", "741", "213", "6", "#ffffff");
	//var so = new SWFObject("../media/flash/Think again_V1.swf", "toursvicINS", "741", "213", "6", "#ffffff");
	var so = new SWFObject("../media/flash/Devine_VIC_flash_banner.swf", "salescentresvicINS", "741", "213", "6", "#ffffff");
	so.addParam("wmode", "transparent");
	so.addVariable("xmlLocation", "media/flash/toursvic.xml");
	so.write("toursvicFeature");
};

function insertWattleparkSWF() 
{
	var so = new SWFObject("../media/flash/rotator.swf", "wattleparkINS", "741", "213", "6", "#ffffff");
	so.addParam("wmode", "transparent");
	so.addVariable("xmlLocation", "media/flash/wattlepark.xml");
	so.write("wattleparkFeature");
};

function insertfla080630SWF() 
{
	var so = new SWFObject("../media/flash/fla080630.swf", "fla080630", "1067", "800", "8", "#ffffff");
	so.addParam("wmode", "transparent");
	so.write("fla080630Feature");
};


function insertWattleparkSWF() 
{
	var so = new SWFObject("../media/flash/rotator.swf", "peppercornSeminarINS", "741", "213", "6", "#ffffff");
	so.addParam("wmode", "transparent");
	so.addVariable("xmlLocation", "media/flash/peppercorn.xml");
	so.write("peppercornSeminarFeat");
};