/*startmeta
  name: Demo script
  title: This would be the documentation page for the demo script
  date: 11/05/2008
  description: This is just a demo script that shows you all the options you have using Tutorialbuilder
  tags: tag1,tag2,tag3
  version:2.0
  authors:Christian Heilmann (http://wait-till-i.com),John Doe
  license:BSD license (http://wait-till-i.com/license.txt)
endmeta*/
/*
We're using the "revealing module pattern":http://www.wait-till-i.com/2007/08/22/again-with-the-module-pattern-reveal-something-to-the-world/ to define the main script. In this case, the main module name will be #helloWorld#.
*/
helloWorld = function(){
/*
You can use both lists and definition lists:

startdeflist
- #foo#
-- this is a bar
- #CSS# 
-- An object that contains CSS information
enddeflist

startlist
* list item 1
* list item 2
* list item 3
endlist

Text surrounded by linebreaks will be turned into paragraphs.

Each word enclosed in hashes will become #code#, words in asterisks will become *strong*.

*/

  var config = {
    foo:'bar',
    CSS:{
      ids:{
        menu:'menu',
        footer:'footer'
      },
      classes:{
        demo:'demo',
        highlight:'current'
      }
    }
  };
/*
Any comment in the code will intercept the code display and turned into explanations
*/  
  function init(){
    if(window.console){
      console.log('init was here');
      alert('script executed!')
    }
  };
/*

If you want to highlight a certain line, add a double slash followed by a star at the end of it. 

*/
  function otherStuff(){
    if(window.console){
      console.log('this would be other stuff'); // * 
    }
  };
  return {
    init:init
  };
/*

You can add links by adding "words in quotes followed by a colon and the url":http://example.com.

*/
}();
helloWorld.init();