var lcId = new Date().getTime();
var flashProxy = new FlashProxy(lcId, "JavaScriptFlashGateway.swf","oActions"); 
var extent = new Array();

function pan(dir) {
	flashProxy.call("panToDir", dir);
}

function getHostUrl() {
	flashProxy.call("alert(document.domain)");
}

function showCity(cityid) {
	flashProxy.call("showCity", cityid);
}

function setRasterTransparency(trans) {
	flashProxy.call("setRasterTransparency", trans);
}

function recenterMap() {
	flashProxy.call("recenterMap");
}

function showPoi(poiList) {
	var pL = new Array;
	for(var i=0;i<poiList.length;i++) {
	  pL[i] = new Array;
	  pL[i][0] = poiList[i][0];
	  pL[i][1] = poiList[i][1];
	}
	flashProxy.call("showPoi", pL);
}

function showPoiFromIds(poiArray) {
	var pL = new Array;
	for(var i=0;i<poiArray.length;i++) {
	  pL[i] = poiArray[i];
	}
	flashProxy.call("showPoiFromIds", pL);
}

function showPoiFromIdsLM(poiArray) {
	var pL = new Array;
	for(var i=0;i<poiArray.length;i++) {
	  pL[i] = new Array;
	  
    pL[i][0] = poiArray[i];
    pL[i][1] = 1;
	  
	}
	flashProxy.call("showPoiFromIds", pL);
}

function showPoiAndId(PoiList,PoiId)
{
flashProxy.call("showPoiAndId", PoiList, PoiId);
}

function zoomIn() {
	flashProxy.call("zoomIn");
}

function zoomOut() {
	flashProxy.call("zoomOut");
}

function setView(zoomLvl) {
	flashProxy.call("setView",zoomLvl);
}

function showIndicators(indicators) {
	flashProxy.call("showIndicators",indicators);
}

function refreshQuickLook(imageUrl) {
	xGetElementById('quicklook').src=imageUrl;
}

function undoView() {
	flashProxy.call("undoView");
}

function showCartPoi(poiid) {
//
	flashProxy.call("showCartPoi", poiid);
}

function recenterOnPoi(poiid) {
	showCartPoi(poiid);
}

function setMapView(x,y,scale) {
	flashProxy.call("setMapView",x,y,scale);
}

function callBackFunction(poi_id) {
}

function returnMapInfo(x,y,scale) {
}

function alertMsg(txt) {
	alert(txt);
}
function getScalebarValue(w) {
	flashProxy.call('getScalebarValue',w);
}
function setScalebarValue(w) {
	alert(w);
}

