// site holboo
Ext.define('top.cw',{
	constructor : function(conf){
		var me = this,
			elOpacity=0.8,
			dh = Ext.core.DomHelper;
		Ext.apply(me,conf);
		
		if(me.data.length == 0)return;
			
		
		var cont = dh.append(Ext.getBody(), {tag: 'div', id:'mnwebs', cls: 'cw'},true);
		Ext.each(me.data,function(it){
			var el = dh.append(cont, {
				cls: 'it',
				cn : {tag:'a', href:it.url, target:'_blank', title:it.name, cn:{tag:'img',src:it.logo,alt:it.name}}
			},true);
			el.on('mouseenter',function(){
				el.setOpacity(1);
			});
			el.on('mouseleave',function(){
				el.setOpacity(elOpacity);
			});
			el.setOpacity(elOpacity);
		});
		var swapPstion = function(){
			cont.setY(200);
			cont.show();
		};
		setTimeout(swapPstion,1000);
	}
});
