" + url + "";var copyHolder = $('', {html: getSelectionHtml() + copyFooter,style: {position: 'absolute',left: '-99999px'}});$('body').append(copyHolder);sel.selectAllChildren(copyHolder[0]);window.setTimeout(function() {copyHolder.remove();}, 0);});function getSelectionHtml() {var html = "";if (typeof window.getSelection != "undefined") {var sel = window.getSelection();if (sel.rangeCount) {var container = document.createElement("div");for (var i = 0, len = sel.rangeCount; i < len; ++i) {container.appendChild(sel.getRangeAt(i).cloneContents());}html = container.innerHTML;}} else if (typeof document.selection != "undefined") {if (document.selection.type == "Text") {html = document.selection.createRange().htmlText;}}return html;}