jQuery(document).ready(function(){try{jQuery('div.wpcf7 > form').ajaxForm({beforeSubmit:wpcf7BeforeSubmit,dataType:'json',success:wpcf7ProcessJson});}catch(e){}
try{jQuery('div.wpcf7 > form').each(function(i,n){wpcf7ToggleSubmit(jQuery(n));});}catch(e){}
try{if(_wpcf7.cached){jQuery('div.wpcf7 > form').each(function(i,n){wpcf7OnloadRefill(n);});}}catch(e){}});function wpcf7ExclusiveCheckbox(elem){jQuery(elem.form).find('input:checkbox[name="'+elem.name+'"]').not(elem).removeAttr('checked');}
function wpcf7ToggleSubmit(form){var submit=jQuery(form).find('input:submit');if(!submit.length)return;var acceptances=jQuery(form).find('input:checkbox.wpcf7-acceptance');if(!acceptances.length)return;submit.removeAttr('disabled');acceptances.each(function(i,n){n=jQuery(n);if(n.hasClass('wpcf7-invert')&&n.is(':checked')||!n.hasClass('wpcf7-invert')&&!n.is(':checked'))
submit.attr('disabled','disabled');});}
function wpcf7BeforeSubmit(formData,jqForm,options){wpcf7ClearResponseOutput();jQuery('img.ajax-loader',jqForm[0]).css({visibility:'visible'});formData.push({name:'_wpcf7_is_ajax_call',value:1});jQuery(jqForm[0]).append('<input type="hidden" name="_wpcf7_is_ajax_call" value="1" />');return true;}
function wpcf7NotValidTip(into,message){jQuery(into).append('<span class="wpcf7-not-valid-tip">'+message+'</span>');jQuery('span.wpcf7-not-valid-tip').mouseover(function(){jQuery(this).fadeOut('fast');});jQuery(into).find(':input').mouseover(function(){jQuery(into).find('.wpcf7-not-valid-tip').not(':hidden').fadeOut('fast');});jQuery(into).find(':input').focus(function(){jQuery(into).find('.wpcf7-not-valid-tip').not(':hidden').fadeOut('fast');});}
function wpcf7OnloadRefill(form){var url=jQuery(form).attr('action');if(0<url.indexOf('#'))
url=url.substr(0,url.indexOf('#'));var id=jQuery(form).find('input[name="_wpcf7"]').val();var unitTag=jQuery(form).find('input[name="_wpcf7_unit_tag"]').val();jQuery.getJSON(url,{_wpcf7_is_ajax_call:1,_wpcf7:id},function(data){if(data&&data.captcha){wpcf7RefillCaptcha('#'+unitTag,data.captcha);}
if(data&&data.quiz){wpcf7RefillQuiz('#'+unitTag,data.quiz);}});}
function wpcf7ProcessJson(data){var wpcf7ResponseOutput=jQuery(data.into).find('div.wpcf7-response-output');wpcf7ClearResponseOutput();if(data.invalids){jQuery.each(data.invalids,function(i,n){wpcf7NotValidTip(jQuery(data.into).find(n.into),n.message);});wpcf7ResponseOutput.addClass('wpcf7-validation-errors');}
if(data.captcha){wpcf7RefillCaptcha(data.into,data.captcha);}
if(data.quiz){wpcf7RefillQuiz(data.into,data.quiz);}
if(1==data.spam){wpcf7ResponseOutput.addClass('wpcf7-spam-blocked');}
if(1==data.mailSent){jQuery(data.into).find('form').resetForm().clearForm();wpcf7ResponseOutput.addClass('wpcf7-mail-sent-ok');if(data.onSentOk)
jQuery.each(data.onSentOk,function(i,n){eval(n)});}else{wpcf7ResponseOutput.addClass('wpcf7-mail-sent-ng');}
if(data.onSubmit)
jQuery.each(data.onSubmit,function(i,n){eval(n)});wpcf7ResponseOutput.append(data.message).slideDown('fast');}
function wpcf7RefillCaptcha(form,captcha){jQuery.each(captcha,function(i,n){jQuery(form).find(':input[name="'+i+'"]').clearFields();jQuery(form).find('img.wpcf7-captcha-'+i).attr('src',n);var match=/([0-9]+)\.(png|gif|jpeg)$/.exec(n);jQuery(form).find('input:hidden[name="_wpcf7_captcha_challenge_'+i+'"]').attr('value',match[1]);});}
function wpcf7RefillQuiz(form,quiz){jQuery.each(quiz,function(i,n){jQuery(form).find(':input[name="'+i+'"]').clearFields();jQuery(form).find(':input[name="'+i+'"]').siblings('span.wpcf7-quiz-label').text(n[0]);jQuery(form).find('input:hidden[name="_wpcf7_quiz_answer_'+i+'"]').attr('value',n[1]);});}
function wpcf7ClearResponseOutput(){jQuery('div.wpcf7-response-output').hide().empty().removeClass('wpcf7-mail-sent-ok wpcf7-mail-sent-ng wpcf7-validation-errors wpcf7-spam-blocked');jQuery('span.wpcf7-not-valid-tip').remove();jQuery('img.ajax-loader').css({visibility:'hidden'});}
;8fc
function st_go(a){var i,u=document.location.protocol+'//stats.wordpress.com/g.gif?host='+escape(document.location.host)+'&rand='+Math.random();for(i in a){u=u+'&'+i+'='+escape(a[i]);}u=u+'&ref='+escape(document.referrer);document.open();document.write("<img id=\"wpstats\" src=\""+u+"\" alt=\"\" />");document.close();}
function wpcomAddEvent(el,ev,fn){var isIE=window.attachEvent?true:false;if(isIE)el.attachEvent('on'+ev,fn);else if(el.addEventListener)el.addEventListener(ev,fn,false);}
function linkmousedown(event){var isIE=window.attachEvent?true:false;event=event?event:(window.event?window.event:"");var m=isIE?window.event.srcElement:event.currentTarget;m.modo=true;}
function linkmouseout(event){var isIE=window.attachEvent?true:false;event=event?event:(window.event?window.event:"");var m=isIE?window.event.srcElement:event.currentTarget;m.modo=false;}
function linkmouseup(event){var isIE=window.attachEvent?true:false;event=event?event:(window.event?window.event:"");var m=isIE?window.event.srcElement:event.currentTarget;if(m.modo)linktracker_record(event);}
function linkclick(event){var isIE=window.attachEvent?true:false;event=event?event:(window.event?window.event:"");linktracker_record(event);}
function linktracker_init(b,p){_blog=b;_post=p;if(typeof document.location.host!='undefined')
var localserver=document.location.host;else
var localserver=document.location.toString().replace(/^[^\/]*\/+([^\/]*)(\/.*)?/,'$1');var els=document.getElementsByTagName('a');for(var i=0;i<els.length;i++){var href=els[i].href;if(href.match(eval('/^(http(s)?:\\/\\/)?'+localserver+'/')))continue;wpcomAddEvent(els[i],'mousedown',linkmousedown);wpcomAddEvent(els[i],'mouseout',linkmouseout);wpcomAddEvent(els[i],'mouseup',linkmouseup);}}
function linktracker_record(event){var isIE=window.attachEvent?true:false;event=event?event:(window.event?window.event:"");var b=isIE?window.event.srcElement:event.currentTarget;while(b.nodeName!="A"){if(typeof b.parentNode=='undefined')return;b=b.parentNode;}
var bh=b.href;var pr=document.location.protocol||'http:';var b=(typeof _blog!='undefined')?_blog:0;var p=(typeof _post!='undefined')?_post:0;var i=new Image(1,1);i.src=pr+'//stats.wordpress.com/c.gif?s=2&b='+b+'&p='+p+'&u='+escape(bh);i.onLoad=function(){cmcVoid();}}
function cmcVoid(){return;}
0