var version = false;

function browser () {
   this.name         = navigator.appName.toLowerCase ();
   this.majversion   = parseInt ( navigator.appVersion.toLowerCase () );
   this.minversion   =
      parseInt ( ( 
            parseFloat ( 
               navigator.appVersion.toLowerCase () 
            ) - this.majversion 
         )
         * 10
      );
   this.agent     = navigator.userAgent.toLowerCase ();

   this.dom       = ( document.getElementById );
   
   this.opera     = ( this.agent.indexOf ( 'opera' ) >= 0 );
   this.IE        = ( this.agent.indexOf ( 'msie' ) >= 0 && !this.opera );
   this.NS        = ( this.agent.indexOf ( 'netscape' ) >= 0 && !this.opera );
   this.NS4       = ( this.majversion >= 4 );
   this.NS6       = ( this.majversion >= 5 );
   this.IE4       = ( this.majversion >= 4 );
   this.IE5       = ( this.majversion >= 5 );
   this.IE55      = ( this.IE5 && this.minversion >= 5 );
   this.IE6       = ( this.majversion >= 6 );
}

var is = new browser ();
var version = ( is.NS4 || is.IE4 || is.opera );
var button = [];

if ( version ) {
   for ( var t = 1; t <= 18; t ++ ) {
      button [ t ] = new Image ();   
   }
   button [ 1 ] .src = "./images/home-1.gif";
   button [ 2 ] .src = "./images/home-2.gif";

   button [ 3 ] .src = "./images/products-1.gif";
   button [ 4 ] .src = "./images/products-2.gif";

   button [ 5 ] .src = "./images/service-1.gif";
   button [ 6 ] .src = "./images/service-2.gif";

   button [ 7 ] .src = "./images/company-1.gif";
   button [ 8 ] .src = "./images/company-2.gif";

   button [ 9 ] .src = "./images/contact-1.gif";
   button [ 10 ] .src = "./images/contact-2.gif";

   button [ 11 ] .src = "./images/home-1.gif";
   button [ 12 ] .src = "./images/home-2.gif";

   button [ 13 ] .src = "./images/olive-oil-1.gif";
   button [ 14 ] .src = "./images/olive-oil-2.gif";

   button [ 15 ] .src = "./images/dairy-cheese-1.gif";
   button [ 16 ] .src = "./images/dairy-cheese-2.gif";

   button [ 17 ] .src = "./images/industrial-1.gif";
   button [ 18 ] .src = "./images/industrial-2.gif";

}

function display ( img, num ) { 
   if ( version ) 
      document.images [ img ].src = button [ num ].src;
}

		var IE4 = false, NS4 = false;
		if ( navigator.appName == "Netscape" && parseInt ( navigator.appVersion ) >= 4 )
		   NS4 = true;
		else if ( navigator.appName == "Microsoft Internet Explorer" && parseInt ( navigator.appVersion ) >= 4 )
		   IE4 = true;

		function doLayer ( layerNaam, aanOfUit ) {
         if ( document.getElementById )
            document.getElementById ( layerNaam ).style.visibility = aanOfUit;
		   if ( IE4 )
		      document.all [ layerNaam ].style.visibility = aanOfUit;
		   else if ( NS4 )
		      document.layers [ layerNaam ].visibility = aanOfUit;
		}

function popUp(fileName, popUpWidth, popUpHeight) {
   margeLeft = (screen.width - popUpWidth) / 2;
   margeTop = (screen.height - popUpHeight) / 2;
   
   parameterString = "width=" + popUpWidth + ",height=" + popUpHeight + ",left=" + margeLeft + ",top=" + margeTop + ",scrollbars=no";
   popWindow = window.open(fileName, "_blank", parameterString);
   popWindow.focus();
}
















