function CookiePage()
{
	var img = "";
	var img2 = "";
	var toolOpt = "";
	var browser = BrowserDetect.browser;
	var version = BrowserDetect.version;
	var os = BrowserDetect.OS;
	var i;
	
	function writeFireFoxRules(opt)
	{
	   document.write('<ol>');
	
		if(os == "Mac") {
			document.write('<li>Click on FireFox on the menu bar');
		}
	
		document.write('<li>Select <strong>' + opt + ' </strong>from the browser menu.');
	
		if(os == "Windows") {
			document.write('<li> Select <strong>Options_support.</strong> from the drop down menu.');
		}
	
		document.write('<li>Select <strong>Privacy</strong> from the button menu.');
		
		if(version < 2)
		{
			document.write('<li>Select the <strong>Cookie Tab</strong> to display your cookie settings.');
			document.write('<li>Check <strong>Allow sites to accept cookies</strong>');
		}
		else
		{
			document.write('<li>Check <strong>Accept cookies from sites</strong>');
		}
		document.write('</ol>');
	}
	
	function writeInstructions(optional)
	{
		if(optional == false) {
			document.write('Please follow the instructions below to ensure proper access to this site.');
		} else {
			document.write('Please consult your web browser help for information on allowing cookies.');
		}
		document.write('<br><br>');
		document.write('Please seek help from your system administrator if you are ');
		document.write('unable to make these changes yourself or email <a href=mailto:support@dirxion.com>support@dirxion.com</a>.');
		document.write('<br><br>');
	}
	
	function writeImg()
	{
 		if(img != "") {
 	  		document.write('<br>See image below for more details.<br><br>');
			document.write('<img alt="Cookie Windows" src="' + img + '" />');
		}
	}
	
	function PlatformPref() 
	{
		if(os == "Mac") {
			toolOpt = "Preferences_support."
			if(browser == "Explorer") {
				img = "_support/images/ie5osx.gif";
				writeInstructions(false);
				document.write('<ol>');
				document.write('<li>Click on Internet Explorer on the menu bar');
				document.write('<li>Select Prefrences_support.');
				document.write('<li>Select <strong>Cookies</strong> from <strong>Receiving Files</strong>');
				document.write('<li>Set <strong>Receiving Cookies</strong> to accept cookies.');
				document.write('</ol>');
			} else if (browser == "Safari") {
				img = "_support/images/safariosx.gif";
				writeInstructions(false);
				document.write('<ol>');
				document.write('<li>Click on Safari on the menu bar');
				document.write('<li>Select Prefrences_support.');
				document.write('<li>Select <strong>Security</strong> from the button menu.  Go to next step if the security window has already been displayed.');
				document.write('<li>Make sure <strong>Accept Cookies</strong> is set to <strong>always</strong>.');
				document.write('</ol>');
			} else if (browser == "Firefox") {
				img = "_support/images/firefxosx.gif";
				writeInstructions(false);
				writeFireFoxRules(toolOpt);
			} else {
				writeInstructions(true);
		}
	   } else if (os == "Windows") {
			toolOpt = "Tools";
			if (browser == "Explorer") {
				if(version >= 7)
					img = "_support/images/ie7win_fp.gif";
				else
					img = "_support/images/iewin_fp.gif";

				writeInstructions(false);
				document.write('<ol>');
				document.write('<li>Select ' + toolOpt);
				document.write('<li>Select <strong>Internet Options</strong> from the displayed menu.');
				document.write('<li>Select the <strong>Privacy</strong> tab on the displayed window.');
				document.write('<li>Select the <strong>Advance_support.</strong> button to display your cookie settings.');
				document.write('<li>Make sure <strong>First Party Cookies</strong> are accepted.');
				document.write('</ol>');
			} else if (browser == "Firefox") {
				if(version >= 2)
				{
					img = "_support/images/firefox2win.gif";
					writeInstructions(false);
					writeFireFoxRules(toolOpt);
				}
				else
				{
					img = "_support/images/firefoxwin_default.gif";
					writeInstructions(false);
					writeFireFoxRules(toolOpt);
				}
			} else if (browser == "Opera") {
				img =  "_support/images/operawin_default.gif";
				writeInstructions(false);
				document.write('<ol>');
				document.write('<li>Select ' + toolOpt);
				document.write('<li>Select <strong>Preferences</strong> from the displayed menu.');
				document.write('<li>Select the <strong>Advanced</strong> tab on the displayed window.');
				document.write('<li>Select <strong>Cookies</strong> option from the list on the left.');
				document.write('<li>Check <strong>Accept Cookies</strong>.');
				document.write('</ol>');
			} else if (browser == "Safari") {
				img = "_support/images/safariwin.gif";
				writeInstructions(false);
				document.write('<ol>');
				document.write('<li>Click on Edit on the menu bar');
				document.write('<li>Select Prefrences_support.');
				document.write('<li>Select <strong>Security</strong> from the button menu.  Go to next step if the security window has already been displayed.');
				document.write('<li>Make sure <strong>Accept Cookies</strong> is set to <strong>always</strong>.');
				document.write('</ol>');
			} else if (browser == "Netscape") {
				img = "_support/images/netscape9win.gif";
				writeInstructions(false);
				writeFireFoxRules(toolOpt);
			} else {
				writeInstructions(true);
			}
		}
	}
	
	this.writePage = function()
	{
		for(i=0; i <= 0; i++)
		{
		   document.write('<table width="100%" border="0" cellpadding="0" cellspacing="0">');
			document.write('<tr><td class="support">');
			document.write('Cookies are required to use the telephone book library accessible through this web site. ');
			document.write('The minimum requirement is to allow first party or originating site cookies. ');  
			document.write('The suggested changes are generally your browsers default settings. ');
			PlatformPref();
			document.write('</td></tr>');
			if(img != "") {
				document.write('<tr><td align="center">');
				writeImg();
				document.write('</td></tr>');
			}
			document.write('</table>');
		}
	}

	
	writePage();
	document.write('<form class="support">');
	document.write('	<input name="buttonName1" type="button" value="Click Here To Reload the Page" onclick="window.location.reload()">');
	document.write('</form>');
}	

