// DOM ready!
$(function(){
  
  // Prepare options. The most important thing is that
  // you need call the StyleSwichter() plugin function
  // when the DOM is ready. The plugin find the cookie
  // and establish the appropiate style. 
  
  var options={
	linkTitle: 'styleswichter',
	cookieName: 'selected-style'
  };
  $.fn.StyleSwichter(options);
  
});

// This is an auxiliar function. You can use directly the
// $.fn.StyleSwichter() function, but, in this example we
// use this auxiliar function to aid.

// Note that we use all the available options here. The
// most important here are the "css path", the CSS to be
// swichting.

// The plugin save the selection in a cookie, and use this
// after (see above) then the DOM of this page is ready.

function SetStyle(aCssPath){
  var options={
	cookieDays: 30,
	cssPath: aCssPath,
	linkTitle: 'styleswichter',
	cookieName: 'selected-style'
  };      
  // Set the appropiate style
  $.fn.StyleSwichter(options);
}
