<!--

var agt = navigator.userAgent.toLowerCase() // Make easier for testing
var isNav4, isIE4, isIE6, isMac, isNav6, isFirefox, isOpera;

this.major = parseInt(navigator.appVersion)
this.nav = ((agt.indexOf('mozilla')!= -1) && (agt.indexOf('spoofer')== -1) && (agt.indexOf('compatible') == -1))
this.ie = (agt.indexOf("msie") != -1)
this.ie6 = (agt.indexOf("msie 6") != -1)
this.firefox = (agt.indexOf("firefox") != -1)
this.opera = (agt.indexOf("opera") != -1)

isNav4 = (this.nav && (this.major == 4))
isNav6 = (this.nav && (this.major >= 5))
isIE4 = (this.ie && (this.major == 4))
isIE6 = (this.ie6)
isMac = (agt.indexOf("mac")!= -1)
isFirefox = (this.firefox)
isOpera = (this.opera)

// document.writeln(agt + "<br>IE: " + isIE4 + "<br>IE6: " + isIE6+ "<br>Opera: " + isOpera)

if (isMac) {
	
	document.writeln('<ul>');
	document.writeln('<li>In the menu bar above - click on "Edit" then "Preferences"</li>');
	document.writeln('<li>In the dialog box that appears click on "Cookies" in the left-hand list (under "Receiving Files")</li>');
	document.writeln('<li>Ensure that "When receiving cookies" is set to "Never ask"</li>');
	document.writeln('<li>Click "OK" to shut the "Preferences" dialog box</li>');
	document.writeln('<li>Cookies should now be enabled.</li>');
	document.writeln('</ul>');
	
} 
else if (isMac != true) {

	if (((isIE6) || (isIE4)) && (isOpera != true)) {
		if (isIE6) {
			document.writeln('<ul>');
			document.writeln('<li>In the menu bar above - click on "Tools" then "Internet Options"</li>');
			document.writeln('<li>In the dialog box that appears highlight the "Privacy" tab</li>');
			document.writeln('<li>Ensure that your privacy settings are NOT set to <b>Block All Cookies</b>.</li>');
			document.writeln('<li>You can change your privacy settings by dragging the slider bar on the left-hand side of the dialog box up or down.');
			document.writeln('<li>Close the "Internet Options" dialog box by clicking "OK"</li>');
			document.writeln('<li>Cookies should now be enabled.</li>');
			document.writeln('</ul>');
		} else {
			document.writeln('<ul>');
			document.writeln('<li>In the menu bar above - click on "Tools" then "Internet Options"</li>');
			document.writeln('<li>In the dialog box that appears highlight the "Security" tab</li>');
			document.writeln('<li>If the internet icon is not selected, please select it</li>');
			document.writeln('<li>Click the "Custom Level" button in the "Security level for this zone" panel</li>');
			document.writeln('<li>In the next menu that appears scroll down the list of options until you reach');
			document.writeln('"Allow per session cookes (not stored)"</li>');
			document.writeln('<li>Ensure this option is enabled. Then click "OK"</li>');
			document.writeln('<li>A warning dialog box will appear asking if you wish to change your security settings - click "Yes"</li>');
			document.writeln('<li>Close the "Internet Options" dialog box by clicking "OK"</li>');
			document.writeln('<li>Cookies should now be enabled.</li>');
			document.writeln('</ul>');
		}
	} else if (isFirefox){
		document.writeln('<ul>');
		document.writeln('<li>In the menu bar above - click on "Tools" then "Options"</li>');
		document.writeln('<li>In the dialog box that appears click on the "Privacy" option</li>');
		document.writeln('<li>In the Privacy Settings highlight the "Cookies" tab</li>');
		document.writeln('<li>Ensure "Allow sites to set cookies" is ticked.</li>');
		document.writeln('<li>Close the "Options" dialog box by clicking "OK"</li>');
		document.writeln('<li>Cookies should now be enabled.</li>');
		document.writeln('</ul>');
	} else if (isOpera){
		document.writeln('<ul>');
		document.writeln('<li>In the menu bar above - click on "Tools" then "Preferences"</li>');
		document.writeln('<li>In the dialog box that appears click on the "Advanced" tab</li>');
		document.writeln('<li>In the list of options on the left-hand side highlight "Cookies"</li>');
		document.writeln('<li>Under the "Normal cookies" heading, ensure that "Accept all cookies" is selected.</li>');
		document.writeln('<li>Close the "Preferences" dialog box by clicking "OK"</li>');
		document.writeln('<li>Cookies should now be enabled.</li>');
		document.writeln('</ul>');
	} else {
		document.writeln("Sorry, we can't determine your browser. Please consult your browser's help file ");
		document.writeln("for more information on how to enable cookies.");
	}

}
else {
	// Unknown use Internet Explorer instructions.
	document.writeln("Sorry, we can't determine your browser version. Please consult your browser's help file ");
	document.writeln("for more information on how to enable cookies.");

}
//-->