// ..\..\Js\Lib\Core.cs

// This is the core JS interface class
// Class 'Core'
var Core = new Class({
    
    
    
    end: function() {}
});
// Static functions
Core.Alert = function(o) // object o - returns void
{
    
    alert(o);
    
};




// EOF ..\..\Js\Lib\Core.cs


// ..\..\Js\Lib\Math.cs

// Math-based classes
// Class 'JsMath'
var JsMath = new Class({
    
    
    
    end: function() {}
});
// Static functions
JsMath.RandomInt = function(max) // int max - returns int
{
    
    return Math.floor(Math.random() * (max + 1));
    
};
JsMath.Random = function() // returns double
{
    
    return Math.random();
    
};
JsMath.Chance = function(chance) // double chance - returns bool
{
    
    return (Math.random() < chance);
    
};




// EOF ..\..\Js\Lib\Math.cs


// ..\..\Js\Lib\MooElement.cs

// This represents a mootools element
// Class 'MooElement'
var MooElement = new Class({
    
    /*string*/   TagType: "",
    /*string*/   Id: "",
    /*object*/   E: 0,
    
    Init: function(id) // string id - returns void
    {
        
        this.Id = id;
        this.E = $(id);
        this.E.MooElement = this;
        
    },
    SetTag: function(o) // object o - returns void
    {
        
        this.E.tag = o;
        
    },
    GetTag: function() // returns object
    {
        
        return this.E.tag;
        
    },
    inject: function(el) // MooElement el - returns void
    {
        
        this.E.inject(el.E);
        
    },
    inject: function(el, position) // MooElement el, string position - returns void
    {
        
        this.E.inject(el.E, position);
        
    },
    injectAfter: function(el) // MooElement el - returns void
    {
        
        this.inject(el, "after");
        
    },
    injectBefore: function(el) // MooElement el - returns void
    {
        
        this.inject(el, "before");
        
    },
    Set: function(attribute, value) // string attribute, string value - returns void
    {
        
        this.E.set(attribute, value);
        
    },
    SetHtml: function(html) // string html - returns void
    {
        
        this.Set("html", html);
        
    },
    AddEvent: function(eventName, f) // string eventName, EventDelegate f - returns void
    {
        
        this.E.addEvent(eventName, f);
        
    },
    GetSelectedText: function() // returns string
    {
        
        return this.E.options[this.E.selectedIndex].text;
        
    },
    
    
    end: function() {}
});
// Static functions
MooElement.Get = function(id) // string id - returns MooElement
{
    
    var e = new MooElement();
    e.Init(id);
    return e;
    
};
MooElement.Create = function(tag) // string tag - returns MooElement
{
    
    var e = new MooElement();
    e.TagType = tag;
    e.E = new Element(tag);
    e.E.MooElement = e;
    return e;
    
};




// EOF ..\..\Js\Lib\MooElement.cs


// ..\..\Js\Lib\MooList.cs

/// Similar to ArrayList.
/// A simple and lightweight array wrapper. 
// Class 'MooList'
var MooList = new Class({
    
    //public object Array;
    A: [],
    GetLength: function() // returns int
    {
        
        return this.A.length;
        
    },
    Add: function(o) // object o - returns void
    {
        
        this.A[this.A.length] = o;
        
    },
    Get: function(x) // int x - returns object
    {
        
        return this.A[x];
        
    },
    
    
    end: function() {}
});
// Static functions




// EOF ..\..\Js\Lib\MooList.cs


// ..\..\Js\Lib\Timer.cs

// Class 'Timer'
var Timer = new Class({
    
    
    
    end: function() {}
});
// Static functions
Timer.Start = function(ms, func) // int ms, EventDelegate func - returns void
{
    
    setTimeout(func, ms);
    
};




// EOF ..\..\Js\Lib\Timer.cs


