	function startUp() {
		updateLinks();
		if (isInternetExplorer && !isPrinterFriendly()) {
			setContentWidth();
		}
	}
	
	window.onload = startUp;
	if (isInternetExplorer && !isPrinterFriendly()) {
		window.onresize = setContentWidth;
	}

	/** Standard popup window open
	 * The first parameter will be the new URL.
	 * Subsequent parameters will be (if supplied) the width and height.
	 * If not specified the width and height will be 500 and 200 respectively.
	 */
	function openWin()
	{
		var url, width=600, height=400, menu=""; args = arguments;
		url = args[0];
		if (args.length>1)
		{
			width=args[1];
		}
		if (args.length>2)
		{
			height=args[2];
		}
		if (args.length>3)
		{
			if (args[3])
			{
				menu=",menubar=yes,toolbar=yes";
			}
		}
		var newwin = window.open(url, 'newWin'+Math.floor(Math.random()*1000), 'width='+width+',height='+height+',scrollbars,resizable' + menu);
	}

    /** Standard popup window open
	 * The first parameter will be the new URL.
	 * Subsequent parameters will be (if supplied) the width and height.
	 * If not specified the width and height will be 500 and 200 respectively.
     'toolbar=no, directories=no, location=no,
  status=yes, menubar=no, resizable=no, scrollbars=no,
  width=300, height=200');
	 */
	function openCustomWin()
	{
		var url, width=500, height=200, toolbar=""; args = arguments; menubar="";scrollbars="";resizable="";screenX=200;screenY=200;
		url = args[0];
		if (args.length>1)
		{
			width=args[1];
		}
		if (args.length>2)
		{
			height=args[2];
		}
		if (args.length>3)
		{
			if (args[3])
			{
				toolbar="toolbar=yes";
			}
		}
        if (args.length>4)
		{
			if (args[4])
			{
				menubar="menubar=yes";
			}
		}
        if (args.length>5)
		{
			if (args[5])
			{
				scrollbars="scrollbars";
			}
		}
        if (args.length>6)
		{
			if (args[6])
			{
				resizable="resizable";
			}
		}
         if (args.length>7)
		{
			if (args[7])
			{
				screenX=args[7];
			}
		}
         if (args.length>8)
		{
			if (args[8])
			{
				screenY=args[8];
			}
		}

		var newwin = window.open(url, 'newWin', 'width='+width+',height='+height+','+toolbar+','+menubar+','+scrollbars+','+resizable+','+status+',screenX='+screenX+',screenY='+screenY);
	}

	function openNonEncodedUrlWin()
	{
		var url, width=500, height=200, menu=""; args = arguments;
		url = args[0];
		if (args.length>1)
		{
			width=args[1];
		}
		if (args.length>2)
		{
			height=args[2];
		}
		if (args.length>3)
		{
			if (args[3])
			{
				menu=",menubar=yes,toolbar=yes";
			}
		}

		var newwin = window.open(url, 'newWin', 'width='+width+',height='+height+',scrollbars,resizable' + menu);
	}
	
	function printPage() {
if (window.print)
    window.print()
	else
	alert( "Sorry, your browser doesn't support this feature. Please use the Print menu option of this browser to print the page. " );
	}
	
/*-- Back to Webpage --*/
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;
    }
  }
}

/* Disable right-click */
function clickIE4(){
if (event.button==2){
//alert(message);
return false;
}
}

function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
//alert(message);
return false;
}
}
}

if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}

document.oncontextmenu=new Function("return false")

	function isInternetExplorer() {
		return navigator.appName.indexOf("Microsoft") > -1;
	}
	
	function isPrinterFriendly() {
		var printFriendlyRegExp = /\/url\/printerFriendly\/[^\/]+\/on/;
		var url = window.location.href;
		
		return printFriendlyRegExp.test(url);
	}
	
	function setContentWidth() {
        	// Additional check to make sure we're in MSIE
		if (!isInternetExplorer) {
			return;
		}
		
		var winWidth = document.body.offsetWidth;
		
		if (winWidth < 790) {
			document.getElementById("header").style.width = "770px";
			document.getElementById("allSiteContent").style.width = "770px";
		} else {
			document.getElementById("header").style.width = "100%";
			document.getElementById("allSiteContent").style.width = "100%";
		}
	}
	
// obd code for popups
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

// obd code for flash animations
//v1.0
//Copyright 2006 Adobe Systems, Inc. All rights reserved.
function AC_AddExtension(src, ext)
{
  if (src.indexOf('?') != -1)
    return src.replace(/\?/, ext+'?'); 
  else
    return src + ext;
}

function AC_Generateobj(objAttrs, params, embedAttrs) 
{ 
  var str = '<object ';
  for (var i in objAttrs)
    str += i + '="' + objAttrs[i] + '" ';
  str += '>';
  for (var i in params)
    str += '<param name="' + i + '" value="' + params[i] + '" /> ';
  str += '<embed ';
  for (var i in embedAttrs)
    str += i + '="' + embedAttrs[i] + '" ';
  str += ' ></embed></object>';

  document.write(str);
}

function AC_FL_RunContent(){
  var ret = 
    AC_GetArgs
    (  arguments, ".swf", "movie", "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
     , "application/x-shockwave-flash"
    );
  AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);
}

function AC_SW_RunContent(){
  var ret = 
    AC_GetArgs
    (  arguments, ".dcr", "src", "clsid:166B1BCA-3F9C-11CF-8075-444553540000"
     , null
    );
  AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);
}

function AC_GetArgs(args, ext, srcParamName, classid, mimeType){
  var ret = new Object();
  ret.embedAttrs = new Object();
  ret.params = new Object();
  ret.objAttrs = new Object();
  for (var i=0; i < args.length; i=i+2){
    var currArg = args[i].toLowerCase();    

    switch (currArg){	
      case "classid":
        break;
      case "pluginspage":
        ret.embedAttrs[args[i]] = args[i+1];
        break;
      case "src":
      case "movie":	
        args[i+1] = AC_AddExtension(args[i+1], ext);
        ret.embedAttrs["src"] = args[i+1];
        ret.params[srcParamName] = args[i+1];
        break;
      case "onafterupdate":
      case "onbeforeupdate":
      case "onblur":
      case "oncellchange":
      case "onclick":
      case "ondblClick":
      case "ondrag":
      case "ondragend":
      case "ondragenter":
      case "ondragleave":
      case "ondragover":
      case "ondrop":
      case "onfinish":
      case "onfocus":
      case "onhelp":
      case "onmousedown":
      case "onmouseup":
      case "onmouseover":
      case "onmousemove":
      case "onmouseout":
      case "onkeypress":
      case "onkeydown":
      case "onkeyup":
      case "onload":
      case "onlosecapture":
      case "onpropertychange":
      case "onreadystatechange":
      case "onrowsdelete":
      case "onrowenter":
      case "onrowexit":
      case "onrowsinserted":
      case "onstart":
      case "onscroll":
      case "onbeforeeditfocus":
      case "onactivate":
      case "onbeforedeactivate":
      case "ondeactivate":
      case "type":
      case "codebase":
        ret.objAttrs[args[i]] = args[i+1];
        break;
      case "width":
      case "height":
      case "align":
      case "vspace": 
      case "hspace":
      case "class":
      case "title":
      case "accesskey":
      case "name":
      case "id":
      case "tabindex":
        ret.embedAttrs[args[i]] = ret.objAttrs[args[i]] = args[i+1];
        break;
      default:
        ret.embedAttrs[args[i]] = ret.params[args[i]] = args[i+1];
    }
  }
  ret.objAttrs["classid"] = classid;
  if (mimeType) ret.embedAttrs["type"] = mimeType;
  return ret;
}

