
// created by Geoff Pack
// geoff@spike.com.au
//
// modified for Netscape 6:  june 2000
// modified to speed up show/hide layers: may 2003

function show() {
    // shows multiple layers
    // does not work in NS4 with nested layers
    var args = show.arguments;
	var arg;
	var elem;
	for (var i=0; i<(args.length); i++) {
		arg=args[i];
		if (document.getElementById) { 		// IE5, NS6
			elem = document.getElementById(arg);
			if (elem) elem.style.visibility = 'visible';
		} else if (document.all) { 			// IE4
			elem = document.all[args[i]];
			if (elem) elem.style.visibility = 'visible';
        } else if (document.layers) {		// NS4
			elem = document.layers[args[i]];
			if (elem) elem.visibility = 'visible';
        }
		
	}
}
function hide() {
    // hides multiple layers
    // does not work in NS4 with nested layers
    var args = hide.arguments;
	var arg;
	var elem;
	for (var i=0; i<(args.length); i++) {
		arg=args[i];
		if (document.getElementById) { 		// IE5, NS6
			elem = document.getElementById(arg);
			if (elem) elem.style.visibility = 'hidden';
		} else if (document.all) { 			// IE4
			elem = document.all[args[i]];
			if (elem) elem.style.visibility = 'hidden';
        } else if (document.layers) {		// NS4
			elem = document.layers[args[i]];
			if (elem) elem.visibility = 'hidden';
        }
    }
}

//Natacha's stuff : last update 7.03.2003

var objPopup = null;

function openWindow(winURL, winName, winFeatures) {

	//Examples of params in call:
	//winURL = "auskick/auskick.aspx"
	//winName = "help";
	//winFeatures = "height=460,width=560,scrollbars=1";
	
	if ((navigator.appName == "Netscape") || (navigator.platform == "MacPPC")) {
		objPopup = window.open(winURL, winName, winFeatures);
		if (objPopup.opener == null) objPopup.opener = window
		else objPopup.focus();
	} else {
		objPopup = window.open(winURL, winName, winFeatures);
		objPopup.focus();
	}

}
