function getBrowserStats()
{
  if (document.all) { 
    var txTypebrowser = "recognises.all"; 
  } else if (document.layers) { 
    var txTypebrowser = "recognises.layers"; 
  } else { 
    var txTypebrowser = "other"; 
  }
	 
  amScreenWidth = screen.width
  amScreenHeight = screen.height
	 
  if (screen.pixelDepth)
    { amScreenDepthColour = screen.pixelDepth }
	else
    { amScreenDepthColour = screen.colorDepth }
	
  if (window.innerWidth)
	  amWindowWidth = window.innerWidth
	else if (document.body.offsetWidth)
	  amWindowWidth = document.body.offsetWidth

  if (window.innerHeight)
	  amWindowHeight = window.innerHeight
	else if (document.body.offsetHeight)
	  amWindowHeight = document.body.offsetHeight
	  
  txReferer = document.referrer	  

  document.writeln ('<div><img src="http://www.echildcare.com.au/statistics/stats.gif?txTypebrowser='+txTypebrowser+'&amp;amScreenWidth='+amScreenWidth+'&amp;amScreenHeight='+amScreenHeight+'&amp;amScreenDepthColour='+amScreenDepthColour+'&amp;amWindowWidth='+amWindowWidth+'&amp;amWindowHeight='+amWindowHeight+'&amp;txReferer='+txReferer+'" width="1" height="1" alt=""></div>');
	
}

function logClick(nmPageSource, nmChannel) {
    window.focus();
    bug = new Image();   
    bug.src = 'http://www.echildcare.com.au/nocrawl/trackerScript.php?nmPageClick=' + escape(nmPageSource) + '&txURLClick=' + escape(window.status) + '&nmChannelClickManual=' + escape(nmChannel);
}

function logExternalClick(txURLClick, nmPageSource, nmChannel) {
    window.focus();
    bug = new Image();   
    bug.src = 'http://echildcare.com.au/nocrawl/trackerScript.php?nmPageClick=' + escape(nmPageSource) + '&txURLClick=' + escape(txURLClick) + '&nmChannelClickManual=' + escape(nmChannel);
}



function showhide(nmBlock, nmState) {
  if (nmState == 'hide') { 
    cdDisplay = 'none'; 
  } else if (nmState == 'show') {  
    cdDisplay = 'block'; 
  } 
  if (document.all) { //IS IE 4 or 5 (or 6 beta) 
    eval( "document.all." + nmBlock + ".style.display = cdDisplay"); 
  } 

  if (document.layers) { //IS NETSCAPE 4 or below 
    document.layers[nmBlock].display = cdDisplay; 
  } 

  if (document.getElementById &&!document.all) { 
    hza = document.getElementById(nmBlock); 
    hza.style.display = cdDisplay; 
  } 
} 
