﻿jQuery.styleSheetSwitcher = jQuery.fn.styleSheetSwitcher = function(options) {
	/// <summary>
	/// 	Add stylesheet switcher.
	/// </summary>
	/// <param name="options" type="Object" optional="true">
	/// 	Extra options that can override the defaultItem settings (optional).
	/// 	 1. defaultItem;
	/// 	 2. classInclude;
	/// 	 3. classExclude;
	/// 	 4. classCurrent;
	/// 	 5. title;
	/// 	 6. cookie;
	/// 	 7. onSwitch;
	/// </param>
	/// <field name="defaultItem" type="String" type="Number" optional="true">
	///     The begin stylesheet. Value must match title or ordered zero-based number.
	/// </field>
	/// <field name="classInclude" type="String" optional="true">
	///     Only include stylesheets that contains this class.
	/// </field>
	/// <field name="classExclude" type="String" optional="true">
	///     Exclude stylesheets that contains this class.
	/// </field>
	/// <field name="classCurrent" type="String" optional="true">
	///     Class to indicate current selected stylesheet.
	/// </field>
	/// <field name="title" type="String" optional="true">
	///     Title of the links in menu.
	/// </field>
	/// <field name="cookie" type="Boolean" optional="true">
	///     Using cookie for saving stylesheet.
	/// </field>
	/// <field name="onSwitch" type="Function" variable="this" variable="title" optional="true">
	///     Function executed when switched from stylesheet.
	/// </field>
	/// <returns type="jQuery">
	/// 	Returns a list of links with all stylesheet titles.
	/// <returns/>
};

jQuery.fn.styleSheetSwitcher.defaults = {
	/// <summary>
	/// 	Default settings for StyleSheetSwitcher.
	/// </summary>
	/// <field name="defaultItem" type="String" type="Number" optional="true">
	///     The begin stylesheet. Value must match title or ordered zero-based number.
	/// </field>
	/// <field name="classInclude" type="String" optional="true">
	///     Only include stylesheets that contains this class.
	/// </field>
	/// <field name="classExclude" type="String" optional="true">
	///     Exclude stylesheets that contains this class.
	/// </field>
	/// <field name="classCurrent" type="String" optional="true">
	///     Class to indicate current selected stylesheet.
	/// </field>
	/// <field name="title" type="String" optional="true">
	///     Title of the links in menu.
	/// </field>
	/// <field name="cookie" type="Boolean" optional="true">
	///     Using cookie for saving stylesheet.
	/// </field>
	/// <field name="onSwitch" type="Function" variable="this" variable="title" optional="true">
	///     Function executed when switched from stylesheet.
	/// </field>
	defaultItem: null,
	classInclude: null,
	classExclude: null,
	classCurrent: null,
	title: null,
	cookie: null,
	onSwitch: function(title) {
		/// <summary>
		/// 	An event occurred when manual switching of stylesheet.
		/// </summary>
		/// <param name="this" type="jQuery" optional="true">
		/// 	Returns the clicked item in the menu.
		/// </param>
		/// <param name="title" type="String" optional="true">
		/// 	Returns the name of the selected stylesheet.
		/// </param>
	}
};