//Only add this implementation if one does not already exist. 
/*
if (jQuery.prototype.getCoordinates==null) jQuery.prototype.getCoordinates=function(){ 
   	var target = this;
	var o = new Object();
	o.width = target.width() + target.css("border-top-width").replace(/\D/g, "") * 2;
	o.height = target.height() + target.css("border-left-width").replace(/\D/g, "") * 2;
	o.top = target.offset().top;
	o.left = target.offset().left;
	return o;
}
*/

// is IE?
function IsIE()
{
	var bIsIE = false;
	if (window.ActiveXObject)
	{
		// IE-only code
		bIsIE = true;
	}
	return bIsIE;
}


function EncodeHTML(str) 
{
	var encodedHtml = escape(str);
	encodedHtml = encodedHtml.replace(/\//g,"%2F");
	encodedHtml = encodedHtml.replace(/\?/g,"%3F");
	encodedHtml = encodedHtml.replace(/=/g,"%3D");
	encodedHtml = encodedHtml.replace(/&/g,"%26");
	encodedHtml = encodedHtml.replace(/@/g,"%40");
	return encodedHtml;
}