<!--
// 'none' indicates pad is hidden
// '' indicates pad is visible

tab2Left=new Image();
tab2Left.src="img/tab2-tan2tanrev.gif";
tab2Right=new Image();
tab2Right.src="img/tab2-tan2tannorm.gif";
tabLeftSide=new Image();
tabLeftSide.src="img/tab2-tanleftside.gif";
tabRightSide=new Image();
tabRightSide.src="img/tab2-tanrghtside.gif";
tabLeftSideRev=new Image();
tabLeftSideRev.src="img/tab2-tanleftrev.gif";
tabRightSideRev=new Image();
tabRightSideRev.src="img/tab2-tanrghtrev.gif";
ns6_index=0;

function closeAllChildren(srcClicked) {
	if (!document.all&&!document.getElementById) return;
	if (!document.all&&document.getElementById) ns6_index=1;
	var ns = document.getElementById&&!document.all;

	for (i=0;i<document.images.length;i++) {
		var src=document.images[i];
		if (src.className=="menuhead" && srcClicked.name!=src.name) {
			var chld=(ns)?src.parentNode.childNodes:src.parentElement.all;
			if (chld[3+ns6_index].style.display=="") {
				chld[0].src=closeImg.src;
				chld[3+ns6_index].style.display="none";
			}
		}
	}
}

function flipTab(e, force) {
	var ns = document.getElementById&&!document.all;
	if (!document.all&&!document.getElementById) return;
	if (!document.all&&document.getElementById) ns6_index=1;
	var source=(ns)?e.target:event.srcElement;

	if (source.className=="tabhead" || force) {
		if (e.name=="t1") {
			document.getElementById("p1").style.display='';
			document.getElementById("p2").style.display="none";
			document.gap.src=tab2Right.src;
			document.right.src=tabRightSideRev.src;
			document.left.src=tabLeftSide.src;
			document.getElementById("ltab").className='cell_show';
			document.getElementById("rtab").className='cell_hide';
		} else {
			document.getElementById("p1").style.display="none";
			document.getElementById("p2").style.display='';
			document.gap.src=tab2Left.src;
			document.right.src=tabRightSide.src;
			document.left.src=tabLeftSideRev.src;
			document.getElementById("ltab").className='cell_hide';
			document.getElementById("rtab").className='cell_show';
		}
 		if (e.focus) e.blur();
	}
}

function NNKeyCap(thisOne) {
    if (thisOne.modifiers & Event.SHIFT_MASK) {
	    if (thisOne.which == 83) {
			flipTab(document.t1, true);
		}
	    if (thisOne.which == 69) {
			flipTab(document.t2, true);
		}
	}
}

function IEKeyCap() {
	if (window.event.shiftKey) {
	    if (window.event.keyCode == 83) { 
			flipTab(document.t1, true);
		}
	    if (window.event.keyCode == 69) {
			flipTab(document.t2, true);
		}
	}
}

if (navigator.appName == 'Netscape') {
	window.captureEvents(Event.KEYPRESS);
	window.onKeyPress = NNKeyCap;
}

//-->