// -- Custom
var _Custom = {
	
	addFakeHover: function(els, classe) {
		classe = classe || 'hover'
		addEventDict(els, 
			{ 
				'mouseover' : function(e) { addClass(e.currentTarget, classe) },
				'focus' : function(e) { addClass(e.currentTarget, classe) },
				'mouseout' : function(e) { remClass(e.currentTarget, classe) },
				'blur' : function(e) { remClass(e.currentTarget, classe) }
			}
		)
	},
			
	init: function() {
		var o
				
		// Texto da busca
		var sTextoDefault = 'Pesquisa de Produtos'
			var o = getElementsByClass('text', 'input', 'CSuperior', 'Container')
			addEventDict(o, {
				'focus': function(e) { 
					if (e.currentTarget.value == sTextoDefault) 
						e.currentTarget.value = '' 
					else
						e.currentTarget.select()
				},
				'blur': function(e) { 
					if (e.currentTarget.value == '') e.currentTarget.value = sTextoDefault 
				}
			})
		}
	
}
