var ipinternet = "";
var ipinterno = "";
var bodyheight = 0;
var bodywidth = 0;
var portalheight = 0;
var portaltop = 0;
var portalleft = 0;

$(window).bind("resize",function(){
	bodyheight = $(document).height();
	bodywidth = $(document).width();
	if (login){
		centerHor("#portallogin");
		certerVer("#portallogin");
	}
});
$(document).ready(function(){
	if (str_error != "" && str_error != '<%getStr("generalMessage")%>'){
		str_error = eval('lang.GeneralMessages.'+ str_error);
		$("#message").html(str_error);
		$("#message").show();
	}
	$("#btnloginok").bind("click",function(){
		$("#frmLogin").submit();
	});

	$("#portal").hide();
	portaltop = $("#portal").css("top");
	portalleft = $("#portal").css("left");
	bodyheight = $(document).height();
	bodywidth = $(document).width();

	$.i18n.setDictionary(i18n_dict);
	
	$(".label_login").html($.i18n._('label_login'));
	$(".label_password").html($.i18n._('label_password'));
	
	getCursor();
	
	
	if (!login){
		$("#portal").show();
		normalPageFunctions();
	}else{
		loginPageFunctions();
	}
});

