<!-- Begin

var INARRAY		=	1;
var CAPARRAY		=	2;
var STICKY		=	3;
var BACKGROUND		=	4;
var NOCLOSE		=	5;
var CAPTION		=	6;
var LEFT		=	7;
var RIGHT		=	8;
var CENTER		=	9;
var OFFSETX		=	10;
var OFFSETY		=	11;
var FGCOLOR		=	12;
var BGCOLOR		=	13;
var TEXTCOLOR		=	14;
var CAPCOLOR		=	15;
var CLOSECOLOR		=	16;
var WIDTH		=	17;
var BORDER		=	18;
var STATUS		=	19;
var AUTOSTATUS		=	20;
var AUTOSTATUSCAP	=	21;
var HEIGHT		=	22;
var CLOSETEXT		=	23;
var SNAPX		=	24;
var SNAPY		=	25;
var FIXX		=	26;
var FIXY		=	27;
var FGBACKGROUND	=	28;
var BGBACKGROUND	=	29;
var PADX		=	30;
var PADY		=	31;
var PADX2		=	32;
var PADY2		=	33;
var FULLHTML		=	34;
var ABOVE		=	35;
var BELOW		=	36;
var CAPICON		=	37;
var TEXTFONT		=	38;
var CAPTIONFONT		=	39;
var CLOSEFONT		=	40;
var TEXTSIZE		=	41;
var CAPTIONSIZE		=	42;
var CLOSESIZE		=	43;
var FRAME		=	44;

if (typeof ol_hpos == 'undefined') { var ol_hpos = RIGHT; }

var ol_texts = new Array("Array Text 0", "Array Text 1");

var o3_x = 0;
var o3_y = 0;
var o3_allowmove = 0;
var o3_showingsticky = 0;
var o3_removecounter = 0;

var over = null;

var ns4 = (document.layers)? true:false
var ie4 = (document.all)? true:false
var ie5 = false;


if (ie4) {
	if (navigator.userAgent.indexOf('MSIE 5')>0) {
		ie5 = true;
	}
}


if ( (ns4) || (ie4) ) {
	document.onmousemove = mouseMove
	if (ns4) document.captureEvents(Event.MOUSEMOVE)
} else {
	overlib  = no_overlib;
	nd       = no_overlib;
	ver3fix  = true;
}


function no_overlib() {
	return ver3fix;
}


function o() {
	
        o3_text = "";
        o3_background = "";
	o3_hpos = ol_hpos;
        o3_offsetx = 15;
        o3_offsety = 30;
        o3_fgcolor = "#F2F1F1";
        o3_bgcolor = "#911B1B";
        o3_textcolor = "#911B1B";
        o3_width = 200;
        o3_border = 1;
        o3_status = "";
        o3_height = -1;
        o3_snapx = 0;
        o3_snapy = 0;
        o3_fixx = -1;
        o3_fixy = -1;
        o3_fgbackground = "";
        o3_bgbackground = "";
        o3_padxl = 0;
        o3_padxr = 0;
        o3_padyt = 0;
        o3_padyb = 0;
        o3_fullhtml = 0;
        o3_vpos = BELOW;
        o3_aboveheight = 0;
        o3_textfont = "Verdana,Arial,Helvetica";
        o3_textsize = "1";

	if ( (ns4) || (ie4) ) {
		if (ns4) over = self.document.overDiv
		if (ie4) over = self.overDiv.style
	}
	
	var parsemode = -1;

	for (i = 0; i < arguments.length; i++) {
		
		if (parsemode == 0) {
			// Arg is command
			if (arguments[i] == LEFT) { parsemode = opt_HPOS(arguments[i]); }
			if (arguments[i] == RIGHT) { parsemode = opt_HPOS(arguments[i]); }
		} else {
			if (parsemode < 0) {
				// Arg is maintext, unless INARRAY
				if (arguments[i] == INARRAY) {
					parsemode = INARRAY;
				} else {
					o3_text = arguments[i];
					parsemode = 0;
				}
			} else {
				// Arg is option for command
			}
		}
	}
	
	return overlib310();
}

function nd() {
	if ( o3_removecounter >= 1 ) { o3_showingsticky = 0 };
	if ( (ns4) || (ie4) ) {
		if ( o3_showingsticky == 0 ) {
			o3_allowmove = 0;
			hideObject(over);
		} else {
			o3_removecounter++;
		}
	}
	
	return true;
}



function overlib310() {

	var layerhtml;
	
		if (o3_fgcolor != "") {
			o3_fgcolor = "BGCOLOR=\""+o3_fgcolor+"\"";
		}
		if (o3_bgcolor != "") {
			o3_bgcolor = "BGCOLOR=\""+o3_bgcolor+"\"";
		}
			o3_height = "";
			layerhtml = ol_content_simple(o3_text);
	layerWrite(layerhtml);
	o3_allowmove = 0;
	disp(o3_status);
}


function ol_content_simple(text) {
	txt = "<TABLE WIDTH="+o3_width+" BORDER=0 CELLPADDING="+o3_border+" CELLSPACING=0 "+o3_bgcolor+" "+o3_height+"><TR><TD><TABLE WIDTH=100% BORDER=0 CELLPADDING=2 CELLSPACING=0 "+o3_fgcolor+" "+o3_fgbackground+" "+o3_height+"><TR><TD VALIGN=TOP><FONT FACE=\""+o3_textfont+"\" COLOR=\""+o3_textcolor+"\" SIZE=\""+o3_textsize+"\">"+text+"</FONT></TD></TR></TABLE></TD></TR></TABLE>"
	return txt;
}

function disp(statustext) {
	if ( (ns4) || (ie4) ) {
		if (o3_allowmove == 0) 	{
			placeLayer();
			showObject(over);
			o3_allowmove = 1;
		}
	}
}

// Decides where we want the popup.
function placeLayer() {
	var placeX, placeY;
	
	// HORIZONTAL PLACEMENT
	if (o3_fixx > -1) {
		// Fixed position
		placeX = o3_fixx;
	} else {
		// From mouse
		if (o3_hpos == CENTER) { // Center
			placeX = o3_x+o3_offsetx-(o3_width/2);
		}
		if (o3_hpos == RIGHT) { // Right
			placeX = o3_x+o3_offsetx;
		}
		if (o3_hpos == LEFT) { // Left
			placeX = o3_x-o3_offsetx-o3_width;
		}
	
		// Snapping!
		if (o3_snapx > 1) {
			var snapping = placeX % o3_snapx;
			if (o3_hpos == LEFT) {
				placeX = placeX - (o3_snapx + snapping);
			} else {
				// CENTER and RIGHT
				placeX = placeX + (o3_snapx - snapping);
			}
		}
	}

	
	
	// VERTICAL PLACEMENT
	if (o3_fixy > -1) {
		// Fixed position
		placeY = o3_fixy;
	} else {
		// From mouse
		if (o3_aboveheight > 0 && o3_vpos == ABOVE) {
			placeY = o3_y - (o3_aboveheight + o3_offsety);
		} else {
			// BELOW
			placeY = o3_y + o3_offsety;
		}

		// Snapping!
		if (o3_snapy > 1) {
			var snapping = placeY % o3_snapy;
			
			if (o3_aboveheight > 0 && o3_vpos == ABOVE) {
				placeY = placeY - (o3_snapy + snapping);
			} else {
				placeY = placeY + (o3_snapy - snapping);
			}
		}
	}


	// Actually move the object.	
	moveTo(over, placeX, placeY);
}


// Moves the layer
function mouseMove(e) {
	if (ns4) {o3_x=e.pageX; o3_y=e.pageY;}
	if (ie4) {o3_x=event.x; o3_y=event.y;}
	if (ie5) {o3_x=event.x+self.document.body.scrollLeft; o3_y=event.y+self.document.body.scrollTop;}
	
	if (o3_allowmove) {
		placeLayer();
	}
}

function layerWrite(txt) {
        if (ns4) {
                var lyr = self.document.overDiv.document

                lyr.write(txt)
                lyr.close()
        }
        else if (ie4) self.document.all["overDiv"].innerHTML = txt
}

function showObject(obj) {
        if (ns4) obj.visibility = "show"
        else if (ie4) obj.visibility = "visible"
}

function hideObject(obj) {
        if (ns4) obj.visibility = "hide"
        else if (ie4) obj.visibility = "hidden"
        
        self.status = "";
}

function moveTo(obj,xL,yL) {
        obj.left = xL
        obj.top = yL
}


// Sets hpos, for LEFT, RIGHT and CENTER.
function opt_HPOS(pos) {
	o3_hpos = pos;
	return 0;
}

function opt_OFFSETX(offset) {
	o3_offsetx = offset;
	return 0;
}

function opt_OFFSETY(offset) {
	o3_offsety = 30;
	return 0;
}


function opt_FGCOLOR(clr) {
	o3_fgcolor = clr;
	return 0;
}

function opt_BGCOLOR(clr) {
	o3_bgcolor = clr;
	return 0;
}

function opt_TEXTCOLOR(clr) {
	o3_textcolor = clr;
	return 0;
}

function opt_WIDTH(pixels) {
	o3_width = pixels;
	return 0;
}

function opt_BORDER(pixels) {
	o3_border = pixels;
	return 0;
}

function opt_CLOSETEXT(text) {
	o3_close = text;
	return 0;
}

function opt_SNAPX(pixels) {
	o3_snapx = pixels;
	return 0;
}

function opt_SNAPY(pixels) {
	o3_snapy = pixels;
	return 0;
}

function opt_FIXX(pos) {
	o3_fixx = pos;
	return 0;
}

function opt_FIXY(pos) {
	o3_fixy = pos;
	return 0;
}

// Sets the fg background
function opt_FGBACKGROUND(picture) {
	o3_fgbackground = picture;
	return 0;
}

// Sets the bg background
function opt_BGBACKGROUND(picture) {
	o3_bgbackground = picture;
	return 0;
}

// Sets the left x padding for background
function opt_PADX(pixels) {
	o3_padxl = pixels;
	return PADX2;
}

// Sets the top y padding for background
function opt_PADY(pixels) {
	o3_padyt = pixels;
	return PADY2;
}

// Sets the right x padding for background
function opt_PADX2(pixels) {
	o3_padxr = pixels;
	return 0;
}

// Sets the bottom y padding for background
function opt_PADY2(pixels) {
	o3_padyb = pixels;
	return 0;
}

// Sets that user provides full html.
function opt_FULLHTML(unused) {
	o3_fullhtml = 1;
	return 0;
}

function opt_VPOS(pos) {
	o3_vpos = pos;
	return 0;
}

function opt_TEXTFONT(fontname) {
	o3_textfont = fontname;
	return 0;
}

function opt_TEXTSIZE(fontsize) {
	o3_textsize = fontsize;
	return 0;
}

function opt_FRAME(frm) {
	o3_frame = frm;

	if ( (ns4) || (ie4) ) {
		if (ns4) over = self.document.overDiv
		if (ie4) over = self.overDiv.style
	}

	return 0;
}


// End -->


