function attractionMarker(map,pageType,m,blat,blng){
  // Generate gMap icon, (polygon), window, and html
	divId = 'div' + m;
	bId = 'b' + m;
  attId = attArray[m][0];
  attType = attArray[m][1];
  attLat = attArray[m][2]*.001+blat;
  attLng = attArray[m][3]*.001+blng;
  attPic  = attArray[m][4];
  attLabel = document.getElementById(bId).innerHTML;
  var attText = new String();
  attText = (document.getElementById(divId))? document.getElementById(divId).innerHTML:'';
  textLength = attText.length;
  
  //function zOrder(marker,m){ // sets the z-order of the icons 
  //  return m;
  //}
  
	//markerOptions = {icon:myIcon[attType],title:(attLabel),zIndexProcess:zOrder};
	markerOptions = {icon:myIcon[attType],title:(attLabel)};
	
	attLatLng= new GLatLng(attLat,attLng);
	marker[m] = new GMarker(attLatLng, markerOptions); //{zIndexProcess:m}
	if (attId<5000){ // ie if it's a WTS topic
    mywindow =attText+'<b><a target="_blank" href="http://www.wheretostay.co.za/information/topic/' + attId + '">' + attLabel + '</a></b><br>';
  	if(attPic){
      mywindow += '<div><img src="http://www.wheretostay.co.za/_common/img/photos/'+attPic+'"></div>';
    }
  } else{
   mywindow ='<b>' + attLabel + '</b><br>' + attText;
     	if(attPic){
      mywindow += '<div><img boder="1" src="../images/attractions/'+attPic+'"></div>';
    }
  }
  mywindow = '<div style="background-color: #EEEEEE; border-width: 1px; padding-left:10px; width:250px">'+ mywindow + '</div>'; //height:120px
  if (attType == 'area'){
    areaZoom(map,m,mywindow);
  }else{
    iconListener(map,m,mywindow);
  }
  map.addOverlay(marker[m]);

}

