if (typeof(jQuery) == 'function') { jQuery(document).ready(function($){ if ($.fn.cdcaptcha) { $.fn.cdcaptcha.globalDefaults = ({ headerText : 'Captcha', infoText : 'Proves you\'re human and slide to unlock.', lockedText : 'Locked', unlockedText : 'Unlocked', uitheme : 'ui-lightness', autoFormSubmit : false, slideCaptchaUp : 0 }); $('form[name="emailForm"]').cdcaptcha({ submitElement : 'button[type="submit"]', random : 'hzgMbX0Oklgocd7naHJ0p9vGnnwDCt', scope : 'com_contact' }); } else { alert('Captcha script is blocked!'); return false; } }); } else { alert("Core Design Captcha plugin: Missing jQuery JS!"); }