function createWindow(cUrl,cName,cFeatures) {
var xWin = window.open(cUrl,cName,cFeatures)
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function PrinterFriendlyContent() 
{ 
var sOption="toolbar=yes,location=no,directories=yes,menubar=yes,"; 
sOption+="scrollbars=yes,resizable=yes"; 

var sWinHTML = document.getElementById('contentstart').innerHTML; 

var winprint=window.open("","",sOption); 
winprint.document.open(); 
winprint.document.write('<html><link href=print.css rel=Stylesheet><body onload=window.print()>');
winprint.document.write(sWinHTML);
winprint.document.write('</body></html>'); 
winprint.document.close(); 
winprint.focus(); 
}

function initRollovers() {
    if (!document.getElementById) return
      
    var aPreLoad = new Array();
    var sTempSrc;
    var aImages = document.getElementsByTagName('img');
    for (var i = 0; i < aImages.length; i++) {
	if (aImages[i].className == 'rollover') {
	    var src = aImages[i].getAttribute('src');
	    var ftype = src.substring(src.lastIndexOf('.'), src.length);
	    var hsrc = src.replace(ftype, '_over'+ftype);

	    aImages[i].setAttribute('hsrc', hsrc);
	    
	    aPreLoad[i] = new Image();
	    aPreLoad[i].src = hsrc;
	    
	    aImages[i].onmouseover = function() {
		sTempSrc = this.getAttribute('src');
		this.setAttribute('src', this.getAttribute('hsrc'));
	    }
	    aImages[i].onmouseout = function() {
		if (!sTempSrc) sTempSrc = this.getAttribute('src').replace('_over'+ftype, ftype);
		this.setAttribute('src', sTempSrc);
	    }
	}
    }
}

window.onload = initRollovers;

if (parseInt(navigator.appVersion) <= 3) { var srcStr = "default.htm" }
else { var srcStr = "about:blank" }
function frameWriter() {
	if 	(navigator.appName == 'Netscape' && 
			parseFloat(navigator.appVersion) >= 6 && (!window.opera)) {
	    location.href = 'default.htm' 
	} 
	else if (navigator.userAgent.indexOf("pera") != -1) { 
		location.replace("http://www.ahcc.com.au/default.htm"); 
	}
	else {
	document.write('<frameset rows="130,1*" frameborder="NO" border="0" framespacing="0" onLoad="FrameMe();">');
	document.write(' <frame name="topFrame" scrolling="NO" noresize src="top_nav.html">');
	document.write(' <frame name="mainFrame" SRC="'+ srcStr +'">');
	document.write('</frameset>');
	document.write('</html>');
	}
}
function FrameMe() {
    if (document.images) {top.mainFrame.location.replace(self.location.href);}
    else {top.mainFrame.location.href = self.location.href;}
}
if (!(document.layers && (self.innerWidth == 0))) {
    if (top.frames.length != 2) {
        frameWriter()
    }
}


