
var Frame = Class.create();
Frame.prototype = 
{
    initialize: function(container, src, width, height)
    {
        this.container = $(container);
        this.src = src;
        this.width = width;
        this.height = height;     
        this.insertFrame(); 
    },
    insertFrame: function()
    {
        var frame = document.createElement("iframe");
        frame.src = this.src;
        frame.width = this.width;
        frame.height = this.height;
        frame.frameBorder = "0";
        frame.style.border = "#736a63 3px solid";
        frame.scrolling = "no";
        
        this.container.appendChild(frame);
    }
};