function ajaxpage(url)
{
  var page_request = false
  if (window.XMLHttpRequest)
  page_request = new XMLHttpRequest()
  else if (window.ActiveXObject)
  {
    try
    {
      page_request = new ActiveXObject("Msxml2.XMLHTTP")
    }
    catch (e)
    {
      try
      {
        page_request = new ActiveXObject("Microsoft.XMLHTTP")
      }
      catch (e){}
    }
  }
  else
  return false
  $.ajax(
  {
    type: "GET",
    url: url,
    dataType: "html",
    success: function(html)
    {
      $('#content').html(html);
    }
  });
}

$(document).ready(function()
{
  $('#button1').click(function()
  {
    ajaxpage('ajaxPage.php?pageID=1');
    player.sendEvent('VOLUME', 100);
  });
});

$(document).ready(function()
{
  $('#button2').click(function()
  {
    ajaxpage('ajaxPage.php?pageID=2');
     player.sendEvent('VOLUME', 100);
  });
});

$(document).ready(function()
{
  $('#button3').click(function()
  {
    ajaxpage('ajaxPage.php?pageID=3');
    player.sendEvent('VOLUME', 100);
  });
});

$(document).ready(function()
{
  $('#button4').click(function()
  {
    ajaxpage('ajaxPage.php?pageID=4');
    player.sendEvent('VOLUME', 100);
  });
});

$(document).ready(function()
{
  $('#button5').click(function()
  {
    ajaxpage('ajaxPage.php?pageID=5');
    player.sendEvent('VOLUME', 100);
  });
});

$(document).ready(function()
{
  $('#button6').click(function()
  {
    ajaxpage('ajaxPage.php?pageID=6');
    player.sendEvent('VOLUME', 100);
  });
});

$(document).ready(function()
{
  $('#button7').click(function()
  {
    ajaxpage('ajaxPage.php?pageID=7');
    player.sendEvent('VOLUME', 100);
  });
});

