
var Disclaimer =
{
    destination: null,
    
    Accept: function()
    {
        $("disclaimer").style.display = "none";
        if(this.destination != null)
        {
            window.open(this.destination, 'name', 'width=1000,height=650');
			//window.location = this.destination;
        }
    },
    
    Decline: function()
    {
        $("disclaimer").style.display = "none";
    },
    
    Show: function(destination)
    {
        this.destination = destination;
        var layer = $("disclaimer");
        var bump = $$("#disclaimer .window")[0];
        $$("#disclaimer .shade")[0].setOpacity(0.5);
        layer.style.height = $(document.body).getSize().size.y + "px";
        bump.style.top = Window.getScrollTop() + 145 + "px";
        layer.style.display = "block";
    }   
};

var Disclaimer101 =
{
    destination: null,
    
    Accept: function()
    {
        $("disclaimer101").style.display = "none";
        if(this.destination != null)
        {
            window.location = this.destination;
        }
    },
    
    Decline: function()
    {
        $("disclaimer101").style.display = "none";
    },
    
    Show: function(destination)
    {
        this.destination = destination;
        var layer = $("disclaimer101");
        var bump = $$("#disclaimer101 .window")[0];
        $$("#disclaimer101 .shade")[0].setOpacity(0.5);
        layer.style.height = $(document.body).getSize().size.y + "px";
        bump.style.top = Window.getScrollTop() + 145 + "px";
        layer.style.display = "block";
    }   
};

var WebCastDisclaimer =
{
    destination: null,
    
    Accept: function()
    {
        $("webcastdisclaimer").style.display = "none";
        if(this.destination != null)
        {
            window.open(this.destination, 'name', 'width=1000,height=650');
        }
    },
    
    Decline: function()
    {
        $("webcastdisclaimer").style.display = "none";
    },
    
    Show: function(destination)
    {
        this.destination = destination;
        var layer = $("webcastdisclaimer");
        var bump = $$("#webcastdisclaimer .window")[0];
        $$("#webcastdisclaimer .shade")[0].setOpacity(0.5);
        layer.style.height = $(document.body).getSize().size.y + "px";
        bump.style.top = Window.getScrollTop() + 165 + "px";
        layer.style.display = "block";
    }   
};