/*
	CSS and Javascript Menu (IE5+,NN6+)
	(c)2002 Alltraders Australia Pty Ltd
*/
var Change=0;

function expandbox(item){
	if(document.getElementById){
		for(i=0; i<Box.length; i++){
			j = document.getElementById(Box[i]);
			j.className='hidden';
		}
		m = document.getElementById(item);
		m.className='menubar';
	}
	ain();
}

function expandtitle(item){
	if(document.getElementById){
		for(i=0; i<Title.length; i++){
			j = document.getElementById(Title[i]);
			j.className='hidden';
		}
		m = document.getElementById(item);
		m.className='menubar';
	}
	ain();
}


function ain(){	Change++; }

function menuout(){
	if(document.getElementById){
		setTimeout('if (Change=='+Change+') expand("blankbox");', Timeout);
	}
}


	var Timeout=0;
	// Submenu display in milliseconds
	// List of all sub menus in use + spacer menu
	var Title=new Array(
		'protitle',
		'forumtitle',
		'newstitle',
		'contacttitle',
		'searchtitle',
		'blanktitle'
		);

	var Box=new Array(
		'proshop',
		'forum',
		'news',
		'contact',
		'search',
		'blankbox'
		);

function newwindow(url,width,height) {var NewWin = window.open(url,"NewWin","toolbar=no,directories=no,menubar=no,status=no,scrollbars=yes,resizable=yes,fullscreen=no,width="+width+",height="+height); NewWin.focus(); }
