/*! Help & Manual WebHelp 3 Script functions
Copyright (c) 2015-2019 by Tim Green. All rights reserved. Contact tg@it-authoring.com
*/
function layouttables(){var c,a,e=300,g=$("div#ltTableWrapper"),d=$("div#pagewrapper"),h=$("div#ltTableNapkin");function b(){hmWebHelp.funcs.doPagePos.getPos();h.append($(c).show());h.show();d.fadeOut(300,function(){g.fadeIn(600);document.querySelector('meta[name="viewport"]').content="user-scalable=yes initial-scale=1.0 maximum-scale=5.0 minimum-scale=1.0 width=device-width"})}function f(i){g.fadeOut(e,function(){d.fadeIn(e*2,function(){a.after($(c));$(c).hide()});document.querySelector('meta[name="viewport"]').content="width=device-width initial-scale=1 maximum-scale=1 user-scalable=no minimum-scale=1";hmWebHelp.funcs.doPagePos.setPos(false)})}return function(i){switch(i.action){case"show":if(g.is(":hidden")){c=i.table;a=$(i.obj);hmFlags.layoutTable=true;b()}else{hmFlags.layoutTable=false;g.hide();d.show()}break;case"hide":if(g.is(":visible")){e=typeof i.instant=="undefined"||i.instant?0:300;f()}hmFlags.layoutTable=false;break}}}$("body").prepend('<div id="ltTableWrapper"><img src="./images/ZoomClose.png" id="closeLTable" width="32" height="32" border="0" onclick="hmWebHelp.funcs.toggleLayoutTable({action: \'hide\', instant: false})" /><div id="ltTableNapkin"></div></div>');$("div#ltTableWrapper").on(hmBrowser.touchmove,function(){$("img#closeLTable").css("opacity","0.2")}).on(hmBrowser.touchend,function(){$("img#closeLTable").css("opacity","1.0")});hmWebHelp.funcs.toggleLayoutTable=new layouttables();
