var html5Forms=new function(){var me=this;var scriptNode=null,scriptDir=null,isScriptCompressed=false,hasNativeBubbles=navigator.userAgent.indexOf('WebKit')<0||parseInt(navigator.userAgent.match(/AppleWebKit\/([^ ]*)/)[1].split('.')[0])>534,hasBadValidationImplementation=!hasNativeBubbles;var globalEvent=document.addEventListener?document.createEvent("HTMLEvents"):null;function getBrowserLanguage(){var r=navigator.language;if(!r){r=navigator.browserLanguage}return r}me.start=function(){var split=navigator.userAgent.split('Firefox/');if(split.length>=1&&parseFloat(split[1])<=3.6){EventHelpers.addEvent(window,'load',me.init)}else{me.init()}}me.init=function(){var scriptNodes=document.getElementsByTagName('script');for(var i=0;i=0){isScriptCompressed=true}break}}if(scriptNode){if(window.yepnope){var inputSupport=Modernizr.inputtypes;var supportArray=scriptNode.getAttribute('data-webforms2-support');me.forceJSValidation=(scriptNode.getAttribute('data-webforms2-force-js-validation')=='true');me.turnOffValidation=(scriptNode.getAttribute('data-webforms2-turn-off-validation')=='true');me.forceJSDatePicker=(scriptNode.getAttribute('data-webforms2-force-js-date-picker')=='true');if(!supportArray){return}else if(trim(supportArray)=='all'){supportArray="validation,number,color,date,ouput,range,placeholder"}supportArray=supportArray.split(',');var toLoad=[];var toRunAfterLoad=[];var loadHTML5Widgets=false;for(var i=0;i