	var URL = unescape(location.href)	// get current URL in plain ASCII
	var xstart = URL.lastIndexOf("/") + 1
	var xend = URL.length
	var currentPage = URL.substring(xstart,xend)
	//var herePath = URL.substring(0,xstart)
	//document.write("The name of the current file is: " + currentPage);
	//var herePath = URL.substring(14,xstart)	
	var ystart = URL.lastIndexOf("/or/") 
	var yend = URL.length
	var herePath = URL.substring(ystart,yend)
	//document.write("The path of the current file is: " + herePath)




function P7_JumpMenu(selObj,restore){ 
	var theFullString = selObj.options[selObj.selectedIndex].value;
	if (restore) selObj.selectedIndex=0;
	var theLength = theFullString.length;
	var endPos = theFullString.lastIndexOf("~");
	var theUrl, theTarget, theParent;
	if (endPos > 0) {theUrl = theFullString.substring(0,endPos);}
	else {theUrl = theFullString;}
	endPos++
	if (endPos < theLength) {theTarget = theFullString.substring(endPos,theLength)}
	else {theTarget = "window:Main";}
	if (theTarget == "window:New") {window.open(theUrl);}
	else if (theTarget == "window:Main") {eval("parent.location='"+theUrl+"'");}
	else {eval("parent.frames[\'"+theTarget+"\'].location='"+theUrl+"'");}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function P7_JumpMenuGo(selName,restore){ 
  var selObj = MM_findObj(selName); if (selObj) P7_JumpMenu(selObj,restore);
}


function P7_JumpMenu(selObj,restore){ //v1.4 by Project Seven
	var theFullString = selObj.options[selObj.selectedIndex].value;
	if (restore) selObj.selectedIndex=0;
	var theLength = theFullString.length;
	var endPos = theFullString.lastIndexOf("~");
	var theUrl, theTarget, theParent;
	if (endPos > 0) {theUrl = theFullString.substring(0,endPos);}
	else {theUrl = theFullString;}
	endPos++
	if (endPos < theLength) {theTarget = theFullString.substring(endPos,theLength)}
	else {theTarget = "window:Main";}
	if (theTarget == "window:New") {window.open(theUrl);}
	else if (theTarget == "window:Leaving") {return showWarning() && window.open(theUrl)}
	else if (theTarget == "window:Main") {eval("parent.location='"+theUrl+"'");}
	else {eval("parent.frames[\'"+theTarget+"\'].location='"+theUrl+"'");}
}



function toggle(id)
{
	var tr = document.getElementById(id);
	if (tr==null) { return; }
	var bExpand = tr.style.display == '';
	tr.style.display = (bExpand ? 'none' : '');
	var img = document.getElementById('img'+id);
	if (img!=null)
	{
		if (!bExpand) {
			img.src = '../images/minus.gif';
		}	
		else
			img.src = '../images/plus.gif';

	}

	var spn = document.getElementById('spn'+id);
	if (spn!=null)
	{
		if (!bExpand) {
			document.getElementById('spn'+id).firstChild.nodeValue='View Less >>';	
		}
		else {
		document.getElementById('spn'+id).firstChild.nodeValue='View More >>';
		}

	}

}
