jQuery(document).ready(function($) {

	var plugin_path = thisScript.substr(0, thisScript.lastIndexOf("/"));
	plugin_path = plugin_path.substr(0, plugin_path.lastIndexOf("/") + 1);
	var request_path = plugin_path + 'requests/';
	
	$('.checkbox[name="merlic_easyform_recaptcha"]').change(function() {
		if ($(this).is(':checked')) {
			$('input[name="merlic_easyform_recaptcha_public"]').addClass('required');
			$('input[name="merlic_easyform_recaptcha_private"]').addClass('required');
		}
		else {
			$('input[name="merlic_easyform_recaptcha_public"]').removeClass('required');
			$('input[name="merlic_easyform_recaptcha_private"]').removeClass('required');
		}
	});
	
});

//-----------------------------------------------------------------------------------------------------------------//

var thisScript = (function() {
	var ScriptID = "ScriptID" + Math.round(100000 * Math.random());
	document.write("<script id='" + ScriptID + "'></script>");
	return document.getElementById(ScriptID).previousSibling.getAttribute("src");
})()

jQuery(function($) {
	$.easy.forms();
	$.easy.showhide();
});


