///////////////////////////////////////////////////////
//   by  R.J. Wierzbicki, www.eCompetenceCenter.de   //
//      HIGHLIGHT EFFECTS,  Version 22.07.2000       //
///////////////////////////////////////////////////////

var ns=1;
var ie=0;
if (document.layers)  {	ns = 1; ie = 0; } 
else { ns = 0; ie = 1; }
var	fmt1='<table width="460" height="1" border="1"><tr><td valign="top"><font face="Arial" size="1" color="#003366">'
var	fmt2='</font></td></tr></table>'


function writeIntoLayer(id,txt,win) {
///////////////////////////////////
//	var win=this.document;
	if (win.layers) { // ne?
		win.layers[id].document.open();
		win.layers[id].document.write(txt);
		win.layers[id].document.close();
		}
	eval(id).innerHTML=txt; // ie only
}

function effect(imgOff,imgOn,hiliteTxt) {
///////////////////////////////////////
	this.off=imgOff;
	this.on=imgOn;
	this.hiliteTxt=hiliteTxt;
	this.cancelTxt='';
	this.over=over;
	this.out=out;
	this.helpText=helpTxt;
}

function over(obj) {
//////////////////
	src=eval(obj+'.on');
	str="document.images['"+obj+"'].src='" + src +"'";
	eval(str);
	hText=(eval(obj+'.hiliteTxt'));
	if (hText!='') helpTxt(obj,'helpText',fmt1+hText+fmt2);
}

function out(obj) {
/////////////////
	src=eval(obj+'.off');
	cancelTxt=eval(obj+'.cancelTxt');
	str="document.images['"+obj+"'].src='" + src +"'";
              eval(str);
	helpTxt(obj,'helpText',cancelTxt);
}

function helpTxt(obj,layerID,txt) {
/////////////////////////////////
	writeIntoLayer(layerID,txt, obj);
}

