// NOTE:  New Browser detection code, more effecient and allows Netscape 4.0
//        And the new IE 4.0 which now supports image arrays.
//
//  This code is now being used throughout the net, but this is the source
//  you should refer to for updates.  We're modifying it as the net changes.
//
//  Copyright 1996-97 Project Cool, Inc.  Used by the net, with permission but
//  we would appreciate it if you would give us credit in the source or a link
//  from your site. This statement must be included in the webpage.
//  http://www.projectcool.com
//

// set the sesource cookie for search engine
  url = document.URL;
  source = '';
  if (url.indexOf('?source=') > -1)
  {
    source = url.substr(url.indexOf('?source=')+8);

    var exp = new Date()
    var oneWeekFromNow = exp.getTime() + (7 * 24 * 60 * 60 * 1000)
    exp.setTime(oneWeekFromNow)

    var cki = 'sesource='+source+'; expires='+exp.toGMTString()+'; path=/; domain=www.hallogram.com'

    document.cookie = cki
  }

        browser = (((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) >= 3 )) || ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4 )))

        if ( browser) {
                normal = new MakeArray(6)
                over = new MakeArray(6)
                blurb = new MakeArray(7)

                normal[1].src = "/home1.gif"
                normal[2].src = "/product1.gif"
                normal[3].src = "/resource1.gif"
                normal[4].src = "/search1.gif"
                normal[5].src = "/contact1.gif"

                over[1].src = "/home2.gif"
                over[2].src = "/product2.gif"
                over[3].src = "/resource2.gif"
                over[4].src = "/search2.gif"
                over[5].src = "/contact2.gif"

                blurb[1] = "Return to the Barcode Store Home Page"
                blurb[2] = "View the extensive Barcode Store Product Listings"
                blurb[3] = "Complete barcode resources, including technical information, symbology descriptions, and much more"
                blurb[4] = "Search the Barcode Store Web Site"
                blurb[5] = "How to Contact the Barcode Store"
                blurb[6] = ""
                }

      function MakeArray(n) {
              this.length = n
              for (var i = 1; i<=n; i++) {
                      this[i] = new Image()
                      }
              return this
      }

        function msover(num) {
                        if ( browser) {
                                document.images[num+3].src = over[num+1].src
                                window.status = blurb[num+1]
                        }
                }

        function msout(num) {
                        if ( browser) {
                                document.images[num+3].src = normal[num+1].src
                                window.status = blurb[6]
                        }
                }
