// ComOps eCommerce Mouse Handler
// Version 3.00 - 28 february 2002
imOpera = navigator.userAgent.indexOf('Opera');
imMSIE = navigator.userAgent.indexOf('MSIE');
imGecko = navigator.userAgent.indexOf('Gecko');
cellPressOK=false; textThruCell=false; fontEnlarge=false;
if (imOpera!=-1) cellPressOK=true;
if (imOpera==-1 && (imMSIE!=-1 || imGecko!=-1)) {cellPressOK=true; textThruCell=true;}
if (imOpera==-1 && imMSIE==-1 && navigator.appVersion.charAt(0)=='4') fontEnlarge=true;

// Horiz Tabs
function hBorders(look,hovr) {
	cellStyle.borderColor=actvHNormText
	cellStyle.borderTopWidth=hEdge+hovr
	cellStyle.borderLeftWidth=hEdge+hovr
	cellStyle.borderRightWidth=hEdge+hovr
	cellStyle.borderBottomWidth=hEdge+hovr // was 0
	cellStyle.borderStyle=look
}
function setPassHstyle(tabcell,tabtext) {
	if(hoverNoReset==tabcell) return
	cellStyle=document.getElementById(tabcell).style
	textStyle=document.getElementById(tabtext).style
	hBorders(normBut,0)
	cellStyle.backgroundColor=pasvHNorm
	textStyle.backgroundColor=pasvHNorm
	textStyle.color=pasvHNormText
}
function setActvHstyle(tabcell,tabtext) {
	if(hoverNoReset==tabcell) return
	cellStyle=document.getElementById(tabcell).style
	textStyle=document.getElementById(tabtext).style
	hBorders(normBut,0)
	cellStyle.backgroundColor=actvHNorm
	textStyle.backgroundColor=actvHNorm
	textStyle.color=actvHNormText
}
function setHovrHstyle(tabcell,tabtext,tabtype) {
	if(hoverNoReset==tabcell) return
	cellStyle=document.getElementById(tabcell).style
	textStyle=document.getElementById(tabtext).style
	hovrWidth=useHoverBorder
	for(i=0;i<noExpand.length;i++) {	if(tabcell==noExpand[i])hovrWidth=0}
	hBorders(hovrBut,hovrWidth)
	if(useHoverColor&&tabtype=='Active') {
		cellStyle.backgroundColor=actvHHovr
		textStyle.backgroundColor=actvHHovr
		textStyle.color=actvHHovrText
		}
	if(useHoverColor&&tabtype=='Passive') {
		cellStyle.backgroundColor=pasvHHovr
		textStyle.backgroundColor=pasvHHovr
		textStyle.color=pasvHHovrText
		}
}
function setPushHstyle(tabcell,tabtext) {
	cellStyle=document.getElementById(tabcell).style
	textStyle=document.getElementById(tabtext).style
	hoverNoReset=tabcell
	hBorders(pushBut,0)
	cellStyle.backgroundColor=actvHPush
	textStyle.backgroundColor=actvHPush
	textStyle.color=actvHPushText
}
function setSelfHstyle(tabcell,tabtext) {
	if(hiliteSelf)	{
	cellStyle=document.getElementById(tabcell).style
	textStyle=document.getElementById(tabtext).style
	hoverNoReset=tabcell
	hBorders(pushBut,0)
	cellStyle.backgroundColor=selfHPush
	textStyle.backgroundColor=selfHPush
	textStyle.color=selfHPushText
	}
}
// Vert Tabs
function vBorders(look,hovr) {
	cellStyle.borderTopWidth=vEdge+hovr
	cellStyle.borderLeftWidth=0
	cellStyle.borderRightWidth=vEdge+hovr
	cellStyle.borderBottomWidth=vEdge+hovr
	cellStyle.borderStyle=look
}
function setPassVstyle(tabcell,tabtext) {
	if(hoverNoReset==tabcell) return
	cellStyle=document.getElementById(tabcell).style
	textStyle=document.getElementById(tabtext).style
	vBorders(normBut,0)
	cellStyle.backgroundColor=pasvVNorm
	textStyle.backgroundColor=pasvVNorm
	textStyle.color=pasvVNormText
}
function setActvVstyle(tabcell,tabtext) {
	if(hoverNoReset==tabcell) return
	cellStyle=document.getElementById(tabcell).style
	textStyle=document.getElementById(tabtext).style
	vBorders(normBut,0)
	cellStyle.backgroundColor=actvVNorm
	textStyle.backgroundColor=actvVNorm
	textStyle.color=actvVNormText
}
function setHovrVstyle(tabcell,tabtext,tabtype) {
	if(hoverNoReset==tabcell) return
	cellStyle=document.getElementById(tabcell).style
	textStyle=document.getElementById(tabtext).style
	vBorders(hovrBut,useHoverBorder)
	if(useHoverColor&&tabtype=='Active') {
		cellStyle.backgroundColor=actvVHovr
		textStyle.backgroundColor=actvVHovr
		textStyle.color=actvVHovrText
		}
	if(useHoverColor&&tabtype=='Passive') {
		cellStyle.backgroundColor=pasvVHovr
		textStyle.backgroundColor=pasvVHovr
		textStyle.color=pasvVHovrText
		}
}
function setPushVstyle(tabcell,tabtext) {
	cellStyle=document.getElementById(tabcell).style
	textStyle=document.getElementById(tabtext).style
	hoverNoReset=tabcell
	vBorders(pushBut,0)
	cellStyle.backgroundColor=actvVPush
	textStyle.backgroundColor=actvVPush
	textStyle.color=actvVPushText
}
	
if (fontEnlarge)	{
with (document.classes)		{
	ident.all.fontSize = '9pt';
	detail.all.fontSize = '9pt';
	header.all.fontSize = '10pt';
	label.all.fontSize = '9pt';
	labeltext.all.fontSize = '10pt';
	value.all.fontSize = '9pt';
	valbold.all.fontSize = '9pt';
	money.all.fontSize = '9pt';
	valuetext.all.fontSize = '10pt';
	gst.all.fontSize = '9pt';
	help.all.fontSize = '9pt';
	helphead.all.fontSize = '9pt';
	helptext.all.fontSize = '9pt';
	pohelp.all.fontSize = '9pt';
	unibis.all.fontSize = '10pt';
	posttitle.A.fontSize = '9pt';
	potabinact.A.fontSize = '9pt';
	potabactive.A.fontSize = '9pt';
	pobarinact.A.fontSize = '9pt';
	pobaractive.A.fontSize = '9pt';
	potabtext.A.fontSize = '9pt';
	poaction.A.fontSize = '9pt';
	podata.A.fontSize = '9pt';
	pomenu.A.fontSize = '9pt';
	}
with (document.tags)	{
	A.fontSize = '9pt';
	TD.fontSize = '9pt';
	TH.fontSize = '10pt';
	input.fontSize = '9pt';
	select.fontSize = '9pt';
	textarea.fontSize = '9pt';
	}
}

