﻿<!-- 
//
//
//
// Dropdown controls for Menu Navigation

		var autoClose=1;
		var oldObject=null;
		
		function toggleClamShellMenu(objectID) {
			if ((oldObject)&&(autoClose==1)) oldObject.style.display='none'
			var object = document.getElementById(objectID);
			if (object.style.display =='block')  object.style.display='none';
			else object.style.display='block';
			oldObject = object;
			return;
		}
		

//======================================================
//
//
// this is for opening cross browser pop-up windows
var HasOpenPopup = 0;

function openPopup( url, name, widgets, openerUrl )
{
	var host = location.hostname;
	if (window == top) { window.top.name = "opener"; }
	var popupWin = window.open( url, name, widgets );
	if(popupWin) {HasOpenPopup = 1;}
	if ( popupWin && popupWin.opener ) {
		if ( openerUrl )
		{
			popupWin.opener.location = openerUrl;
		}
	}
	if ( popupWin) {

		popupWin.focus();
	}
}

//======================================================
//
// this is a fix for click to activate flash outline in some ie versions
var bo_ns_id = 0;
function startIeFix() {
  if (isIE()) {
    document.write('<div id="bo_ns_id_' + bo_ns_id + '"><!-- ');
  }
}
function endIeFix() {
  if (isIE()) {
    document.write('</div>');
    var theObject = document.getElementById("bo_ns_id_" + bo_ns_id++);
    var theCode = theObject.innerHTML;
    theCode = theCode.substring(4 ,9+theCode.indexOf("</object>"));
    document.write(theCode);
  }
}
function isIE() {
  // only for Win IE 6+
  // But not in Windows 98, Me, NT 4.0, 2000
  var strBrwsr= navigator.userAgent.toLowerCase();
  if (strBrwsr.indexOf("msie") > -1 && strBrwsr.indexOf("mac") < 0) {
    if (parseInt(strBrwsr.charAt(strBrwsr.indexOf("msie")+5)) < 6) {
      return false;
    }
    if (strBrwsr.indexOf("win98") > -1 ||
       strBrwsr.indexOf("win 9x 4.90") > -1 ||
       strBrwsr.indexOf("winnt4.0") > -1 ||
       strBrwsr.indexOf("windows nt 5.0") > -1)
    {
      return false;
    }
    return true;
  } else {
    return false;
  }
}

//======================================================
//
//  this is fetch data

function fetchData(url,dataRequested,objectID){
	if (dataRequested) var dataRequest = "dataRequest="+ dataRequested;
	var pageRequest = false
	if (window.XMLHttpRequest) {
		pageRequest = new XMLHttpRequest()
	}
	else if (window.ActiveXObject){ 
		try {
			pageRequest = new ActiveXObject("Msxml2.XMLHTTP")
		} 
		catch (e) {
			try{
				pageRequest = new ActiveXObject("Microsoft.XMLHTTP")
			}
			catch (e){}
		}
	}
	else return false
	pageRequest.onreadystatechange=function() {
		filterData(pageRequest,objectID)
	}
		if (dataRequested) {		
			pageRequest.open('POST', url, true);
  	  pageRequest.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
    	pageRequest.send(dataRequest);
		}
		else {
			pageRequest.open('GET', url, true)
			pageRequest.send(null)	
		}
}

function changePage(pageName,objectID) {
 fetchData(pageName,null,objectID); 
}


function filterData(pageRequest,objectID){
	if (pageRequest.readyState == 4 && (pageRequest.status==200 || window.location.href.indexOf("http")==-1))
		document.getElementById(objectID).innerHTML=pageRequest.responseText
}


//======================================================
//
//


//======================================================
//
//


//======================================================
//-->



