try {
	document.execCommand("BackgroundImageCache",false,true);
}catch(e){}

function trocarLoginSenha() {
	toggle($('boxEsqueciSenha'));
	toggle($('boxLogin'));
	return false;
}
function enviarEsqueciSenha() {
	if(!lib.form.validators.fEmail.test($('hitEmail'))) {
		alert('Email inválido.');
		return false;
	}
	var requisicao = new lib.ajax('/ajax/iTodas.Usuario.UsuarioSiteLogin,iTodas.ashx?_method=RecuperarSenha&_session=no',{
		postData:{
			email:escape($('hitEmail').value)
		},
		method:'post',
		callBack:function(response,state) {
			if(state) {
				alert(eval(response.responseText));
			}
		}
	});
	return false;
}

function gostou(evt) {
	var box = lib.createElement('div',{'class':'boxGostou'});
	box.innerHTML = '<iframe frameborder="0" src="/portal/pesquisaitodas.aspx"><\/iframe><a href="#" onclick="lib.alert.close();return false;">X Fechar<\/a>';
	lib.alert(box);
	//$('libDivBack').onclick = lib.alert.close;
	lib.preventDefault(evt);
}

function toggle(elm,extra) {
	if(elm.style.display != '')
		elm.style.display = extra || '';
	else
		elm.style.display = 'none';
}