function popupSupertell() {
  url = 'http://www.supertell.com/supertell.php?sid=01BDB94A5AE27C076F3512E5E27AB400&mt=1';

  stWindow = window.open(url,
      'superTell',
      'width=660,height=700,status=yes,menubar=no,' +
      'toolbar=no,scrollbars=yes,resizable=yes');
  stWindow.focus();
}

function popupMediaClip(mediaClip)
{
  window.open("files/media_clip.php?mediaClip="+mediaClip,
              "windowMediaClip",
              "width=340,height=260,status=yes,menubar=no,toolbar=no,scrollable=yes,scrollbars=yes,resizable=yes");
}

self.focus();

  //home page voices rotation
  //-------------------------------------------------
  var numImage = $(".rotate-image").size();
    $("#slideshow .next").click(function(){
    if(document.all) { $("#slideshow").css({ padding: "0 0 10px 0" }); }
    $(".cur-image").fadeOut(500, function(){
      if($(".cur-image").attr("rel") <= numImage - 1 ) {
        x = $(".cur-image").next();
      } else {
        x = $(".rotate-image[@rel=1]");
      }
      $(".cur-image").removeClass("cur-image");
      x.fadeIn(500).addClass("cur-image");
    });
    return false;
  });
  
  $("#slideshow .prev").click(function(){
    $(".cur-image").fadeOut(500, function(){
      if($(".cur-image").attr("rel") == 1 ) {
        x = $(".rotate-image[@rel="+numImage+"]");
      } else {
        x = $(".cur-image").prev();
      }
      $(".cur-image").removeClass("cur-image");
      x.fadeIn(500).addClass("cur-image");
    });
    return false;
  }); 
  //end voices rotation