﻿Type.registerNamespace("manathanWeb");

manathanWeb.MoritzEiche.Contact = function() {
    manathanWeb.MoritzEiche.Contact.initializeBase(this, ['cont_obj', 'FadeContactIn();', 'FadeContactOut();', 'ContactWaiter();']);
    this.relative = false;
}

manathanWeb.MoritzEiche.Contact.prototype = {

    /** Public methods */
    Open: function() {
        return manathanWeb.MoritzEiche.Contact.callBaseMethod(this, 'Open');
    },
    
    FadeIn: function() {
        try {
            manathanWeb.MoritzEiche.Contact.callBaseMethod(this, 'FadeIn');
            document.getElementById('footer').focus();
	    } catch (err) {
	        alert('manathanWeb.MoritzEiche.Contact.FadeIn() error: ' + err.message);
	    }
    }
}
manathanWeb.MoritzEiche.Contact.registerClass('manathanWeb.MoritzEiche.Contact', manathanWeb.MoritzEiche.FadeElement);

var contact = new manathanWeb.MoritzEiche.Contact();

function ContactWaiter() {
    contact.waitForClose();
}

function FadeContactIn() {
    contact.FadeIn();
}

function FadeContactOut() {
    contact.FadeOut();
}

// Notify ScriptManager that this is the end of the script.
if (typeof(Sys) !== 'undefined') Sys.Application.notifyScriptLoaded();

