// SE object
document.SE = new SE();

// SE class
function SE() {}

// SE methods
// Permits to toogle (show or hide) an element.
SE.prototype.toggleElement = function(id) {
    var element = document.getElementById(id);
    (element.style.display == 'block')? element.style.display = 'none' : element.style.display = 'block';
}

// Hide the element
SE.prototype.hideElement = function(id) {
	var element = document.getElementById(id);
    element.style.display = 'none';
}

// Show the element with a specified style
SE.prototype.showElement = function(id, style) {
	var element = document.getElementById(id);
    element.style.display = style;
}

 
var Utils = {
 
	// public method for url encoding
	escape : function (str) {
		if (navigator.appVersion.indexOf("Win")!=-1) return escape(str);
		else return str.replace(/'/g,"%27");
	}
 
}
