function Is() {
  agent       = navigator.userAgent.toLowerCase();
  this.major  = parseInt(navigator.appVersion);
  this.minor  = parseFloat(navigator.appVersion);
  this.ns     = ((agent.indexOf('mozilla')   != -1) &&
                (agent.indexOf('spoofer')    == -1) &&
                (agent.indexOf('compatible') == -1) &&
                (agent.indexOf('opera')      == -1) &&
                (agent.indexOf('webtv')      == -1) &&
                (agent.indexOf('hotjava')    == -1) &&
      (agent.indexOf("msie")  == -1));
  this.ns2    = (this.ns && (this.major      ==  2));
  this.ns3    = (this.ns && (this.major      ==  3));
  this.ns4    = (this.ns && (this.major      ==  4));
  this.ns6    = (this.ns && (this.major      >=  5));
  this.ie     = ((agent.indexOf("msie")      != -1) &&
                (agent.indexOf("opera")      == -1));
  this.ie3    = (this.ie && (this.major      <   4));
  this.ie4    = (this.ie && (this.major      ==  4) &&
                (agent.indexOf("msie 4")     != -1));
  this.ie5    = (this.ie && (this.major      ==  4) &&
                (agent.indexOf("msie 5")     != -1) &&
                (agent.indexOf("msie 5.5")   == -1) &&
                (agent.indexOf("mac")        == -1));
  this.iem5   = (this.ie && (this.major      ==  4) &&
                (agent.indexOf("msie 5.")    != -1) &&
               (agent.indexOf("mac")        != -1));
  this.ie55   = (this.ie && (this.major      ==  4) &&
                (agent.indexOf("msie 5.5")   != -1));
  this.ie6    = (this.ie && (this.major      ==  4) &&
                (agent.indexOf("msie 6")     != -1 || agent.indexOf("msie 7") != -1));
  
  this.moz = (agent.indexOf("gecko")!= -1)
  this.nsdom  = (this.ns4  || this.ns6);
  this.win = (agent.indexOf("win") != -1);
  this.iestrict = (this.win && this.ie6 && document.compatMode == "CSS1Compat");
  this.macstrict = (this.ie5 && this.iemac && document.doctype && document.doctype.name.indexOf(".dtd") != -1);
  this.strict = (this.iestrict || this.macstrict);
  this.iemac =(this.iem5);
  this.iewin = ((this.ie5 && !this.iemac || this.ie55 || this.ie6) && this.win);
  this.dom = (this.iewin || this.ns6 || this.moz);
}
var is = new Is();
var css_px = (is.ns4 || is.ie4) ?"" : "px";

if (is.iewin) {var ga=document.all; var pga=parent.document.all};

// LOADING NAVIGATION BAR
function LoadNAVbar() {
	var NV = new Array();
    var NAVstr='';
	  NV[0]='<li id="icare1" style="width:98px"><a href="index.htm">HOME</a></li>';
	  NV[1]='<li id="icare1" style="width:129px; border-left: 1px solid #9d9d9d;"><a href="stanthorpewine.htm">ABOUT US</a></li>';
      NV[2]='<li id="icare1" style="width:184px; border-left: 1px solid #9d9d9d;"><a href="commemorative.htm">COMMEMORATIVE BOTTLES</a></li>';
      NV[3]='';
      NV[4]='<li id="icare1" style="width:133px; border-left: 1px solid #9d9d9d;"><a href="https://secure1.ilisys.com.au/oldca/">ONLINE SALES</a></li>';
      NV[5]='<li id="icare1" style="width:114px; border-left: 1px solid #9d9d9d;"><a href="wine.htm">PHOTOS</a></li>';
      NV[6]='<li id="icare1" style="width:119px; border-left: 1px solid #9d9d9d;"><a href="winemaking.htm">WINE MAKING</a></li>';
      NV[7]='<li id="icare1" style="width:149px; border-left: 1px solid #9d9d9d;"><a href="contactus.htm">CONTACTS & MAPS</a></li>';
for (i=0; i<NV.length; i++) {	NAVstr=NAVstr+NV[i]};
				document.write(NAVstr);
}
