(function(){ try{ template = document.createElement('div'); template.innerHTML = ''; document.head.appendChild(template); ; var relatedurl = '//related.queryly.com/json.aspx?queryly_key=' + queryly.QuerylyKey + '&callback=queryly.QuerylyRelatedCallback' + '&pageurl=' + encodeURIComponent('') + '&batchsize=' + queryly.related.batchSize + '&decay=' + queryly.related.decay + "&extendedDataFields=" + encodeURIComponent(queryly.extendedDataFields); if (typeof queryly.related.title != 'undefined' && queryly.related.title != ''){ var relatedurl = '//related.queryly.com/json.aspx?queryly_key=' + queryly.QuerylyKey + '&callback=queryly.QuerylyRelatedCallback' + '&batchsize=' + queryly.related.batchSize + '&decay=' + queryly.related.decay + "&extendedDataFields=" + encodeURIComponent(queryly.extendedDataFields) + '&title=' + encodeURIComponent(queryly.related.title); if (typeof queryly.related.text != 'undefined' && queryly.related.text != ''){ if (queryly.related.text.length < 512){ relatedurl = relatedurl + '&text=' + encodeURIComponent(queryly.related.text); } else{ relatedurl = relatedurl + '&text=' + encodeURIComponent(queryly.related.text.substring(0,512)); } } } if (queryly.related.feednames != ''){ relatedurl = relatedurl + '&feednames=' + encodeURIComponent(queryly.related.feednames) } if (typeof queryly.related.facetedkey != 'undefined' && typeof queryly.related.facetedvalue != 'undefined'){ relatedurl = relatedurl + '&facetedkey=' + encodeURIComponent(queryly.related.facetedkey) + "&facetedvalue=" + encodeURIComponent(queryly.related.facetedvalue); } queryly.util.loadScript(relatedurl, function () { }); } catch(e){} })();