
/**********************************************************************/
/*                                                                    */ 
/* This script contains functions and variables which are used only   */
/* by this campaign                                                   */
/*                                                                    */ 
/**********************************************************************/
$(document).ready( CampaignThisInit );
function CampaignThisInit() {
 CampaignThis.Init();
}
var CampaignThis = {
 Init : function() {
 
 /**********************************************************************/
 /*                                                                    */ 
 /* Add the toggle function to the five different offers the           */
 /* bundles should show all, the sinlges should hide telephone and     */
 /* the tv if it's broadband and vice versa                            */
 /*                                                                    */ 
 /**********************************************************************/
  
 // BB XXL + TV L || BB L + TV L
 $('#campaign_main_99,#campaign_other_BB_L_TV_L').click(
  function() {
   toShow = '#campaign_form div.campaign_product_area';
   toShow+= '.campaign_expandable';
   $(toShow).show();
  }
 );
 
 // BB XXL || BB L
 $('#campaign_other_only_BB_XXL,#campaign_other_only_BB_L').click(
  function() {
   toShow = '#campaign_form #campaign_broadband_area';
   toShow+= '.campaign_product_area.campaign_expandable';
   $(toShow).show();
   toHide = '#campaign_form div.campaign_product_area';
   toHide+= '.campaign_expandable:not(#campaign_broadband_area)';
   $(toHide).hide();
  }
 ); 
 
 // TV L
 $('#campaign_other_only_TV_L').click(
  function() {
   toShow = '#campaign_form #campaign_tv_area';
   toShow+= '.campaign_product_area.campaign_expandable';
   $(toShow).show();
   toHide = '#campaign_form div.campaign_product_area';
   toHide+= '.campaign_expandable:not(#campaign_tv_area)';
   $(toHide).hide();
  }
 ); 
 }
}