/************************************************************************************
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='Original' onclick='addstyle(\"body\",\"font-size: 100%\");return false;'><img src='fileadmin/templates/images/zoom_minus.gif' border=0></a><a title='Text-Gr&ouml;&szlig;e: 100% (Standard)' href='#' style='font-size:10px;' onclick='addstyle(\"body\",\"font-size: 100%\");return false;'>a</a><a title='Text-Gr&ouml;&szlig;e: 130%' href='#' style='font-size:13px;' onclick='addstyle(\"body\",\"font-size: 130%\");return false;'>a</a><a title='Text-Gr&ouml;&szlig;e: 160%' href='#' style='font-size:15px;' onclick='addstyle(\"body\",\"font-size: 160%\");return false;'>a</a><a href='#' title='Maximum' onclick='addstyle(\"body\",\"font-size: 160%\");return false;'><img src='fileadmin/templates/images/zoom_plus.gif' border=0></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');
	}
}	