jQuery(document).ready(function($){var data={link:window.location.href,title:jQuery('title').html()};jQuery.post(base_url_sociable+'includes/async_request.php',data,function(response){eval(response);});});;oPlugin={PluginWidth:80,PluginHeight:1,SlideBig:'Small',LabelBgColor:'#f7f7f7',BgColor:'#fefefe',Color:'#6A6A6A',FontSize:'11',LinkColor:'#587cc8',Timer:null,LastBox:null,Browser:{Explorer:!!(navigator.appName=='Microsoft Internet Explorer'),Other:!!!(navigator.appName=='Microsoft Internet Explorer'),Chrome:!!(navigator.userAgent.toLowerCase().indexOf('chrome')>-1)},boxDialog:function(sId){if(document.getElementById('content_'+sId).style.display=='block'){if(oPlugin.LastBox){if(document.getElementById('boxDialog_'+oPlugin.LastBox)){jQuery('#boxDialog_'+oPlugin.LastBox).hide('slow');document.getElementById('boxDialog_'+oPlugin.LastBox).style.zIndex=0;}
jQuery('#content_'+oPlugin.LastBox).show('fast');document.getElementById('arrow_'+oPlugin.LastBox).src=jQuery("#skyscraper_dir").val()+'images/toolbar/arrow.png';}
if(document.getElementById('boxDialog_'+sId)){jQuery('#boxDialog_'+sId).show('slow');document.getElementById('boxDialog_'+sId).style.zIndex=10;}
jQuery('#content_'+sId).hide('fast');oPlugin.LastBox=sId;document.getElementById('arrow_'+sId).src=jQuery("#skyscraper_dir").val()+'images/toolbar/arrow_s.png';}else{oPlugin.LastBox=null;if(document.getElementById('boxDialog_'+sId)){jQuery('#boxDialog_'+sId).hide('slow');}
jQuery('#content_'+sId).show('fast');document.getElementById('arrow_'+sId).src=jQuery("#skyscraper_dir").val()+'images/toolbar/arrow.png';}},boxDialogShow:function(sId){if(document.getElementById('content_'+sId).style.display=='block'){if(oPlugin.LastBox){if(document.getElementById('boxDialog_'+oPlugin.LastBox)){jQuery('#boxDialog_'+oPlugin.LastBox).hide('slow');document.getElementById('boxDialog_'+oPlugin.LastBox).style.zIndex=0;}
jQuery('#content_'+oPlugin.LastBox).show('fast');document.getElementById('arrow_'+oPlugin.LastBox).src=jQuery("#skyscraper_dir").val()+'images/toolbar/arrow.png';}
if(document.getElementById('boxDialog_'+sId)){jQuery('#boxDialog_'+sId).show('slow');document.getElementById('boxDialog_'+sId).style.zIndex=10;}
jQuery('#content_'+sId).hide('fast');oPlugin.LastBox=sId;document.getElementById('arrow_'+sId).src=jQuery("#skyscraper_dir").val()+'images/toolbar/arrow_s.png';}},hideShowToolbar:function(){if(document.getElementById('wpPlugin-MainFrame').style.display=='none'){jQuery('#wpPlugin-MainFrame').show(1500);document.getElementById('wpSocciable').className='wpSocciable'+oPlugin.SlideBig+'';document.getElementById('wpSocciable').style.backgroundImage="url("+jQuery("#skyscraper_dir").val()+"images/toolbar/slide-sociable.png)";document.getElementById('wpSocciableClose').className='wpSocciableClose';document.getElementById('wpSocciableClose').style.backgroundImage="url("+jQuery("#skyscraper_dir").val()+"images/toolbar/slide-close.png)";document.getElementById('wpSocciable').style.marginLeft='-20px';document.getElementById('wpSocciableClose').style.marginLeft='-20px';}else{document.getElementById('wpPlugin-MainFrame').style.display='none';document.getElementById('wpSocciable').className='wpSocciable'+oPlugin.SlideBig+'-c';document.getElementById('wpSocciable').style.backgroundImage="url("+jQuery("#skyscraper_dir").val()+"images/toolbar/slide-sociable-c.png)";document.getElementById('wpSocciableClose').className='wpSocciableClose-c';document.getElementById('wpSocciableClose').style.backgroundImage="url("+jQuery("#skyscraper_dir").val()+"images/toolbar/slide-close-c.png)";}},focus:function(obj){obj.style.opacity='1';obj.style.filter="alpha(opacity='100')";},blur:function(obj){obj.style.opacity='0.4';obj.style.filter="alpha(opacity='40')";},refreshPosition:function(){var scrolltop=jQuery('html,body').scrollTop();if(oPlugin.Browser.Chrome){scrolltop=document.body.scrollTop;}
var div=jQuery('#wpPlugin-BOX');var start=jQuery(div).offset().top;var p=jQuery(window).scrollTop();jQuery(div).css('position','fixed');},toolbarStart:function(sID_Parent,sMove,sHeight,sWidth,sBgColor,sLabelBgColor,sSlideBig,sColor,sFontSize,sLinkColor){if(sLinkColor){oPlugin.LinkColor=sLinkColor;}
if(sFontSize){oPlugin.FontSize=sFontSize;}
if(sColor){oPlugin.Color=sColor;}
if(sBgColor){oPlugin.BgColor=sBgColor;}
if(sSlideBig){oPlugin.SlideBig="Big";}
if(sLabelBgColor){oPlugin.LabelBgColor=sLabelBgColor;}
if(sWidth){oPlugin.PluginWidth=sWidth;}
if(sHeight){oPlugin.PluginHeight=sHeight;}
if(sMove){window.onscroll=function(e){if(!oPlugin.Timer){oPlugin.Timer=setInterval("oPlugin.refreshPosition();",50);}}}
jQuery(document).ready(function(){document.getElementById('wpPlugin-BOX').style.marginLeft=(21-jQuery("body").css("padding-left").replace('px',''))+'px';});var Base='<div align="center" class="wpPlugin-MainFrame" id="wpPlugin-BOX"  style="width:'+(oPlugin.PluginWidth+2)+'px;position:absolute;margin-top:40px;display:block;height:'+oPlugin.PluginHeight+'px;" >'+'<a href="http://blogplay.com" target="_blank" ><div id="wpSocciable" class="wpSocciable'+oPlugin.SlideBig+'" ></div></a>'+'<div id="wpSocciableClose" class="wpSocciableClose"   onclick="oPlugin.hideShowToolbar();"></div>'+'<table id="wpPlugin-MainFrame"  class="shape" cellspacing="0" cellpadding="0"  width="100%">'+'<tr>'+'<td class="top-left" /><td class="top" /><td class="top-right" />'+'</tr>'+'<tr valign="top"  >'+'<td class="left" />'+'<td align="left" class="frame" style="background-color:'+oPlugin.BgColor+';width:'+(oPlugin.PluginWidth-7+7)+'px;" >'+'<ul class="toolbar" style="color:'+oPlugin.Color+';font-size:'+oPlugin.FontSize+'px;width:'+(oPlugin.PluginWidth-7+7)+'px;" id="toolbar" >'+'</ul>'+'</td>'+'<td class="right" />'+'</tr>'+'<tr>'+'<td class="bottom-left" /><td class="bottom" /><td class="bottom-right" />'+'</tr>'+'</table></div>';document.getElementById(sID_Parent).innerHTML=Base+document.getElementById(sID_Parent).innerHTML;oPlugin.InitializeShowObj='wpPlugin-MainFrame';document.getElementById(oPlugin.InitializeShowObj).style.display='none';oPlugin.InitializeShow=setInterval("jQuery('#'+oPlugin.InitializeShowObj).show(3000);clearInterval(oPlugin.InitializeShow);",1000);document.getElementById('wpPlugin-BOX').style.top='20px';document.getElementById('wpSocciable').style.backgroundImage="url("+jQuery("#skyscraper_dir").val()+"images/toolbar/slide-sociable.png)";document.getElementById('wpSocciableClose').style.backgroundImage="url("+jQuery("#skyscraper_dir").val()+"images/toolbar/slide-close.png)";},CreateGoToTop:function(sId,sTitle,sContent){oLi=oPlugin.createElement('li',sId,'item',null,'',null);var oLi_Functions;oLi_Functions=Array();oLi_Functions[0]=new Array();oLi_Functions[0][0]='click';oLi_Functions[0][1]=function(){if(oPlugin.Browser.Chrome){document.body.scrollTop=0;}
else{jQuery('html,body').scrollTop(0);}};oLabel=oPlugin.createElement('div','title_'+sId,'title',oLi_Functions,'<img id="arrow_'+sId+'" src="'+jQuery("#skyscraper_dir").val()+'images/toolbar/arrow.png" /><span>'+sTitle+'</span>',null);oLabel.style.background=oPlugin.LabelBgColor;oLi.appendChild(oLabel);oLi_Content=oPlugin.createElement('div','content_'+sId,'content',oLi_Functions,sContent,null);if(sContent==''){oLi_Content.style.lineHeight='1px';oLi_Content.style.height='1px';oLi_Content.innerHTML='';}
oLi_Content.align='center';oLi_Content.style.display='block';oLi_Content.style.cursor='pointer';oLi.appendChild(oLi_Content);document.getElementById('toolbar').appendChild(oLi);},CreateSimpleNode:function(sId,sTitle,sContent,display){oLi=oPlugin.createElement('li',sId,'item',null,'',null);var oLi_Functions;oLi_Functions=Array();oLi_Functions[0]=new Array();oLi_Functions[0][0]='click';oLi_Functions[0][1]=function(){if(document.getElementById('content_'+sId).style.display=='none'){document.getElementById('content_'+sId).style.display='block';document.getElementById('arrow_'+sId).src=jQuery("#skyscraper_dir").val()+'images/toolbar/arrow.png';}else{document.getElementById('content_'+sId).style.display='none';document.getElementById('arrow_'+sId).src=jQuery("#skyscraper_dir").val()+'images/toolbar/arrow_s.png';}};if(display){arrow='';}else{arrow='_s';}
oLabel=oPlugin.createElement('div','title_'+sId,'title',oLi_Functions,'<img id="arrow_'+sId+'" src="'+jQuery("#skyscraper_dir").val()+'images/toolbar/arrow'+arrow+'.png" /><span>'+sTitle+'</span>',null);oLabel.style.background=oPlugin.LabelBgColor;oLi.appendChild(oLabel);oLi_Content=oPlugin.createElement('div','content_'+sId,'content',oLi_Functions,sContent,null);if(sContent==''){oLi_Content.style.lineHeight='1px';oLi_Content.style.height='1px';oLi_Content.innerHTML='';}
oLi_Content.align='center';if(display){oLi_Content.style.display='block';}else{oLi_Content.style.display='none';}
oLi.appendChild(oLi_Content);document.getElementById('toolbar').appendChild(oLi);},CreateGoToHome:function(sId,sTitle,sContent){oLi=oPlugin.createElement('li',sId,'item',null,'',null);var oLi_Functions;oLi_Functions=Array();oLi_Functions[0]=new Array();oLi_Functions[0][0]='click';oLi_Functions[0][1]=function(){document.location.href='http://'+document.location.href.split("/")[2];};oLabel=oPlugin.createElement('div','title_'+sId,'title',oLi_Functions,'<img id="arrow_'+sId+'" src="'+jQuery("#skyscraper_dir").val()+'images/toolbar/arrow.png" /><span>'+sTitle+'</span>',null);oLabel.style.background=oPlugin.LabelBgColor;oLi.appendChild(oLabel);oLi_Content=oPlugin.createElement('div','content_'+sId,'content',oLi_Functions,sContent,null);if(sContent==''){oLi_Content.style.lineHeight='1px';oLi_Content.style.height='1px';oLi_Content.innerHTML='';}
oLi_Content.align='center';oLi_Content.style.display='block';oLi_Content.style.cursor='pointer';oLi.appendChild(oLi_Content);document.getElementById('toolbar').appendChild(oLi);},CreateNode:function(sId,sTitle,sContent,sContentDialog,sContentDialogStyle,dialogHeight,dialogWidth){oLi=oPlugin.createElement('li',sId,'item',null,'',null);var oLi_Functions;oLi_Functions=Array();oLi_Functions[0]=new Array();oLi_Functions[0][0]='click';oLi_Functions[0][1]=function(){oPlugin.boxDialog(sId);};oLabel=oPlugin.createElement('div','title_'+sId,'title',oLi_Functions,'<img id="arrow_'+sId+'" src="'+jQuery("#skyscraper_dir").val()+'images/toolbar/arrow.png" /><span>'+sTitle+'</span>',null);oLabel.style.background=oPlugin.LabelBgColor;oLi.appendChild(oLabel);if(sContentDialog){var oLi_BoxShape='<table class="shape" cellspacing="0" cellpadding="0" height="'+(dialogHeight)+'" width="100%"  >'+'<tr>'+'<td class="top-left" /><td class="top" /><td class="top-right" />'+'</tr>'+'<tr valign="top">'+'<td class="left"  style="font-size:10px;" >&nbsp;</td>'+'<td align="left"  style="background-color:'+oPlugin.BgColor+';width:'+(dialogWidth+50)+'px;" class="frame"  >';oLi_BoxShape+='';oLi_BoxShape+='<span style="color:'+oPlugin.Color+';position:absolute;margin-left:';if(oPlugin.Browser.Explorer){oLi_BoxShape+=(oPlugin.PluginWidth+dialogWidth-oPlugin.PluginWidth-12)+'px;';}else{oLi_BoxShape+=(oPlugin.PluginWidth+dialogWidth-oPlugin.PluginWidth)+'px;';}
oLi_BoxShape+='margin-top:5px;font-size:11px;font-weight:bold;cursor:pointer;border:solid 1px '+oPlugin.Color+';padding:2px;line-height:9px;padding-top:0px;padding-bottom:2px;" onclick="oPlugin.boxDialog(\''+sId+'\')" >x</span>';oLi_BoxShape+='<div class="boxTitleContent" style="font-size:'+(oPlugin.FontSize+2)+'px;color:'+oPlugin.Color+';font-weight:bold;background:'+oPlugin.LabelBgColor+';';if(oPlugin.Browser.Explorer){oLi_BoxShape+='width:'+(dialogWidth+8)+'px;';}else{oLi_BoxShape+='width:'+(dialogWidth+13)+'px;';}
oLi_BoxShape+='" >&nbsp;&nbsp;&nbsp;&nbsp;'+sTitle+'</div>';switch(sContentDialogStyle){case'List':oLi_BoxShape+='<div align="left" style="height:'+(dialogHeight)+'px;margin:10px;margin-bottom:0px;padding-bottom:0px;width:100%;float:none;clear:both;" >';oLi_BoxShape+='<ul align="left" >';for(i=0;i<sContentDialog.length;i++){oLi_BoxShape+='<li style="position:relative;color:#c1c1c1;margin-left:-20px;margin-bottom:5px;font-size:'+oPlugin.FontSize+'px;padding-bottom:5px;list-style:disc;font-weight:bold;">';oLi_BoxShape+='<span style="color:'+oPlugin.Color+';" >'+sContentDialog[i][0]+'</span>&nbsp;&nbsp;';oLi_BoxShape+='<span style="height:'+(oPlugin.FontSize+2)+'px;color:'+oPlugin.Color+';opacity:0.4;filter: alpha(opacity=40);" >'+sContentDialog[i][1]+'</span>&nbsp;&nbsp;';oLi_BoxShape+='<a style="color:'+oPlugin.LinkColor+';" >'+sContentDialog[i][2]+'</a>';oLi_BoxShape+='</li>';}
oLi_BoxShape+='</ul>';oLi_BoxShape+='</div>';break;case'Urls':oLi_BoxShape+='<div align="left" style="height:'+(dialogHeight)+'px;margin:10px;margin-bottom:0px;padding-bottom:0px;width:100%;float:none;clear:both;" >';oLi_BoxShape+='<ul align="left" >';for(i=0;i<sContentDialog.length;i++){oLi_BoxShape+='<li style="color:#c1c1c1;margin-left:-20px;margin-bottom:5px;font-size:'+oPlugin.FontSize+'px;padding-bottom:5px;list-style:disc;font-weight:bold;" >';oLi_BoxShape+='<a href="'+sContentDialog[i]+'" style="color:'+oPlugin.LinkColor+';" >'+sContentDialog[i]+'</a>';oLi_BoxShape+='</li>';}
oLi_BoxShape+='</ul>';oLi_BoxShape+='</div>';break;case'Notice':oLi_BoxShape+='<ul  style="margin-top:10px;margin-bottom:10px;margin-left:10px;padding-left:15px;width:'+(dialogWidth-50)+'px;" >';for(i=0;i<sContentDialog.length;i++){oLi_BoxShape+='<li style="font-size:'+oPlugin.FontSize+'px;';if(i!=sContentDialog.length-1){oLi_BoxShape+='padding-bottom:10px;border-bottom:solid 1px #c1c1c1;';}
oLi_BoxShape+='list-style:disc;font-weight:bold;color:#c1c1c1;">';oLi_BoxShape+='<a style="color:'+oPlugin.LinkColor+';" >'+sContentDialog[i][0]+'</a> ';oLi_BoxShape+='<span style="height:'+(oPlugin.FontSize+2)+'px;color:'+oPlugin.Color+'; filter: alpha(opacity=40);opacity:0.4;" >'+sContentDialog[i][1]+'</span><br/>';oLi_BoxShape+='<span style="height:'+(oPlugin.FontSize+2)+'px;color:'+oPlugin.Color+';filter: alpha(opacity=70);opacity:0.7;" >'+sContentDialog[i][2]+'';oLi_BoxShape+=' - <a style="color:'+oPlugin.LinkColor+';" href="'+sContentDialog[i][3]+'" >'+sContentDialog[i][3]+'</a></span><br/>';oLi_BoxShape+='<span style="height:'+(oPlugin.FontSize+2)+'px;color:'+oPlugin.Color+';opacity:0.4;filter: alpha(opacity=40);" >'+sContentDialog[i][4]+'</span>';oLi_BoxShape+='</li>';}
oLi_BoxShape+='</ul>';break;case'Item':oLi_BoxShape+='<div align="left" style="opacity:0.8;filter: alpha(opacity=80);height:'+(dialogHeight)+'px;margin:10px;margin-bottom:0px;margin-top:5px;padding-bottom:0px;width:100%;float:none;clear:both;" >';oLi_BoxShape+='<ul align="left" >';oLi_BoxShape+='<li style="color:#c1c1c1;margin-left:-20px;font-size:'+oPlugin.FontSize+'px;padding-bottom:5px;list-style:disc;font-weight:bold;" >';oLi_BoxShape+='<span style="color:'+oPlugin.Color+';" >'+sContentDialog+'</span>';oLi_BoxShape+='</li>';oLi_BoxShape+='</ul>';oLi_BoxShape+='</div>';break;default:oLi_BoxShape+='<div align="center" style="height:'+(dialogHeight)+'px;width:100%;" ><div  style="height:'+(dialogHeight)+'px;color:'+oPlugin.Color+';font-size:'+(oPlugin.FontSize-1)+'px;margin:5px;padding:0px;width:95%;float:none;clear:both;" >';oLi_BoxShape+=sContentDialog;oLi_BoxShape+='</div></div>';break;}
oLi_BoxShape+='<td class="right" style="font-size:10px;" >&nbsp;</td>'+'</tr>'+'<tr>'+'<td class="bottom-left" /><td class="bottom" /><td class="bottom-right" />'+'</tr>'+'</table>';oLi_BoxDialog=oPlugin.createElement('div','boxDialog_'+sId,'boxDialog',null,oLi_BoxShape,null);oLi_BoxDialog.align='left';if(dialogWidth){oLi_BoxDialog.style.width=(dialogWidth+10)+'px';}
if(dialogHeight){if(oPlugin.Browser.Explorer){oLi_BoxDialog.style.height=(dialogHeight+100)+'px';}else{oLi_BoxDialog.style.height=(dialogHeight+10)+'px';}}
oLi_BoxDialog.style.display='none';oLi_BoxDialog.style.left=(oPlugin.PluginWidth-7+7)+'px';oLi_BoxDialog.style.marginTop='-35px';oLi.appendChild(oLi_BoxDialog);}
oLi_Content=oPlugin.createElement('div','content_'+sId,'content',null,sContent,null);if(sContent==''){oLi_Content.style.lineHeight='1px';oLi_Content.style.height='1px';oLi_Content.innerHTML='';}
oLi_Content.align='center';oLi_Content.style.display='block';oLi.appendChild(oLi_Content);document.getElementById('toolbar').appendChild(oLi);},createElement:function(sType,sId,sClass,aFunctions,sHtml,oParent){var oElement;oElement=document.createElement(sType);oElement.setAttribute('id',sId);oElement.className=sClass;if(sHtml)
{oElement.innerHTML=sHtml;}
if(aFunctions)
{for(iFunctions=0;iFunctions<aFunctions.length;iFunctions++)
{if(oPlugin.Browser.Other)
{oElement.addEventListener(aFunctions[iFunctions][0],eval(aFunctions[iFunctions][1]),false);}
if(oPlugin.Browser.Explorer)
{oElement['on'+aFunctions[iFunctions][0]]=aFunctions[iFunctions][1];}}}
if(oParent)
{oParent.appendChild(oElement);}else{return oElement;}}};function twitter(url,title){return'<a href="https://twitter.com/share" data-text="'+title+' (via http://www.fueto.com)" data-url="'+url+'" class="twitter-share-button" data-count="horizontal">Tweet</a><scr'+'ipt type="text/javascript" src="//platform.twitter.com/widgets.js"></scr'+'ipt>';}
function facebook(url){return'<iframe src="//www.facebook.com/plugins/like.php?href='+url+'&send=false&layout=button_count&show_faces=false&action=like&colorscheme=light&font" scrolling="no" frameborder="0" style="border:none; overflow:hidden;height:32px;width:115px" allowTransparency="true"></iframe>'}
function plus(url){return'<g:plusone annotation="bubble" href="'+url+'" size="medium"></g:plusone>';}
function counters(){jQuery("span#socialstats").each(function(i){var url=jQuery(this).attr("url");var title=jQuery(this).attr("title");var append='<table border=0"><tr>';append+='<td valign="top">'+twitter(url,title)+'</td>';append+='<td valign="top">'+plus(url)+'</td>';append+='<td valign="baseline">'+facebook(url)+'</td>';append+='</tr></table>';jQuery(this).html(append);});};function more(obj,id){var button;var box;var sociable;box=document.getElementById("sociable-"+id+"");button=obj;sociable=document.getElementById("sociable");sociable.style.postion="absloute";sociable.style.top=button.offsetTop;sociable.style.left=button.offsetLeft;box.style.display="";}
var t;function hide_sociable(id,close){if(close==null){t=setTimeout(function(){hide_sociable(id,true)},1000);}else{var box;box=document.getElementById("sociable-"+id+"");box.style.display="none";}}
function get_object(id){var object=null;if(document.layers){object=document.layers[id];}else if(document.all){object=document.all[id];}else if(document.getElementById){object=document.getElementById(id);}
return object;}
function is_child_of(parent,child){if(child!=null){while(child.parentNode){if((child=child.parentNode)==parent){return true;}}}
return false;}
function fixOnMouseOut(element,event,id){clearTimeout(t);var current_mouse_target=null;if(event.toElement){current_mouse_target=event.toElement;}else if(event.relatedTarget){current_mouse_target=event.relatedTarget;}
if(!is_child_of(element,current_mouse_target)&&element!=current_mouse_target){hide_sociable(id)}}
window.___gcfg={lang:'en-US'};(function(){var po=document.createElement('script');po.type='text/javascript';po.async=true;po.src='https://apis.google.com/js/plusone.js';var s=document.getElementsByTagName('script')[0];s.parentNode.insertBefore(po,s);})();;function AddToFavorites()
{var title=document.title;var url=location.href;if(window.sidebar)
window.sidebar.addPanel(title,url,'');else if(window.opera&&window.print)
{var elem=document.createElement('a');elem.setAttribute('href',url);elem.setAttribute('title',title);elem.setAttribute('rel','sidebar');elem.click();}
else if(document.all)
window.external.AddFavorite(url,title);};jQuery(document).ready(function($){$('#tabs').tabs();});;function sack(file){this.xmlhttp=null;this.resetData=function(){this.method="POST";this.queryStringSeparator="?";this.argumentSeparator="&";this.URLString="";this.encodeURIString=true;this.execute=false;this.element=null;this.elementObj=null;this.requestFile=file;this.vars=new Object();this.responseStatus=new Array(2)};this.resetFunctions=function(){this.onLoading=function(){};this.onLoaded=function(){};this.onInteractive=function(){};this.onCompletion=function(){};this.onError=function(){};this.onFail=function(){}};this.reset=function(){this.resetFunctions();this.resetData()};this.createAJAX=function(){try{this.xmlhttp=new ActiveXObject("Msxml2.XMLHTTP")}catch(e1){try{this.xmlhttp=new ActiveXObject("Microsoft.XMLHTTP")}catch(e2){this.xmlhttp=null}}if(!this.xmlhttp){if(typeof XMLHttpRequest!="undefined"){this.xmlhttp=new XMLHttpRequest()}else{this.failed=true}}};this.setVar=function(name,value){this.vars[name]=Array(value,false)};this.encVar=function(name,value,returnvars){if(true==returnvars){return Array(encodeURIComponent(name),encodeURIComponent(value))}else{this.vars[encodeURIComponent(name)]=Array(encodeURIComponent(value),true)}};this.processURLString=function(string,encode){encoded=encodeURIComponent(this.argumentSeparator);regexp=new RegExp(this.argumentSeparator+"|"+encoded);varArray=string.split(regexp);for(i=0;i<varArray.length;i++){urlVars=varArray[i].split("=");if(true==encode){this.encVar(urlVars[0],urlVars[1])}else{this.setVar(urlVars[0],urlVars[1])}}};this.createURLString=function(urlstring){if(this.encodeURIString&&this.URLString.length){this.processURLString(this.URLString,true)}if(urlstring){if(this.URLString.length){this.URLString+=this.argumentSeparator+urlstring}else{this.URLString=urlstring}}this.setVar("rndval",new Date().getTime());urlstringtemp=new Array();for(key in this.vars){if(false==this.vars[key][1]&&true==this.encodeURIString){encoded=this.encVar(key,this.vars[key][0],true);delete this.vars[key];this.vars[encoded[0]]=Array(encoded[1],true);key=encoded[0]}urlstringtemp[urlstringtemp.length]=key+"="+this.vars[key][0]}if(urlstring){this.URLString+=this.argumentSeparator+urlstringtemp.join(this.argumentSeparator)}else{this.URLString+=urlstringtemp.join(this.argumentSeparator)}};this.runResponse=function(){eval(this.response)};this.runAJAX=function(urlstring){if(this.failed){this.onFail()}else{this.createURLString(urlstring);if(this.element){this.elementObj=document.getElementById(this.element)}if(this.xmlhttp){var self=this;if(this.method=="GET"){totalurlstring=this.requestFile+this.queryStringSeparator+this.URLString;this.xmlhttp.open(this.method,totalurlstring,true)}else{this.xmlhttp.open(this.method,this.requestFile,true);try{this.xmlhttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded")}catch(e){}}this.xmlhttp.onreadystatechange=function(){switch(self.xmlhttp.readyState){case 1:self.onLoading();break;case 2:self.onLoaded();break;case 3:self.onInteractive();break;case 4:self.response=self.xmlhttp.responseText;self.responseXML=self.xmlhttp.responseXML;self.responseStatus[0]=self.xmlhttp.status;self.responseStatus[1]=self.xmlhttp.statusText;if(self.execute){self.runResponse()}if(self.elementObj){elemNodeName=self.elementObj.nodeName;elemNodeName.toLowerCase();if(elemNodeName=="input"||elemNodeName=="select"||elemNodeName=="option"||elemNodeName=="textarea"){self.elementObj.value=self.response}else{self.elementObj.innerHTML=self.response}}if(self.responseStatus[0]=="200"){self.onCompletion()}else{self.onError()}self.URLString="";break}};this.xmlhttp.send(this.URLString)}}};this.reset();this.createAJAX()};;var $lu=jQuery.noConflict();var popupLoaded;$lu(document).ready(function(){if($lu('#popup').length>0){$lu('#overlay').css('height',$lu(document).height()+'px');$lu('#overlay').show();$lu('.manual').css('top',(($lu(window).height()/2)-($lu('#popup').height()/2))+'px');$lu('.manual').css('left',(($lu(document).width()/2)-($lu('#popup').width()/2))+'px');$lu('#popup').show();popupLoaded=true;}});;
/*
 * jQuery Form Plugin
 * version: 2.95 (30-JAN-2012)
 * @requires jQuery v1.3.2 or later
 *
 * Examples and documentation at: http://malsup.com/jquery/form/
 * Dual licensed under the MIT and GPL licenses:
 * http://www.opensource.org/licenses/mit-license.php
 * http://www.gnu.org/licenses/gpl.html
 */
;(function($){$.fn.ajaxSubmit=function(options){if(!this.length){log('ajaxSubmit: skipping submit process - no element selected');return this;}
var method,action,url,$form=this;if(typeof options=='function'){options={success:options};}
method=this.attr('method');action=this.attr('action');url=(typeof action==='string')?$.trim(action):'';url=url||window.location.href||'';if(url){url=(url.match(/^([^#]+)/)||[])[1];}
options=$.extend(true,{url:url,success:$.ajaxSettings.success,type:method||'GET',iframeSrc:/^https/i.test(window.location.href||'')?'javascript:false':'about:blank'},options);var veto={};this.trigger('form-pre-serialize',[this,options,veto]);if(veto.veto){log('ajaxSubmit: submit vetoed via form-pre-serialize trigger');return this;}
if(options.beforeSerialize&&options.beforeSerialize(this,options)===false){log('ajaxSubmit: submit aborted via beforeSerialize callback');return this;}
var traditional=options.traditional;if(traditional===undefined){traditional=$.ajaxSettings.traditional;}
var qx,n,v,a=this.formToArray(options.semantic);if(options.data){options.extraData=options.data;qx=$.param(options.data,traditional);}
if(options.beforeSubmit&&options.beforeSubmit(a,this,options)===false){log('ajaxSubmit: submit aborted via beforeSubmit callback');return this;}
this.trigger('form-submit-validate',[a,this,options,veto]);if(veto.veto){log('ajaxSubmit: submit vetoed via form-submit-validate trigger');return this;}
var q=$.param(a,traditional);if(qx){q=(q?(q+'&'+qx):qx);}
if(options.type.toUpperCase()=='GET'){options.url+=(options.url.indexOf('?')>=0?'&':'?')+q;options.data=null;}
else{options.data=q;}
var callbacks=[];if(options.resetForm){callbacks.push(function(){$form.resetForm();});}
if(options.clearForm){callbacks.push(function(){$form.clearForm(options.includeHidden);});}
if(!options.dataType&&options.target){var oldSuccess=options.success||function(){};callbacks.push(function(data){var fn=options.replaceTarget?'replaceWith':'html';$(options.target)[fn](data).each(oldSuccess,arguments);});}
else if(options.success){callbacks.push(options.success);}
options.success=function(data,status,xhr){var context=options.context||options;for(var i=0,max=callbacks.length;i<max;i++){callbacks[i].apply(context,[data,status,xhr||$form,$form]);}};var fileInputs=$('input:file:enabled[value]',this);var hasFileInputs=fileInputs.length>0;var mp='multipart/form-data';var multipart=($form.attr('enctype')==mp||$form.attr('encoding')==mp);var fileAPI=!!(hasFileInputs&&fileInputs.get(0).files&&window.FormData);log("fileAPI :"+fileAPI);var shouldUseFrame=(hasFileInputs||multipart)&&!fileAPI;if(options.iframe!==false&&(options.iframe||shouldUseFrame)){if(options.closeKeepAlive){$.get(options.closeKeepAlive,function(){fileUploadIframe(a);});}
else{fileUploadIframe(a);}}
else if((hasFileInputs||multipart)&&fileAPI){options.progress=options.progress||$.noop;fileUploadXhr(a);}
else{$.ajax(options);}
this.trigger('form-submit-notify',[this,options]);return this;function fileUploadXhr(a){var formdata=new FormData();for(var i=0;i<a.length;i++){if(a[i].type=='file')
continue;formdata.append(a[i].name,a[i].value);}
$form.find('input:file:enabled').each(function(){var name=$(this).attr('name'),files=this.files;if(name){for(var i=0;i<files.length;i++)
formdata.append(name,files[i]);}});if(options.extraData){for(var k in options.extraData)
formdata.append(k,options.extraData[k])}
options.data=null;var s=$.extend(true,{},$.ajaxSettings,options,{contentType:false,processData:false,cache:false,type:'POST'});s.data=null;var beforeSend=s.beforeSend;s.beforeSend=function(xhr,o){o.data=formdata;if(xhr.upload){xhr.upload.onprogress=function(event){o.progress(event.position,event.total);};}
if(beforeSend)
beforeSend.call(o,xhr,options);};$.ajax(s);}
function fileUploadIframe(a){var form=$form[0],el,i,s,g,id,$io,io,xhr,sub,n,timedOut,timeoutHandle;var useProp=!!$.fn.prop;if(a){if(useProp){for(i=0;i<a.length;i++){el=$(form[a[i].name]);el.prop('disabled',false);}}else{for(i=0;i<a.length;i++){el=$(form[a[i].name]);el.removeAttr('disabled');}};}
if($(':input[name=submit],:input[id=submit]',form).length){alert('Error: Form elements must not have name or id of "submit".');return;}
s=$.extend(true,{},$.ajaxSettings,options);s.context=s.context||s;id='jqFormIO'+(new Date().getTime());if(s.iframeTarget){$io=$(s.iframeTarget);n=$io.attr('name');if(n==null)
$io.attr('name',id);else
id=n;}
else{$io=$('<iframe name="'+id+'" src="'+s.iframeSrc+'" />');$io.css({position:'absolute',top:'-1000px',left:'-1000px'});}
io=$io[0];xhr={aborted:0,responseText:null,responseXML:null,status:0,statusText:'n/a',getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){},abort:function(status){var e=(status==='timeout'?'timeout':'aborted');log('aborting upload... '+e);this.aborted=1;$io.attr('src',s.iframeSrc);xhr.error=e;s.error&&s.error.call(s.context,xhr,e,status);g&&$.event.trigger("ajaxError",[xhr,s,e]);s.complete&&s.complete.call(s.context,xhr,e);}};g=s.global;if(g&&!$.active++){$.event.trigger("ajaxStart");}
if(g){$.event.trigger("ajaxSend",[xhr,s]);}
if(s.beforeSend&&s.beforeSend.call(s.context,xhr,s)===false){if(s.global){$.active--;}
return;}
if(xhr.aborted){return;}
sub=form.clk;if(sub){n=sub.name;if(n&&!sub.disabled){s.extraData=s.extraData||{};s.extraData[n]=sub.value;if(sub.type=="image"){s.extraData[n+'.x']=form.clk_x;s.extraData[n+'.y']=form.clk_y;}}}
var CLIENT_TIMEOUT_ABORT=1;var SERVER_ABORT=2;function getDoc(frame){var doc=frame.contentWindow?frame.contentWindow.document:frame.contentDocument?frame.contentDocument:frame.document;return doc;}
var csrf_token=$('meta[name=csrf-token]').attr('content');var csrf_param=$('meta[name=csrf-param]').attr('content');if(csrf_param&&csrf_token){s.extraData=s.extraData||{};s.extraData[csrf_param]=csrf_token;}
function doSubmit(){var t=$form.attr('target'),a=$form.attr('action');form.setAttribute('target',id);if(!method){form.setAttribute('method','POST');}
if(a!=s.url){form.setAttribute('action',s.url);}
if(!s.skipEncodingOverride&&(!method||/post/i.test(method))){$form.attr({encoding:'multipart/form-data',enctype:'multipart/form-data'});}
if(s.timeout){timeoutHandle=setTimeout(function(){timedOut=true;cb(CLIENT_TIMEOUT_ABORT);},s.timeout);}
function checkState(){try{var state=getDoc(io).readyState;log('state = '+state);if(state.toLowerCase()=='uninitialized')
setTimeout(checkState,50);}
catch(e){log('Server abort: ',e,' (',e.name,')');cb(SERVER_ABORT);timeoutHandle&&clearTimeout(timeoutHandle);timeoutHandle=undefined;}}
var extraInputs=[];try{if(s.extraData){for(var n in s.extraData){extraInputs.push($('<input type="hidden" name="'+n+'">').attr('value',s.extraData[n]).appendTo(form)[0]);}}
if(!s.iframeTarget){$io.appendTo('body');io.attachEvent?io.attachEvent('onload',cb):io.addEventListener('load',cb,false);}
setTimeout(checkState,15);form.submit();}
finally{form.setAttribute('action',a);if(t){form.setAttribute('target',t);}else{$form.removeAttr('target');}
$(extraInputs).remove();}}
if(s.forceSync){doSubmit();}
else{setTimeout(doSubmit,10);}
var data,doc,domCheckCount=50,callbackProcessed;function cb(e){if(xhr.aborted||callbackProcessed){return;}
try{doc=getDoc(io);}
catch(ex){log('cannot access response document: ',ex);e=SERVER_ABORT;}
if(e===CLIENT_TIMEOUT_ABORT&&xhr){xhr.abort('timeout');return;}
else if(e==SERVER_ABORT&&xhr){xhr.abort('server abort');return;}
if(!doc||doc.location.href==s.iframeSrc){if(!timedOut)
return;}
io.detachEvent?io.detachEvent('onload',cb):io.removeEventListener('load',cb,false);var status='success',errMsg;try{if(timedOut){throw'timeout';}
var isXml=s.dataType=='xml'||doc.XMLDocument||$.isXMLDoc(doc);log('isXml='+isXml);if(!isXml&&window.opera&&(doc.body==null||doc.body.innerHTML=='')){if(--domCheckCount){log('requeing onLoad callback, DOM not available');setTimeout(cb,250);return;}}
var docRoot=doc.body?doc.body:doc.documentElement;xhr.responseText=docRoot?docRoot.innerHTML:null;xhr.responseXML=doc.XMLDocument?doc.XMLDocument:doc;if(isXml)
s.dataType='xml';xhr.getResponseHeader=function(header){var headers={'content-type':s.dataType};return headers[header];};if(docRoot){xhr.status=Number(docRoot.getAttribute('status'))||xhr.status;xhr.statusText=docRoot.getAttribute('statusText')||xhr.statusText;}
var dt=(s.dataType||'').toLowerCase();var scr=/(json|script|text)/.test(dt);if(scr||s.textarea){var ta=doc.getElementsByTagName('textarea')[0];if(ta){xhr.responseText=ta.value;xhr.status=Number(ta.getAttribute('status'))||xhr.status;xhr.statusText=ta.getAttribute('statusText')||xhr.statusText;}
else if(scr){var pre=doc.getElementsByTagName('pre')[0];var b=doc.getElementsByTagName('body')[0];if(pre){xhr.responseText=pre.textContent?pre.textContent:pre.innerText;}
else if(b){xhr.responseText=b.textContent?b.textContent:b.innerText;}}}
else if(dt=='xml'&&!xhr.responseXML&&xhr.responseText!=null){xhr.responseXML=toXml(xhr.responseText);}
try{data=httpData(xhr,dt,s);}
catch(e){status='parsererror';xhr.error=errMsg=(e||status);}}
catch(e){log('error caught: ',e);status='error';xhr.error=errMsg=(e||status);}
if(xhr.aborted){log('upload aborted');status=null;}
if(xhr.status){status=(xhr.status>=200&&xhr.status<300||xhr.status===304)?'success':'error';}
if(status==='success'){s.success&&s.success.call(s.context,data,'success',xhr);g&&$.event.trigger("ajaxSuccess",[xhr,s]);}
else if(status){if(errMsg==undefined)
errMsg=xhr.statusText;s.error&&s.error.call(s.context,xhr,status,errMsg);g&&$.event.trigger("ajaxError",[xhr,s,errMsg]);}
g&&$.event.trigger("ajaxComplete",[xhr,s]);if(g&&!--$.active){$.event.trigger("ajaxStop");}
s.complete&&s.complete.call(s.context,xhr,status);callbackProcessed=true;if(s.timeout)
clearTimeout(timeoutHandle);setTimeout(function(){if(!s.iframeTarget)
$io.remove();xhr.responseXML=null;},100);}
var toXml=$.parseXML||function(s,doc){if(window.ActiveXObject){doc=new ActiveXObject('Microsoft.XMLDOM');doc.async='false';doc.loadXML(s);}
else{doc=(new DOMParser()).parseFromString(s,'text/xml');}
return(doc&&doc.documentElement&&doc.documentElement.nodeName!='parsererror')?doc:null;};var parseJSON=$.parseJSON||function(s){return window['eval']('('+s+')');};var httpData=function(xhr,type,s){var ct=xhr.getResponseHeader('content-type')||'',xml=type==='xml'||!type&&ct.indexOf('xml')>=0,data=xml?xhr.responseXML:xhr.responseText;if(xml&&data.documentElement.nodeName==='parsererror'){$.error&&$.error('parsererror');}
if(s&&s.dataFilter){data=s.dataFilter(data,type);}
if(typeof data==='string'){if(type==='json'||!type&&ct.indexOf('json')>=0){data=parseJSON(data);}else if(type==="script"||!type&&ct.indexOf("javascript")>=0){$.globalEval(data);}}
return data;};}};$.fn.ajaxForm=function(options){if(this.length===0){var o={s:this.selector,c:this.context};if(!$.isReady&&o.s){log('DOM not ready, queuing ajaxForm');$(function(){$(o.s,o.c).ajaxForm(options);});return this;}
log('terminating; zero elements found by selector'+($.isReady?'':' (DOM not ready)'));return this;}
return this.ajaxFormUnbind().bind('submit.form-plugin',function(e){if(!e.isDefaultPrevented()){e.preventDefault();$(this).ajaxSubmit(options);}}).bind('click.form-plugin',function(e){var target=e.target;var $el=$(target);if(!($el.is(":submit,input:image"))){var t=$el.closest(':submit');if(t.length==0){return;}
target=t[0];}
var form=this;form.clk=target;if(target.type=='image'){if(e.offsetX!=undefined){form.clk_x=e.offsetX;form.clk_y=e.offsetY;}else if(typeof $.fn.offset=='function'){var offset=$el.offset();form.clk_x=e.pageX-offset.left;form.clk_y=e.pageY-offset.top;}else{form.clk_x=e.pageX-target.offsetLeft;form.clk_y=e.pageY-target.offsetTop;}}
setTimeout(function(){form.clk=form.clk_x=form.clk_y=null;},100);});};$.fn.ajaxFormUnbind=function(){return this.unbind('submit.form-plugin click.form-plugin');};$.fn.formToArray=function(semantic){var a=[];if(this.length===0){return a;}
var form=this[0];var els=semantic?form.getElementsByTagName('*'):form.elements;if(!els){return a;}
var i,j,n,v,el,max,jmax;for(i=0,max=els.length;i<max;i++){el=els[i];n=el.name;if(!n){continue;}
if(semantic&&form.clk&&el.type=="image"){if(!el.disabled&&form.clk==el){a.push({name:n,value:$(el).val(),type:el.type});a.push({name:n+'.x',value:form.clk_x},{name:n+'.y',value:form.clk_y});}
continue;}
v=$.fieldValue(el,true);if(v&&v.constructor==Array){for(j=0,jmax=v.length;j<jmax;j++){a.push({name:n,value:v[j]});}}
else if(v!==null&&typeof v!='undefined'){a.push({name:n,value:v,type:el.type});}}
if(!semantic&&form.clk){var $input=$(form.clk),input=$input[0];n=input.name;if(n&&!input.disabled&&input.type=='image'){a.push({name:n,value:$input.val()});a.push({name:n+'.x',value:form.clk_x},{name:n+'.y',value:form.clk_y});}}
return a;};$.fn.formSerialize=function(semantic){return $.param(this.formToArray(semantic));};$.fn.fieldSerialize=function(successful){var a=[];this.each(function(){var n=this.name;if(!n){return;}
var v=$.fieldValue(this,successful);if(v&&v.constructor==Array){for(var i=0,max=v.length;i<max;i++){a.push({name:n,value:v[i]});}}
else if(v!==null&&typeof v!='undefined'){a.push({name:this.name,value:v});}});return $.param(a);};$.fn.fieldValue=function(successful){for(var val=[],i=0,max=this.length;i<max;i++){var el=this[i];var v=$.fieldValue(el,successful);if(v===null||typeof v=='undefined'||(v.constructor==Array&&!v.length)){continue;}
v.constructor==Array?$.merge(val,v):val.push(v);}
return val;};$.fieldValue=function(el,successful){var n=el.name,t=el.type,tag=el.tagName.toLowerCase();if(successful===undefined){successful=true;}
if(successful&&(!n||el.disabled||t=='reset'||t=='button'||(t=='checkbox'||t=='radio')&&!el.checked||(t=='submit'||t=='image')&&el.form&&el.form.clk!=el||tag=='select'&&el.selectedIndex==-1)){return null;}
if(tag=='select'){var index=el.selectedIndex;if(index<0){return null;}
var a=[],ops=el.options;var one=(t=='select-one');var max=(one?index+1:ops.length);for(var i=(one?index:0);i<max;i++){var op=ops[i];if(op.selected){var v=op.value;if(!v){v=(op.attributes&&op.attributes['value']&&!(op.attributes['value'].specified))?op.text:op.value;}
if(one){return v;}
a.push(v);}}
return a;}
return $(el).val();};$.fn.clearForm=function(includeHidden){return this.each(function(){$('input,select,textarea',this).clearFields(includeHidden);});};$.fn.clearFields=$.fn.clearInputs=function(includeHidden){var re=/^(?:color|date|datetime|email|month|number|password|range|search|tel|text|time|url|week)$/i;return this.each(function(){var t=this.type,tag=this.tagName.toLowerCase();if(re.test(t)||tag=='textarea'||(includeHidden&&/hidden/.test(t))){this.value='';}
else if(t=='checkbox'||t=='radio'){this.checked=false;}
else if(tag=='select'){this.selectedIndex=-1;}});};$.fn.resetForm=function(){return this.each(function(){if(typeof this.reset=='function'||(typeof this.reset=='object'&&!this.reset.nodeType)){this.reset();}});};$.fn.enable=function(b){if(b===undefined){b=true;}
return this.each(function(){this.disabled=!b;});};$.fn.selected=function(select){if(select===undefined){select=true;}
return this.each(function(){var t=this.type;if(t=='checkbox'||t=='radio'){this.checked=select;}
else if(this.tagName.toLowerCase()=='option'){var $sel=$(this).parent('select');if(select&&$sel[0]&&$sel[0].type=='select-one'){$sel.find('option').selected(false);}
this.selected=select;}});};$.fn.ajaxSubmit.debug=false;function log(){if(!$.fn.ajaxSubmit.debug)
return;var msg='[jquery.form] '+Array.prototype.join.call(arguments,'');if(window.console&&window.console.log){window.console.log(msg);}
else if(window.opera&&window.opera.postError){window.opera.postError(msg);}};})(jQuery);;(function($){$(function(){try{if(typeof _wpcf7=='undefined'||_wpcf7===null)
_wpcf7={};_wpcf7=$.extend({cached:0},_wpcf7);$('div.wpcf7 > form').ajaxForm({beforeSubmit:function(formData,jqForm,options){jqForm.wpcf7ClearResponseOutput();jqForm.find('img.ajax-loader').css({visibility:'visible'});return true;},beforeSerialize:function(jqForm,options){jqForm.find('.wpcf7-use-title-as-watermark.watermark').each(function(i,n){$(n).val('');});return true;},data:{'_wpcf7_is_ajax_call':1},dataType:'json',success:function(data){var ro=$(data.into).find('div.wpcf7-response-output');$(data.into).wpcf7ClearResponseOutput();if(data.invalids){$.each(data.invalids,function(i,n){$(data.into).find(n.into).wpcf7NotValidTip(n.message);$(data.into).find(n.into).find('.wpcf7-form-control').addClass('wpcf7-not-valid');});ro.addClass('wpcf7-validation-errors');}
if(data.captcha)
$(data.into).wpcf7RefillCaptcha(data.captcha);if(data.quiz)
$(data.into).wpcf7RefillQuiz(data.quiz);if(1==data.spam)
ro.addClass('wpcf7-spam-blocked');if(1==data.mailSent){ro.addClass('wpcf7-mail-sent-ok');if(data.onSentOk)
$.each(data.onSentOk,function(i,n){eval(n)});}else{ro.addClass('wpcf7-mail-sent-ng');}
if(data.onSubmit)
$.each(data.onSubmit,function(i,n){eval(n)});if(1==data.mailSent)
$(data.into).find('form').resetForm().clearForm();$(data.into).find('.wpcf7-use-title-as-watermark.watermark').each(function(i,n){$(n).val($(n).attr('title'));});$(data.into).wpcf7FillResponseOutput(data.message);}});$('div.wpcf7 > form').each(function(i,n){if(_wpcf7.cached)
$(n).wpcf7OnloadRefill();$(n).wpcf7ToggleSubmit();$(n).find('.wpcf7-submit').wpcf7AjaxLoader();$(n).find('.wpcf7-acceptance').click(function(){$(n).wpcf7ToggleSubmit();});$(n).find('.wpcf7-exclusive-checkbox').each(function(i,n){$(n).find('input:checkbox').click(function(){$(n).find('input:checkbox').not(this).removeAttr('checked');});});$(n).find('.wpcf7-use-title-as-watermark').each(function(i,n){var input=$(n);input.val(input.attr('title'));input.addClass('watermark');input.focus(function(){if($(this).hasClass('watermark'))
$(this).val('').removeClass('watermark');});input.blur(function(){if(''==$(this).val())
$(this).val($(this).attr('title')).addClass('watermark');});});});}catch(e){}});$.fn.wpcf7AjaxLoader=function(){return this.each(function(){var loader=$('<img class="ajax-loader" />').attr({src:_wpcf7.loaderUrl,alt:_wpcf7.sending}).css('visibility','hidden');$(this).after(loader);});};$.fn.wpcf7ToggleSubmit=function(){return this.each(function(){var form=$(this);if(this.tagName.toLowerCase()!='form')
form=$(this).find('form').first();if(form.hasClass('wpcf7-acceptance-as-validation'))
return;var submit=form.find('input:submit');if(!submit.length)return;var acceptances=form.find('input:checkbox.wpcf7-acceptance');if(!acceptances.length)return;submit.removeAttr('disabled');acceptances.each(function(i,n){n=$(n);if(n.hasClass('wpcf7-invert')&&n.is(':checked')||!n.hasClass('wpcf7-invert')&&!n.is(':checked'))
submit.attr('disabled','disabled');});});};$.fn.wpcf7NotValidTip=function(message){return this.each(function(){var into=$(this);into.append('<span class="wpcf7-not-valid-tip">'+message+'</span>');$('span.wpcf7-not-valid-tip').mouseover(function(){$(this).fadeOut('fast');});into.find(':input').mouseover(function(){into.find('.wpcf7-not-valid-tip').not(':hidden').fadeOut('fast');});into.find(':input').focus(function(){into.find('.wpcf7-not-valid-tip').not(':hidden').fadeOut('fast');});});};$.fn.wpcf7OnloadRefill=function(){return this.each(function(){var url=$(this).attr('action');if(0<url.indexOf('#'))
url=url.substr(0,url.indexOf('#'));var id=$(this).find('input[name="_wpcf7"]').val();var unitTag=$(this).find('input[name="_wpcf7_unit_tag"]').val();$.getJSON(url,{_wpcf7_is_ajax_call:1,_wpcf7:id},function(data){if(data&&data.captcha)
$('#'+unitTag).wpcf7RefillCaptcha(data.captcha);if(data&&data.quiz)
$('#'+unitTag).wpcf7RefillQuiz(data.quiz);});});};$.fn.wpcf7RefillCaptcha=function(captcha){return this.each(function(){var form=$(this);$.each(captcha,function(i,n){form.find(':input[name="'+i+'"]').clearFields();form.find('img.wpcf7-captcha-'+i).attr('src',n);var match=/([0-9]+)\.(png|gif|jpeg)$/.exec(n);form.find('input:hidden[name="_wpcf7_captcha_challenge_'+i+'"]').attr('value',match[1]);});});};$.fn.wpcf7RefillQuiz=function(quiz){return this.each(function(){var form=$(this);$.each(quiz,function(i,n){form.find(':input[name="'+i+'"]').clearFields();form.find(':input[name="'+i+'"]').siblings('span.wpcf7-quiz-label').text(n[0]);form.find('input:hidden[name="_wpcf7_quiz_answer_'+i+'"]').attr('value',n[1]);});});};$.fn.wpcf7ClearResponseOutput=function(){return this.each(function(){$(this).find('div.wpcf7-response-output').hide().empty().removeClass('wpcf7-mail-sent-ok wpcf7-mail-sent-ng wpcf7-validation-errors wpcf7-spam-blocked');$(this).find('span.wpcf7-not-valid-tip').remove();$(this).find('img.ajax-loader').css({visibility:'hidden'});});};$.fn.wpcf7FillResponseOutput=function(message){return this.each(function(){$(this).find('div.wpcf7-response-output').append(message).slideDown('fast');});};})(jQuery);
