function XmlHttp(){this.CreateXmlHttpObject=CreateXmlHttpObject;this.GetUrlContent=GetUrlContent;this.GetResponseText=GetResponseText;this.GetReadyState=GetReadyState;this.HttpMethod='GET';this.objXmlHttp=this.CreateXmlHttpObject();}
function CreateXmlHttpObject(){var xmlhttp=false;try{xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");}catch(e){try{xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");}catch(E){xmlhttp=false;}}
if(!xmlhttp&&typeof XMLHttpRequest!='undefined'){xmlhttp=new XMLHttpRequest();}
return xmlhttp;}
var objXMLHttp=new XmlHttp();function GetReadyState(){return this.objXmlHttp.readyState;}
function GetResponseText(){return this.objXmlHttp.responseText;}
function GetUrlContent(strUrl,objOnReadyStateChangeFunction){this.objXmlHttp.open(this.HttpMethod,strUrl,true);this.objXmlHttp.setRequestHeader('Content-Type','text/xml; charset=utf-8');if(objOnReadyStateChangeFunction){this.objXmlHttp.onreadystatechange=function(){objOnReadyStateChangeFunction();}}
this.objXmlHttp.send(null);}
function GetResponse(){if(objXMLHttp.GetReadyState()==4){var objMyDiv=document.getElementById('head');objMyDiv.innerHTML=objXMLHttp.GetResponseText();}}
function getHead(aParam){if(aParam!==''){var objMyDiv=document.getElementById('head');objXMLHttp.GetUrlContent('http://www.bikestation.ch/head_provider.php?do='+aParam,GetResponse);}
return;}
function switchLayer(which)
{var obj=document.getElementById(which);obj.style.display=='block'?obj.style.display='none':obj.style.display='block';}
