var Site = {
	init: function(){
		Site.styleChanger();
		Site.skinChanger();
		Site.fontsizeChanger();
	},
	start:function(){
	},
	styleChanger:function(){
		//add clicks
		$('cssDark').addEvent('click', function() {
			Cookie.set("style", "dark", {duration: 365}, {path: "/"});
			new Asset.css('gfx/gui/stylesheet1.css');
			navOverColor = '#999999';
			if(window.ie6){
				new Element('img').setProperty('src','bg-top-dark.gif').injectInside('head');
			}
		});
		$('cssLight').addEvent('click', function() {
			Cookie.set("style", "light", {duration: 365}, {path: "/"});
			new Asset.css('gfx/gui/stylesheet2.css');
			navOverColor = '#000000';
			if(window.ie6){
				new Element('img').setProperty('src','bg-top-light.gif').injectInside('head');
			}
		});
		$('cssOrange').addEvent('click', function() {
			Cookie.set("style", "orange", {duration: 365}, {path: "/"});
			new Asset.css('gfx/gui/stylesheet3.css');
			navOverColor = '#000000';
			if(window.ie6){
				new Element('img').setProperty('src','/gfx/gui/bg-top-orange.gif').injectInside('head');
			}
		});
		$('cssCyan').addEvent('click', function() {
			Cookie.set("style", "cyan", {duration: 365}, {path: "/"});
			new Asset.css('gfx/gui/stylesheet4.css');
			navOverColor = '#000000';
			if(window.ie6){
				new Element('img').setProperty('src','/gfx/gui/bg-top-cyan.gif').injectInside('head');
			}
		});
		//check for a cookie and set the style
		if(Cookie.get("style") == "dark"){
			new Asset.css('gfx/gui/stylesheet1.css');
			navOverColor = '#000000';
		}else if(Cookie.get("style") == "orange"){
			new Asset.css('gfx/gui/stylesheet3.css');
			navOverColor = '#000000';
		}else if(Cookie.get("style") == "cyan"){
			new Asset.css('gfx/gui/stylesheet4.css');
			navOverColor = '#000000';
		}else{
			//set to the default of dark
			new Asset.css('gfx/gui/stylesheet2.css');
			navOverColor = '#999999';
		}
	},



	skinChanger:function(){
		//add clicks
		$('cssFB').addEvent('click', function() {
			Cookie.set("skin", "fb", {duration: 365}, {path: "/"});
			new Asset.css('gfx/gui/stylesheetfb.css');
			navOverColor = '#999999';
		});
		$('cssRound').addEvent('click', function() {
			Cookie.set("skin", "round", {duration: 365}, {path: "/"});
			new Asset.css('gfx/gui/stylesheetround.css');
			navOverColor = '#000000';
		});
		$('cssFast').addEvent('click', function() {
			Cookie.set("skin", "fast", {duration: 365}, {path: "/"});
			new Asset.css('gfx/gui/stylesheetfast.css');
			navOverColor = '#000000';
		});
		//check for a cookie and set the style
		if(Cookie.get("skin") == "fb"){
			new Asset.css('gfx/gui/stylesheetfb.css');
			navOverColor = '#000000';
		}else if(Cookie.get("skin") == "round"){
			new Asset.css('gfx/gui/stylesheetround.css');
			navOverColor = '#000000';
		}else{
			//set to the default of round
			new Asset.css('gfx/gui/stylesheetfast.css');
			navOverColor = '#999999';
		}
	},



fontsizeChanger:function(){
		//add clicks
		$('cssSmall').addEvent('click', function() {
			Cookie.set("fontsize", "small", {duration: 365}, {path: "/"});
			new Asset.css('gfx/gui/stylesheetsmall.css');
			navOverColor = '#999999';
		});
		$('cssLarge').addEvent('click', function() {
			Cookie.set("fontsize", "large", {duration: 365}, {path: "/"});
			new Asset.css('gfx/gui/stylesheetlarge.css');
			navOverColor = '#000000';
		});
		$('cssXLarge').addEvent('click', function() {
			Cookie.set("fontsize", "xlarge", {duration: 365}, {path: "/"});
			new Asset.css('gfx/gui/stylesheetxlarge.css');
			navOverColor = '#000000';
		});
		//check for a cookie and set the style
		if(Cookie.get("fontsize") == "small"){
			new Asset.css('gfx/gui/stylesheetsmall.css');
			navOverColor = '#000000';
		}else if(Cookie.get("fontsize") == "xlarge"){
			new Asset.css('gfx/gui/stylesheetxlarge.css');
			navOverColor = '#000000';
		}else{
			//set to the default font to large
			new Asset.css('gfx/gui/stylesheetlarge.css');
			navOverColor = '#999999';
		}
	}
};
window.addEvent('domready', Site.init);
window.addEvent('load', Site.start);

