document.write('
'); var SCFormStyles = "@media (max-width: 480px) { body [name^='scForm'] .body-div { width: 100% !important; } body [name^='scForm'] .body-div table { width: 100%; } body [name^='scForm'] .body-div table tbody { width: 100%; } body [name^='scForm'] .body-div table tbody tr { width: 100%; } body [name^='scForm'] .body-div table tbody tr td { width: 100%; } } body [name^='scForm'] .body-div table.hiddenElement { display: none; height: 0px; min-height: 0px; } body [name^='scForm'] .body-div table { box-sizing: content-box; line-height: normal; font-size: inherit; border: 0; padding: 0; margin: 0; } body [name^='scForm'] .body-div table tr { line-height: normal; border: 0; padding: 0; box-sizing: content-box; margin: 0; } body [name^='scForm'] .body-div table tr td { line-height: normal; box-sizing: content-box; border: 0; padding: 0; margin: 0; } body [name^='scForm'] .body-div table tr td .label { background: transparent; text-align: inherit; text-shadow: initial; white-space: normal; } body [name^='scForm'] .body-div table tr td input { height: auto; border-radius: 3px; font-size: 100%; line-height: normal; } body [name^='scForm'] .body-div table tr td div { line-height: normal; box-sizing: content-box; } body [name^='scForm'] .body-div table tr td .inputContainer { height: auto; } body [name^='scForm'] .body-div table tr td textarea { font-family: Arial, Helvetica, sans-serif; } body [name^='scForm'] .body-div table tr td .options.input label { display: inline-block; }";window['formHtml-122726'] = '
 
*
'; if (typeof jQueryScriptOutputted == 'undefined') var jQueryScriptOutputted = false; var errorStyles = '.errorTip { display: inline-block; position:absolute; } .errorTip .errorInner{ position: relative; background: #d54333; border: 2px solid #661e1e; padding:5px;border-radius:7px;color:white;font-size:14px; cursor:pointer; max-width:350px; box-shadow: 3px 3px 10px rgba(0,0,0,0.3); }.errorInner:after, .errorInner:before { right: 100%; border: solid transparent; content: " "; height: 0; width: 0; position: absolute; pointer-events: none;}.errorInner:after { border-color: rgba(213, 67, 51, 0); border-right-color: #d54333; border-width: 10px; top: 50%; margin-top: -10px;}.errorInner:before { border-color: rgba(102, 30, 30, 0); border-right-color: #661e1e; border-width: 13px; top: 50%; margin-top: -13px;}'; if (typeof scFormLoadStart == 'undefined') var scFormLoadStart = false; if (typeof scFormLoaded == 'undefined') var scFormLoaded = false; if (typeof scPortableLoaded == 'undefined') var scPortableLoaded = false; if (typeof scTimeoutLoaded == 'undefined') var scTimeoutLoaded = false; if (typeof scButtonLoaded == 'undefined') var scButtonLoaded = false; if (typeof scScriptsLoading == 'undefined') var scScriptsLoading = false; if (typeof scScriptsLoaded == 'undefined') var scScriptsLoaded = false; if (typeof SCFormStyles === 'undefined') var SCFormStyles = ''; // Gets jQuery function scInitJQuery() { //if the jQuery object isn't available if (typeof(jQuery) == 'undefined') { if (! jQueryScriptOutputted) { //only output the script once.. jQueryScriptOutputted = true; var script = document.createElement("SCRIPT"); script.src = 'https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js'; script.type = 'text/javascript'; document.getElementsByTagName("head")[0].appendChild(script); scLoadScripts(); } setTimeout("scInitJQuery()", 50); } else if (!scScriptsLoading){ console.log("jQuery already loaded, loading scripts"); scLoadScripts(); } } // Adds error styles and validation script function scLoadScripts() { scScriptsLoading = true; if (scScriptsLoaded) return true; if (typeof jQuery != 'undefined') { var script = document.createElement("SCRIPT"); script.src = scAppUrl+'channels/form/js/formValidation.js'; script.type = 'text/javascript'; document.getElementsByTagName("head")[0].appendChild(script); var script2 = document.createElement("SCRIPT"); script2.src = scAppUrl + 'thirdparty/jquery-datetimepicker/jquery.datetimepicker.js'; script2.type = 'text/javascript'; document.getElementsByTagName('head')[0].appendChild(script2); var style = document.createElement('LINK'); style.href = scAppUrl + 'thirdparty/jquery-datetimepicker/jquery.datetimepicker.css'; style.type = 'text/css'; style.rel = 'stylesheet'; document.getElementsByTagName('head')[0].appendChild(style); jQuery( "" ).appendTo( "head" ); scLoadScripts = true; scBindKeys(); } else{ setTimeout(function() { scLoadScripts() }, 50); } } function scBindKeys() { jQuery(document).keyup(function(e) { if (e.keyCode == 27) { scRemoveModal() } // esc }); } // Requests the forms html, append it to the container function scGetPortable(id) { if (typeof jQuery != 'undefined') { if (window['portableFormTarget-'+id]) { jQuery('#' + window['portableFormTarget-'+id]).html('
'); } var data = scGetForm(id); var container = jQuery('#scPortableForm-'+id); container.append(data); container.find('style').remove(); container.find('form').attr('id', 'scInlineForm-'+id); container.find('.scVerifyEmail').hide(); if (container.find('.footer-div').length > 0) { container.find('.footer-div').appendTo(container.find('.body-div')); jQuery('.body-div').css('height','auto'); } container.find('form').submit(function(e) { e.preventDefault(); if (scValidate('#scPortableForm-'+id)){ var data = container.find('form').serializeArray(); var html = scMergeValues(window['formThankyouPortable-'+id], data); jQuery('body').append(''); var body = container.find('.body-div').clone(); body.children().remove(); jQuery(document).trigger("portableFormSubmitted", [jQuery('#scPortableForm-'+id), id]); setTimeout(function() { jQuery("#scPortableIframeForm-"+id).contents().find("body").append(container.find('form')); jQuery('#scPortableIframeForm-'+id).contents().find('form').unbind('submit') jQuery('#scPortableIframeForm-'+id).contents().find('form').submit(); container.append(body); container.html(html); }, 100); } }); scDefaultValues('#scPortableForm-'+id); scLoadJs(); if (scMobileCheck() ) { container.find('.body-div').css('width', '100%'); container.find('td').css('width', '100%'); } jQuery(document).trigger("portableFormDisplayed", [container, id]); } else setTimeout("scGetPortable("+id+")", 50); } function scLoadJs(){ scBindTimePicker(); } function scBindTimePicker() { /** * Get out of here if there are no date pickers */ if (jQuery('.datePicker').length === 0 && jQuery('.dateTimePicker').length === 0) { return false; } /** * If there are date pickers, bind to them */ if (jQuery('.datePicker').length > 0) { if (typeof jQuery('.datePicker').datetimepicker != 'undefined') { // Oh god this is grosse jQuery('.datePicker').datetimepicker({ closeOnDateSelect: true, format: 'Y-m-d', timepicker:false, }); } else { setTimeout(function() { scBindTimePicker(); },50); } } if (jQuery('.dateTimePicker').length > 0) { if (typeof jQuery('.dateTimePicker').datetimepicker != 'undefined') { // Oh god this is grosse jQuery('.dateTimePicker').datetimepicker({ closeOnDateSelect: true, format: 'Y-m-d g:i A', }); } else { setTimeout(function() { scBindTimePicker(); },50); } } } // Request the forms html, hide it in the document function scGetModal(id) { if (typeof jQuery != 'undefined') { var data = scGetForm(id); jQuery('body').append(''); if (jQuery('.scFormContainerModal .footer-div').length > 0) { jQuery('.scFormContainerModal .footer-div').appendTo('.scFormContainerModal .body-div'); jQuery('.body-div').css('height','auto'); } var container = jQuery('#scFormContainerModal-'+id); container.find('form').css('margin-top', '6%'); container.find('.body-div').css('box-shadow', '0px 1px 4px #333'); container.find('style').remove(); container.find('div:first').css('background', 'transparent'); container.find('.body-div').css('position', 'relative'); container.find('.body-div').css('margin', '0 auto'); container.find('.body-div').append("
X
"); container.find('.scVerifyEmail').hide(); jQuery('.scModalFormCloseButton').click(function() { scRemoveModal(); }); container.find('form').submit(function(e) { e.preventDefault(); if (scValidate('#scFormContainerModal-'+id)){ var data = container.find('form').serializeArray(); var html = scMergeValues(window['formThankyouModal-'+id], data); jQuery('body').append(''); var body = container.find('.body-div').clone(); body.children().remove(); jQuery(document).trigger("portableFormSubmitted", [jQuery('#scFormContainerModal-'+id), id]); setTimeout(function() { jQuery("#scModalIframeForm-"+id).contents().find("body").append(container.find('form')); jQuery('#scModalIframeForm-'+id).contents().find('form').unbind('submit').submit(); container.append(body); container.find('.body-div').css('margin-top', '6%').html(html+"
"); }, 100); } }); scDefaultValues('#scFormContainerModal-'+id); var modal = window['scModalData-'+id]; if (typeof modal.timeoutDisplay != 'undefined' && modal.timeoutDisplay) scShouldShowForm(id); if (typeof modal.displayButton != 'undefined' && modal.displayButton) scLoadButton(id); } else setTimeout("scGetModal("+id+")", 50); } function scMergeValues(html, values){ var post = {}; for (i in values) { if (!values.hasOwnProperty(i)) { continue; } var name = values[i].name.slice(0,values[i].name.indexOf('[')); if (typeof post[name] == 'undefined') post[name] = {column: '', separator: '', 'value': []}; if (values[i].name.indexOf('[column]') != -1) post[name].column = values[i].value; if (values[i].name.indexOf('[value]') != -1) post[name].value.push(values[i].value); if (values[i].name.indexOf('[separator]') != -1) post[name].separator = values[i].value; } for (i in post) { if (!post.hasOwnProperty(i)) { continue; } if (post[i].column != ''){ var val = post[i].value.join(post[i].separator); var regex = new RegExp('(%%'+scCleanRegex(post[i].column)+'%%)', 'gi'); html = html.replace(regex, val); } } return html; } function scCleanRegex(str) { return str.replace(/(?=[\/\\^$*+?.()|{}[\]])/g, "\\"); } function scShouldShowForm(id) { /** * Stupid stuff to support ie hating cookies */ var hasShown = false; if (Storage !== undefined && localStorage !== undefined) { hasShown = localStorage.getItem('scForm'+id); localStorage.setItem('scForm'+id, 1); } if (!hasShown || (typeof scPreview != 'undefined' && scPreview)){ var timeOut = 4000; var modal = window['scModalData-'+id]; if (typeof modal.loadAfter != 'undefined') timeOut = parseInt(modal.loadAfter)*1000; setTimeout(function() { scDisplayModalForm(id); }, timeOut); } } function scGetForm(id) { return window['formHtml-'+id]; } // Makes defaults disapear when clicked function scDefaultValues(target) { jQuery(target).find('input:not(input[type=submit]),textarea').each(function() { jQuery(this).css('color','#444'); var default_value = this.value; jQuery(this).focus(function() { if(this.value == default_value) { this.value = ''; jQuery(this).css('color','black'); } }); jQuery(this).blur(function() { if(this.value == '') { this.value = default_value; jQuery(this).css('color','#444'); } }); }); } function scAddLoader(form) { form.find('.body-div').css('position', 'relative').append('
'); } function scLoadButton(id) { // Build the button jQuery('body').append('
'); var container = jQuery('#scButtonContainer-'+id); var modal = window['scModalData-'+id]; container.append(''+modal.buttonText+''); container.css({'background-color': modal.buttonColor, 'color': modal.buttonTextColor, 'border': '1px solid #999', 'box-shadow': '0px 0px 3px rgba(0,0,0,0.3) inset' }); container.find('a').css({'color': 'inherit', 'text-decoration': 'none', 'font-family': 'Arial', 'font-size': '16px', 'padding': '5px 50px', 'display': 'block' }); switch(modal.buttonPosition){ case "topLeft": container.css({left: '5%', 'top':0}); break; case 'topCenter': container.css({'width': container.width(), 'margin': 'auto', 'position': 'relative', 'left': '0px'}); container.find('a').css({'width': 'auto', 'height': 'auto'}); container.wrap('
'); break; case 'topRight': container.css({'top':0, 'right':'5%'}); break; case 'bottomCenter': container.css({'width': container.width(), 'margin': 'auto', 'position': 'relative', 'left': '0px'}); container.find('a').css({'width': 'auto', 'height': 'auto'}); container.wrap('
'); break; case "bottomRight": container.css({right: '5%', bottom:0}); break; case "bottomLeft": container.css({left: '5%', bottom:0}); break; case "centerLeft": container.css({top:'50%'}); container.css('-webkit-transform', 'rotate(90deg)'); container.css('-moz-transform', 'rotate(90deg)'); container.css('-ms-transform', 'rotate(90deg)'); container.css('-o-transform', 'rotate(90deg)'); container.css('transform', 'rotate(90deg)'); /* also accepts left, right, top, bottom coordinates; not required, but a good idea for styling */ container.css('-webkit-transform-origin', '50% 50%'); container.css('-moz-transform-origin', '50% 50%'); container.css('-ms-transform-origin', '50% 50%'); container.css('-o-transform-origin', '50% 50%'); container.css('transform-origin', '50% 50%'); /* Should be unset in IE9+ I think. */ container.css('filter', 'progid:DXImageTransform.Microsoft.BasicImage(rotation=3)'); // Fix the position container.css("left", -container.width()/2 + container.height()/2 + "px"); break; case "centerRight": container.css({top:'50%'}); container.css('-webkit-transform', 'rotate(-90deg)'); container.css('-moz-transform', 'rotate(-90deg)'); container.css('-ms-transform', 'rotate(-90deg)'); container.css('-o-transform', 'rotate(-90deg)'); container.css('transform', 'rotate(-90deg)'); /* also accepts left, right, top, bottom coordinates; not required, but a good idea for styling */ container.css('-webkit-transform-origin', '50% 50%'); container.css('-moz-transform-origin', '50% 50%'); container.css('-ms-transform-origin', '50% 50%'); container.css('-o-transform-origin', '50% 50%'); container.css('transform-origin', '50% 50%'); /* Should be unset in IE9+ I think. */ container.css('filter', 'progid:DXImageTransform.Microsoft.BasicImage(rotation=3)'); // Fix the position container.css('right', -container.width()/2 + container.height()/2 + 'px'); break; } } function scDisplayModalForm(id) { //Todo - add more effects var container = jQuery('#scFormContainerModal-'+id); container.fadeIn(); /** * If the modal form is greater then 80% of the window, give it a scrollbar */ if (jQuery('#scFormContainerModal-'+id+' .body-div').height() > jQuery(window).height()*0.8) { jQuery('#scFormContainerModal-'+id+' .body-div').css({ 'max-height': '80%', 'overflow-x': 'hidden', 'overflow-y': 'scroll', 'padding-right': '10px', 'position': 'absolute', 'left': '50%', 'margin-left': '-' + jQuery('#scFormContainerModal-'+id).find('.body-div').width()/2 + 'px' }); } jQuery('.scModalButton').fadeOut(); scLoadJs(); if (scMobileCheck()) { jQuery('#scFormContainerModal-'+id).css('position', 'absolute'); var left = jQuery('#scFormContainerModal-'+id).find('.body-div').offset().left - 25; jQuery('html body').animate({scrollTop:0, scrollLeft:left+"px"}, 800); } if (container.find('.body-div.formError').length > 0) { container.find('.body-div').css('width', '400px'); container.find('.body-div > div:first').css({ 'background': 'white', 'padding': '20px', 'border-radius': '4px' }); } jQuery(document).trigger("portableFormDisplayed", [jQuery('#scFormContainerModal-'+id), id]); } /** * Removes the current modal window * */ function scRemoveModal() { //Todo - add more effects jQuery('.scFormContainerModal').fadeOut(400); jQuery('.scModalButton').fadeIn(); } window.scMobileCheck = function() { var check = false; (function(a,b){if(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(a)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(a.substr(0,4)))check = true})(navigator.userAgent||navigator.vendor||window.opera); return check; } window['formThankyouPortable-122726'] = '

Submission Complete


Your submission has been received, thank you for completing the form


Close
'; var scAppUrl = "https://app.simplycast.com/"; scInitJQuery(); scGetPortable(122726)