<!--

// drag & help funs for ie here

function help(Header,html,bgcolor,Url) {
	if(!document.all.help) document.body.insertAdjacentHTML('beforeEnd', '<div id="help" style="visibility:visible;position:absolute;left:100;top:200;"></div>');
	if(!html) document.all['help'].style.visibility='hidden';
	else {
	    var s ='<table border="0" width="250" bgcolor="' + bgcolor +'" cellspacing="0" cellpadding="2"><tr><td>\n';
		s+='<table style="cursor:hand;" border="0" width="100%" cellspacing="0" cellpadding="0">\n';
		s+='<tr>\n';
        s+='<td width="230" align="left" valign="top"><span class="HeaderCss"><font color="#ffffff"><b>' + Header + '</b></font></span></td>\n';
        s+='<td width="20" align="right"><a href="#" onclick="help();"><img src="' + Url +  'close.gif" width="16" height="14" border="0"></a><br></td>\n';
		s+='</tr>\n';
		s+='<tr>\n';
        s+='<td bgcolor="#FFFFFF" colspan="2"><Span class="TextCss">\n';
		s+=html;
		s+='</Span></td>\n';
		s+='</tr>\n';
		s+='</table></td></tr></table>\n';
		document.all['help'].innerHTML = s;
		document.all['help'].style.top = help_y;
		document.all['help'].style.left = help_x;
		document.all['help'].style.visibility='visible';
	}
}

currentX = currentY = 0;
whichEl = null;
    
function grabEl() {
	help_x = window.event.x - 100;
	help_y = window.event.y - 10;
	whichEl = event.srcElement;

	while (whichEl.id.indexOf("help") == -1) {
		whichEl = whichEl.parentElement;
		if (whichEl == null) { return }
	}

	whichEl.style.pixelLeft = whichEl.offsetLeft;
	whichEl.style.pixelTop = whichEl.offsetTop;

	currentX = (event.clientX + document.body.scrollLeft);
	currentY = (event.clientY + document.body.scrollTop); 
}

function moveEl() {
	if (whichEl == null) { return };

	newX = (event.clientX + document.body.scrollLeft);
	newY = (event.clientY + document.body.scrollTop);

	distanceX = (newX - currentX);
	distanceY = (newY - currentY);
	currentX = newX;
	currentY = newY;

	whichEl.style.pixelLeft += distanceX;
	whichEl.style.pixelTop += distanceY;
	event.returnValue = false;
}
function dropEl() {
	whichEl = null;
}
	document.onmousedown = grabEl;
	document.onmousemove = moveEl;
	document.onmouseup = dropEl;

// drag'n'drop funs end

// -->
