/**
* Styleswitch stylesheet switcher built on jQuery
* Under an Attribution, Share Alike License
* By Kelvin Luck ( http://www.kelvinluck.com/ )
**/

(function($)
{
	$(document).ready(function() {
		
		
		switchStyleBody('body2');
		switchStyleFoot('foot3');
		
	});

	function switchStyleBody(styleName)
	{
		$('link[@rel*=style][title]').each(function(i) 
		{
			if (this.getAttribute('title').substring(0,4) == styleName.substring(0,4)) this.disabled = true;
			if (this.getAttribute('title') == styleName) this.disabled = false;
		});
	
	}
	
	function switchStyleFoot(styleName)
	{
		$('link[@rel*=style][title]').each(function(i) 
		{
			if (this.getAttribute('title').substring(0,4) == styleName.substring(0,4)) this.disabled = true;
			if (this.getAttribute('title') == styleName) this.disabled = false;
		});
		
	}
})(jQuery);

