////////////////////////////////////////////////////////////////////////////
///image switching functions////////////////////////////////////////////////

var preloadFlag = false;
preloadImages();

function swap(where,which) {
  if (document.images) {
    document[where].src = which;
  }
}

function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

function preloadImages() {
	if (document.images) {
		img_header_homelink_over = newImage("./graphics/header/img_header_homelink_over.jpg");
		img_header_aboutuslink_over = newImage("./graphics/header/img_header_aboutuslink_over.jpg");
		img_header_practicelink_over = newImage("./graphics/header/img_header_practicelink_over.jpg");
		img_header_peoplelink_over = newImage("./graphics/header/img_header_peoplelink_over.jpg");
		img_header_clientslink_over = newImage("./graphics/header/img_header_clientslink_over.jpg");
		img_header_officeslink = newImage("./graphics/header/img_header_officeslink.jpg");
		img_header_contact_us_over = newImage("./graphics/header/img_header_contact_us_over.jpg");
		img_header_go_over = newImage("./graphics/header/img_header_go_over.jpg");

		
		preloadFlag = true;
	}
}

////////////////////////////////////////////////////////////////////////////
//function for css nn fix///////////////////////////////////////////////////

function WM_netscapeCssFix() {

  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()


	function emailLink()
	{
		var agree = confirm('Before you send an e-mail or other communication, you must read this firm\'s Disclaimer and Privacy Policy.  If you have not already done so, please read it now by clicking "Cancel", and clicking on the Disclaimer/Privacy link at the bottom of the page.\n\nBy checking "OK", you agree that you have read the Disclaimer and Privacy Policy and are bound by its terms.  You will then be provided with a form to send an e-mail.\n\nSending this e-mail does not create an attorney-client relationship.')
		return agree;
	}
	function vcardLink()
	{
		var agree = confirm('The V-Card you are about to download contains the telephone number, facsimile number and e-mail address of this person.\n\nBefore you send an e-mail or other communication to this person, you must read this firm\'s Disclaimer and Privacy Policy.  If you have not already done so, please read it now by clicking "Cancel", and clicking on the Disclaimer/Privacy link at the bottom of the page.\n\nBy checking "OK", you agree that you have read the Disclaimer and Privacy Policy and are bound by its terms.  You will then be provided with the V-Card.\n\nDownloading this V-Card does not create an attorney-client relationship.');
		return agree;
	}

	var newwin;
	function newWindow(url)
	{
		newwin = window.open(url,'newWinName','toolbar=yes,menubar=yes,resizable=yes,height=400,width=800');
	}

//end of file///////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////


