jQuery(function($){
  admirervoiceChange = function(call,element,a,b,c) {
    JQ.get(call, function(data)  {
        var feeds = JQ(element);
        feeds.fadeOut(200, function(){
          feeds.html(data).fadeIn(200);
        });
    });
    JQ(document.getElementById(a)).addClass("active")
    JQ(document.getElementById(b)).removeClass("active")
    JQ(document.getElementById(c)).removeClass("active")
    return false;
  };
});

function showAvImage(URL, width, height, popupname) {
  if (!window.showModalDialog) {
    var left = (screen.width - width) / 2;
    var top = (screen.height - height) / 2;
    var options = 'width = ' + width + ', height = ' + height + ', left = ' + left + ', top = ' + top;
    options += ', dialog = yes, modal = yes, dependent = yes, resizable = yes';
    var newwindow = window.open(URL, popupname, options);
    if (window.focus) {
      newwindow.focus();
    }
  } else {
    var options = 'dialogWidth:' + width + 'px;dialogHeight:' + height + 'px; center:yes; scroll:no; status:no; resizable:yes; help:no;';
    var newwindow = window.showModalDialog(URL, popupname, options);
  }
  return false;
}