/* Create Namespace */ if (!window.Paperlit) { window.Paperlit = {}; } // if issueId or pageNumber are specified on hash, use them (this let direct urls work, e.g.: for sharing) Paperlit.windowHash = location.hash.substring(1, location.hash.length).split("/"); // Set reader general parameters Paperlit.publicationId = 'ilfoglio'; Paperlit.mainPublicationId = Paperlit.publicationId; Paperlit.issueId = ''; Paperlit.pageNumber = '1'; Paperlit.readerUrl = 'http://www.paperlit.com'; Paperlit.originHost = location.protocol + "//" + location.host; // Add iframe css Paperlit.head = document.getElementsByTagName("head")[0]; Paperlit.embedCss = document.createElement('link'); Paperlit.embedCss.type = "text/css"; Paperlit.embedCss.rel = "stylesheet"; Paperlit.embedCss.href = Paperlit.readerUrl + "/site/reader/css/embed.css"; Paperlit.head.appendChild(Paperlit.embedCss); // Add jQuery if not loaded (necessary for width() and height function() ) if (typeof jQuery == "undefined") document.write('