var oldShowInfoDivId = '';



function showInfoDiv(lngID)
{
	
	if(lngID != oldShowInfoDivId && oldShowInfoDivId != ''){

		hideInfoDiv(oldShowInfoDivId);

	}

	oldShowInfoDivId  = lngID;
	
	ajaxDraw(lngID,'/includes/ajax/indexdraw.asp?AAction=FindBloggersShowSiteInfo&ID='+lngID)
	
	document.getElementById(lngID).style.display='block';
	document.getElementById(lngID).style.display='none';
	document.getElementById(lngID).style.display='block';
	
}


function hideInfoDiv(lngID)
{
	document.getElementById(lngID).style.display='none';
}


function ajaxDraw(strDivToDrawIn,strURLToSend)
  {
  
  document.getElementById(strDivToDrawIn).innerHTML='<div style="border:solid;border-color:#333333;border-width:1px;height:73px;top:-50;background-color:#9C9C9E;text-align:center;" ><img src="/images/ajax-loader.gif" align="center"/></div>';

  var xmlHttp;
  try
    {
    // Firefox, Opera 8.0+, Safari
    xmlHttp=new XMLHttpRequest();
    }
  catch (e)
    {
    // Internet Explorer
    try
      {
      xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
      }
    catch (e)
      {
      try
        {
        xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
        }
      catch (e)
        {
        alert("Your browser does not support AJAX!");
        return false;
        }
      }
    }
    xmlHttp.onreadystatechange=function()
      {
      if(xmlHttp.readyState==4)
        {
        	
        	if(strDivToDrawIn=='return'){
        		
        		ajaxReturnHtml = xmlHttp.responseText;
        		//alert(ajaxReturnHtml);
        		//document.getElementById('errDiv').innerHTML=xmlHttp.responseText;
        	}

        	else if(strDivToDrawIn.length>0){
        		
        		document.getElementById(strDivToDrawIn).innerHTML=xmlHttp.responseText;
        	}
        }
      }
    xmlHttp.open("GET",strURLToSend,true);
    xmlHttp.send(null);
  }
