function InfoPage() {
    this.init();

    this.cfg = {
        hasIcon: true,
        hasSizeBtn: false,
        hasCloseBtn: true,
        hasRefreshBtn: false,
        hasSettingsBtn: false,
        hasDrag: false,
        hasOnCloseConfirm: false,
        isOpenHidden: false,
        isSystem: true,
        title: "User profile",
        module: "info"
    }

    this.user = { id: null,
                  email: null,
                  password: null}        


    this.show = function(pagename) {
	switch(pagename) {
	    case "about":
	    case "tos":
	    case "pp":
	    case "feedback":
		request.send({page: pagename}, this);
//		alert(pagename);
		return true;
		break;
	    default:
		return false;	    
	}
    }

    this.domContent = [
	{ tag: "div", style: {textAlign: "center", padding: "30px"}, innerHTML:"Loading..."}
    ]


    this.getSignature = function() {
        return SYSWIDGET_WKEY+2;
    }

    this.onBuildInterface = function() {
        this.buildDomModel(this.elements.content, this.domContent);
    }


    this.close = function() {
        desktop.closeCurrentPage();
    }

    this.dispatchMsg = function(msg) {
        switch(msg.status) {
            case 'ok': 
		this.elements.content.innerHTML='<div align="center"><div class="info">'+msg.body+'</div></div>';
		this.elements.title.innerHTML=msg.title;
                break;
        }
    }


 
    this.onLoad = function() {
/*	kernel.imgCache.auth = {};
	kernel.imgCache.auth.singin = new Image();
	kernel.imgCache.auth.singin.src = "widgets/auth/img/sign_in.gif";
	kernel.imgCache.auth.singout = new Image();
	kernel.imgCache.auth.singout.src = "widgets/auth/img/sign_out.gif";*/
    }
}
InfoPage.prototype = new Widget();
