$styleSheets = array(); // DEFINE STYLESHEETS $styleSheets[0]["text"]='Accessibility'; $styleSheets[0]["title"]='Click here to set ada white'; $styleSheets[0]["class"]='ada-default'; $styleSheets[0]["sheet"]=''; $styleSheets[1]["text"]='Default'; $styleSheets[1]["title"]='Click here to set default'; $styleSheets[1]["class"]='ada'; $styleSheets[1]["sheet"]=''; $styleSheets[2]["text"]='White'; $styleSheets[2]["title"]='Click here to set ada white'; $styleSheets[2]["class"]='ada ada-white'; $styleSheets[2]["sheet"]=''; $styleSheets[3]["text"]='Black'; $styleSheets[3]["title"]='Click here to set ada black'; $styleSheets[3]["class"]='ada ada-black'; $styleSheets[3]["sheet"]=''; $styleSheets[4]["text"]='Transparent'; $styleSheets[4]["title"]='Click here to set transparent'; $styleSheets[4]["class"]='ada ada-transparent'; $styleSheets[4]["sheet"]=''; // DEFAULT STYLESHEET $defaultStyleSheet=4; // SET STYLESHEET if(!isset($_COOKIE["STYLE"])){ if(isset($_SESSION["STYLE"])){ echo $styleSheets[$_SESSION["STYLE"]]["sheet"]; }else{ echo $styleSheets[$defaultStyleSheet]["sheet"]; } }else{ echo $styleSheets[$_COOKIE["STYLE"]]["sheet"]; } ?>