// Popup background color 
	if (typeof fcolor == 'undefined') { var fcolor = "#000000";}
// Popup Title color
	if (typeof bordercolor == 'undefined') { var bordercolor = "#70809f";}
// Text color
	if (typeof textcolor == 'undefined') { var textcolor = "#FFFFFF";}
// Text size
	if (typeof textsize == 'undefined') { var textsize = "1";}
// Title text Color
	if (typeof titletextcolor == 'undefined') { var titletextcolor = "#c0c0c0";}
// Title text Size
	if (typeof titletextsize == 'undefined') { var titletextsize = "2";}
// Width of popup in pixels
	if (typeof width == 'undefined') { var width = "200";}
// Thickness of border
	if (typeof borderthickness == 'undefined') { var borderthickness = "2";}
//Variables//
if (typeof offsetx == 'undefined') { var offsetx = 50;}
if (typeof offsety == 'undefined') { var offsety = -50;}
	ns4 = (document.layers)? true:false
	ie4 = (document.all)? true:false
if (ie4) {
	if (navigator.userAgent.indexOf('MSIE 5')>0 || navigator.userAgent.indexOf('MSIE 6')>0) {
		ie5 = true;
	} else {
		ie5 = false; }
} else {
	ie5 = false;
}
var sw = 0;
var center = 0;
var lalala = 0;
var direction = 1;
var x = 0;
var y = 0;
if ( (ns4) || (ie4) ) {
	if (ns4) overlayer = document.PopupDiv
	if (ie4) overlayer = PopupDiv.style
	document.onmousemove = mouseMove
	if (ns4) document.captureEvents(Event.MOUSEMOVE)
}
//Javascript for Popups!//

function left(text, title) {
	grrr(0,text,title);
}
function right(text, title) {
	grrr(1,text,title);
}
function centerp(text, title) {
	grrr(2,text,title);
}
function grrr(d,text, title) {
	txt = "<TABLE BORDER=0 CELLPADDING=1 CELLSPACING=0 BGCOLOR=\"#000000\"><TR><TD><TABLE BORDER=0 CELLPADDING=2 CELLSPACING=0 BGCOLOR=\""+bordercolor+"\"><TR><TD><FONT COLOR=\""+titletextcolor+"\"SIZE="+titletextsize+" face=\"Arial, Helvetica\">"+title+"</FONT>&nbsp;<FONT COLOR=\""+textcolor+"\" size="+textsize+" face=\"Arial, Helvetica\"><b>"+text+"</b></FONT></TD></TR></TABLE></TD></TR></TABLE>"
	MakeThePopup(txt);
	direction = d;
	display();
}
function display() {
	if ( (ns4) || (ie4) ) {
		if (lalala == 0) 	{
			if (direction == 0) {
				moveIt(overlayer,x-offsetx-width,y+offsety);
			}
			if (direction == 1) {
				moveIt(overlayer,x+offsetx,y+offsety);
			}
			if (direction == 2) {
				moveIt(overlayer,x+offsetx-(width/2),y+offsety);
			}

			showIt(overlayer);
			lalala = 1;
		}
	}
}
function mouseMove(m) {
	if (ns4) {x=m.pageX; y=m.pageY;}
	if (ie4) {x=event.x; y=event.y;}
	if (ie5) {x=event.x+document.body.scrollLeft; y=event.y+document.body.scrollTop;}
	if (lalala == 99) {
		if (direction == 2) {
			moveIt(overlayer,x+offsetx-(width/2),y+offsety);
		}
		if (direction == 1) {
			moveIt(overlayer,x+offsetx,y+offsety);
		}
		if (direction == 0) {
			moveIt(overlayer,x-offsetx-width,y+offsety);
		}
	}
}
function MakeThePopup(txt) {
        if (ns4) {
                var laya = document.PopupDiv.document
                laya.write(txt)
                laya.close()
        }
        else if (ie4) document.all["PopupDiv"].innerHTML = txt
}
function moveIt(obj,xL,yL) {
        obj.left = xL
        obj.top = yL
}
function hideIt(obj) {
        if (ns4) obj.visibility = "hide"
        else if (ie4) obj.visibility = "hidden"
}
function showIt(obj) {
        if (ns4) obj.visibility = "show"
        else if (ie4) obj.visibility = "visible"
}
function closepopup() {
	if ( center >= 1 ) { sw = 0 };
	if ( (ns4) || (ie4) ) {
		if ( sw == 0 ) {
			lalala = 0;
			hideIt(overlayer);
		} else {
			center++;
		}
	}
}
