');
ajax_loader_small = new Image();
ajax_loader_small.src = 'https://nanacast.com/images/ajax-loader-small.gif';
var dot_count_0ffb8926d44c = 0;
var dot_interval_0ffb8926d44c = '';
var show_terms_0ffb8926d44c = 1;
var capture_data_0ffb8926d44c = 1; // this is 0 if we are just showing buttons
var do_validation_0ffb8926d44c = 1;
var current_price_token_0ffb8926d44c = '';
var secs_elapsed_0ffb8926d44c = 0;
var price_at_checkout_0ffb8926d44c = 0.00;
var starting_price_0ffb8926d44c = 0.00;
var original_price_0ffb8926d44c = 0.00;
var current_price_0ffb8926d44c = 0.00;
var coupon_price_0ffb8926d44c = 0.00;
var increase_per_sec_0ffb8926d44c = 0;
var max_price_0ffb8926d44c = 247.00;
var charged_price_subtotal_0ffb8926d44c = 0.00;
var handling_fee_0ffb8926d44c = 0.00;
var recurring_handling_fee_0ffb8926d44c = 0.00;
var shipping_fee_0ffb8926d44c = 0;
var tax_percent_0ffb8926d44c = 0;
var taxable_price_0ffb8926d44c = 0;
var tax_0ffb8926d44c = 0;
var valid_coupon_0ffb8926d44c = 0;
var recurring_price_at_checkout_0ffb8926d44c = 149.00;
var recurring_original_price_0ffb8926d44c = 149.00;
var recurring_current_price_0ffb8926d44c = 149.00;
var recurring_coupon_price_0ffb8926d44c = 149.00;
var recurring_price_subtotal_0ffb8926d44c = 149;
var recurring_taxable_price_0ffb8926d44c = 0;
var recurring_shipping_fee_0ffb8926d44c = 0;
var recurring_tax_0ffb8926d44c = 0;
var recurring_price_0ffb8926d44c = 149.00;
var add_tax_to_recurring_0ffb8926d44c = 1;
var apply_quantity_to_recurring_0ffb8926d44c = 0;
var u_country_0ffb8926d44c = '';
var u_state_0ffb8926d44c = '';
var u_zip_0ffb8926d44c = '';
var u_quantity_0ffb8926d44c = 1;
var u_recurring_quantity_0ffb8926d44c = 1;
var is_upsell_0ffb8926d44c = 0;
timezone_date_0ffb8926d44c = new Date();
document.form_0ffb8926d44c.u_timezone_js_offset.value = timezone_date_0ffb8926d44c.getTimezoneOffset();
// we want these to show/hide last so that we don't shrink the form prematurely causing a scroll bar for the iframe
process_combined_membership_checkboxes_0ffb8926d44c (document.form_0ffb8926d44c.u_accepted_membership_1,'1');
process_combined_membership_checkboxes_0ffb8926d44c (document.form_0ffb8926d44c.u_accepted_membership_2,'2');
process_combined_membership_checkboxes_0ffb8926d44c (document.form_0ffb8926d44c.u_accepted_membership_3,'3');
function auto_increment_price_0ffb8926d44c() {
if (current_price_token_0ffb8926d44c) {
secs_elapsed_0ffb8926d44c++;
clearInterval(current_price_token_0ffb8926d44c);
}
var new_price = parseFloat(starting_price_0ffb8926d44c) + (parseFloat(increase_per_sec_0ffb8926d44c) * parseFloat(secs_elapsed_0ffb8926d44c));
if (parseFloat(new_price) < parseFloat(max_price_0ffb8926d44c)) {
current_price_0ffb8926d44c = new_price;
current_price_token_0ffb8926d44c = setInterval('auto_increment_price_0ffb8926d44c()',1000);
} else {
current_price_0ffb8926d44c = max_price_0ffb8926d44c;
}
calculate_price_0ffb8926d44c();
}
function set_variables_0ffb8926d44c () {
// set these fields here in case they are not on the form, and also to make code easier to read
// they may not be on the form if type == one_time and we want to show the price and no shipping
u_country_0ffb8926d44c = (document.form_0ffb8926d44c.u_country) ? document.form_0ffb8926d44c.u_country.value : '';
u_state_0ffb8926d44c = (document.form_0ffb8926d44c.u_state) ? document.form_0ffb8926d44c.u_state.value : '';
u_zip_0ffb8926d44c = (document.form_0ffb8926d44c.u_zip) ? document.form_0ffb8926d44c.u_zip.value : '';
u_quantity_0ffb8926d44c = (document.form_0ffb8926d44c.u_quantity) ? document.form_0ffb8926d44c.u_quantity.value : 1;
u_recurring_quantity_0ffb8926d44c = (apply_quantity_to_recurring_0ffb8926d44c) ? u_quantity_0ffb8926d44c : 1;
}
function calculate_price_0ffb8926d44c () {
set_variables_0ffb8926d44c();
// if we have a valid coupon, then override the incremented price. But incrementing should continue in the backgroud
if (parseInt(valid_coupon_0ffb8926d44c) > 0) {
current_price_0ffb8926d44c = coupon_price_0ffb8926d44c;
recurring_current_price_0ffb8926d44c = recurring_coupon_price_0ffb8926d44c;
} else if (!(parseFloat(increase_per_sec_0ffb8926d44c) > 0)) {
// if we aren't incrementing and you remove the coupon, we need to reset to original pricing
current_price_0ffb8926d44c = original_price_0ffb8926d44c;
recurring_current_price_0ffb8926d44c = recurring_original_price_0ffb8926d44c;
}
price_subtotal_0ffb8926d44c = parseFloat(current_price_0ffb8926d44c) * parseFloat(u_quantity_0ffb8926d44c);
recurring_subtotal_0ffb8926d44c = parseFloat(recurring_current_price_0ffb8926d44c) * parseFloat(u_recurring_quantity_0ffb8926d44c);
if (get_id('tax_percent_'+u_state_0ffb8926d44c+'_'+u_country_0ffb8926d44c+'_0ffb8926d44c')) {
tax_percent_0ffb8926d44c = get_id('tax_percent_'+u_state_0ffb8926d44c+'_'+u_country_0ffb8926d44c+'_0ffb8926d44c').value;
tax_0ffb8926d44c = parseFloat(price_subtotal_0ffb8926d44c) * parseFloat(tax_percent_0ffb8926d44c) / 100;
recurring_tax_0ffb8926d44c = parseFloat(recurring_subtotal_0ffb8926d44c) * parseFloat(tax_percent_0ffb8926d44c) / 100;
} else {
tax_0ffb8926d44c = 0;
recurring_tax_0ffb8926d44c = 0;
}
if (get_id('subtotal_at_checkout_0ffb8926d44c')) // make sure it exists in case it is refreshing itself from iframe
get_id('subtotal_at_checkout_0ffb8926d44c').innerHTML = curr(price_subtotal_0ffb8926d44c);
if (get_id('shipping_at_checkout_0ffb8926d44c')) // make sure it exists in case it is refreshing itself from iframe
get_id('shipping_at_checkout_0ffb8926d44c').innerHTML = curr(shipping_fee_0ffb8926d44c);
if (get_id('tax_at_checkout_0ffb8926d44c')) // make sure it exists in case it is refreshing itself from iframe
get_id('tax_at_checkout_0ffb8926d44c').innerHTML = curr(tax_0ffb8926d44c);
price_at_checkout_0ffb8926d44c = parseFloat(price_subtotal_0ffb8926d44c) + parseFloat(shipping_fee_0ffb8926d44c) + parseFloat(curr(tax_0ffb8926d44c));
price_at_checkout_0ffb8926d44c = (parseFloat(increase_per_sec_0ffb8926d44c) > 0
&& parseFloat(current_price_0ffb8926d44c) < parseFloat(max_price_0ffb8926d44c))
&& !parseInt(valid_coupon_0ffb8926d44c)
? price_at_checkout_0ffb8926d44c : curr(price_at_checkout_0ffb8926d44c); // if we are still incrementing per second, don't format the currency
if (get_id('price_at_checkout_0ffb8926d44c')) // make sure it exists in case it is refreshing itself from iframe
get_id('price_at_checkout_0ffb8926d44c').innerHTML = price_at_checkout_0ffb8926d44c;
if (get_id('price_at_checkout_bottom_0ffb8926d44c')) // make sure it exists
get_id('price_at_checkout_bottom_0ffb8926d44c').innerHTML = price_at_checkout_0ffb8926d44c;
recurring_price_0ffb8926d44c = (add_tax_to_recurring_0ffb8926d44c)
? parseFloat(recurring_subtotal_0ffb8926d44c) + parseFloat(recurring_shipping_fee_0ffb8926d44c) + parseFloat(curr(recurring_tax_0ffb8926d44c))
: parseFloat(recurring_subtotal_0ffb8926d44c) + parseFloat(recurring_shipping_fee_0ffb8926d44c);
if (get_id('recurring_price_0ffb8926d44c')) // make sure it exists in case it is refreshing itself from iframe
get_id('recurring_price_0ffb8926d44c').innerHTML = curr(recurring_price_0ffb8926d44c);
}
function get_kunaki_shipping_0ffb8926d44c() {
set_variables_0ffb8926d44c();
if (!((u_country_0ffb8926d44c == 'UNITED STATES' || u_country_0ffb8926d44c == 'CANADA')
&& (u_state_0ffb8926d44c == '' || u_state_0ffb8926d44c == 'N/A'))
&& u_zip_0ffb8926d44c.length >= 4 && u_country_0ffb8926d44c != '') {
document.form_0ffb8926d44c.req.value = 'kunaki_shipping';
document.form_0ffb8926d44c.validate_mode.value = ''
document.form_0ffb8926d44c.target = 'utility_0ffb8926d44c';
document.form_0ffb8926d44c.submit();
} else {
get_id('kunaki_shipping_0ffb8926d44c').innerHTML = get_id('kunaki_shipping_reset_0ffb8926d44c').innerHTML;
calculate_price_0ffb8926d44c();
}
}
function cb_kunaki_shipping_0ffb8926d44c () {
form_validation_status = window.frames["utility_0ffb8926d44c"].get_id('form_validation_status').innerHTML;
if (form_validation_status == '1') {
get_id('kunaki_shipping_0ffb8926d44c').innerHTML = window.frames["utility_0ffb8926d44c"].get_id('shipping_choices').innerHTML;
get_id('error_0ffb8926d44c').innerHTML = '';
} else {
get_id('error_0ffb8926d44c').innerHTML = window.frames["utility_0ffb8926d44c"].get_id('error_message').innerHTML;
document.location.hash = 'error_anchor_0ffb8926d44c';
get_id('kunaki_shipping_0ffb8926d44c').innerHTML = get_id('kunaki_shipping_reset_0ffb8926d44c').innerHTML;
}
calculate_price_0ffb8926d44c();
}
function validate_coupon_0ffb8926d44c() {
document.form_0ffb8926d44c.req.value = 'validate';
document.form_0ffb8926d44c.validate_mode.value = 'coupon_only';
document.form_0ffb8926d44c.target = 'utility_0ffb8926d44c';
document.form_0ffb8926d44c.submit();
}
function cb_validate_coupon_0ffb8926d44c () {
form_validation_status = window.frames["utility_0ffb8926d44c"].get_id('form_validation_status').innerHTML;
valid_coupon_temp_0ffb8926d44c = window.frames["utility_0ffb8926d44c"].get_id('valid_coupon').innerHTML;
valid_coupon_0ffb8926d44c = parseInt(valid_coupon_temp_0ffb8926d44c);
if (form_validation_status == '1' && valid_coupon_0ffb8926d44c == '1') {
get_id('coupon_valid_0ffb8926d44c').innerHTML = 'Valid';
get_id('error_0ffb8926d44c').innerHTML = '';
if (get_id('coupon_error_0ffb8926d44c')) get_id('coupon_error_0ffb8926d44c').innerHTML = '';
} else {
get_id('coupon_valid_0ffb8926d44c').innerHTML = '';
if (get_id('coupon_error_0ffb8926d44c')) get_id('coupon_error_0ffb8926d44c').innerHTML = window.frames["utility_0ffb8926d44c"].get_id('error_message').innerHTML;
get_id('error_0ffb8926d44c').innerHTML = window.frames["utility_0ffb8926d44c"].get_id('error_message').innerHTML;
//document.location.hash = 'error_anchor_0ffb8926d44c';
}
if (get_id('pricing_box_0ffb8926d44c')) {
get_id('pricing_box_0ffb8926d44c').innerHTML = window.frames["utility_0ffb8926d44c"].get_id('pricing_box').innerHTML;
}
coupon_price_0ffb8926d44c = window.frames["utility_0ffb8926d44c"].get_id('coupon_price').innerHTML;
recurring_coupon_price_0ffb8926d44c = window.frames["utility_0ffb8926d44c"].get_id('recurring_coupon_price').innerHTML;
calculate_price_0ffb8926d44c();
}
function try_form_submit_0ffb8926d44c(tag) {
document.form_0ffb8926d44c.mode.value = tag;
// if we're capturing data, then we try to validate first. cb_do_form_result will submit form if successful
if (capture_data_0ffb8926d44c && do_validation_0ffb8926d44c) {
document.form_0ffb8926d44c.target = 'utility_0ffb8926d44c';
document.form_0ffb8926d44c.req.value = 'validate';
document.form_0ffb8926d44c.validate_mode.value = 'full_form';
document.form_0ffb8926d44c.submit();
} else {
// if do_validation_0ffb8926d44c then we'll validate the terms in php
if (!do_validation_0ffb8926d44c && document.form_0ffb8926d44c.show_terms && document.form_0ffb8926d44c.terms.checked == false) {
alert('You must agree to the Terms and Conditions before proceeding');
document.form_0ffb8926d44c.terms.focus();
} else {
do_form_submit_0ffb8926d44c();
}
}
return false;
}
function do_phone_task_0ffb8926d44c(mode) {
get_id('verify_phone_outer').style.display = 'none';
get_id('verify_phone_inner').style.display = 'none';
if (mode == 'change_number') {
document.form_0ffb8926d44c.validate_phone_mode.value = 'phone';
document.form_0ffb8926d44c.u_phone.select();
} else {
if (mode == 'submit_pin') {
document.form_0ffb8926d44c.validate_phone_mode.value = 'pin';
} else if (mode == 'text_me') {
document.form_0ffb8926d44c.validate_phone_mode.value = 'txt';
get_id('error_0ffb8926d44c').innerHTML = ' Processing...';
} else if (mode == 'call_again') {
document.form_0ffb8926d44c.validate_phone_mode.value = 'phone';
}
try_form_submit_0ffb8926d44c('paid');
}
}
function check_pin_0ffb8926d44c(the_field) {
if (document.all) {
// hack for horrible IE8 bug that doesn't show the text in the text box w/o refreshing div!
get_id('verify_phone_outer').style.display = 'none';
get_id('verify_phone_inner').style.display = 'none';
get_id('verify_phone_outer').style.display = 'block';
get_id('verify_phone_inner').style.display = 'block';
get_id('phone_pin_0ffb8926d44c').focus();
}
if (the_field.value.length >= 4) {
do_phone_task_0ffb8926d44c('submit_pin');
}
}
function cb_do_form_result_0ffb8926d44c () {
form_validation_status = window.frames["utility_0ffb8926d44c"].get_id('form_validation_status').innerHTML;
form_validation_task = window.frames["utility_0ffb8926d44c"].get_id('form_validation_task').innerHTML;
if (form_validation_status == '1') {
get_id('error_0ffb8926d44c').innerHTML = '';
document.form_0ffb8926d44c.req.value = 'form';
do_form_submit_0ffb8926d44c();
} else {
if (form_validation_task == 'validate_phone') {
get_id('error_0ffb8926d44c').innerHTML = '';
activate_verify_phone_0ffb8926d44c();
} else {
get_id('error_0ffb8926d44c').innerHTML = ' '
+ window.frames["utility_0ffb8926d44c"].get_id('error_message').innerHTML;
document.location.hash = 'error_anchor_0ffb8926d44c';
}
}
return false;
}
function activate_verify_phone_0ffb8926d44c () {
get_id('phone_error_0ffb8926d44c').innerHTML = window.frames["utility_0ffb8926d44c"].get_id('error_message').innerHTML;
if (document.all) {
get_id('verify_phone_inner').style.marginLeft = '0px';
}
get_id('verify_phone_outer').style.display = 'block';
get_id('verify_phone_inner').style.display = 'block';
scroll(0,0);
document.body.style.overflow='hidden';
document.form_0ffb8926d44c.phone_pin.value = '';
document.form_0ffb8926d44c.phone_pin.focus();
}
function do_form_submit_0ffb8926d44c () {
mode = document.form_0ffb8926d44c.mode.value;
if (mode == 'standard') {
get_id('standard_div_0ffb8926d44c').style.display = 'block';
document.form_0ffb8926d44c.target = 'standard_0ffb8926d44c';
document.form_0ffb8926d44c.submit();
thank_you_for_subscribing_0ffb8926d44c(mode);
} else if (mode == 'zune' || mode == 'itunes') {
document.form_0ffb8926d44c.target = 'itunes_0ffb8926d44c';
document.form_0ffb8926d44c.submit();
get_id('loading_'+mode+'_0ffb8926d44c').innerHTML = ' Loading';
add_dot_0ffb8926d44c(mode);
} else {
// IMPORTANT!!! IE and Firefox will treat