jQuery(document).ready(function(){
                           var newYear = new Date(); 
                           newYear = new Date(2011, 3 - 1, 21); 
                           $('#countdown').countdown({until: newYear}); 
                           
                           $('#removeCountdown').toggle(function() { 
                                                            $(this).text('Re-attach'); 
                                                            $('#countdown').countdown('destroy'); 
                                                        }, 
                                                        function() { 
                                                            $(this).text('Remove'); 
                                                            $('#countdown').countdown({until: newYear}); 
                                                        } 
                                                       );

                           // initialize wepay
                           $("#wepay_submit").click(function(e) {
                                                        $.getJSON("https://www.wepay.com/sp/create",
                                                                  {  
                                                                      format: 'json',
                                                                      token: "f1002c65ec", 
                                                                      group_id: "120666",
                                                                      size: $("#wepay_select").val()
                                                                  }, function(data) {
                                                                      window.location.href=data.result;
                                                                  });
                                                        return false;
                                                    });
                       });
