// JavaScript Document

/*<--------------------left Navigation TABS----------------------->*/
function ManageTabPanelDisplay() {
//
// Between the parenthesis, list the id's of the div's that 
//     will be effected when tabs are clicked. List in any 
//     order. Put the id's in single quotes (apostrophes) 
//     and separate them with a comma -- all one line.
//
var idlist = new Array('tab1focus','tab2focus','tab3focus','tabEmpfocus','tab1ready','tab2ready','tab3ready','tabEmpready','content1','content2','content3','contentEmp');

// No other customizations are necessary.
if(arguments.length < 1) { return; }
for(var i = 0; i < idlist.length; i++) {
   var block = false;
   for(var ii = 0; ii < arguments.length; ii++) {
      if(idlist[i] == arguments[ii]) {
         block = true;
         break;
         }
      }
   if(block) { document.getElementById(idlist[i]).style.display = "block"; }
   else { document.getElementById(idlist[i]).style.display = "none"; }
   }
}

function ManageTab2PanelDisplay() {
//
// Between the parenthesis, list the id's of the div's that 
//     will be effected when tabs are clicked. List in any 
//     order. Put the id's in single quotes (apostrophes) 
//     and separate them with a comma -- all one line.
//
var idlist2 = new Array('tab4focus','tab5focus','tab6focus','tab7focus','tab4ready','tab5ready','tab6ready','tab7ready','content4','content5','content6','content7');

// No other customizations are necessary.
if(arguments.length < 1) { return; }
for(var z = 0; z < idlist2.length; z++) {
   var block = false;
   for(var zz = 0; zz < arguments.length; zz++) {
      if(idlist2[z] == arguments[zz]) {
         block = true;
         break;
         }
      }
   if(block) { document.getElementById(idlist2[z]).style.display = "block"; }
   else { document.getElementById(idlist2[z]).style.display = "none"; }
   }
}


/*<--------------------right Navigation TABS----------------------->*/

function ManageTab3PanelDisplay() {
//
// Between the parenthesis, list the id's of the div's that 
//     will be effected when tabs are clicked. List in any 
//     order. Put the id's in single quotes (apostrophes) 
//     and separate them with a comma -- all one line.
//
var idlist3 = new Array('tab8focus','tab9focus','tab10focus','tab11focus','tab8ready','tab9ready','tab10ready','tab11ready','content8','content9','content10','content11');

// No other customizations are necessary.
if(arguments.length < 1) { return; }
for(var z = 0; z < idlist3.length; z++) {
   var block = false;
   for(var zz = 0; zz < arguments.length; zz++) {
      if(idlist3[z] == arguments[zz]) {
         block = true;
         break;
         }
      }
   if(block) { document.getElementById(idlist3[z]).style.display = "block"; }
   else { document.getElementById(idlist3[z]).style.display = "none"; }
   }
}

/*<--------------------main Navigation TABS----------------------->*/

function ManageTab4PanelDisplay() {
//
// Between the parenthesis, list the id's of the div's that 
//     will be effected when tabs are clicked. List in any 
//     order. Put the id's in single quotes (apostrophes) 
//     and separate them with a comma -- all one line.
//
var idlist4 = new Array('tab12focus','tab13focus','tab14focus','tab15focus','tab16focus','tab12ready','tab13ready','tab14ready','tab15ready','tab16ready','content12','content13','content14','content15','content16');

// No other customizations are necessary.
if(arguments.length < 1) { return; }
for(var z = 0; z < idlist4.length; z++) {
   var block = false;
   for(var zz = 0; zz < arguments.length; zz++) {
      if(idlist4[z] == arguments[zz]) {
         block = true;
         break;
         }
      }
   if(block) { document.getElementById(idlist4[z]).style.display = "block"; }
   else { document.getElementById(idlist4[z]).style.display = "none"; }
   }
}

/*<--------------------main2 Navigation TABS----------------------->*/

function ManageTab5PanelDisplay() {
//
// Between the parenthesis, list the id's of the div's that 
//     will be effected when tabs are clicked. List in any 
//     order. Put the id's in single quotes (apostrophes) 
//     and separate them with a comma -- all one line.
//
var idlist5 = new Array('tab17focus','tab18focus','tab19focus','tab20focus','tab21focus','tab17ready','tab18ready','tab19ready','tab20ready','tab21ready','content17','content18','content19','content20','content21');

// No other customizations are necessary.
if(arguments.length < 1) { return; }
for(var z = 0; z < idlist5.length; z++) {
   var block = false;
   for(var zz = 0; zz < arguments.length; zz++) {
      if(idlist5[z] == arguments[zz]) {
         block = true;
         break;
         }
      }
   if(block) { document.getElementById(idlist5[z]).style.display = "block"; }
   else { document.getElementById(idlist5[z]).style.display = "none"; }
   }
}

function fixFlash(){
	n=navigator.userAgent;
	w=n.indexOf("MSIE");
	if((w>0)&&(parseInt(n.charAt(w+5))>5)){
		T=["object","embed","applet"];
		for(j=0;j<3;j++){
			E=document.getElementsByTagName(T[j]);
			for(i=0;i<E.length;i++){
				P=E[i].parentNode;
				H=P.innerHTML;
				P.removeChild(E[i]);
				P.innerHTML=H;
			}
		}
	}
}


