/************************************************************************************

Dynamic User Preference Script.

Copyright (C) 2005 Tony Aslett 

 

http://www.csscreator.com/

Version 1.6

updated 28 July 2005



This script enables users with JavaScript and cookies enabled to select 

different styles to be applied to your site.

For more info see http://www.csscreator.com/generator/userpref.php



Please leave this notice at the top of the script.

-----------------------------------------------------------------------------------------------------------------------------

This program is free software; you can redistribute it and/or

modify it under the terms of the GNU General Public License

as published by the Free Software Foundation; either version 2

of the License, or (at your option) any later version.



This program is distributed in the hope that it will be useful,

but WITHOUT ANY WARRANTY; without even the implied warranty of

MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the

GNU General Public License for more details. http://www.gnu.org/copyleft/gpl.html

************************************************************************************/



/* This display the controls */

function displayPreferenceControls(){

	/* Check if this will work before displaying controls */

	if(navigator.cookieEnabled && document.styleSheets && (document.styleSheets[0].addRule || document.styleSheets[0].insertRule)){

		document.write(

		"<a href='#' style='font-size: 1em;' onclick='addstyle(\"body\",\"font-size: 1em\");return false;'>A</a> <a href='#' style='font-size: 1.2em' onclick='addstyle(\"body\",\"font-size: 1.2em\");return false;'>A</a> <a href='#' style='font-size: 1.4em' onclick='addstyle(\"body\",\"font-size: 1.4em\");return false;'>A</a>"

		);

	}else{

		/* if their browser supports JavaScript but not some of the functions or cookies are disabled then you can output alternative content here.*/

		document.write('AAA');

	}

}	
