/// Dropdown Menu //////////////////////////////////////////////
var timeout    = 500;
var closetimer = 0;
var ddmenuitem = 0;

function nav_open()
{  nav_canceltimer();
   nav_close();
   ddmenuitem = $(this).find('ul').css('visibility', 'visible');
   navon = $(this).children().addClass('nav-on');
   }

function nav_close()
{  if(ddmenuitem) ddmenuitem.css('visibility', 'hidden');
   navon = $('a.nav-on').removeClass('nav-on');
}

function nav_timer()
{  closetimer = window.setTimeout(nav_close, timeout);}

function nav_canceltimer()
{  if(closetimer)
   {  window.clearTimeout(closetimer);
      closetimer = null;}}

$(document).ready(function()
{  $('#nav > li').bind('mouseover', nav_open)
   $('#nav  > li').bind('mouseout',  nav_timer)});

document.onclick = nav_close;
///////////////////////////////////////////////////////////////

/// Jump Menu //////////////////////////////////////////////
$(document).ready(function() {
    $(".jumpmenu_term").change(function() {
        var val = $(this).selectedValues();
        if (val == '') {
			}
	else if (val == 'NA') {
			alert('This plan is not available in your state. Please call Customer Service at 1.800.214.8122 for details.');
			}
	else {
           window.open(val);
        }
    });
});

$(document).ready(function() {
    $(".jumpmenu_rates").change(function() {
        var val = $(this).selectedValues();
        if (val == '') {
			}
	else if (val == 'NA') {
			alert('This plan is not available in your state. Please call Customer Service at 1.800.214.8122 for details.');
			}
	else {
           window.open(val);
        }
    });
});

///////////////////////////////////////////////////////////////

$(document).ready(function() {

$('.fold-off').toggle(function() {
	$(this).next('.folder').slideDown();			
	$(this).addClass("fold-on");			
}, function() {
	$(this).next('.folder').slideUp();			
	$(this).removeClass("fold-on");			
});

						   });

