//For the image swaps----------------
ns4 = (document.layers)? true:false;
ie4 = (document.all)? true:false;
var loadedTag = false;
//-----------------------------------


function hover_left(theTD) {
          tab = parent.frMain.document.getElementById("navl" + theTD);
	      a = parent.frMain.document.getElementById("al" + theTD);
	     
		  a.style.color = 'red';
		   a.style.backgroundColor = 'white';
 	      tab.style.backgroundColor = 'white';
		}
		
		function unhover_left(theTD) {
          tab = parent.frMain.document.getElementById("navl" + theTD);
		  a = parent.frMain.document.getElementById("al" + theTD);
		  a.style.color = 'white';
		  a.style.backgroundColor = '#143edb';
 	      tab.style.backgroundColor = '#1111E4';
		}	


function setOnOld(theTab) {
  onTab = theTab;
  for (i=1; i<10; i++) {
    tab = parent.frTop.document.getElementById("nav" + i);
	if (tab) {
	  tab.style.color = 'white';
	  tab.style.backgroundColor = '#1111E4';
	}		
	a = parent.frTop.document.getElementById("a" + i);
	if (a) {
	  a.style.color = 'white';
	  a.style.backgroundColor = '#1111E4';
	  a.style.fontWeight = 'normal';
	  
	}
	if (tab) {
	if (onTab == i) {
	  a.style.fontWeight = '900';
	  textDecoration
	  tab.style.color = 'red';
 	  a.style.color = 'red';
	  a.style.backgroundColor = 'white';
	  tab.style.backgroundColor = 'white';
	}
	}
  }	
}

function setOn(theTab) {
  onTab = theTab;
  for (i=1; i<10; i++) {
    a = parent.frTop.document.getElementById("a" + i);
	if (a) {
	  
	  a.style.fontWeight = 'normal';
	  
	}
	if (a) {
	if (onTab == i) {
	  a.style.fontWeight = '900';
	 }
	}
  }	
}

function setOnLeft(theTab) {
  onTab = theTab;
  for (i=1; i<10; i++) {
    a = parent.frTop.document.getElementById("al" + i);
	if (a) {
	  
	  a.style.fontWeight = 'normal';
	  
	}
	if (a) {
	if (onTab == i) {
	  a.style.fontWeight = '900';
	 }
	}
  }	
}

function preload(imgObj,imgSrc) {
	eval(imgObj+' = new Image()');
	eval(imgObj+'.src = "'+imgSrc+'"');
}

function cI(imgName,imgObj) {
	if (loadedTag) {
		if (ns4) {
			document.images[imgName].src = eval(imgObj+".src");
		} else {
			document.images[imgName].src = eval(imgObj+".src");
		}
	}
}

function goPage(pg) {
	parent.frMain.location.href = pg
}

function navTab(tabbit) {
	if (tabbit) {
		if (parent.frames.length != 0) {
			parent.currentTab = tabbit;
			parent.frTop.cI('tfHM','tfHM1');
			parent.frTop.cI('tfSH','tfSH1');
			parent.frTop.cI('tfEX','tfEX1');
			parent.frTop.cI('tfTR','tfTR1');
			parent.frTop.cI('tfHI','tfHI1');
			parent.frTop.cI('tfCH','tfCH1');
			parent.frTop.cI('tfHE','tfHE1');
			parent.frTop.cI('tfSE','tfSE1');
			parent.frTop.cI(tabbit,tabbit+'2');
		}
	}
}
