/*
 * Copyright (c) 2009 - 2010 y7.ro
*/
function addBookmark(url,title){if(window.sidebar){window.sidebar.addPanel(title,url,"");}else if(window.external){window.external.AddFavorite(url,title);}else if(window.opera && window.print){return true;}}function verifica_contact(){if(document.form.message.value==""){alert(message_not_blank);return false;}else{return true;}}eval(function(p,a,c,k,e,r){e=function(c){return c.toString(36)};if('0'.replace(0,e)==0){while(c--)r[e(c)]=k[c];k=[function(e){return r[e]||e}];e=function(){return'\\w'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('4 2=0;4 3=0;4 b=0;4 9=0;4 f=1.1;p zoom(n){4 5=l.j(\'h\');g(2==0||3==0){2=5.7.e.o(/6/i,\'\');3=5.7.d.o(/6/i,\'\');b=2;9=3}switch(n){m 1:g(2<1180){4 a=2;2=c.8(f*2);3=c.8((3*2)/a)}k;m-1:4 a=2;2=c.8(2/f);3=c.8((3*2)/a);k}5.7.e=2+\'6\';5.7.d=3+\'6\'}p reset_zoom(){g(b>0&&9>0){4 5=l.j(\'h\');2=0;3=0;5.7.e=b+\'6\';5.7.d=9+\'6\'}}',[],26,'||actualWidth|actualHeight|var|obj|px|style|ceil|startHeight|temp|startWidth|Math|height|width|ratio|if|gameMedia||getElementById|break|document|case|type|replace|function'.split('|'),0,{}))

var xmlHttp = xmlHttpRequest();
function xmlHttpRequest() {
  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 voteazanu(id) {
window.open('/voteaza.php?vot=nu&idjoc='+id);
}
function voteazada(id) {
 if (xmlHttp.readyState == 4 || xmlHttp.readyState == 0) 
    { 
	xmlHttp.open("GET", "/voteaza.php?vot=da&idjoc="+id, true);
	xmlHttp.onreadystatechange = InfoVot;
     xmlHttp.send(null); 

  }
}
function voteazanu(id) {
 if (xmlHttp.readyState == 4 || xmlHttp.readyState == 0) 
    { 
	xmlHttp.open("GET", "/voteaza.php?vot=nu&idjoc="+id, true);
	xmlHttp.onreadystatechange = InfoVot;
     xmlHttp.send(null); 

  }
}

function InfoVot() 
{ 
    if (xmlHttp.readyState == 4) 
    { 
        if (xmlHttp.status == 200) 
        { 
            raspuns = xmlHttp.responseText;
            document.getElementById("rezultat").innerHTML = '<b>' + raspuns + '</b>';
       } 
        else 
        { 
            alert("Problema la accesare: " +xmlHttp.statusText); 
        } 
    } 
} 