var currentPlace=0;

function BlocksHide() {
  document.getElementById("CatalogMainMenuBlock1").style.display='none';
  document.getElementById("CatalogMainMenuBlock2").style.display='none';
  document.getElementById("CatalogMainMenuBlock3").style.display='none';
}

function ShowOnMap(Value) {
	currentPlace=Value;
// 	document.getElementById('CatalogListBlock').style.visibility='hidden';
 	document.getElementById('CatalogListBlock').style.zindex='1';
 	document.getElementById('CatalogListBlock').style.display='none';
// 	document.getElementById('CatalogMapBlock').style.display='block';
 	//document.getElementById('CatalogMapBlock').style.visibility='visible';
 	document.getElementById('CatalogMapBlock').style.zindex='2';
// 	document.getElementById('CatalogListBlock').style.top='-1000px';
// 	document.getElementById('CatalogMapBlock').style.top='269px';


	document.getElementById('tdm').className='visible';
	document.getElementById('tds').className='hide';
    var movie = (navigator.appName.indexOf("Microsoft")!=-1 ? window : document)["BridgeMovie"];
    movie.FromJS(currentPlace);
};

function ShowCatalogList(){
	//document.getElementById('CatalogMapBlock').style.visibility='hidden';
	document.getElementById('CatalogMapBlock').style.zindex='1';
//	document.getElementById('CatalogMapBlock').style.display='none';
	//document.getElementById('CatalogListBlock').style.visibility='visible';
	document.getElementById('CatalogListBlock').style.zindex='2';
	document.getElementById('CatalogListBlock').style.display='block';
// 	document.getElementById('CatalogMapBlock').style.top='-1000px';
// 	document.getElementById('CatalogListBlock').style.top='269px';
	document.getElementById('tds').className='visible';
	document.getElementById('tdm').className='hide';
}

function getXmlHttp(){
  var xmlhttp;
  try {
    xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
  } catch (e) {
    try {
      xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
    } catch (E) {
      xmlhttp = false;
    }
  }
  if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
    xmlhttp = new XMLHttpRequest();
  }
  return xmlhttp;
}

// /*function FromJS(val0) {
// //	var val0 = document.getElementById('ind').value;
//     var movie = (navigator.appName.indexOf("Microsoft")!=-1 ? window : document)["BridgeMovie"];
//     movie.FromJS(val0);
// }*/

