var xmlHttp
function WybierzGrupe(str,str2)
{
document.getElementById("Typy_DIV").innerHTML="<img src='Images/loading.gif' />"
document.getElementById("WybranaGrupa_DIV").innerHTML=str2
document.getElementById("WybranaGrupa_DIV").style.display=""
document.getElementById("Typy_DIV").style.display=""
document.getElementById("WybranyTyp_DIV").innerHTML=""
document.getElementById("WybranyTyp_DIV").style.display="none"
document.getElementById("Narzedzia_DIV").innerHTML=""
document.getElementById("Narzedzia_DIV").style.display="none"
document.getElementById("Dane_DIV").innerHTML=""
document.getElementById("Dane_DIV").style.display="none"
scroll(0,500)
xmlHttp=GetXmlHttpObject()
if (xmlHttp==null)
{
alert ("Browser does not support HTTP Request")
return
}
var url="Strony/wybierz_grupe.php"
url=url+"?grupa="+str
url=url+"&sid="+Math.random()
xmlHttp.onreadystatechange=stateChanged
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
}
function stateChanged()
{
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
{
document.getElementById("Typy_DIV").innerHTML=xmlHttp.responseText
}
}
function WybierzTyp(str,str2)
{
document.getElementById("Narzedzia_DIV").innerHTML='<div style="text-align:center"><img src="Images/loading.gif" /></div>'
document.getElementById("WybranyTyp_DIV").innerHTML=str2
document.getElementById("WybranyTyp_DIV").style.display=""
document.getElementById("Narzedzia_DIV").style.display=""
document.getElementById("Dane_DIV").innerHTML=""
document.getElementById("Dane_DIV").style.display="none"
scroll(0,600)
xmlHttp=GetXmlHttpObject()
if (xmlHttp==null)
{
alert ("Browser does not support HTTP Request")
return
}
var url="Strony/wybierz_typ.php"
url=url+"?typ="+str
url=url+"&sid="+Math.random()
xmlHttp.onreadystatechange=stateChangedTyp
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
}
function stateChangedTyp()
{
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
{
document.getElementById("Narzedzia_DIV").innerHTML=xmlHttp.responseText

}
}
function WybierzDane(str)
{
document.getElementById("Dane_DIV").innerHTML='<div style="text-align:center"><img src="Images/loading.gif" /></div>'
document.getElementById("Dane_DIV").style.display=""
scroll(0,600)
xmlDane=GetXmlHttpObj()
if (xmlDane==null)
{
alert ("Browser does not support HTTP Request")
return
}
var url="Strony/wybierz_dane.php"
url=url+"?symbol="+str
url=url+"&sid="+Math.random()
xmlDane.onreadystatechange=stateChangedDane
xmlDane.open("GET",url,true)
xmlDane.send(null)
}
function stateChangedDane()
{
if (xmlDane.readyState==4 || xmlDane.readyState=="complete")
{
document.getElementById("Dane_DIV").innerHTML=xmlDane.responseText
}
}
function GetXmlHttpObject()
{
var xmlHttp=null;
try
{
// Firefox, Opera 8.0+, Safari
xmlHttp=new XMLHttpRequest();
}
catch (e)
{
//Internet Explorer
try
{
xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
}
catch (e)
{
xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
}
}
return xmlHttp;
}
function GetXmlHttpObj()
{
var xmlDane=null;
try
{
// Firefox, Opera 8.0+, Safari
xmlDane=new XMLHttpRequest();
}
catch (e)
{
//Internet Explorer
try
{
xmlDane=new ActiveXObject("Msxml2.XMLHTTP");
}
catch (e)
{
xmlDane=new ActiveXObject("Microsoft.XMLHTTP");
}
}
return xmlDane;
}



      function getWidth(){
   
      return window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;
   
      }
   
      function getHeight(){
   
      return window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight;
   
      }
   
      onload=function(d,E,b,i,a){
   
      d=document;E=d.documentElement;b=d.body;if(!E)return;
 
      for(i=0;a=d.getElementsByTagName("a")[i];i++){
 
    if(a.rel=='thumb'){
 
      a.t=d.createElement("div");
 
      var img=document.createElement('img');
 
      img.src=a.href;
 
      a.t.appendChild(img);
 
      a.t.className="tooltip"
 
    a.onmouseover=function(e){
 
      this.onmousemove(e);
 
      b.appendChild(this.t);
 
      }
 
      a.onmouseout=function(){
 
      b.removeChild(this.t);
 
      }
 
      a.onmousemove=function(e){
 
      var t, x=this.t;
 
      e=e||event;
 
      t=e.clientX+(E.scrollLeft||b.scrollLeft)+20;
 
      x.style.left=(getWidth()>(t+x.offsetWidth)?t:t-x.offsetWidth-20)+'px';
 
      t=e.clientY+(E.scrollTop||b.scrollTop)+20;
 
      x.style.top=(getHeight()>(t+x.offsetHeight)?t:t-x.offsetHeight-40)+'px';
 
      }
 
      }
 
      }
 
      }
