/*
 * Ext JS Library 2.2
 * Copyright(c) 2006-2008, Ext JS, LLC.
 * licensing@extjs.com
 * 
 * http://extjs.com/license
 */

Ext.onReady(function(){

    // NOTE: This is an example showing simple state management. During development,
    // it is generally best to disable state management as dynamically-generated ids
    // can change across page loads, leading to unpredictable results.  The developer
    // should ensure that stable state ids are set for stateful components in real apps.
    var stateProvider = new Ext.state.CookieProvider({ expires: new Date(new Date().getTime()+(1000*60*60*24*365)) });
	Ext.state.Manager.setProvider(stateProvider);

    // create some portlet tools using built in Ext tool ids
    var tools = [{
        id:'gear',
        handler: function(){
            Ext.Msg.alert('Message', 'No settings currently applicable to this window.');
        }
    },{
        id:'close',
        handler: function(e, target, panel){
            panel.ownerCt.remove(panel, true);
        }
    }];

    var viewport = new Ext.Viewport({
        layout:'border',
        items:[
		{
            region:'west',
            id:'west-panel',
            title:'More Sites For Guys',
            split:true,
            width: 200,
            minSize: 175,
            maxSize: 400,
            collapsible: true,
            margins:'60 0 5 5',
            cmargins:'60 5 5 5',
            layout:'accordion',
            layoutConfig:{
                animate:true
            },
            items: [{
                title:'AlphaNexus',
                autoLoad:{
                   url:'portal_an_toc.html'
                },
                border:false,
                autoScroll:true,
				collapsed: true,
                iconCls:'nav'
            },{
                title:'BabeMania',
                autoLoad:{
                   url:'portal_bm_search.html'
                },
                border:false,
                autoScroll:true,
				collapsed: true,
                iconCls:'nav'
            },{
                title:'ClubPoze',
                autoLoad:{
                   url:'portal_cp_toc.html'
                },
                border:false,
                autoScroll:true,
				collapsed: true,
                iconCls:'nav'
            },
			{
                title:'Playboy',
                autoLoad:{
                   url:'portal_playboy_toc.html'
                },
                border:false,
                autoScroll:true,
				collapsed: true,
                iconCls:'nav'
            },
			{
                title:'Danni.com',
                autoLoad:{
                   url:'portal_danni_toc.html'
                },
                border:false,
                autoScroll:true,
				collapsed: true,
                iconCls:'nav'
            },
			{
                title:'Freebie Sites',
                autoLoad:{
                   url:'portal_freebies_toc.html'
                },
                border:false,
                autoScroll:true,
				collapsed: true,
                iconCls:'nav'
            },
			{
                title:'Brazzers',
                autoLoad:{
                   url:'portal_brazzers_toc.html'
                },
                border:false,
                autoScroll:true,
				collapsed: true,
                iconCls:'nav'
            },
			{
                title:'Twistys.com',
                autoLoad:{
                   url:'portal_twistys_toc.html'
                },
                border:false,
                autoScroll:true,
				collapsed: true,
                iconCls:'nav'
            }
			]
        },
		
		{
            xtype:'portal',
            region:'center',
            margins:'60 5 5 0',
            items:[{
                columnWidth:.33,
                style:'padding:10px 0 10px 10px',
                items:[{
                    title: 'New from AlphaNexus',
                    tools: tools,
                    autoLoad:{
                        url:'portal_an_feed.php'
                    }
                },{
                    title: 'New Celebs at BabeMania',
                    tools: tools,
                    autoLoad:{
                        url:'portal_bm_new_feed.php'
                    }
                },{
                    title: 'Free Live Cam Chat',
                    tools: tools,
                    autoLoad:{
                        url:'portal_livejasmine_livecam.html'
                    }
                }]
            },{
                columnWidth:.33,
                style:'padding:10px 0 10px 10px',
                items:[{
                    title: 'New Twistys.com Busty Video',
                    tools: tools,
                    autoLoad:{
                        url:'portal_twisty_video.html'
                    }
                },{
                    title: 'Latest at ModelsCentral',
                    tools: tools,
                    autoLoad:{
                        url:'portal_mc_feed.php'
                    }
                },{
                    title: 'Penthouse Photo of the Day',
                    tools: tools,
                    autoLoad:{
                        url:'portal_ph_potd.html'
                    }
                }]
            },{
                columnWidth:.33,
                style:'padding:10px 0 10px 10px',
                items:[{
                    title: 'Babe Galleries of the Day',
                    tools: tools,
                    autoLoad:{
                        url:'gal_inc_portal.html'
                    }
                },{
                    title: 'Twistys Treat of the Month',
                    tools: tools,
                    autoLoad:{
                        url:'portal_twistytotm_potd.html'
                    }
                }]
            }]
        }]
    });
});


