<!--
document.onmousedown=fncMouseClick;
document.onmouseup=fncMouseClick;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
if (document.layers) window.captureEvents(Event.MOUSEUP);
window.onmousedown=fncMouseClick;
window.onmouseup=fncMouseClick;

//=============================================================
function fncMouseClick(){
  //if (event.button == 2 || event.button == 3) {
  //  alert(" BEST MIX DJS \n  For superior sound and entertainment, call us at... \n  Metro 817-461-0285 \n  or \n  bestmixdjs@hotmail.com")
  //  return false;
  //}
}

gNav = new Image();
gNav.src = "images/navigation/GlobalNavAbout_Sel.gif";
gNav.src = "images/navigation/GlobalNavBenefits_Sel.gif";
gNav.src = "images/navigation/GlobalNavHowToJoin_Sel.gif";
gNav.src = "images/navigation/GlobalNavGetInvolved_Sel.gif";

var nscape = (document.all)? false:true;

//=============================================================
function showNewWin(WinName,WinURL,win_details){
	MsgWin = window.open(WinURL,WinName,win_details);
  
}

//=============================================================
function showDiv(divName){
  if (nscape) {
    var DivObj = document.getElementById(divName);
  }else {
    var DivObj = document.all.item(divName);
  }
  if (DivObj.style.left=="0px" | DivObj.style.left=="0pt") {
    if (nscape) {
      var iWidth=document.width
    }else{
      var iWidth=document.body.clientWidth
    }
    //765 is width of internal page and 240 is width of div    
    DivObj.style.left = (((iWidth-765)/2)+765)-240 + "px"
  }

  DivObj.style.visibility="visible";
}

//=============================================================
function closeDiv(divName){
  if (nscape) {
    var DivObj = document.getElementById(divName);
  }else {
    var DivObj = document.all.item(divName);
  }
  DivObj.style.visibility="hidden";
}

//=============================================================

function ImgOnfocus(name){
alert("hello");
    var what = document.all.item(name).src;
	document.all.item(name).src=what.substring(0,what.indexOf(".gif"))+"1.gif";
}
//==========================================================

function ImgNofocus(name){
    var what = document.all.item(name).src;
	document.all.item(name).src=what.substring(0,what.indexOf("1.gif"))+".gif";
}

//=============================================================
function ChangeNavClassOver(obj){
  var what = obj.className + "1"
  obj.className = what
}
//=============================================================
function ChangeNavClassOut(obj){
  var what = obj.className
  what = what.substring(0,what.indexOf("1"));
  obj.className = what
}



//=============================================================
function keyHandler()
{
//alert(window.event.keyCode)
	switch(window.event.keyCode)
	{
		case 118:		// F7
			if (document.all.item('F7Clik') != null)
				document.all.F7Clik.click();
			window.event.cancelBubble = true;
			break;
		case 119:		// F8
			if (document.all.item('F8Clik') != null)
				document.all.F8Clik.click();
			window.event.cancelBubble = true;
			break;
		case 121:		// F10
			if (document.all.item('F10Clik') != null)
				document.all.F10Clik.click();
			window.event.cancelBubble = true;
			break;
	}
}
//=============================================================

document.onkeydown = keyHandler;

//=============================================================
function WarnOnExit(){
  if (confirm('Exiting this screen in this way, any changes you have made will be lost !! Do you still want to exit ?')){
  } 
  else {
     return false;
  }
}


//=============================================================
function CloseMsgBox(){
  document.all.MsgOutput.style.visibility="Hidden";
  return false;
}

//=============================================================
function ChangeNavClassOver(obj){
  var what = obj.className + "1"
  obj.className = what
}
//=============================================================
function ChangeNavClassOut(obj){
  var what = obj.className
  what = what.substring(0,what.indexOf("1"));
  obj.className = what
}

//==================================================
function closeAllMenusExcept(MenuID)
{
//alert("close all except")
var NoOfMenus = 8;
	for (i=0; i<NoOfMenus; i++ )
	{
	    var what="menu" + i;
	    var what1="hover" + i
        if (i != MenuID){
          document.all.item(what1).className="AdPostNav";
          document.all.item(what).style.visibility="hidden";
        }else{
          document.all.item(what1).className="AdPostNavHover";
          document.all.item(what).style.visibility="visible";
          //alert(document.all.item(what1).className);
        }
	}
}
//=================================================
function closeAllMenus()
{
//alert("close all")
var NoOfMenus = 8;
	for (i=0; i<NoOfMenus; i++ )
	{
	    var what="menu" + i;
	    var what1="hover" + i
        document.all.item(what1).className="AdPostNav";
        document.all.item(what).style.visibility="hidden";
	}
}

//=============================================================

function ImgOnfocusNew(name){

    var ObjName = name + "TD";
    document.all.item(ObjName).className = "ButtonClassOn";
    var what = document.all.item(name).src;
	document.all.item(name).src=what.substring(0,what.indexOf(".gif"))+"1.gif";

}
//==========================================================

function ImgNofocusNew(name){

    var ObjName = name + "TD";
    document.all.item(ObjName).className = "ButtonClassOff";
    var what = document.all.item(name).src;
	document.all.item(name).src=what.substring(0,what.indexOf("1.gif"))+".gif";
	
}
//==================================================



// -->