if (typeof fcolor == 'undefined') { var fcolor = "#E3F5FF";}
if (typeof backcolor == 'undefined') { var backcolor = "#001A8C";}
if (typeof textcolor == 'undefined') { var textcolor = "#001A8C";}
if (typeof capcolor == 'undefined') { var capcolor = "#FFFFFF";}
if (typeof closecolor == 'undefined') { var closecolor = "#9999FF";}
if (typeof width == 'undefined') { var width = "120";}
if (typeof border == 'undefined') { var border = "1";}

var xPlus = 0;
var yPlus = 0;

ns4 = (document.layers)? true:false;
ie4 = (document.all)? true:false;
ie5 = (document.getElementById)? true:false;
//alert(ie5);

if (ns4) over = document.overDiv;
if (ie4) over = overDiv.style;
document.onmousemove = mouseMove;
if (ns4) document.captureEvents(Event.MOUSEMOVE);

function drawcitys(text) {
	dts(text);
}

function mout() {
	hideObject(over);
}

function dts(text) {
	txt = "<TABLE WIDTH="+width+" BORDER=0 CELLPADDING="+border+" CELLSPACING=0 BGCOLOR=\""+backcolor+"\"><TR><TD><TABLE class=c1 WIDTH=100% BORDER=0 CELLPADDING=2 CELLSPACING=0 BGCOLOR=\""+fcolor+"\"><TR><TD CLASS=P1><FONT FACE=\"ËÎÌå\" COLOR=\""+textcolor+"\">"+text+"</FONT></TD></TR></TABLE></TD></TR></TABLE>"
	layerWrite(txt);
	disp();
}



function disp() {

	xPlus = (x<120)? 1:-121;
	yPlus = (y<80)? 1:-80
	
	moveTo(over, x + xPlus, y + yPlus);
	showObject(over);

}

function mouseMove(e) {
	if (ns4) {x=e.pageX; y=e.pageY;}
	if (ie4) {x=event.x; y=event.y;}
	if (ie5) {x=event.x; y=event.y;}


	xPlus = (x<120)? 1:-121;
	yPlus = (y<80)? 1:-80
	moveTo(over, x + xPlus, y + yPlus);

}


function layerWrite(txt) {
	if (ns4) {
		var lyr = document.overDiv.document
		lyr.write(txt)
		lyr.close()
	}
	else if (ie4){
		 document.all["overDiv"].innerHTML = txt;
	}
	else {
		document.getElementById("overDiv").innerHTML = txt;
	}
}

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

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

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

