function change(id, newClass, str, big_cat) {
  identity=document.getElementById(id);
  identity.className=newClass;
  
  if (newClass == "color-s") {
    
    document.getElementById('featured').innerHTML = "<div id='loading'><img src='images/ajax-loader.gif' title='Loading...' /></div>";
    
      if (id != 'blue') {
	identity=document.getElementById('blue');
	identity.className='color';
      }
      if (id != 'orange') {
	identity=document.getElementById('orange');
	identity.className='color';
      }
      if (id != 'green') {
	identity=document.getElementById('green');
	identity.className='color';
      }
      if (id != 'pink') {
	identity=document.getElementById('pink');
	identity.className='color';
      }
      if (id != 'purple') {
	identity=document.getElementById('purple');
	identity.className='color';
      }
    
    var xmlhttp;
    if (window.XMLHttpRequest)
      {
      // code for IE7+, Firefox, Chrome, Opera, Safari
      xmlhttp=new XMLHttpRequest();
      }
    else if (window.ActiveXObject)
      {
      // code for IE6, IE5
      xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
      }
    else
      {
      alert("Your browser does not support XMLHTTP!");
      }
    xmlhttp.onreadystatechange=function()
    {
    if(xmlhttp.readyState==4)
      {
      document.getElementById('featured').innerHTML = xmlhttp.responseText;
      }
    }
    var url="includes/featured.php";
    url=url+"?int="+str+"&big_cat="+big_cat;
    xmlhttp.open("GET",url,true);
    xmlhttp.send(null);
    
  }
  
}

function getGroup(str, big_cat) {

  document.getElementById('popular-list').innerHTML = "<img src='images/ajax-loader-small.gif' title='Loading...' />";
  
  var xmlhttp;
  if (window.XMLHttpRequest) {
    // code for IE7+, Firefox, Chrome, Opera, Safari
    xmlhttp=new XMLHttpRequest();
  }
  else if (window.ActiveXObject) {
    // code for IE6, IE5
    xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
  else {
    alert("Your browser does not support XMLHTTP!");
  }
    
  xmlhttp.onreadystatechange = function() {
    if(xmlhttp.readyState==4)
      {
      document.getElementById('popular-list').innerHTML = xmlhttp.responseText;
      }
  }
  
  var url="includes/grouped.php";
  url=url+"?int="+str+"&big_cat="+big_cat;
  xmlhttp.open("GET",url,true);
  xmlhttp.send(null);
  
}