function WPtouchAjax(t,e,n){var o={action:"wptouch_client_ajax",wptouch_action:t,wptouch_nonce:wptouchMain.security_nonce};for(name in e)o[name]=e[name];jQuery.post(wptouchMain.ajaxurl,o,function(t){n(t)})}function doWPtouchReady(){wptouchMain.query_vars=jQuery.parseJSON(wptouchMain.query_vars);var e=jQuery(".wptouch-sc-content");if(e.length){var t={post_id:e.attr("data-post-id"),page:e.attr("data-page"),post_content:jQuery(".wptouch-orig-content").html(),post_nonce:wptouchMain.security_nonce};jQuery.post(wptouchMain.current_shortcode_url+"¤t_time="+jQuery.now(),t,function(t){e.html(t),jQuery(document).trigger("wptouch_ajax_content_loaded")})}}jQuery("#content table").each(function(){parentElement=jQuery(this).parent("p,div"),!1===parentElement.hasClass("post")?parentElement.addClass("table-parent"):jQuery(this).wrap('
')}),jQuery("#footer .back-to-top").click(function(t){t.preventDefault(),jQuery(window).scrollTop(0)}),jQuery(document).ready(function(){doWPtouchReady()});