var indexLayout = function(){
    return {

        init : function(  )
        {
           this.layout = new YAHOO.ext.BorderLayout(document.body, {
                hideOnLayout: true,
                north: {
                    split:false,
                    initialSize: 30,
                    titlebar: false
                },
                west: {
                    // split:true,
                    initialSize: 200,
                    minSize: 175,
                    maxSize: 400,
                    titlebar: true,
                    collapsible: true,
                    autoScroll:true,
                    animate: true
                },
                east: {
                    split:true,
                    initialSize: 202,
                    minSize: 175,
                    maxSize: 400,
                    titlebar: true,
                    collapsible: true,
                    animate: true
                },
                south: {
                    split:false,
                    initialSize: 30,
                    minSize: 30,
                    maxSize: 30,
                    titlebar: false,
                    collapsible: false,
                    collapsed: false,
                    animate: true
                },
                center: {
                    titlebar: false,
                    autoScroll:true,
                    closeOnTab: true
                }
            });

            this.layout.beginUpdate();

            this.layout.add('north', new YAHOO.ext.ContentPanel('north', 'North'));
			this.layout.add('south', new YAHOO.ext.ContentPanel('south', 'South'));
            this.layout.add('west', new YAHOO.ext.ContentPanel('west', {title: 'Site Hirek'}));
			this.layout.add('center', new YAHOO.ext.ContentPanel('center', 'Tagok'));

            this.layout.endUpdate();
    },

	addCenterPanelAutoload: function( target, title, url )
	{
		var center = new YAHOO.ext.ContentPanel( target, {title: title } );
		center.setUrl( url );
		this.layout.add('center', center );
	},

    addCenterPanel: function( title, url )
    {
        var iframe = YAHOO.ext.DomHelper.append(document.body, {tag: 'iframe', frameBorder: 0, src: url });
        var cpFrame = new YAHOO.ext.ContentPanel(iframe, {title: title, fitToFrame:true, closable:true});  //itt kene valahol beallitani, hogy ne izelodjon
        this.layout.add('center', cpFrame );
        }
     }

}();
