function showDetails($trobj){
   var prtyId = $trobj.attr('id').split('_')[1];
   if ( $("#p_" + prtyId + "_detail" ).is('*') ) {
      $("tr[id$='_detail']").remove();
   } else {
      $("tr[id$='_detail']").remove();
      var scriptname = "http://salsagids.info/cgi-bin/detail.pl";
      $trobj.after("<tr id=\"p_" + prtyId + "_detail\"><td colspan=\"8\"><p style=\"text-align:center;\"><img id=\"p_" + prtyId + "_loading\" src=\"/lo/load1.gif\">Loading party " + prtyId  + "</p></td></tr>");
      $.post(scriptname, {id: prtyId}, 
          function(data){
          $("#p_" + prtyId + "_loading").hide();
          $("#p_" + prtyId + "_detail :nth-child(1)").html(data)
      }, "html");
   }
}

//disabling popup with jQuery magic!  
//function disablePopup(){  
   //disables popup only if it is enabled  
//   if(popupStatus==1){  
//      $("#backgroundPopup").fadeOut("slow");  
//      $("#popupContact").fadeOut("slow");  
//      popupStatus = 0;  
//   }  
//}  

//centering popup  
//function centerPopup(){  
   //request data for centering  
//   var windowWidth = document.documentElement.clientWidth;  
//   var windowHeight = document.documentElement.clientHeight;  
//   var popupHeight = $("#popupContact").height();  
//   var popupWidth = $("#popupContact").width();  
   //centering  
//   $("#popupContact").css({  
//      "position": "absolute",  
//      "top": windowHeight/2-popupHeight/2,  
//      "left": windowWidth/2-popupWidth/2  
//    });  
//}  

function showArtist($arobj){
// $("#backgroundPopup").css({  
//    "opacity": "0.7"  
// });  
// $("#backgroundPopup").fadeIn("slow");  
// $("#popupContact").fadeIn("slow");  
//
// var artstId = $arobj.attr('id').split('_')[1];
    alert("Hoi")
   //   var scriptname = "http://salsagids.info/cgi-bin/artist.pl";
   //   $.post(scriptname, {id: artstId}, 
   //         function(data){
   //         $("#p_loading").hide();
   //         $("#p_detail :nth-child(1)").html(data)
   //  }, "html");
}


