﻿LANG = EN;
function showCurrentSavings(currentSavings){
    $('#currentSavings').html("You'll save <span class='enhance'>$" +  roundNumber(currentSavings,2) + "</span> when you purchase the following:").css("text-align","center");
}

function addPrompt(croptype, units, savings, enteredUnits){
    var cropText = '';
    var msg = ''
    
    switch(croptype){
        case 1:
            cropText = 'corn';
            break;
        case 2:
            cropText = 'soybean(conventional)';
            break;
        case 3:
            cropText = 'soybean(Roundup Ready<sup>&reg;</sup>)';
            break;
        default:
            cropText = 'corn';
            break;
    }
    
    if($('#suggest').children().length <= 0){
        $('#suggest').append('<ul class="text_white_normal" style="padding:7px;"></ul>');
    }
    
    if(enteredUnits == 0 && croptype == 1){
        msg = '<font style="font-size:15px;font-weight:bold;">If you add to your soybean order ' + units + ' bags of corn your savings would be <span class="text_yellow_bold">$' + roundNumber(savings,2) + '</span>.</font>';
    }else{
        msg = 'Save an additional <span class="text_yellow_bold">$' + roundNumber(savings,2) +'</span> if you purchase ' + units + ' additional units of ' + cropText + '.';
    }
    
    var prompt = $('<li>' + msg + '<br /><br /></li>')
    $('#suggest ul').append(prompt.fadeIn('slow'));
}