<?php 
/* Theme Colour Selection */
function theme_colour_styles()
	{
		if(isset($_GET["use_colour"])) :
			add_action('init', 'set_template_colour'); ?>
			<link href="<?php bloginfo('template_directory'); ?>/color-styles/<?php echo $_GET["use_colour"]; ?>/style.css" rel="stylesheet" type="text/css" />
		<?php elseif(isset($_COOKIE["ocmx_theme_style"])) :?>
			<link href="<?php bloginfo('template_directory'); ?>/color-styles/<?php echo $_COOKIE["ocmx_theme_style"]; ?>/style.css" rel="stylesheet" type="text/css" />
		<?php elseif(get_option("ocmx_theme_style") !== "") : ?>
			<link href="<?php bloginfo('template_directory'); ?>/color-styles/<?php echo get_option("ocmx_theme_style"); ?>/style.css" rel="stylesheet" type="text/css" />
		<?php endif;  
	}
function set_template_colour()
	{setcookie("ocmx_theme_style", $_GET["use_colour"], 0, COOKIEPATH, COOKIE_DOMAIN);} ?>