function swapOutbound(newTab) {
    for (i=0; i < $('outboundRates').childElements().size(); i++) {
        $('outboundRates').childElements()[i].childElements()[0].removeClassName("active");
    }
    $('select'+newTab).addClassName("active");
    switch(newTab) {
        case 'Any':
            $('outboundBottom').innerHTML = "No commitments, just make deposits in any amount to keep your account balance positive, or let our auto-replenishment feature do it for you. <a href='/accounts/signup/'>Sign up now!</a>";
            break;
        case '500':
            $('outboundBottom').innerHTML = "The monthly commitment plan that saves you 5% off of our already low rates. Additional deposits made above the $500 commitment payments roll over.  Ideal for small call centers with light traffic. <a href='/accounts/signup/'>Sign up now!</a>";
            break;
        case '1000':
            $('outboundBottom').innerHTML = "The monthly commitment plan that saves you 10% off of our already low rates. Additional deposits made above the $1000 commitment payments roll over.  Perfect for medium-sized call centers with decent traffic. <a href='/accounts/signup/'>Sign up now!</a>";
            break;
        case '2000':
            $('outboundBottom').innerHTML = "The monthly commitment plan that saves you 15% off of our already low rates. Additional deposits made above the $2000 commitment payments roll over.  The best choice for large call centers with heavy traffic. <a href='/accounts/signup/'>Sign up now!</a>";
            break;
    }
}

function swapInbound(newTab) {
    for (i=0; i < $('inboundRates').childElements().size(); i++) {
        $('inboundRates').childElements()[i].childElements()[0].removeClassName("active");
    }
    $('select'+newTab).addClassName("active");
    switch(newTab) {
        case 'Standard':
            $('inboundBottom').innerHTML = "Ideal for customers who expect to receive a moderate amount of incoming calls.  With this plan you pay per minute and have no limit on simultaneous incoming calls. <a href='/accounts/signup/'>Sign up now!</a>";
            break;
        case 'Unlimited':
            $('inboundBottom').innerHTML = "Bundles a DID with two channels for unlimited free incoming calls to that number, but no more than two simultaneous calls. Great for small businesses. <a href='/accounts/signup/'>Sign up now!</a>";
            break;
        case 'VPRI':
            $('inboundBottom').innerHTML = "Virtual PRI channels are great for large companies who want to save money on free incoming calls on across many DIDs. You buy as many channels as you need simultaneous incoming calls. <a href='/accounts/signup/'>Sign up now!</a>";
            break;
    }
}

document.observe('dom:loaded', function() {
    //fillher up
});

