function GetXmlHttpObject()
{
  var xmlHttp=null;
  try
  {
		xmlHttp=new XMLHttpRequest();
  }
  catch (trymicrosoft)
    {
    try
      {
		xmlHttp=new ActiveXObject("MSXML2.XMLHTTP.3.0");
		//xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
      }
    catch (othermicrosoft)
      {
		try{
			xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
			}
		catch(failed)
		{
			xmlHttp=null;
		}
      }
    }
	if(xmlHttp==null)
		alert("Error create request object!");
  return xmlHttp;
}

function createMarker(points,htmlInfo,tabs,mrk)
	{
	//alert(htmlInfo);
		 var point = null;
		 var footerHtml = null;
		 var InfoHTML = null;
		 var marker = null;
		var iconbig = new GIcon();
		iconbig.image = "mapimg/marker_34_red.png";
		//iconbig.image = "mapimg/marker_arrow.png";
		iconbig.shadow = "";
		//iconbig.iconSize = new GSize(20, 34);
		//iconbig.shadowSize = new GSize(37, 34);
		iconbig.iconAnchor = new GPoint(9, 34);
		iconbig.infoWindowAnchor = new GPoint(6, 1);

		var marker = null;
		map.clearOverlays();
		
		var pointsArr=points.split("$");
		var htmlInfoArr=htmlInfo.split("$");
		var tabStrArr=tabs.split("$");
		var i=0;
		
		for(i=0;i<pointsArr.length;i++)
		{
			var pointStr=new String(pointsArr[i]);
			var p=pointStr.split(",");
			point = new GLatLng(parseFloat(p[0]), parseFloat(p[1]));
			
			var htmlStr=new String(htmlInfoArr[i]);
			var htmlArr=htmlStr.split("|");
			var j=0;
			//var htmlInfoStr="";
			htmlInfoObj=[];
			var tabStr=new String(tabStrArr[i]);
			var tabArr=tabStr.split(",");
			tabsObj=[tabArr[0],tabArr[1]];
			footerHtml = "<div class=\"IWFooter\"><div class=\"IWFooterZoom\"><a href=\"javascript:void(0)\" onclick=\"ZoomMapTo()\">Zoom To</a></div></div>";
			for(j=0;j<htmlArr.length;j++)
			{
				var strTemp= new String(htmlArr[j]);
				var strTempArr=strTemp.split("~");
				switch (j)
				{
				case 0:
						htmlInfoObj.push("<div class=\"IW\"><div class=\"IWCaption\">"+strTempArr[0]+"</div><div class=\"BSLContent\"><IMG height=154 alt=\"City Image\" src=\"mapimg/cityimg/"+strTempArr[1]+".jpg\" width=140 align=left border=0><br></div>"+footerHtml);		
						break;
				case 1:
						htmlInfoObj.push("<div class=\"IW\"><div class=\"IWCaption\">"+strTempArr[0]+"</div><div class=\"BSLContent\">&nbsp;&nbsp;&nbsp;"+strTempArr[1]+"<br><br>Duration: "+strTempArr[2]+" Days<br>Destination : "+strTempArr[3]+"<br><A HREF=\"http://concordtravels.com/inbound/"+strTempArr[4]+"\" TARGET=\"_blank\">View Tour Detail</A></div>"+footerHtml);		
						break;
				
				}
			}

			map.addOverlay(createTabbedMarker(point, htmlInfoObj,tabsObj));
			
		}
		
		function createTabbedMarker(point,htmls,labels) 
		{
			var marker = new GMarker(point,iconbig);
			GEvent.addListener(marker, "mouseover", function() {
          // adjust the width so that the info window is large enough for this many tabs
			if (htmls.length > 2) 
			{
				htmls[0] = '<div style="height:160px; width:'+htmls.length*100+'px">' + htmls[0] + '</div>';
			}
			var tabs = [];
			for (var i=0; i<htmls.length; i++) 
			{
				tabs.push(new GInfoWindowTab(labels[i],htmls[i]));
			}
			marker.openInfoWindowTabsHtml(tabs);
        });
        return marker;
      }  
	

		function createMarker(latlng,number) 
		{
			var marker = new GMarker(latlng);
			marker.value = number;
			GEvent.addListener(marker,"click", function() {
			var myHtml = "<b>#" + number + "</b><br/>Test Message";
			map.openInfoWindowHtml(latlng, myHtml);});
      return marker;
	}

		

	}

	function clearMarkers() {
      mgr.clearMarkers();
    }
   function ZoomMapTo()
   {
	map.zoomIn();

	}
