jQuery.noConflict();
        jQuery(document).ready(function(){

            jQuery('#showTerms').click(function(){
               jQuery('#terms').dialog({
                   modal:true,
                   resizable:false
               });
       });
        //add custom options vs subscription switcher
//        if(jQuery('.sarp-subscription').length > 0){
//            jQuery('ul.sarp-subscription').find('input:radio:first').attr('checked', 'chekced');
//        }

        //old deprecated....
//       if(jQuery('#product-options-wrapper').length > 0 && jQuery('.sarp-subscription').length > 0 ){
//          if(jQuery('#want-subscription').length > 0){
//              jQuery('#want-subscription').attr('checked', 'checked');
//              jQuery('#want-subscription').change(function(){
//                  var set = null;
//                 if(jQuery(this).is(':checked')){
//                     set =  jQuery('#product-options-wrapper > dl').find('input:radio:checked').parent().find('label').html();
//                     jQuery('#product-options-wrapper > dl').find('input:radio').removeAttr('checked');
//                     jQuery('#product-options-wrapper > dl').hide();
//                     if(set != null){
//                         set = set.trim();
//                         //window.alert(set);
//                         jQuery.each(jQuery('.sarp-subscription').find('label'), function(i, el){
//                           //  window.alert(jQuery(el).html().trim());
//                             if(jQuery(el).html().trim() == set){
//                                 //window.alert(jQuery(el).html());
//                                jQuery(el).parents('li').find('input:radio').attr('checked', 'checked');
//                            }
//                         });
//                     }
//                     //SarpOptionsPrice.reload();
//                    jQuery('.sarp-subscription').show();
//                 }else{
//                     set =  jQuery('ul.sarp-subscription').find('input:radio:checked').parent().find('label').html();
//                     jQuery('ul.sarp-subscription').find('input:radio').removeAttr('checked');
//                     jQuery('.sarp-subscription').hide();
//                     if(set != null){
//                         set = set.trim();
//                         //window.alert(set);
//                         jQuery.each(jQuery('#product-options-wrapper > dl').find('label'), function(i, el){
//                             //window.alert(jQuery(el).html().trim());
//                             if(jQuery(el).html().trim() == set){
//                                 //window.alert(jQuery(el).html());
//                                jQuery(el).parents('li').find('input:radio').attr('checked', 'checked');
//                            }
//                         });
//                     }
//                     //opConfig.reloadPrice();
//                     jQuery('#product-options-wrapper > dl').show();
//                 }
//              });
//          }
//
//       }
});

