// Bakers Dolphin JS
$(document).ready(function() {
	$("li.select").find("span").show(); //SHOW SELECTED
	$("ul#topnav li").hover(function() { //Hover over event on list item
		$(this).css('hover'); //hover state level 1
		$("li.select").find("span").hide(); //HIDE SELECTED
		$(this).find("span").show(); //Show the subnav
	} , function() { //on hover out...
		$(this).css(''); //unhover state level 1
		$(this).find("span").hide(); //Hide the subnav
		$("li.select").find("span").show(); //SHOW SELECTED
	});
	jQuery("#subForm").validationEngine();
	jQuery("#frmBrochure").validationEngine();
	$("#terms-link").fancybox({
			'titlePosition'		: 'inside',
			'transitionIn'		: 'none',
			'transitionOut'		: 'none'
	});
	  // Increase Font Size
	  $("#larger").click(function(){
		var currentFontSize = $('#right p').css('font-size');
		var currentFontSizeNum = parseFloat(currentFontSize, 13);
		var newFontSize = currentFontSizeNum*1.1;
		$('#right p').css('font-size', newFontSize);
		return false;
	  });
	  // Decrease Font Size
	  $("#smaller").click(function(){
		var currentFontSize = $('#right p').css('font-size');
		var currentFontSizeNum = parseFloat(currentFontSize, 13);
		var newFontSize = currentFontSizeNum*0.9;
		$('#right p').css('font-size', newFontSize);
		return false;
	  });
	//Modal windows
	$("#lnk-popup-cito").fancybox({
		'titlePosition'		: 'inside',
		'transitionIn'		: 'none',
		'transitionOut'		: 'none'
	});
});

function toggleChecked(status) {
	$(".checkbox").each( function() {
	$(this).attr("checked",status);
	})
}

