function AS_OneClick_Thickbox(){
 
    this.trigger_thickbox = function(product, thickbox_id) {
    
    if (!product) {
          alert("Error! You must set the product");
          return;
      }

  if (!thickbox_id) {
          alert("Error!  You must supply the thickbox_id to trigger_thickbox");
          return;
  }
  
      // check if we should show the popup
      var reminder_cookie = product + "_reminder";
      var survey_cookie   = product + "_survey";
      var debug = 0;
      
      if ( (! $.cookie(reminder_cookie) && ! $.cookie(survey_cookie)) || debug ) {
  
          // trigger the hidden thickbox link and adjust the thickbox window  styling
         $("#trigger_" + thickbox_id).click();
          $("#TB_window").css("background", "none");
          $("#TB_window").css("border", "none");
          $("#TB_title").hide();
          $.cookie( product + "_reminder", "1", { expires: 7, path: '/' });  // expires in 7 days

          // populate thickbox content
          $("#oneclick_close").attr("href", com.activestate.one_click.return_url);
          
          // tell google about the popup  
          if (pageTracker) { pageTracker._trackPageview('/' + com.activestate.one_click.product + '/pop_up'); }
          
          $("#oneclick_close").click( function(event) {
              
              // tell Google Analytics about the closed dialogue
              if (pageTracker) { pageTracker._trackPageview('/' + com.activestate.one_click.product + '/close_form'); }
              
              return;
          });
      };
    }
}

