// BYC Entry Function

Ext.onReady(function(){
	
	 Ext.state.Manager.setProvider(new Ext.state.CookieProvider());

	// Set common Paths
	topPath = location.href;;
	setCookie('topPath', topPath, 30);
//	scriptPath = topPath + "components/";
	scriptPath = "/components/";
	setCookie('scriptPath', scriptPath, 30);
//	imagePath = topPath + "images/";
	imagePath = "/images/";
	setCookie('imagePath', imagePath, 30);
	
	// Set screen we are on
	setCookie('screen', topPath, 30);
	
	//Setup Menu State  
//    loginState = getCookie('bli');
//    if(loginState == 'r'){
//    if(window.bli == 'r'){
//	    Ext.getCmp('logbutton').setText('Log-Off');
//	    Ext.getCmp('accbutton').setText('Edit Account');
//    }

	// Create main layout for page
	var mainLayout = new fullLayout(location.href, '/components/', '/images/');
	
	Ext.QuickTips.init();

	eastArea = Ext.getCmp('eastPanel');
	eastArea.setTitle("What's New");


    // Tool Tips for Login Information
    new Ext.ToolTip({
            target: 'logbutton',
            html: 'Click to Log-in/Log-Off'
    });

});
