Why don't you figure it out to a degree, then we can help you once you've got some code? Because if you just want theme scripts, you can look at hotscripts.com or any other php script repository - we're here to help you learn, not to write your code for you.
You'll want to come up with a template scheme - I used to do a directory ,templates, with the themes inside it, then I'd do something like this:
<?PHP
if (!isset($_SESSION['theme'])) {
// default
$_SESSION['theme'] = 'blue1';
}
$theme = $_SESSION['theme']
// later on in the HTML/CSS styles
echo '<link href="templates/'.$theme.'.css" rel="stylesheet" type="text/css">';
?>
Go from there and we can help after that, if that doesn't do it entirely for you.