//CUSTOMISABLE VARIABLES
var menupages = "howtoorder,orders,Goulburn%20Valley,King%20and%20Alpine%20Valleys,Strathbogie%20Ranges,Nagambie%20%2F%20Heathcote,Murray%20River,Other%20Regions,fullwinelist,Dons,Limited";//insert filename of pages linked to in left menu
var isMenuPage = false;
//GLOBAL VARIABLES

//BROWSERS
var recentBrowser = false; 
var isIE=false;
if ((parseInt(navigator.appVersion) >= 4 && navigator.appVersion.indexOf("MSIE") != -1) || ((parseInt(navigator.appVersion) >= 6 && navigator.appName.indexOf("Netscape") != -1))){
	recentBrowser = true; //Opera 7 also true for these parameters
	isIE=true;
}
if ((parseInt(navigator.appVersion) >= 5 && navigator.appName.indexOf("Netscape") != -1) || ((parseInt(navigator.appVersion) >= 6 && navigator.appName.indexOf("Netscape") != -1))){
	recentBrowser = true;
}

//FRAMES ADJUSTMENT
if (window.location != top.location){top.location.href=window.location};

//STYLES BROWSER ADJUSTMENT
if(!isIE){document.write("<style>body,td,th,p,li{font-size:small;}</style>")}

//DATE & TIME
var days = new Array(7);
days[1]="Sunday";days[2]="Monday";days[3]="Tuesday";days[4]="Wednesday";days[5]="Thursday";days[6]="Friday";days[7]="Saturday";
var months = new Array(12);
months[1]="Jan";months[2]="Feb";months[3]="Mar";months[4]="Apr";months[5]="May";months[6]="Jun";months[7]="Jul";months[8]="Aug";months[9]="Sep";months[10]="Oct";months[11]="Nov";months[12]="Dec";
var today = new Date();
var day = days[today.getDay() + 1]
var month = months[today.getMonth() + 1]
var date = today.getDate()
var year=today.getYear(); 
if(year<2000){year = year + 1900;}

//MENU HIGHLIGHTING
var page;
var size="";
querystring = location.search;
if(querystring!=""){
		var pairs = querystring.split("&");
		var first = pairs[0].split("=");
		page = first[1];
}	

function highlightMenu(){
		if(recentBrowser){
			if(location.search.indexOf("page=")>-1){
				isMenuPage=true;
				document.getElementById(page).className="menubtnactive";
				//document.getElementById(fname).childNodes[0].childNodes[0].childNodes[0].childNodes[0].className="menutextactive";
			}
		}
}
function mouseoverMenu(menuid){
	if(recentBrowser){
		if (menuid==page){
			document.getElementById(menuid).style.className="menubtnactive";
		}else{
			if (isIE){document.getElementById(menuid).style.cursor="hand";}
			document.getElementById(menuid).className="menubtnover";
			//document.getElementById(menuid).title="Go to "+unescape(menuid.toUpperCase());
			//window.status="product.php?page="+menuid;
		}
	}	
}
function mouseoutMenu(menuid){
	if(recentBrowser){
		if (menuid==page){
			document.getElementById(menuid).className="menubtnactive";
		}else{
			document.getElementById(menuid).className="menubtn";
		}
	}
}
function fnmenulink(menulink){
	if(recentBrowser){
		location.href= menulink;
	}
}
