Front = Class.create();
Front.prototype.container = null;

Front.prototype.initialize = function(element)
{
	this.container = element;
}

Front.prototype.update = function(url, parameters)
{
	if(Object.isUndefined(parameters))
		parameters = {};
	parameters.ms = new Date();
	new Ajax.Updater(
		this.container,
		url,
		{
			method : "post",
			evalScripts : true,
			parameters : parameters,
			onSuccess : this._onSuccessUpdateContainer.bind(this),
			onFailure : this._onFailureUpdateContainer.bind(this)
		});
}

Front.prototype.navigateTo = function(locationRateTo){
	if(!Prototype.Browser.IE)
		$(document).location.href = locationRateTo;
	else
		window.location.href = locationRateTo;
}

Front.prototype._onSuccessUpdateContainer = function(xhr)
{
//	alert("Success");
}

Front.prototype._onFailureUpdateContainer = function(xhr)
{
//	alert("Failure");
}
