function overMouse(element,type) {
	element.style.cursor=type;
}
function outMouse(element) {
	element.style.cursor="default";
}
function infobox(id,title,boxcontent,bgcolor,framecolor) {
	if (boxcontent) {
		obox="<div id='"+id+"'><div style='margin:0px;background-color:"+framecolor+"'><span style='margin:8px;'>"+title+"</span></div><div style='background-color:"+bgcolor+";border-color:"+framecolor+";border-style:solid;border-width: 1px;'><div style='margin:8px;background-color:"+bgcolor+"'>"+boxcontent+"</div></div></div>";
		document.getElementById('infobox').innerHTML=obox;
	}
}
function infoboxOff(element) {
	document.getElementById(element).innerHTML='&nbsp;';
	document.getElementById(element).style.display='none';
}
function infoboxcontent(element,toptitle,cont,newwidth,mousex,mousey) {
	if (cont) {
		document.getElementById(element).style.display='inline';
		document.getElementById(element).style.width=newwidth;
		document.getElementById(element).innerHTML='<strong>'+toptitle+'</strong><br>'+cont;
		document.getElementById(element).style.left=mousex-(newwidth/2);
		document.getElementById(element).style.top=mousey+document.body.scrollTop+1;
		return false;
	}
}
function infobox_flex(element,toptitle,boxcontent,size,framecolor,bgcolor) {
	document.getElementById(element).style.left=event.clientX;
	document.getElementById(element).style.top=event.clientY+document.body.scrollTop;
	document.getElementById(element).style.display='inline';
	if (boxcontent) {
		obox="<div style='width:"+size+";margin:0px;background-color:"+framecolor+"'><span style='width:100%;margin-left:8px;'>"+toptitle+"</span></div><div style='width:"+size+";background-color:"+bgcolor+";border-color:"+framecolor+";border-style:solid;border-width: 1px;'><div style='width:100%;margin:8px;background-color:"+bgcolor+"'>"+boxcontent+"</div></div>";
		document.getElementById(element).innerHTML=obox;
	}
}
var mousepositionx;
var mousepositiony;
function mouseposition(this_e) {
	if (window.event) {
		mousepositionx=this_e.x;
		mousepositiony=this_e.y;
	} else {
		mousepositionx=this_e.layerX;
		mousepositiony=this_e.layerY;
	}
}
