function play(song_url) {

  var local_url = song_url;

  if (song_url.indexOf('fernandodeluca') != -1) {

    if (song_url.indexOf('audio2k10') != -1) {
      var chunks = song_url.split('audio2k10');
      local_url = chunks[0] + 'audio-s6822vk83b-2k10' + chunks[1];
    }
    else if (song_url.indexOf('audio2k9_st') != -1) {
      var chunks = song_url.split('audio2k9_st');
      local_url = chunks[0] + 'audio-s6822vk83b-2k9_st' + chunks[1];
    }
    else if (song_url.indexOf('audio2k9') != -1) {
      var chunks = song_url.split('audio2k9');
      local_url = chunks[0] + 'audio-s6822vk83b-2k9' + chunks[1];
    }
    else if (song_url.indexOf('audio2k8') != -1) {
      var chunks = song_url.split('audio2k8');
      local_url = chunks[0] + 'audio-s6822vk83b-2k8' + chunks[1];
    }
    else if (song_url.indexOf('audio') != -1) {
      var chunks = song_url.split('audio');
      local_url = chunks[0] + 'audio-s6822vk83b' + chunks[1];
    }
  }

  try {
    top.player.location = local_url;
  }
  catch(err) {
    window.open(local_url, 'gfhplayer', 'height=500,width=300,status=no,toolbar=no,scrollbars=no,resizable=no');
  }
}

function setupPlayer() {
  if (this.name != "gfh_principale" && this.name != "principale" && this.name != "doc") {
    top.location='player_frame.htm';
  }
}

function stopMusic() {
  if (this.name != "gfh_principale" && this.name != "principale" && this.name != "doc") {
    this.location='player_generator.htm';
  }
  play('http://xoomer.alice.it/gfh/menu/apollo.htm');
}

function popWindowUp(url) {
  new_window = window.open(url, 'gfhpopup', 'height=450,width=800,status=no,toolbar=no,scrollbars=yes,resizable=yes');
  if (window.focus) { new_window.focus() }
  return false;
}