// JavaScript Document

<!--
// Source: CodeFoot.com
// Please leave in this header.
var isReady = false;
window.onload = AW_printerFriendly;isReady=true;

function doSaveAs(){
var firefox = document.getElementById && !document.all;
	if (!firefox && isReady) {
		document.execCommand("SaveAs");
	}
	if (firefox) {
		alert('Feature available only in Internet Exlorer 4.0 and later.');
	}
}


function setActiveStyleSheet(title) {
  var i, a, main;
  for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
    if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title")) {
      a.disabled = true;
      if(a.getAttribute("title") == title) a.disabled = false;
    }
  }
}

function AW_printerFriendly() {
	// Create variable is_input to see if there is a ? in the url
	var is_input = document.URL.indexOf('?');

	// Check the position of the ? in the url
	if (is_input != -1) { 
		// Create variable from ? in the url to the end of the string
		addr_str = document.location.search.substring(1,255);
		// if addr_str = 'printme', use print style sheet
		if (addr_str == "printme")
			setActiveStyleSheet('printer')
		// If there is no ? in the url state no values found
		else
			// Use screen style sheet
			setActiveStyleSheet('screen')
	}
}


// replaced MM_preloadImages() DSK 8/14/09

var preload = ['../images2/42_topbar_r1_c1.jpg','../images2/42_topbar_r1_c2.jpg','../images2/seal.gif','../images2/42_topbar_r1_c11.jpg','../images2/42_sidebar_r1_c2.gif'];

var images = [];
for (i = 0; i < preload.length; i++) {
    images[i] = new Image();
    images[i].src = preload[i];
}



//-->
