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

         jQuery('#biz-buy').click(function(){
              var pids = new Array();
              var qtys = new Array();
             if(jQuery('a[href="#tab1"]').hasClass('active')){
                 if(jQuery('#biz-p1').is(':checked')){
                    pids.push(17);
                    qtys.push(1);
               }
               if(jQuery('#biz-p2').is(':checked')){
                    pids.push(18);
                    qtys.push(1);
               }
             }else if(jQuery('a[href="#tab2"]').hasClass('active')){
                if(jQuery('#biz-p3').is(':checked')){
                    pids.push(19);
                    qtys.push(1);
               }
             }else if(jQuery('a[href="#tab3"]').hasClass('active')){
                if(jQuery('#biz-p4').is(':checked') && jQuery('#biz-p5').is(':checked') && jQuery('#biz-p6').is(':checked') ){
                    pids.push(16);
                    qtys.push(1);
               }else{
                   if(jQuery('#biz-p4').is(':checked')){
                        pids.push(17);
                        qtys.push(1);
                    }
                    if(jQuery('#biz-p5').is(':checked')){
                        pids.push(18);
                        qtys.push(1);
                   }
                    if(jQuery('#biz-p6').is(':checked')){
                        pids.push(19);
                        qtys.push(1);
                    }
               }
             }

           if(pids.length > 0){
                   jQuery.ajax({
                              url: '/featured/index/cartgrouped/',
                              data: "pids="+pids.join(',')+"&qtys="+qtys.join(','),
                              async:false,
                              success: function(data) {

                              if(data.indexOf('error') < 0){
                                  window.location.href ='/checkout/cart/'
                              }else{
                                  //par.html(ah);
                                  window.alert('Error submitting your request. Please contact us for help.')
                              }
                              return false;
                            }
                    });
               }
         });

          //read more button
           jQuery('#biz-more').click(function(){
            if(jQuery('a[href="#tab1"]').hasClass('active')){
                 if(jQuery('#biz-p1').is(':checked')){
                    window.location.href ='/threat-manager-r81.html';
                    return;
               }
               if(jQuery('#biz-p2').is(':checked')){
                    window.location.href ='/host-based-intrusion-prevention-system-r81.html';
                    return;
               }
             }else if(jQuery('a[href="#tab2"]').hasClass('active')){
                if(jQuery('#biz-p3').is(':checked')){
                    window.location.href ='/gateway-security-r81.html';
                    return;
               }
             }else if(jQuery('a[href="#tab3"]').hasClass('active')){
                if(jQuery('#biz-p4').is(':checked') && jQuery('#biz-p5').is(':checked') && jQuery('#biz-p6').is(':checked') ){
                  window.location.href ='/total-defense-r81.html';
                  return;
               }else{
                   if(jQuery('#biz-p4').is(':checked')){
                         window.location.href ='/threat-manager-r81.html';
                         return;
                    }
                    if(jQuery('#biz-p5').is(':checked')){
                         window.location.href ='/host-based-intrusion-prevention-system-r81.html';
                         return;
                   }
                    if(jQuery('#biz-p6').is(':checked')){
                         window.location.href ='/gateway-security-r81.html';
                         return;
                    }
               }
            }
        });

        //try now button
         jQuery('#biz-try').click(function(){
            if(jQuery('a[href="#tab1"]').hasClass('active')){
                 if(jQuery('#biz-p1').is(':checked')){
                    window.location.href ='/threat-manager-r81-trial.html';
                    return;
               }
               if(jQuery('#biz-p2').is(':checked')){
                    window.location.href ='/host-based-intrusion-prevention-system-r81-trial.html';
                    return;
               }
             }else if(jQuery('a[href="#tab2"]').hasClass('active')){
                if(jQuery('#biz-p3').is(':checked')){
                    window.location.href ='/gateway-security-r81-trial.html';
                    return;
               }
             }else if(jQuery('a[href="#tab3"]').hasClass('active')){
                if(jQuery('#biz-p4').is(':checked') && jQuery('#biz-p5').is(':checked') && jQuery('#biz-p6').is(':checked') ){
                  window.location.href ='/total-defense-r81-trial.html';
                  return;
               }else{
                   if(jQuery('#biz-p4').is(':checked')){
                         window.location.href ='/threat-manager-r81-trial.html';
                         return;
                    }
                    if(jQuery('#biz-p5').is(':checked')){
                         window.location.href ='/host-based-intrusion-prevention-system-r81-trial.html';
                         return;
                   }
                    if(jQuery('#biz-p6').is(':checked')){
                         window.location.href ='/gateway-security-r81-trial.html';
                         return;
                    }
               }
            }


        });



});
