
jQuery(document).ready(function(){

	//Hide (Collapse) the toggle containers on load
	jQuery(".offers").hide(); 
	jQuery("#trigger").css({'cursor':'pointer'})
	//Switch the "Open" and "Close" state per click then slide up/down (depending on open/close state)
	jQuery("#trigger").click(function(){
		jQuery(".offers").slideDown("slow");
		return false; //Prevent the browser jump to the link anchor
		});

	// "Close" button
	jQuery("#closePromo").click(function(){
		jQuery(".offers").slideUp("slow");
		return false; //Prevent the browser jump to the link anchor
	});

});


function selectName()
{
    jQuery("#first_name").focus();
    jQuery("#first_name").select();
}

function selectEmail()
{
    jQuery("#email").focus();
    jQuery("#email").select();
}


