/* This script automates the process of setting the home page in popular web browsers */

// If it's Internet Explorer, use automatic link
if (document.all){
	document.write('<a href="javascript:history.go(0);" onclick="this.style.behavior=\'url(#default#homepage)\';this.setHomePage(\'http://www.mansfieldct.org\');">');
	document.write('Click here to make www.MansfieldCT.org your homepage</font></a>');
}

// If it's Netscape 6, tell user to drag link onto Home button
else if (document.getElementById){
	document.write('<a href="/">Drag this link onto your Home button to make this your Home Page.</a>');
}

// If it's Netscape 4 or lower, give instructions to set Home Page
else if (document.layers){
	document.write('<b>Make this site your home page:</b><br>- Go to <b>Preferences</b> in the <b>Edit</b> Menu.<br>- Choose <b>Navigator</b> from the list on the left.<br>- Click on the <b>"Use Current Page"</b> button.');
}

// If it's any other browser, for which I don't know the specifications of home paging, display instructions
else {
	//document.write('<b>Make this site your home page:</b><br>- Go to <b>Preferences</b> in the <b>Edit</b> Menu.<br>- Choose <b>Navigator</b> from the list on the left.<br>- Click on the <b>"Use Current Page"</b> button.');
	document.write('<b>Make MansfieldCT.org your home page and check back for new information often!');
}
