/*!
 * Ext JS Library 3.0.0
 * Copyright(c) 2006-2009 Ext JS, LLC
 * licensing@extjs.com
 * http://www.extjs.com/license
 */
var MX_GEO_PROMO = Ext.extend(Ext.util.Observable, {
    constructor: function(config){
        this.addEvents('finished'); // specify the events we're going to fire
        MX_GEO_PROMO.constructor.call(this, config);
    },
	
    create: function(pid, uid, i, value){
		var v = value.split('|||',2);
		this.panel = new Ext.Panel({ 
			id: 'mt_promo_block_mx_geo-'+uid+'-'+i,
			cls: 'mt_promo_block_mx_geo mt_promo_block_field',
			hideLabel: true,
			html: '<span class="mt_promo_block_mx_geo_city mt_promo_block_field">'+v[0]+
					'</span><span class="mt_promo_block_mx_geo_province mt_promo_block_field">'+v[1]+'</span>'
		});
		
		this.fireEvent('finished', this.panel);
	}	
});
