$(document).ready(function(){
    //this is to make the box behind the selected plan green
    $('.pricingPlans li input:radio').change(function(){
      $(".pricingPlans li").removeClass("selected");
       $(this).closest('li').addClass("selected");
    });
    
    
    	//Hide div w/id extra
	   $(".voucherCode").css("display","none");

		// Add onclick handler to checkbox w/id checkme
	   $("#checkMe").click(function(){

		// If checked
		if ($("#checkMe").is(":checked"))
		{
			//show the hidden div
			$(".voucherCode").show("fast");
		}
		else
		{
			//otherwise, hide it
			$(".voucherCode").hide("fast");
		}
	  });
	  
	  	//Hide div w/id extra
	   $(".addressFormsShipping").css("display","none");

		// Add onclick handler to checkbox w/id checkme
	   $("#checkMe").click(function(){

		// If checked
		if ($("#checkMe").is(":checked"))
		{
			//show the hidden div
			$(".addressFormsShipping").show("fast");
		}
		else
		{
			//otherwise, hide it
			$(".addressFormsShipping").hide("fast");
		}
	  });

	  //show and hide the login box
	  $('.showLogin').toggle(function() {
      $(".loginBox").slideDown();
      $(this).html('hide login');
    }, function() {
      $(".loginBox").slideUp();
      $(this).html('login now');
    });
	  
	  
    
    $('a.changeSimCard').click(function(event){
      $(".SimCard").removeAttr("disabled");
      event.preventDefault();
    }
  );

});
