
window.onload = function(){
  
  //populate the multi-select suburb box when the page loads to maintain consistency
  
  //var areaSelect = document.getElementById("areaSelect");
  //if(areaSelect){
    populateMultiSuburbBox();
    //populateSuburbs(areaSelect);
  //} 
  
   //toggle select suburb display using values stored in cookies
  toggleDisplay();
  
  //deal with ie6 bug
	if(getInternetExplorerVersion() == 6){
		generateIFrames();
	}
	
	//load google maps if it exists in the page
	if(document.getElementById("map")){
		load();
	}

  //homepage flash/image feature. If flash exists don't display an image. If flash does'nt exist then display an image instead.
  var flashFeature;
  var imageFeature;
  flashFeature = document.getElementById("tommysFlashFeature");
  imageFeature = document.getElementById("tommysImageFeature");
  if(flashFeature){
    if(imageFeature){
      imageFeature.innerHTML = "";
    }
  }
 
 
}



 
