// TABS
$(document).ready(function(){
	$(".over").colorbox({inline:true, href:"#form", open:true});
});

$(document).ready(function() {

	$("ul#tabbed").tabs("div.panel", {
	
	history: true
	});

});

$(document).ready(function() {

	$("ul#press-tabs").tabs("div.panel");
});

$(document).ready(function(){
$('#box1').hide();
$('#box2').hide();
$('#box3').hide();
$("#thechoices").change(function(){
if(this.value == 'all')
{$("#boxes").children().show();}
else
{$("#" + this.value).show().siblings().hide();}
});

$("#thechoices").change();
});

$(document).ready(function() {

	var survey_ = $.cookie("survey_" + $('#cd_event_id').val());
	if (survey_ != '1') {

		$('#presentations').hide();
		$('#event-form p a').click (function() {
			$('#event-form').hide();
			$('#presentations').show();

			$.cookie("survey_" + $('#cd_event_id').val(), "1", { expires: 2 });
			return false;
		});
	}
});

$(document).ready(function(){
$('#formBuilderSubscribe_to_Mail_amp_Express_Review_').before('<h3>Subscriber Information</h3><div class="separator"></div>');
$('#formBuilderFieldCorporate_social_responsibility').before("<p>&nbsp;</p><h5>Subscriber Interest</h5><div class='separator'></div><p>Please select at least one business interest</p>");
$('#formBuilderFieldTransformation').after("<p>For audit purposes we would usually ask you to sign and date an application card to confirm you wish to receive copies of Mail &amp; Express Review and to validate your request. However, as we cannot collect signatures online please answer the following question:</p>");
$('#fieldformBuilderFieldLast_two_digits_of_year_of_birth').after("<p>(for example if you were born in 1972 it would be 72)</p>");
$('.media-subscribe .formBuilderSuccess p').text('Thank you. Your request has been submited.');
$('.panel .eshop').prependTo("#form-hook");
});