title: Creating a javascript object to emulate a class and static methods?
body: <p>Can anyone help? I have the following object in javascript... from what i understand each "INSTANCE" of my calendar will have its own variables.</p>
  
  <p>My question is i need to insert a method/function name called "InitilizeHolidays" this needs to add to an array but the details need to be same in all instances ... I was thinking about some kind of STATIC method call if this is possible ..</p>
  
  <p>Of course if i insert this on "prototype" its going to be specific to each instance and i need for it to effect all instances.</p>
  
  <p>Is it possible to initilise variables that effect ALL instances and ONLY specific instances? Where must i insert these?</p>
  
  <p>Any help really appreciated</p>
  
  <pre><code>function Calendar() {
      // I presume variables set here are available to "ALL" instances
  
  }
  
  Calendar.prototype = {
      constructor: Calendar,
      getDateTest: function() {
          return "date test";
      },
      getDateTest2: function() {
          return "date test";
      }
  };
  </code></pre>