var INARRAY,CAPARRAY,NOCLOSE,CAPTION,RIGHT,FGCOLOR,BGCOLOR,TEXTCOLOR,CAPCOLOR,CLOSECOLOR,AUTOSTATUSCAP;
var CLOSETEXT,BELOW,TEXTFONT,CAPTIONFONT,CLOSEFONT,TEXTSIZE,CAPTIONSIZE,CLOSESIZE,WIDTH,STATUS;
var ah_fgcolor = "#ffffcc";
var ah_bgcolor = "#ff0000";
var ah_textcolor = "#000000";
var ah_capcolor = "#000000";
var ah_capicon = "";
var ah_cap = "Description Categories";
var ah_textsize = "1";
var ah_captionsize = "1";
var ah_width = "175";
var ah_closecolor = "#9999FF";
if (typeof ah_textfont == 'undefined') { var ah_textfont = "Verdana,Arial,Helvetica";}
if (typeof ah_captionfont == 'undefined') { var ah_captionfont = "Verdana,Arial,Helvetica";}
if (typeof ah_closefont == 'undefined') { var ah_closefont = "Verdana,Arial,Helvetica";}
if (typeof ah_closesize == 'undefined') { var ah_closesize = "1";}
if (typeof ah_close == 'undefined') { var ah_close = "Close"; }
if (typeof ah_status == 'undefined') { var ah_status = ""; }
if (typeof ah_texts == 'undefined') { var ah_texts = new Array("Text 0", "Text 1"); }
if (typeof ah_caps == 'undefined') { var ah_caps = new Array("Caption 0", "Caption 1"); }
var ahp_pophelp = 0,ahp_hpos = RIGHT,ahp_offsetx = 20,ahp_offsety = 20,ahp_closecolor = "";
var ahp_border = 1,ahp_status = "",ahp_autostatus = 0,ahp_height = -1,ahp_fixx = -1;
var ahp_fixy = -1,ahp_vpos = BELOW,ahp_frame = self,ahp_allowmove = 0,ahp_x = 0;
var ahp_y = 0,ahp_allow = 0,ahp_showingpophelp = 0,ahp_removecounter = 0;
var over = null;
var fnRef;
var ns4 = (navigator.appName == 'Netscape' && parseInt(navigator.appVersion) == 4);
var ns6 = (document.getElementById)? true:false;
var ie4 = (document.all)? true:false;
if (ie4) var docRoot = 'document.body';
var ie5 = false;
if (ns4) {
var oW = window.innerWidth;
var oH = window.innerHeight;
window.onresize = function () {if (oW!=window.innerWidth||oH!=window.innerHeight) location.reload();}
}
if (ie4) {
if ((navigator.userAgent.indexOf('MSIE 5') > 0) || (navigator.userAgent.indexOf('MSIE 6') > 0)) {
if(document.compatMode && document.compatMode == 'CSS1Compat') docRoot = 'document.documentElement';
ie5 = true;
}
if (ns6) {
ns6 = false;
}}
if ( (ns4) || (ie4) || (ns6)) {
document.onmousemove = mouseMove
if (ns4) document.captureEvents(Event.MOUSEMOVE)
} else {
autoHelpPop = no_autoHelpPop;
nd = no_autoHelpPop;
ver3fix = true;
}
function no_autoHelpPop() {
return ver3fix;
}
function autoHelpPop() {
ahp_cap = ah_cap;
ahp_close = ah_close;
ahp_fgcolor = ah_fgcolor;
ahp_bgcolor = ah_bgcolor;
ahp_textcolor = ah_textcolor;
ahp_capcolor = ah_capcolor;
ahp_closecolor = ah_closecolor;
ahp_capicon = ah_capicon;
ahp_width = ah_width;
ahp_status = ah_status;
ahp_textfont = ah_textfont;
ahp_captionfont = ah_captionfont;
ahp_closefont = ah_closefont;
ahp_textsize = ah_textsize;
ahp_captionsize = ah_captionsize;
ahp_closesize = ah_closesize;
fnRef = '';
if ( (ns4) || (ie4) || (ns6) ) {
if (over) cClick();
if (ns4) over = ahp_frame.document.autoHelp
if (ie4) over = ahp_frame.autoHelp.style
if (ns6) over = ahp_frame.document.getElementById("autoHelp");
}
var parsemode = -1, udf, v = null;
var ar = arguments;
udf = (!ar.length ? 1 : 0);
for (i = 0; i < ar.length; i++) {
if (parsemode < 0) {
if (typeof ar[i] == 'number') {
udf = (ar[i] == FUNCTION ? 0 : 1);
i--;
} else {
ahp_text = ar[i];
}
parsemode = 0;
}}
if (udf && ahp_function) ahp_text = ahp_function();
return autoHelpPop12();
}
function nd() {
if ( ahp_removecounter >= 1 ) { ahp_showingpophelp = 0 };
if ( (ns4) || (ie4) || (ns6) ) {
if ( ahp_showingpophelp == 0 ) {
ahp_allowmove = 0;
if (over != null) hideObject(over);
} else {
ahp_removecounter++;
}}
return true;
}
function autoHelpPop12() {
var layerhtml;  {
if (ahp_fgcolor != "") {
ahp_fgcolor = "BGCOLOR="+ahp_fgcolor+"";
}
if (ahp_bgcolor != "") {
ahp_bgcolor = "BGCOLOR="+ahp_bgcolor+"";
}
if (ahp_height > 0) {
ahp_height = "HEIGHT=" + ahp_height;
} else {
ahp_height = "";
}
if (ahp_cap == "") {
layerhtml = ah_content_simple(ahp_text);
} else {
if (ahp_pophelp) {
layerhtml = ah_content_caption(ahp_text, ahp_cap, ahp_close);
} else {
layerhtml = ah_content_caption(ahp_text, ahp_cap, "");
}}}
if (ahp_pophelp) {
if (ahp_timerid > 0) {
clearTimeout(ahp_timerid);
ahp_timerid = 0;
}
ahp_showingpophelp = 1;
ahp_removecounter = 0;
}
layerWrite(layerhtml);
if (ahp_autostatus > 0) {
ahp_status = ahp_text;
if (ahp_autostatus > 1) {
ahp_status = ahp_cap;
}}
ahp_allowmove = 0;
disp(ahp_status);
if (ahp_pophelp) ahp_allowmove = 0;
return (ahp_status != '');
}
function ah_content_simple(text) {
txt = "<TABLE WIDTH="+ahp_width+" BORDER=0 CELLPADDING="+ahp_border+" CELLSPACING=0 "+ahp_bgcolor+" "+ahp_height+"><TR><TD><TABLE WIDTH=100% BORDER=0 CELLPADDING=2 CELLSPACING=0 "+ahp_fgcolor+" "+ahp_height+"><TR><TD VALIGN=TOP><FONT FACE=\""+ahp_textfont+"\" COLOR=\""+ahp_textcolor+"\" SIZE=\""+ahp_textsize+"\">"+text+"</FONT></TD></TR></TABLE></TD></TR></TABLE>";
return txt;
}
function ah_content_caption(text, title, close) {
closing = "";
closeevent = "onMouseOver";
if (close != "") {
closing = "<TD ALIGN=RIGHT><A HREF=\"javascript:return "+fnRef+"cClick();\" "+closeevent+"=\"return " + fnRef + "cClick();\"><FONT COLOR=\""+ahp_closecolor+"\" FACE=\""+ahp_closefont+"\" SIZE=\""+ahp_closesize+"\">"+close+"</FONT></A></TD>";
}
txt = "<TABLE WIDTH="+ahp_width+" BORDER=0 CELLPADDING="+ahp_border+" CELLSPACING=0 "+ahp_bgcolor+" "+ahp_height+"><TR><TD><TABLE WIDTH=100% BORDER=0 CELLPADDING=0 CELLSPACING=0><TR><TD><B><FONT COLOR=\""+ahp_capcolor+"\" FACE=\""+ahp_captionfont+"\" SIZE=\""+ahp_captionsize+"\">"+ahp_capicon+title+"</FONT></B></TD>"+closing+"</TR></TABLE><TABLE WIDTH=100% BORDER=0 CELLPADDING=2 CELLSPACING=0 "+ahp_fgcolor+" "+ahp_height+"><TR><TD VALIGN=TOP><FONT COLOR=\""+ahp_textcolor+"\" FACE=\""+ahp_textfont+"\" SIZE=\""+ahp_textsize+"\">"+text+"</FONT></TD></TR></TABLE></TD></TR></TABLE>";
return txt;
}
function disp(statustext) {
if ( (ns4) || (ie4) || (ns6) ) {
if (ahp_allowmove == 0) 	{
placeLayer();
showObject(over);
ahp_allowmove = 1;

}}
if (statustext != "") {
self.status = statustext;
}}
function placeLayer() {
var placeX, placeY;
if (ahp_fixx > -1) {
placeX = ahp_fixx;
} else {
winoffset = (ie4) ? eval('ahp_frame.'+docRoot+'.scrollLeft') : ahp_frame.pageXOffset;
if (ie4) iwidth = eval('ahp_frame.'+docRoot+'.clientWidth');
if (ns4 || ns6) iwidth = ahp_frame.innerWidth;
if (ahp_hpos == RIGHT) {
placeX = ahp_x+ahp_offsetx;
if ( (eval(placeX) + eval(ahp_width)) > (winoffset + iwidth) ) {
placeX = iwidth + winoffset - ahp_width;
if (placeX < 0) placeX = 0;
}}}
if (ahp_fixy > -1) {
placeY = ahp_fixy;
} else {
scrolloffset = (ie4) ? eval('ahp_frame.'+docRoot+'.scrollTop') : ahp_frame.pageYOffset;
placeY = ahp_y + ahp_offsety;
}
repositionTo(over, placeX, placeY);
}
function mouseMove(e) {
if ( (ns4) || (ns6) ) {ahp_x=e.pageX; ahp_y=e.pageY;}
if (ie4) {ahp_x=event.x; ahp_y=event.y;}
if (ie5) {ahp_x=eval('event.x+ahp_frame.'+docRoot+'.scrollLeft'); ahp_y=eval('event.y+ahp_frame.'+docRoot+'.scrollTop');}
if (ahp_allowmove == 1) {
placeLayer();
}}
function cClick() {
hideObject(over);
ahp_showingpophelp = 0;
return false;
}
function compatibleframe(frameid) {
if (ns4) {
if (typeof frameid.document.autoHelp =='undefined') return false;
} else if (ie4) {
if (typeof frameid.document.all["autoHelp"] =='undefined') return false;
} else if (ns6) {
if (frameid.document.getElementById('autoHelp') == null) return false;
}
return true;
}
function layerWrite(txt) {
txt += "\n";
if (ns4) {
var lyr = ahp_frame.document.autoHelp.document
lyr.write(txt)
lyr.close()
} else if (ie4) {
ahp_frame.document.all["autoHelp"].innerHTML = txt
} else if (ns6) {
range = ahp_frame.document.createRange();
range.setStartBefore(over);
domfrag = range.createContextualFragment(txt);
while (over.hasChildNodes()) {
over.removeChild(over.lastChild);
}
over.appendChild(domfrag);
}}
function showObject(obj) {
if (ns4) obj.visibility = "show";
else if (ie4) obj.visibility = "visible";
else if (ns6) obj.style.visibility = "visible";
}
function hideObject(obj) {
if (ns4) obj.visibility = "hide";
else if (ie4) obj.visibility = "hidden";
else if (ns6) obj.style.visibility = "hidden";
self.status = "";
}
function repositionTo(obj,xL,yL) {
if ( (ns4) || (ie4) ) {
obj.left = (ie4 ? xL + 'px' : xL);
obj.top = (ie4 ? yL + 'px' : yL);
} else if (ns6) {
obj.style.left = xL + "px";
obj.style.top = yL+ "px";
}}



