(function($){
	$.widget("sg.sg_contentswitch", {
		
		options: {
			state: 'CONTENT' //or BACKGROUND
		},
		
		_create: function(){
		},
		
		getState: function(){
			return this.options.state;
		},
		
		toggleState: function(){
			if(this.options.state == 'CONTENT'){
				this.options.state = 'BACKGROUND';
			}else{
				this.options.state = 'CONTENT';
			}
			this.element.trigger('sg_contentswitch.statechange', this.options.state);
		}
	});
}( jQuery ) );
