﻿// JScript File

// JScript File

function NewWindow(mypage, myname, mywidth, myheight) {
var winl = (screen.width - mywidth) / 2;
var wint = (screen.height - myheight) / 2;
winprops =
'height='+myheight+',width='+mywidth+',top='+wint+',left='+winl+',scrollbars=yes,resizeable=no'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

function PrintFriendly(mypage, myname) {
var winl = (screen.width - 792) / 2;
var wint = (screen.height - 600) / 2;
winprops = 'height=600,width=792,top='+wint+',left='+winl+',scrollbars=yes,resizable'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

function printWindow() {
  bV = parseInt(navigator.appVersion)
  if (bV >= 4) window.print();
    else alert("Sorry, your browser doesn't support this feature.");
    }
    

function closeWindow() {
close();
}

function expandDiv(tahw) {
  table_contract = new Image(0,0);
  //table_contract.src = "/images/plus.gif";
  table_expand = new Image(0,0);
  //table_expand.src = "/images/minus.gif";
  what  = tahw + "_menu"
  where = tahw + "_table"
  if (document.getElementById(what).style.display == "none") {
    document.getElementById(what).style.display = "";
    where.src = table_expand.src;
  } else {
    document.getElementById(what).style.display = "none";
    where.src = table_contract.src;
  }
}

function collapseDiv(tahw) {
  table_contract = new Image(0,0);
  //table_contract.src = "/images/plus.gif";
  table_expand = new Image(0,0);
  //table_expand.src = "/images/minus.gif";
  what  = tahw + "_menu"
  where = tahw + "_table"
  document.getElementById(what).style.display = "none";
  where.src = table_contract.src;
}

function changestyle(id) {
 
  document.getElementById(id).style.visibility="hidden";
 
}
function checkforjavascript() {
 
  document.getElementById("checkJScript").innerHTML="1";
 
}


	function showEventDetail(id) {
		document.getElementById('ev'+id).style.visibility="visible";
	}
	function hideEventDetail(id) {
		document.getElementById('ev'+id).style.visibility="hidden";
	}
	
	
function closedsitemap()
{
  
  var divclose;
  var ulsclose;
  if(!document.getElementById||document.getElementById('divSitemap') == null){return;}
  
  divclose = document.getElementById('divSitemap');
  
  ulsclose = divclose.getElementsByTagName('div');
  var leng = ulsclose.length;
  
  for(var i=0;i<leng;i++)
  {
  ulsclose[i].style.display = "none";
  }
}

function pnloff()
{
  
  if(!document.getElementById||document.getElementById('p7tpc1_2') != null)
  { document.getElementById('p7tpc1_2').style.display = ""; }
  if(!document.getElementById||document.getElementById('p7tpc1_3') != null)
  { document.getElementById('p7tpc1_3').style.display = ""; }
  if(!document.getElementById||document.getElementById('p7tpc1_4') != null)
  { document.getElementById('p7tpc1_4').style.display = ""; }
  if(!document.getElementById||document.getElementById('p7tpc1_5') != null)
  { document.getElementById('p7tpc1_5').style.display = ""; }
  if(!document.getElementById||document.getElementById('p7tpc1_6') != null)
  { document.getElementById('p7tpc1_6').style.display = "";}
  
}

function closedmenu()
{
  
  var divclose;
  var ulsclose;
  if(!document.getElementById||document.getElementById('ITSMenu') == null){return;}
  
  divclose = document.getElementById('ITSMenu');
  
  ulsclose = divclose.getElementsByTagName('div');
  var leng = ulsclose.length;
  
  for(var i=0;i<leng;i++)
  {
  ulsclose[i].style.display = "none";
  }
}