/************************************************************************************
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='#' title='rimpicciolire i caratteri accesskey q' accesskey='Q' class='minor' onclick='addstyle(\"body\",\"font-size: 75%\");return false;'>A</a> <a href='#' title='caratteri normali accesskey w'  accesskey='W' class='medio' onclick='addstyle(\"body\",\"font-size: 100%\");return false;'>A</a> <a href='#' title='ingrandire i caratteri accesskey e'  accesskey='E' class='maior' onclick='addstyle(\"body\",\"font-size: 125%\");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('Abilitare cookies per ridimensionare caratteri');
	}
}	