Login.buildServersList =function(){
		var out = '';
		Request.send({object:'auth', action: 'servers'});
		if(responseObj.status != 100){
			alertify.alert(lang._T('Something went wrong and system can\'t get list of server. Please try again latter.'));
			return false;
		}else{			
			var selected_server = responseObj.authservers.servers_list.default_server;
			if(!Check.isEmpty(storage.get('server'))){
				selected_server = storage.get('server');
			}
			
			foreach(responseObj.authservers.servers_list.list, function(srv, row){
				var rClass= '';
				var start = '';
				var restart = '';
				var data_reg = 0;
				if(!Check.isEmpty(row['username'])){
					rClass = 'registered';
					data_reg = 1;
				}
				if(parseInt(row['username']) == 0){
					rClass += ' registration-closed';
				}
				
				
				if(!Check.isEmpty(row['start'])){
					start = 'Started: '+row['start'];
				}
				
				if(!Check.isEmpty(row['restart'])){
					restart = 'Next restart: '+row['restart'];
				}
				
				out += '<li class="server-link '+rClass+'" rel="'+srv+'" data-registered="'+data_reg+'">\
								    <span class="server-name" style="display:none;">'+row['name']+'</span>\
								    <div class="server-info">\
								    	<span class="server-name">'+row['name']+'</span>\
                                        <span class="server-description">'+( Check.isEmpty(row['description']) ? '' : row['description'] )+'</span>\
                                        <div class="server-dates">\
    								    	<div class="server-start">'+start+'</div>\
    								    	<div class="server-restart">'+restart+'</div>\
    								    </div>\
								    </div>\
								    <div class="server-data">\
                                        <span class="server-username">'+( Check.isEmpty(row['username']) ? 'Create Account' : 'Commander: '+row['username'] )+'</span>\
								    </div>\
								    <div class="clear"></div>\
							    </li>';
				
			});
		}
		
		if(Check.isEmpty(out)){
			out = '<p style="text-align:center">No Servers found.<br/><br/> <a onclick="Login.init();"><< Go back to login screen</a></p>';
		}else{
    		out += '<style>\
        		.servers-box ul li{\
                height:auto;\
				vertical-align: top; position: relative;list-style: none;display: block;margin: 0;\
    			background: url(../images/row_background.png) no-repeat;\
    			-webkit-background-size: 100% 100%;\
    		    background-size: 100% 100%;\
			}\
            \
                .server-info{\
                    display:block;\
                    float:left;\
                    width:150px;\
                    padding:10px;\
                }\
                    .servers-box .server-name{\
    					display:block;\
    					font-size:14px;\
    					margin-top:5px;\
    					text-align:left;\
    				}\
    				.servers-box .server-description{\
        				display:block;\
    					font-size:9px;\
    					text-align:left;\
    					line-height: 10px;\
    				}\
    				\
    				.server-dates{\
            			display:block;\
            			clear:both;\
            			width:100%;\
            		}\
            			.server-dates > div{\
            				font-size:9px;\
            				line-height:10px;\
            				text-align:left;\
            			}\
                \
                .server-data{\
                    display:block;\
                    float:right;\
                    width:80px;\
                    padding:10px 0px;\
                }			\
    				.servers-box .server-username{\
    					display:block;\
    					margin-top:5px;\
    					font-size:12px;\
    					text-align:center;\
    					vertical-align: middle;\
    				}\
    				\
    				\
				\
				.servers-box .registration-closed .server-name,\
				.servers-box .registration-closed .server-username,\
				.servers-box .registration-closed .server-description,\
				.servers-box .registration-closed .server-dates > div{\
					color:#c43d3d;\
				}	\
								\
				.servers-box .registered .server-name,\
				.servers-box .registered .server-username,\
				.servers-box .registered .server-description,\
				.servers-box .registered .server-dates > div{\
					color:#4795bf;\
				}\
        		</style>';
		}
		
		return out;
	};