// JavaScript Document
     var  nr = 12;
	  var  min=8;
      var  max=22;

      function fontChange(action)
	  {   
	      wrapper  =  document.getElementById("wraper");
		  fonts    =  wrapper.getElementsByTagName("div");
		 
		  for(i=0;i<fonts.length;i++) {
  
			    fonts[i].style.fontSize = nr + "px";
			 
	      }
		  if(action == 0)
		  { 
		     if(nr <= max){ nr++; }
		  }
		  else if(action == 1)
		  {
		     if(nr > min) nr--;
		  }
	   }


  
  function nav_img_art(a,b)
{
	document.getElementById('gal_pic'+a).style.display = 'none';
	document.getElementById('gal_pic'+b).style.display = '';
}
function rate_it(sid,nota)
{
 var AJAX;
 try
 {  
  AJAX = new XMLHttpRequest(); 
 }
 catch(e)
 {  
  try
  {    
   AJAX = new ActiveXObject("Msxml2.XMLHTTP");    
  }
  catch(e)
  {    
   try
   {
    AJAX = new ActiveXObject("Microsoft.XMLHTTP");      
   }
   catch(e)
   {      
    alert("Your browser does not support AJAX.");      
    return false;      
   }    
  }  
 }
 AJAX.onreadystatechange = function()
 {
  if(AJAX.readyState == 4)
  {
   if(AJAX.status == 200)
   {
    document.getElementById('notare').innerHTML = AJAX.responseText;  
   }
   else
   {
    alert("Error: "+ AJAX.statusText +" "+ AJAX.status);
   }
  }  
 }
 AJAX.open("get", "http://www.redesteptarea.ro/rate.php?id="+sid+"&n="+nota, true);
 AJAX.send(null);
}
function addClick(sid)
{
 var AJAX;
 try
 {  
  AJAX = new XMLHttpRequest(); 
 }
 catch(e)
 {  
  try
  {    
   AJAX = new ActiveXObject("Msxml2.XMLHTTP");    
  }
  catch(e)
  {    
   try
   {
    AJAX = new ActiveXObject("Microsoft.XMLHTTP");      
   }
   catch(e)
   {      
    alert("Your browser does not support AJAX.");      
    return false;      
   }    
  }  
 }
 AJAX.onreadystatechange = function()
 {
  if(AJAX.readyState == 4)
  {
   if(AJAX.status == 200)
   {
    document.getElementById('nozzzzztare').innerHTML = AJAX.responseText;  
   }
   else
   {
    alert("Error: "+ AJAX.statusText +" "+ AJAX.status);
   }
  }  
 }
 AJAX.open("get", "http://www.redesteptarea.ro/includes/addClick.php?id="+sid, true);
 AJAX.send(null);
}