/*
This is an include that inserts the HTML for link to this page button.
This button is entirely reliant on javascript being active to function, 
which is why it's okay that we use javascript to include the HTML.
*/

//if defined, we need to give this linktopage instance a unique id so that we can have multiple versions of this on the same page
var uniqueID = "";
if (typeof(linkToPageID) != "undefined") { 
	uniqueID = "ID" + linkToPageID;
}

document.write('<scr' + 'ipt type="text/javascript" src="/js/linktopage.js"></scr' + 'ipt>');
document.write('<div id="linktopage-header' + uniqueID + '" class="linktopage">');
document.write('	<img id="linktopage-header-button' + uniqueID + '" class="linktopage-button" src="/images/buttons/linktopage.gif" alt="Link to this page" onclick="triggerLinktopage(\'' + uniqueID + '\');" />');
document.write('	<div id="linktopage-header-content' + uniqueID + '" class="linktopage-content">');
document.write('		<img src="/images/icons/close-window.gif" alt="" onclick="triggerLinktopage(\'' + uniqueID + '\');" class="linktopage-close" />');
document.write('		<img src="/images/linktopage-text.gif" alt="" class="linktopage-text" />');
document.write('		<input type="text" value="http://www.neighborhoodscout.com" id="linktopage-header-url' + uniqueID + '" class="linktopage-url" title="Click in this box to get the complete URL to link directly to this page." />');
document.write('	</div>');
document.write('</div>');