function showEmail (add,dom) {
var emailAddress = add + '@' + dom
document.write('<A href="mailto:' + emailAddress + '">' + emailAddress +'</A>');
}

function abfEmail (add) {
showEmail(add,'abf.com.au')
}

function show_help(url,title) {
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)
			{
				overlib(xmlHttp.responseText,STICKY,CAPTION,title,WIDTH,750,VAUTO,HAUTO);
			}
		}
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);  
}

function showIt(el) {
// displays pop-up ads
 document.getElementById(el).style.visibility = 'hidden';
 setTimeout(function(){showdiv(el)},1200);
 setTimeout(function(){hidediv(el)},20000);
}

function hidediv(el) {
    document.getElementById(el).style.visibility = 'hidden';

}
function showdiv(el) {
	document.getElementById(el).style.visibility = 'visible';

}
 function showhide(divID,gotohtml) {
 var item = document.getElementById(divID);
 if (item) {
 item.className=(item.className=='hidden')?'unhidden':'hidden';
 }
 else  {
 // goto gotohtml
 window.location = gotohtml;
 }
 }


function openWindow (doc, win, width, height, title)
  {

  winHeight = height + 28;
  winWidth = width + 20;
  var features = 'resizable=no' + 
				 ',toolbar=no'  + 
				 ',menubar=no'  + 
				 ',screenX=300'	+
				 ',left=300'	+
				 ',screenY=20'	+
				 ',top=20'      +
				 ',width=' + winWidth + 
				 ',height=' + winHeight ;
  newWin = window.open ('', win, features );
  newWin.document.writeln ('<head><title>' + title + '</title></head>');
  newWin.document.writeln ('<body bgcolor="white" leftmargin="8" topmargin="8" bottommargin="8"><table border="4" cellspacing="0" cellpadding="0" align="center"> <tr><td><a href="javascript:window.parent.close();"> <img src="' +  doc + '" width="' + width + '" height="' + height + '" hspace="0" vspace="0" border="0" alt="' + title + ' (click to close)"> </a></td></tr></table>');
  newWin.document.writeln ('</body></html>');
  }

//Google Analytics

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-25898656-1']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();


		
