// Rollover buttons

var portfolioOff = new Image(112, 32);
var portfolioOn = new Image(112, 32);
var clientsOff = new Image(112, 32);
var clientsOn = new Image(112, 32);
var stockOff = new Image(112, 32);
var stockOn = new Image(112, 32);
var ratesOff = new Image(106, 32);
var ratesOn = new Image(106, 32);
var contactOff = new Image(112, 32);
var contactOn = new Image(112, 32);
var printsOff = new Image(106, 32);
var printsOn = new Image(106, 32);
var linksOff = new Image(106, 32);
var linksOn = new Image(106, 32);
var pr_Off = new Image(136, 18);
var pr_On = new Image(136, 18);
var stockport_Off = new Image(136, 18);
var stockport_On = new Image(136, 18);
var general_Off = new Image(136, 18);
var general_On = new Image(136, 18);
var events_Off = new Image(136, 18);
var events_On = new Image(136, 18);
var editorial_Off = new Image(136, 18);
var editorial_On = new Image(136, 18);

portfolioOff.src = "images/portfolioOff.gif";
portfolioOn.src = "images/portfolioOn.gif";
clientsOff.src = "images/clientsOff.gif";
clientsOn.src = "images/clientsOn.gif";
stockOff.src = "images/stockOff.gif";
stockOn.src = "images/stockOn.gif";
ratesOff.src = "images/ratesOff.gif";
ratesOn.src = "images/ratesOn.gif";
contactOff.src = "images/contactOff.gif";
contactOn.src = "images/contactOn.gif";
printsOff.src = "images/printsOff.gif";
printsOn.src = "images/printsOn.gif";
linksOff.src = "images/linksOff.gif";
linksOn.src = "images/linksOn.gif";
pr_Off.src = "images/pr_Off.gif";
pr_On.src = "images/pr_On.gif";
stockport_Off.src = "images/stockport_Off.gif";
stockport_On.src = "images/stockport_On.gif";
general_Off.src = "images/general_Off.gif";
general_On.src = "images/general_On.gif";
events_Off.src = "images/events_Off.gif";
events_On.src = "images/events_On.gif";
editorial_Off.src = "images/editorial_Off.gif";
editorial_On.src = "images/editorial_On.gif";

// BrowserCheck Object
// provides most commonly needed browser checking variables
// 19990326

// Copyright (C) 1999 Dan Steinman
// Distributed under the terms of the GNU Library General Public License
// Available at http://www.dansteinman.com/dynapi/

function BrowserCheck() {
	var b = navigator.appName
	if (b=="Netscape") this.b = "ns"
	else if (b=="Microsoft Internet Explorer") this.b = "ie"
	else this.b = b
	this.v = parseInt(navigator.appVersion)
	this.ns = (this.b=="ns" && this.v>=4)
	this.ns4 = (this.b=="ns" && this.v==4)
	this.ns5 = (this.b=="ns" && this.v==5)
	this.ie = (this.b=="ie" && this.v>=4)
	this.ie4 = (navigator.userAgent.indexOf('MSIE 4')>0)
	this.ie5 = (navigator.userAgent.indexOf('MSIE 5')>0)
	if (this.ie5) this.v = 5
	this.min = (this.ns||this.ie)
}

// automatically create the "is" object
is = new BrowserCheck()


function WM_netscapeCssFix() {
  /*
    Source: Webmonkey Code Library
    (http://www.hotwired.com/webmonkey/javascript/code_library/)

    Author: Taylor
    Author Email: taylor@wired.com
    Author URL: http://www.taylor.org/
    */

  // This part was inspired by Matthew_Baird@wayfarer.com
  // It gets around another unfortunate bug whereby Netscape 
  // fires a resize event when the scrollbars pop up. This 
  // checks to make sure that the window's available size 
  // has actually changed.
  if (document.WM.WM_netscapeCssFix.initWindowWidth != window.innerWidth || document.WM.WM_netscapeCssFix.initWindowHeight != window.innerHeight) {
    document.location = document.location;
  }
}

function WM_netscapeCssFixCheckIn() {
  // This function checks to make sure the version of Netscape 
  // in use contains the bug; if so, it records the window's 
  // width and height and sets all resize events to be handled 
  // by the WM_netscapeCssFix() function.
  if ((navigator.appName == 'Netscape') && (parseInt(navigator.appVersion) == 4)) {
    if (typeof document.WM == 'undefined'){
      document.WM = new Object;
    }
    if (typeof document.WM.WM_scaleFont == 'undefined') {
      document.WM.WM_netscapeCssFix = new Object;
      document.WM.WM_netscapeCssFix.initWindowWidth = window.innerWidth;
      document.WM.WM_netscapeCssFix.initWindowHeight = window.innerHeight;
    }
    window.onresize = WM_netscapeCssFix;
  }
}

WM_netscapeCssFixCheckIn()





