	function startUp() {
		/* updateLinks(); */
		if (isInternetExplorer && !isPrinterFriendly()) {
			setContentWidth();
		}
	}
	
	window.onload = startUp;
	if (isInternetExplorer && !isPrinterFriendly()) {
		window.onresize = setContentWidth;
	}

	
	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%"; */
		}
	}
	
