<!-- Hide
// fix for div resize problem
var BrowserDetect = {
	init: function () {
		this.browser = this.searchString(this.dataBrowser) || "An unknown browser";
		this.version = this.searchVersion(navigator.userAgent)
			|| this.searchVersion(navigator.appVersion)
			|| "an unknown version";
		this.OS = this.searchString(this.dataOS) || "an unknown OS";
	},
	searchString: function (data) {
		for (var i=0;i<data.length;i++)	{
			var dataString = data[i].string;
			var dataProp = data[i].prop;
			this.versionSearchString = data[i].versionSearch || data[i].identity;
			if (dataString) {
				if (dataString.indexOf(data[i].subString) != -1)
					return data[i].identity;
			}
			else if (dataProp)
				return data[i].identity;
		}
	},
	searchVersion: function (dataString) {
		var index = dataString.indexOf(this.versionSearchString);
		if (index == -1) return;
		return parseFloat(dataString.substring(index+this.versionSearchString.length+1));
	},
	dataBrowser: [
		{ 	string: navigator.userAgent,
			subString: "OmniWeb",
			versionSearch: "OmniWeb/",
			identity: "OmniWeb"
		},
		{
			string: navigator.vendor,
			subString: "Apple",
			identity: "Safari"
		},
		{
			prop: window.opera,
			identity: "Opera"
		},
		{
			string: navigator.vendor,
			subString: "iCab",
			identity: "iCab"
		},
		{
			string: navigator.vendor,
			subString: "KDE",
			identity: "Konqueror"
		},
		{
			string: navigator.userAgent,
			subString: "Firefox",
			identity: "Firefox"
		},
		{
			string: navigator.vendor,
			subString: "Camino",
			identity: "Camino"
		},
		{		// for newer Netscapes (6+)
			string: navigator.userAgent,
			subString: "Netscape",
			identity: "Netscape"
		},
		{
			string: navigator.userAgent,
			subString: "MSIE",
			identity: "Explorer",
			versionSearch: "MSIE"
		},
		{
			string: navigator.userAgent,
			subString: "Gecko",
			identity: "Mozilla",
			versionSearch: "rv"
		},
		{ 		// for older Netscapes (4-)
			string: navigator.userAgent,
			subString: "Mozilla",
			identity: "Netscape",
			versionSearch: "Mozilla"
		}
	],
	dataOS : [
		{
			string: navigator.platform,
			subString: "Win",
			identity: "Windows"
		},
		{
			string: navigator.platform,
			subString: "Mac",
			identity: "Mac"
		},
		{
			string: navigator.platform,
			subString: "Linux",
			identity: "Linux"
		}
	]

};
BrowserDetect.init();

var timer;
var resized=0;
function checkSizestimer()	{
	if (resized==0)	{
		doResize();
		clearTimeout(timer)
		timer=setTimeout(clearResize,1500);
	}
}

function clearResize()	{
	clearTimeout(timer);
	resized=0;
}

function checkSizes()	{
if (BrowserDetect.browser=="Explorer" && BrowserDetect.version < 7)	{
		var checkFlag = -1;
		for (var i = 0;i<document.images.length;i++)
		{
			if (document.images[i].width > (document.getElementById('ContentColumn').offsetWidth-50))
				if ((checkFlag == -1) || ((checkFlag > -1) && (document.images[i].width > document.images[checkFlag].width)))
					checkFlag = i;
		}
		
		if (checkFlag > -1)
		{
			document.getElementById('ContentColumn').style.position = "absolute";
			document.getElementById('ContentColumn').style.Width = (document.images[checkFlag].width+50)+"px";
			document.getElementById('ContentColumn').style.top =  "85px";
			document.getElementById('ContentColumn').style.left = "0px";
			document.getElementById('ContentColumn').style.right = (document.images[checkFlag].width-150)+ "px";
			
			resized=1;
		}
		else
		{
			document.getElementById('ContentColumn').style.Width = "";
			document.getElementById('ContentColumn').style.position = "";
			document.getElementById('ContentColumn').style.top =  "";
			document.getElementById('ContentColumn').style.left = "";
			document.getElementById('ContentColumn').style.right = "";
			resized=0;
		}
		checkFlag = -1;
}
}

// cookie functions
function setCookie(name, value, escapeValue, expires, path, domain, secure) {

    var cookieToken = name + '=' + ((escapeValue) ?  escape(value) : value) + ((expires) ? '; expires=' + expires.toGMTString() : '') + ((path) ? '; path=' + path : '') + ((domain) ? '; domain=' + domain : '') + ((secure) ? '; secure' : '');
    document.cookie = cookieToken;

}

function getCookie(name) {
    var allCookies = document.cookie;
    
    var cookieName = name + "=";
    var start = allCookies.indexOf("; " + cookieName);
    
    if (start == -1) {
        start = allCookies.indexOf(cookieName);
        if (start != 0) return null;
    }
    else start += 2;
    
    var end = document.cookie.indexOf(";", start);
    if (end == -1) end = allCookies.length;
    
    return unescape(allCookies.substring(start + cookieName.length, end));
}

function deleteCookie(name, path, domain) {
    var value = getCookie(name);
    if (value != null) document.cookie = name + '=' + ((path) ? '; path=' + path : '') + ((domain) ? '; domain=' + domain : '') + '; expires=Thu, 01-Jan-70 00:00:01 GMT';
    return value;
}

function verifyCookieSafe() {
    setCookie('pingCookies', 'hello');
    if (getCookie('pingCookies')) return true;
    else return false;
}

// text size functions
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 getActiveStyleSheet() { 
  var i, a;
  for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
    if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title") && !a.disabled) return a.getAttribute("title");
  }
  return null;
}

function getPreferredStyleSheet() {
  var i, a;
  for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
    if(a.getAttribute("rel").indexOf("style") != -1
       && a.getAttribute("rel").indexOf("alt") == -1
       && a.getAttribute("title")
       ) return a.getAttribute("title");
  }
  return "normal";
}

window.onunload = function(e) {
    var title = getActiveStyleSheet();
    setCookie("style", title, false, "", "/", "", false);
}

window.onload = function(e)	{
	var title;
	title = getCookie("style");
	if (title == "null")	{
		title = "normal";
	}
	if (title == null)	{
		title = "normal";
	}
	setActiveStyleSheet(title);
}

// Pop-up window for Press, Jobs and other Word "Save as Web Page" docs
function popWin(url,name) {
        window.open(url,name,"scrollbars=yes,menubar=yes,resizable=1,width=700,height=500");
}

//Confirm box to go to Adobe Reader download site when PDF icon is clicked
function PDFconfirmation() {
	var answer = confirm("This PDF document requires Adobe Reader to view. To download Adobe Reader for free, click OK.  If you already have Adobe Reader, click Cancel.")
	if (answer){
		window.open('http://www.adobe.com/products/acrobat/readstep2.html')
	}
	else{
		
	}
}


// IE Fix for MIN-WIDTH for CSS Layout

<!--
function P7_limit(a,b){ //v1.1.2 by PVII-www.projectseven.com
 document.p7limit=a;document.p7min=b;
 if(document.getElementById&&navigator.appVersion.indexOf("MSIE")>-1&&!window.opera){
 if(window.attachEvent){window.attachEvent("onresize",P7_setMinWidth);
 window.attachEvent("onload",P7_setMinWidth);}else{onload=P7_setMinWidth;
 onresize=P7_setMinWidth;}}}P7_limit('PageWrapper',950);
function P7_setMinWidth(){ //v1.1.2 by PVII-www.projectseven.com
 var cw,w,pl,pr,ml,mr,br,bl,ad,theDiv=document.p7limit;
 var g=document.getElementById(theDiv);w=parseInt(document.p7min);
 if(g&&document.body&&document.body.clientWidth){gs=g.currentStyle;
 cw=parseInt(document.body.clientWidth);pl=parseInt(gs.paddingLeft);
 pr=parseInt(gs.paddingRight);ml=parseInt(gs.marginLeft);mr=parseInt(gs.marginRight);
 bl=parseInt(gs.borderLeftWidth);br=parseInt(gs.borderRightWidth);ml=ml?ml:0;
 mr=mr?mr:0;pl=pl?pl:0;pr=pr?pr:0;bl=bl?bl:0;br=br?br:0;ad=pl+pr+ml+mr+bl+br;
 if(cw<=w){w-=ad;g.style.width=w+"px";}else{g.style.width="auto";}}
}
//-->



// Random image display
rnd.today=new Date();
rnd.seed=rnd.today.getTime();

function rnd() {
         rnd.seed = (rnd.seed*9301+49297) % 233280;
         return rnd.seed/(233280.0);
};

function rand(number) {
         return Math.ceil(rnd()*number);
};

// End -->