  function sayhello() {
   	hellou = document.getElementById('hellou').value;
   		nek = document.getElementById('nickname').value;
    panda.open("GET", "/ajax/upisi.php?text="+hellou+'&nickname='+nek);
    panda.onreadystatechange = function(){rawr('rawr');}
    panda.send(null);

  }
  
  
    function contactme() {
   	name = document.getElementById('name').value;
   	email = document.getElementById('email').value;
   	where = document.getElementById('where').value;
   	message = document.getElementById('message').value;
    panda.open("GET", "/ajax/contactme.php?name="+name+'&email='+email+'&where='+where+'&message='+message);
    panda.onreadystatechange = function(){rawr('contactme');}
    panda.send(null);

  }
  
  

function otvoriblog(id) {
    panda.open("GET", "open.php?id="+id);
    panda.onreadystatechange = function(){rawr('otvoriblogba');}
    panda.send(null);
     prikaziload(document.getElementById("loadajaxa"));
	setTimeout("ugasiload()",1800);
    document.getElementById("aboutme").style.display = 'none';

  }
  
function otvoriportfolio() {
    panda.open("GET", "power.php");
    prikaziload(document.getElementById("loadajaxa"));
	setTimeout("ugasiload()",1800);
    panda.onreadystatechange = function(){rawr('kralj');}
    panda.send(null);
    document.getElementById("aboutme").style.display = 'none';

  }
  
  
function ugasiload(){
var ugasiajaxic = document.getElementById("loadajaxa");
ugasiajaxic.innerHTML = "";
}


function prikaziload(element) {
while (element.hasChildNodes()){
element.removeChild(element.lastChild);
}
var image = document.createElement("img");
image.setAttribute("src","/img/loading.gif");
element.appendChild(image);

}



  
function blog() {
    panda.open("GET", "blog.php");
    panda.onreadystatechange = function(){rawr('kralj');}
    panda.send(null);
     prikaziload(document.getElementById("loadajaxa"));
	setTimeout("ugasiload()",1800);
      document.getElementById("aboutme").style.display = 'none';

  }
  
  
function otvoriabout() {
    panda.open("GET", "about.php");
    panda.onreadystatechange = function(){rawr('aboutme');}
    panda.send(null);
     prikaziload(document.getElementById("loadajaxa"));
	setTimeout("ugasiload()",1800);
    document.getElementById("aboutme").style.display = 'block';

  }
  
  
  function otvorikontakt() {
    panda.open("GET", "kontakt.php");
    panda.onreadystatechange = function(){rawr('aboutme');}
    panda.send(null);
     prikaziload(document.getElementById("loadajaxa"));
	setTimeout("ugasiload()",1800);
    document.getElementById("aboutme").style.display = 'block';

  }
  
  
function otvoripawnda() {
    panda.open("GET", "pawnda.php");
    prikaziload(document.getElementById("loadajaxa"));
	setTimeout("ugasiload()",1800);
    panda.onreadystatechange = function(){rawr('aboutme');}
    panda.send(null);
    document.getElementById("aboutme").style.display = 'block';

  }
  
  
  function udripawndu() {
   	namei = document.getElementById('name').value;
   	emaili = document.getElementById('email').value;
   	commenti = document.getElementById('comment').value;
    panda.open("GET", "/ajax/contact.php?name="+namei+"&email="+emaili+"&comment="+commenti);
    panda.onreadystatechange = function(){rawr('aboutme');}
    panda.send(null);

  }