jQuery.noConflict();
        jQuery(document).ready(function(){

            $zopim.livechat.bubble.reset();

           jQuery("input:checkbox").uniform();
           //jQuery("select").uniform();
          // jQuery("input:radiobox").uniform();


   jQuery('#80').click(function(){
     if(jQuery('#80').is(':checked')) {
           jQuery('#77').attr('disabled',true);
           jQuery('#64').attr('disabled',true);
           jQuery('#78').attr('disabled',true);
           jQuery('#79').attr('disabled',true);
          jQuery.uniform.update();
        }

        else{
           jQuery('#77').attr('disabled',false);
           jQuery('#64').attr('disabled',false);
           jQuery('#78').attr('disabled',false);
           jQuery('#79').attr('disabled',false);
           jQuery.uniform.update();
        }
    });

       //read more button
           jQuery('#support-buy').click(function(){
               return addServCart(0);
            });  
           jQuery('#gquote').click(function(){
               return addServCart(1);
            });


});

function addServCart(quote){

               var pids = new Array();
               var qtys = new Array();

             if(jQuery('#77').is(':checked')) {
                pids.push(77);
                qtys.push(1);
               }

               if(jQuery('#64').is(':checked')) {
                  pids.push(64);
                  qtys.push(1);
               }

               if(jQuery('#78').is(':checked')) {
                  pids.push(78);
                  qtys.push(1);
               }

               if(jQuery('#79').is(':checked')) {
                  pids.push(79);
                  qtys.push(1);
               }

               if(jQuery('#80').is(':checked')) {
                //  pids.push(80);
                //  qtys.push(1);
                window.location.href ='/Quotation/Quote/CreateIndividualRequest'
               }

               if(pids.length > 0){
                   jQuery.ajax({

                              url: '/featured/index/cart/?',
                              data: "pids="+pids.join(',')+"&qtys="+qtys.join(','),
                              async:false,
                              success: function(data) {

                              if(data.indexOf('error') < 0){
                                  if(quote == 1) {
                                        window.location.href = '/Quotation/Quote/CreateRequest/';
                                  }else{
                                        window.location.href ='/checkout/cart/';
                                  }
                              }else{
                                  //par.html(ah);
                                  window.alert('Error submitting your request. Please contact us for help.')
                              }
                              return false;
                            }
                    });
               }
}
