function $(i){return document.getElementById(i)}
//function $$(e,p){p=p||document; return p.getElementsByTagName(e)}

function $style(i, cssp)
{

	if($(i).currentStyle)
	{
		var convertToCamelCase = cssp.replace(/\-(.)/g, function(m, l){return l.toUpperCase()});
		return $(i).currentStyle[convertToCamelCase];
	}
	else if (window.getComputedStyle)
	{
		var elementStyle = window.getComputedStyle($(i), "");
		return elementStyle.getPropertyValue(cssp);
	}
}

function xhr()
{
	var activexmodes=["Msxml2.XMLHTTP", "Microsoft.XMLHTTP"]; //activeX versions to check for in IE

	if (window.ActiveXObject)
	{ //als Erstes testen wir auf ActiveXObject im IE ( XMLHttpRequest in IE7 ist "wackelig")

		for (var i=0; i<activexmodes.length; i++)
		{
			try
			{
				return new ActiveXObject(activexmodes[i]);
			}
			catch(e)
			{
				//fehler gar nicht erst ausgeben
			}
		}
	}
	else if (window.XMLHttpRequest) // Mozilla, Safari etc
		return new XMLHttpRequest();
	else
		return false;
}