/* general functions starts here */
function GetXmlHttpObject()
{
	var xmlHttp=null;
	try
	{
		// Firefox, Opera 8.0+, Safari
		xmlHttp=new XMLHttpRequest();
	}
	catch (e)
	{
		// Internet Explorer
		try
		{
			xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
		}
		catch (e)
		{
			xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
		}
	}
	return xmlHttp;
}
function emailcheck(emailID) 
{
	var filter  = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
	if (!filter.test(emailID))
	{		
		return false;					
	}
	else
	{
		return true;
	}	
}
function showSubMenu(type)
{
	document.getElementById("link_overView").className="link_overview";
	document.getElementById("link_services").className="link_services";
	document.getElementById("link_profile").className="link_profile";
	document.getElementById("link_news").className="link_news";
	document.getElementById("link_careers").className="link_careers";
	if(type!="overview_sub")
	{
		animatedcollapse.hide('overview_sub');
	}
	else
	{
		document.getElementById("link_overView").className="link_overview_active";
	}
	if(type!="services_sub")
	{
		animatedcollapse.hide('services_sub');
	}
	else
	{
		document.getElementById("link_services").className="link_services_active";
	}
	if(type!="profile_sub")
	{
		animatedcollapse.hide('profile_sub');
	}
	else
	{
		document.getElementById("link_profile").className="link_profile_active";
	}
	if(type!="news_sub")
	{
		animatedcollapse.hide('news_sub');
	}
	else
	{
		document.getElementById("link_news").className="link_news_active";
	}
	if(type!="careers_sub")
	{
		animatedcollapse.hide('careers_sub');
	}
	else
	{
		document.getElementById("link_careers").className="link_careers_active";
	}
	if(getFileName(window.location.href)=="news.php" || getFileName(window.location.href)=="media.php" || getFileName(window.location.href)=="newsview.php" || getFileName(window.location.href)=="press.php")
	{
		document.getElementById("link_news").className="link_news_active";
	}
	if(getFileName(window.location.href)=="cargo_facilities.php" || getFileName(window.location.href)=="adv_pipavav.php" || getFileName(window.location.href)=="location.php" || getFileName(window.location.href)=="hinterland.php")
	{
		document.getElementById("link_overView").className="link_overview_active";
	}
	if(getFileName(window.location.href)=="career_work.php" || getFileName(window.location.href)=="career_opportunity.php")
	{
		document.getElementById("link_careers").className="link_careers_active";
	}
	if(getFileName(window.location.href)=="shipping_services.php" || getFileName(window.location.href)=="our_values.php" || getFileName(window.location.href)=="history.php" || getFileName(window.location.href)=="growth.php" || getFileName(window.location.href)=="company_info.php")
	{
		document.getElementById("link_profile").className="link_profile_active";
	}
	if(getFileName(window.location.href)=="support_infra.php" || getFileName(window.location.href)=="maritime_support.php" || getFileName(window.location.href)=="docs_tariff.php" || getFileName(window.location.href)=="services_cargo_facilities.php")
	{
		document.getElementById("link_services").className="link_services_active";
	}
	animatedcollapse.show(type)	
}
function hideSubMenu(e)
{
	if (!e) 
	var e = window.event;
	var tg = (window.event) ? e.srcElement : e.target;
	if((tg.id=="link_Services_Cargo_Facilities") || (tg.id=="subLinks_bottom") || (tg.id=="subLinks_content") || (tg.id=="link_overView") || (tg.id=="subContent") || (tg.id=="link_AdvPipa") || (tg.id=="link_Location") || (tg.id=="link_Cargo") || (tg.id=="link_Storage") || (tg.id=="link_services") || (tg.id=="link_Support") || (tg.id=="link_Maritime") || (tg.id=="link_Tariffs") || (tg.id=="link_profile") || (tg.id=="link_CompanyInfo") || (tg.id=="link_Growth") || (tg.id=="link_Values") || (tg.id=="link_Services") || (tg.id=="link_History") || (tg.id=="link_news") || (tg.id=="link_PortNews") || (tg.id=="link_Downloads") || (tg.id=="link_Press") || (tg.id=="subMenuList") || (tg.id=="link_careers") || (tg.id=="link_lifeat") || (tg.id=="link_opportunity"))
	{		
		
	}
	else
	{
		document.getElementById("link_overView").className="link_overview";
		document.getElementById("link_services").className="link_services";
		document.getElementById("link_profile").className="link_profile";
		document.getElementById("link_news").className="link_news";
		document.getElementById("link_careers").className="link_careers";
		animatedcollapse.hide('overview_sub');
		animatedcollapse.hide('services_sub');
		animatedcollapse.hide('profile_sub');
		animatedcollapse.hide('news_sub');
		animatedcollapse.hide('careers_sub');
	}
	if(getFileName(window.location.href)=="news.php" || getFileName(window.location.href)=="media.php" || getFileName(window.location.href)=="newsview.php" || getFileName(window.location.href)=="press.php")
	{
		document.getElementById("link_news").className="link_news_active";
	}
	if(getFileName(window.location.href)=="cargo_facilities.php" || getFileName(window.location.href)=="adv_pipavav.php" || getFileName(window.location.href)=="location.php" || getFileName(window.location.href)=="hinterland.php")
	{
		document.getElementById("link_overView").className="link_overview_active";
	}
	if(getFileName(window.location.href)=="career_work.php" || getFileName(window.location.href)=="career_opportunity.php")
	{
		document.getElementById("link_careers").className="link_careers_active";
	}
	if(getFileName(window.location.href)=="shipping_services.php" || getFileName(window.location.href)=="our_values.php" || getFileName(window.location.href)=="history.php" || getFileName(window.location.href)=="growth.php" || getFileName(window.location.href)=="company_info.php")
	{
		document.getElementById("link_profile").className="link_profile_active";
	}
	if(getFileName(window.location.href)=="support_infra.php" || getFileName(window.location.href)=="maritime_support.php" || getFileName(window.location.href)=="docs_tariff.php" || getFileName(window.location.href)=="services_cargo_facilities.php")
	{
		document.getElementById("link_services").className="link_services_active";
	}
}

function getFileName(url)
{
  var lastSlash = url.lastIndexOf("/");
  var firstQuestionMark = url.indexOf("?");
  var firstHashMark = url.indexOf("#");
  if(firstQuestionMark == -1)
  {
  	firstQuestionMark = url.length;
  }
   if(firstHashMark == -1)
  {
  	firstHashMark = url.length;
  }
  var fileName = url.substring(0, firstHashMark);
  fileName = fileName.substring(lastSlash + 1, firstQuestionMark);
  return fileName ;
}

var slideTime = 1000, topMargin;
function winOnResize() {
  xMoveTo('leftLinks', xPageX('leftColumn')+xWidth('leftColumn')+20, topMargin);
  xGetElementById('leftLinks').style.visibility = 'visible';
  winOnScroll(); // initial slide
}
function winOnScroll() {
  xSlideTo('leftLinks', xLeft('leftLinks'), xScrollTop() + topMargin, slideTime);
}
function setSlideTime(st) {
  st = parseInt(st);
  if (!isNaN(st)) slideTime = st;
  var e = xGetElementById('st');
  e.value = st;
  return false;
}

function showGallery(type)
{
	document.getElementById("closeGallery").style.visibility = "visible";
	document.getElementById("imageControl").style.display = "block";
	//document.getElementById("portImages").style.visibility = "hidden";
	//document.getElementById("portImages").style.display = "none";
	document.getElementById("imgContainer1").style.display = "none";
	document.getElementById("imgContainer2").style.display = "none";
	document.getElementById("imgContainer3").style.display = "none";
	document.getElementById("galContainer").className = "galleryItems";
	document.getElementById("galBulk").className = "galleryItems";
	document.getElementById("galLiquid").className = "galleryItems";
	if(type==1)
	{				
		document.getElementById("imgContainer1").style.display = "block";
		document.getElementById("galContainer").className = "galleryItems_active";
		
		slideshow1.auto=false;
		slideshow1.speed=5;		
		slideshow1.scrollSpeed=4;
		slideshow1.spacing=5;
		slideshow1.active="#fff";
		slideshow1.init("slideshow1","image1","prevImage","nextImage","imglink1");
		
	}
	else if(type==2)
	{				
		document.getElementById("imgContainer2").style.display = "block";
		document.getElementById("galBulk").className = "galleryItems_active";
		slideshow2.auto=false;
		slideshow2.speed=5;		
		slideshow2.scrollSpeed=4;
		slideshow2.spacing=5;
		slideshow2.active="#fff";
		slideshow2.init("slideshow2","image2","prevImage","nextImage","imglink2");
	}		
	else if(type==3)
	{				
		document.getElementById("imgContainer3").style.display = "block";
		document.getElementById("galLiquid").className = "galleryItems_active";
		slideshow3.auto=false;
		slideshow3.speed=5;		
		slideshow3.scrollSpeed=4;
		slideshow3.spacing=5;
		slideshow3.active="#fff";
		slideshow3.init("slideshow3","image3","prevImage","nextImage","imglink3");
	}
}
function closeGallery()
{
	document.getElementById("closeGallery").style.visibility = "hidden";
	document.getElementById("imageControl").style.display = "none";
	document.getElementById("galContainer").className = "galleryItems";
	document.getElementById("galBulk").className = "galleryItems";
	document.getElementById("galLiquid").className = "galleryItems";
	document.getElementById("imgContainer1").style.display = "none";
	document.getElementById("imgContainer2").style.display = "none";
	document.getElementById("imgContainer3").style.display = "none";
	//document.getElementById("portImages").style.visibility = "visible";
	//document.getElementById("portImages").style.display = "block";	
}
/* Contact page functions starts here*/
function sendFeedback()
{
	var errMsg = "";
	if(document.getElementById("txtName").value.replace(/ /g,"")=="")
	{
		errMsg=errMsg+'Please enter your name.\n';
		document.getElementById("txtName").focus();
	}
	if(document.getElementById("txtEmail").value.replace(/ /g,"")=="")
	{
		if(errMsg=="")
		{
			document.getElementById("txtEmail").focus();			
		}	
		errMsg=errMsg+'Please enter your email-id.\n';		
	}
	else if(!emailcheck(document.getElementById("txtEmail").value))
	{
		if(errMsg=="")
		{
			document.getElementById("txtEmail").focus();			
		}
		errMsg=errMsg+'Please enter a valid email-id.\n';
	}
	if(document.getElementById("txtMessage").value.replace(/ /g,"")=="")
	{
		if(errMsg=="")
		{
			document.getElementById("txtMessage").focus();			
		}
		errMsg=errMsg+'Please enter the message .\n';
	}
	if(errMsg!="")
	{
		alert(errMsg)
	}
	else
	{
		
	}
}

/*careers page functions starts here*/
function show_jobDetails(id){
	if(document.getElementById("link_jobDetails_"+id).innerHTML=="View Job Details")
	{
		document.getElementById("link_jobDetails_"+id).innerHTML = "Close Job Details";
	}
	else
	{
		document.getElementById("link_jobDetails_"+id).innerHTML = "View Job Details";
	}
	
	animatedcollapse.toggle('career_'+id);
}
/*careers page functions ends here*/

//Page Submit Function
function pagerSubmit(page)
{
 document.forms[0].action=page;
 document.forms[0].submit();
}


// news page starts here 
function getNewsByYears()
{
	document.getElementById("newsYear").innerHTML = "NEWS FOR "+document.getElementById("ddlNewsYear").value;
	var divNews=document.getElementById("spanNews");
	var xmlHttp;	
	xmlHttp=GetXmlHttpObject();
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request");
		return;
	}
	url="ajax_news.php?year="+document.getElementById("ddlNewsYear").value;
	url=url+"&sid="+Math.random();
	xmlHttp.onreadystatechange=function()
	{
		if (xmlHttp.readyState==4)
		{			
			divNews.innerHTML=xmlHttp.responseText;
		}
		else
		{
			divNews.innerHTML="loading news....";
		}
	}			
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);	
}
// news page ends here 


// press page starts here 
function getPressByYears()
{
	document.getElementById("pressYear").innerHTML = "NEWS FOR "+document.getElementById("ddlPressYear").value;
	var divNews=document.getElementById("spanPress");
	var xmlHttp;	
	xmlHttp=GetXmlHttpObject();
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request");
		return;
	}
	url="ajax_press.php?year="+document.getElementById("ddlPressYear").value;
	url=url+"&sid="+Math.random();
	xmlHttp.onreadystatechange=function()
	{
		if (xmlHttp.readyState==4)
		{			
			divNews.innerHTML=xmlHttp.responseText;
		}
		else
		{
			divNews.innerHTML="loading press news....";
		}
	}			
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);	
}
//press page ends here 


/*media page functions starts here*/
function loadNextMediaImages(type,max)
{
	var curPage=0;
	if(document.getElementById("HFMediaDownPageNo_"+type))
	{
		curPage=document.getElementById("HFMediaDownPageNo_"+type).value;
		if(document.getElementById("UlMediaImages_"+type+"_"+curPage))
		{
			document.getElementById("UlMediaImages_"+type+"_"+curPage).style.display="none";
		}
		curPage=parseInt(curPage)+1;
		if(curPage>max)
		{
		 curPage=max;
		}
		document.getElementById("HFMediaDownPageNo_"+type).value=curPage;
		loadMediaPageContent(type,max);
	}
}
function loadPrevMediaImages(type,max)
{
	var curPage=0;
	if(document.getElementById("HFMediaDownPageNo_"+type))
	{
		curPage=document.getElementById("HFMediaDownPageNo_"+type).value;
		if(document.getElementById("UlMediaImages_"+type+"_"+curPage))
		{
			document.getElementById("UlMediaImages_"+type+"_"+curPage).style.display="none";
		}
		curPage=parseInt(curPage)-1;
		if(curPage<=0)
		{
		 curPage=1;
		}
		document.getElementById("HFMediaDownPageNo_"+type).value=curPage;
		loadMediaPageContent(type,max);
	}
}
function loadMediaPageContent(type,max)
{
	var curPage=0;
	if(document.getElementById("HFMediaDownPageNo_"+type))
	{
		curPage=document.getElementById("HFMediaDownPageNo_"+type).value;
	}
	if(document.getElementById("UlMediaImages_"+type+"_"+curPage))
	{
		document.getElementById("UlMediaImages_"+type+"_"+curPage).style.display="block";
		if(document.getElementById("spanMediaImagePaging_"+type))
		{
			document.getElementById("spanMediaImagePaging_"+type).innerHTML=curPage +" of "+ max;
		}
	}
}
function showMediaDownload(type,length)
{
	max=1;
	if((length>6)&&(length<=12))
	{
	 max=2;
	}
	else if((length>12)&&(length<=18))
	{
	 max=3;
	}
	else if(length>18)
	{
	 max=4;
	}
	var curPage=document.getElementById("HFMediaDownPageNo_"+type).value;
	if(document.getElementById("UlMediaImages_"+type+"_"+curPage))
	{
		document.getElementById("UlMediaImages_"+type+"_"+curPage).style.display="none";
	}
	curPage=1;
	if(document.getElementById("HFMediaDownPageNo_"+type))
	{
		document.getElementById("HFMediaDownPageNo_"+type).value=curPage;
	}
	if(document.getElementById("UlMediaImages_"+type+"_"+curPage))
	{
		document.getElementById("UlMediaImages_"+type+"_"+curPage).style.display="block";
		if(document.getElementById("spanMediaImagePaging_"+type))
		{
			document.getElementById("spanMediaImagePaging_"+type).innerHTML=curPage +" of "+ max;
		}
	}
	for(i=1;i<=length;i++)
	{
		if(type==1)
		{
		 hfName="HFcont_img";
		 chkNumber="cont_img";
		}
		else if(type==2)
		{
		 hfName="HFconnectivity_img";
		 chkNumber="connectivity_img";
		}
		else if(type==3)
		{
		 hfName="HFpeople_img";
		 chkNumber="people_img";
		}
		else if(type==4)
		{
		 hfName="HFbulkstorage_img";
		 chkNumber="bulkstorage";
		}
		else if(type==5)
		{
		 hfName="HFlandlocation_img";
		 chkNumber="landlocation";
		}
		if(document.getElementById(hfName+i))
		{
			document.getElementById(hfName+i).value=0;
			document.getElementById(chkNumber+i).className="select_download";
		}
	}
	document.getElementById("overlay").style.display="block";
	document.getElementById("overlay").style.height = parseInt(document.body.offsetHeight)+50+"px";
	document.getElementById("divMediaDownload_"+type).style.visibility="visible";
}
function closeMediaDownload(type)
{
	document.getElementById("overlay").style.display="none";
	document.getElementById("divMediaDownload_"+type).style.visibility="hidden";
}	
function selectDownload(id,type)
{
	if(type==1)
	{
	 hfName="HFcont_img";
	 chkNumber="cont_img";
	}
	else if(type==2)
	{
	 hfName="HFconnectivity_img";
	 chkNumber="connectivity_img";
	}
	else if(type==3)
	{
	 hfName="HFpeople_img";
	 chkNumber="people_img";
	}
	else if(type==4)
	{
	 hfName="HFbulkstorage_img";
	 chkNumber="bulkstorage";
	}
	else if(type==5)
	{
	 hfName="HFlandlocation_img";
	 chkNumber="landlocation";
	}
	if(document.getElementById(chkNumber+id).className=="select_download")
	{
		document.getElementById(chkNumber+id).className = "select_download_active";
		document.getElementById(hfName+id).value=1;
	}
	else
	{
		document.getElementById(chkNumber+id).className="select_download";
		document.getElementById(hfName+id).value=0;
	}
}
function download(type,count,id)
{
	var p ;
	/* var p=prompt("Please enter the password to download the files?");
	
		if(p != null)
		{	if(p!="")
			 { */
				document.FrmMedia.action="mediaDB.php?type="+type+"&count="+count+"&id="+id+"&p="+p;
				document.FrmMedia.target="download_frame";
				document.FrmMedia.submit();
			/*  }
			 else
			 {
			  alert("Password required to download the file")
			 }
		} */
}
/*media  page functions ends here*/


/* paging for news*/

function loadNews()
{
	year=document.getElementById("ddlNewsYear").value;
	document.getElementById("newsYear").innerHTML = "NEWS FOR "+document.getElementById("ddlNewsYear").value;
	loadNewsData('ajax_news.php', 'p=1',year);
}
function loadNewsData(url, qStr,year)
{
  if (url.length==0)
  {
      document.getElementById("spanNews").innerHTML="";
      return;
  }
  xmlHttp=GetXmlHttpObject()
  if (xmlHttp==null)
  {
      alert ("Browser does not support HTTP Request");
      return;
  }

  url=url+"?"+qStr;
  url=url+"&year="+year+"&sid="+Math.random();
  //alert(url);
	xmlHttp.onreadystatechange=function()
	{		
		if (xmlHttp.readyState==4)
		{						
			document.getElementById("spanNews").innerHTML=xmlHttp.responseText;			
		}					
	}		
  xmlHttp.open("GET",url,true) ;
  xmlHttp.send(null);
}


/* paging for press*/

function loadPress()
{
	year=document.getElementById("ddlPressYear").value;
	document.getElementById("pressYear").innerHTML = "PRESS REALESES FOR "+document.getElementById("ddlPressYear").value;
	loadPressData('ajax_press.php', 'p=1',year);
}
function loadPressData(url, qStr,year)
{
  if (url.length==0)
  {
      document.getElementById("spanPress").innerHTML="";
      return;
  }
  xmlHttp=GetXmlHttpObject()
  if (xmlHttp==null)
  {
      alert ("Browser does not support HTTP Request");
      return;
  }

  url=url+"?"+qStr;
  url=url+"&year="+year+"&sid="+Math.random();
  //alert(url);
	xmlHttp.onreadystatechange=function()
	{		
		if (xmlHttp.readyState==4)
		{						
			document.getElementById("spanPress").innerHTML=xmlHttp.responseText;	 			
		}					
	}		
  xmlHttp.open("GET",url,true) ;
  xmlHttp.send(null);
}
var homePageTimer;
function initSlideShow()
{
	if(document.getElementById("home_leftContent"))
	{
		 homePageTimer=setInterval( "startSlideShow()", 5000 );
	}
	 document.getElementById("home_leftContent").onmouseover=function()
	{
		clearInterval(homePageTimer);
	};
	document.getElementById("home_leftContent").onmouseout=function()
	{
		homePageTimer=setInterval( "startSlideShow()", 5000 );
	}; 
}
function startSlideShow() {
    var $active = $('#home_leftContent DIV.active');

    if ( $active.length == 0 ) $active = $('#home_leftContent DIV:last');
    var $next =  $active.next().length ? $active.next()
        : $('#home_leftContent DIV:first');
    $active.addClass('last-active');

    $next.css({opacity: 0.0})
        .addClass('active')
        .animate({opacity: 1.0}, 1000, function() {
            $active.removeClass('active last-active');
        });
}
function changeHomeBg(obj,path)
{
 obj.style.background="url("+path+") no-repeat";
}
//for changing the home pages images depending on the llinks clicked 
function loadimageslinks(index)
{
	document.getElementById("divImage1").className="";
	document.getElementById("divImage2").className="";
	document.getElementById("divImage3").className="";
	document.getElementById("divImage4").className="";
	document.getElementById("divImage5").className="";
	document.getElementById("divImage6").className="";
	if(document.getElementById("divImage"+index))
	{
		document.getElementById("divImage"+index).className="active";
	}
}

function showMap()
{	
	document.getElementById("overlay").style.display="block";
	document.getElementById("overlay").style.height = parseInt(document.body.offsetHeight)+50+"px";
	scroll(0,0);
	document.getElementById("div_Map").style.display="block";
}
function closeMap()
{
	document.getElementById("overlay").style.display="none";
	document.getElementById("div_Map").style.display="none";
	document.getElementById("div_EmailMap").style.display="none";
}


var pwin;
function printImg() {	
	pwin = window.open("images/portmap_forprint.jpg",'Map','scrollbars = no,resizable = no,location = no')
	pwin.focus();
	setTimeout("pwin.print()",1000);
}
function showEmailMap()
{	
	if(document.getElementById("div_EmailMap").style.display=="none")
	{
		document.getElementById("div_EmailMap").style.display="block";
	}
	else
	{
		document.getElementById("div_EmailMap").style.display="none";
	}
	document.getElementById("txtFrom").value="";
	document.getElementById("txtTo").value="";
	document.getElementById("txtMessage").value="";
}

function closeEmailMap()
{	
	
	document.getElementById("div_EmailMap").style.display="none";	
	document.getElementById("txtFrom").value="";
	document.getElementById("txtTo").value="";
	document.getElementById("txtMessage").value="";
}
function sendMap()
{
	var errMsg="";	
	if(document.getElementById("txtFrom").value.replace(/ /g,"")=="")
	{
		errMsg=errMsg+"- Enter your email id.\n";		
	}
	else if(emailcheck(document.getElementById("txtFrom").value)==false)
	{
			errMsg=errMsg+"- Enter a valid from email id.\n";
	}
	if(document.getElementById("txtTo").value.replace(/ /g,"")=="")
	{
		errMsg=errMsg+"- Enter your friends email id.\n";		
	}
	else if(emailcheck(document.getElementById("txtTo").value)==false)
	{
			errMsg=errMsg+"- Enter a valid email id.\n";
	}
	if(errMsg!="")
	{
		alert(errMsg);
	}
	else
	{
		document.forms[0].action="locationDB.php";
		document.forms[0].submit();
	}
}



function openMap(type)
{
	document.getElementById("overlay").style.display="block";
	document.getElementById("overlay").style.height = parseInt(document.body.offsetHeight)+50+"px";
	scroll(0,0);
	if(type==1)
	{
		document.getElementById("divConnMap").style.background="url(images/maps_railconnectivity.png)";
	}
	else if(type==2)
	{
		document.getElementById("divConnMap").style.background="url(images/maps_icdconnectivity.png)";
	}
	else if(type==3)
	{
		document.getElementById("divConnMap").style.background="url(images/map_roadconnectivity.png)";
	}
	else if(type==4)
	{
		document.getElementById("divConnMap").style.background="url(images/maps_feederconnectivity.png)";
	}
	else if(type==5)
	{
		document.getElementById("divConnMap").style.background="url(images/maps_hinterland.png)";
	}
	document.getElementById("divConnMap").style.display="block";
}

function hideMap()
{
	document.getElementById("overlay").style.display="none";
	document.getElementById("divConnMap").style.display="none";
}