<!-- Begin
// By austin_collins@yahoo.com  for ©diyprint.com 20000

function BrowserCheck() {
this.b = navigator.appName
this.v = parseInt(navigator.appVersion)
this.ns4 = (this.b=="Netscape" && this.v==4)
this.ns5 = (this.b=="Netscape" && this.v==5)
this.ie5 = (navigator.userAgent.indexOf('MSIE 5')>0)
this.ie =(navigator.userAgent.indexOf('MSIE 5')>0) || ((this.b=="Microsoft Internet Explorer") && (this.v>=4) && !(navigator.userAgent.toLowerCase().indexOf("mac")>0))
}

is = new BrowserCheck()
//document.write('<STYLE>TD.cell { position: relative;} <\/STYLE>');
var drophide=false, ns4hide=false, tab=0, formSubmit=false, px, py, ph=168, tabshow=false
var image = new Array(5)

function init(){
if (is.ns4) document["drop"].onmouseout=function hideit(){if(!ns4hide){tabvisibility(false)}else {ns4hide=false}}
if (is.ns5 || is.ie) document.onmousemove = mymouseMove;
ClearForms()
for (num=0; num < 5;++num)
		{
	image[num] = new Image();
    image[num].src = "images/tab"+(num+1)+"b.gif"
	   }
}

function ClearForms(){
var imforms=document.forms
for (num=0; num < imforms.length;++num){
	// clear all password fields
	for (num2=0; num2 < imforms[num].elements.length;++num2){
		if(imforms[num].elements[num2])if(imforms[num].elements[num2].type=="password")imforms[num].elements[num2].value=""
		}
	// capture form submits and make sure form only submit once
	if(is.ns4) document.captureEvents(imforms[num].SUBMIT);
	imforms[num].onsubmit = onlySubmitOnce
	}
}

function onlySubmitOnce(){
if (formSubmit) return false
formSubmit=true
return true
}

function formsubmit(frm){
if (onlySubmitOnce()) eval("document."+ frm +".submit()")
return false
}

function tabposition(){
var offset=tab*94
var tbimg="images/tab"+(tab+1)+"b.gif"
if (is.ns4){
px=document["tab1"].pageX
py=document["tab1"].pageY
document["drop"].left=px+7+offset
document["drop"].top=py-8
document.drop.document.tab.src=tbimg
}
if(is.ie){
px=tab1.offsetLeft
py=tab1.offsetTop
ph=parseInt(eval("document.all('cnt"+tab+"').value"))*16+8
drop.style.left=px+6+offset
drop.style.top=py
document.images("tab").src=tbimg
document.images("tabh2").height=ph
document.images("tabh1").height=ph
drop.style.height=ph+45
}
if(is.ns5){
px=document.getElementById('tab1').offsetLeft
py=document.getElementById('tab1').offsetTop
ph=parseInt(eval("document.getElementById('cnt"+tab+"').value"))*16+8
document.getElementById('drop').style.left=px+offset+7 //((is.ns5)? 7:6)
document.getElementById('drop').style.top=py
document.getElementById('tab').src=tbimg
document.getElementById("tabh2").height=ph
document.getElementById("tabh1").height=ph
document.getElementById("tabht").height=ph
document.getElementById('drop').style.height=ph+45
}
}

function mymouseMove(e){
var ns5notabyet=false
if (is.ie & tabshow){
	if(event.srcElement.src)if(event.srcElement.src.indexOf("tab")>0)ns5notabyet=true
	if (!(document.all['drop'].contains(event.srcElement) | ns5notabyet))tabvisibility(false)
	}
if (is.ns5 & tabshow){
	if(e.target.src)if(e.target.src.indexOf("tab")>0)ns5notabyet=true
	if (!(containsNN6(document.getElementById('drop'), e.target) | ns5notabyet))tabvisibility(false)
	}
}

function tabvisibility(show,obj){
if(drophide && show){drophide=false;return}
if (is.ns4){
	document.drop.visibility=(show)? 'show':'hide'
	eval("document.drop.document.menu"+tab+".visibility=(show)? 'show':'hide'")}
if(is.ie){
	drop.style.visibility = (show)? 'visible':'hidden'
	eval("menu"+tab+".style.visibility=(show)? 'visible':'hidden'")}
if(is.ns5){
	document.getElementById('drop').style.visibility = (show)? 'visible':'hidden'
	eval("document.getElementById('menu"+tab+"').style.visibility=(show)? 'visible':'hidden'")}
tabshow =show
}

function send(prod,actn){
tabvisibility(false)
// if (formSubmit) return false
// formSubmit=true
if(prod=="" || prod==null){prod=tab;actn="groupsList"}
if(actn=="" || actn==null)actn="productsList"
if (is.ns4 || is.ie){document.rtn.slt.value=prod; document.rtn.opt.value=actn}
if(is.ns5){document.getElementById('slt').value=prod; document.getElementById('opt').value=actn}
document.rtn.submit()
return false
}

function showtab(ntab){
tabvisibility(false)
tab=parseInt(ntab)
tabposition() 
tabvisibility(true)
}


function containsNN6 (container, containee) {
  var isParent = false;
  do {
    if ((isParent = container == containee))
      break;
    containee = containee.parentNode;
  }
  while (containee != null);
  return isParent;
}

// onmouseout="if(is.ie){if(!this.contains(event.toElement))tabvisibility(false)}else if(is.ns5){if (!containsNN6(this, event.relatedTarget))tabvisibility(false)}" 
//  End -->