/**
 * Add a bookmark in the browser depending of its capabilities
 * 
 * @param title	- Title of the favorite
 * @param url	- URL of the favorite
 */
function addToFavorite(title, url) {
	if (window.sidebar) {
		window.sidebar.addPanel(title, url, ''); // Mozilla - FFox
	} else if (window.external) {
		window.external.AddFavorite(url, title); // IE
	}
}

/**
 * Change the displayed image of the current element depending
 * on the mouseover and mouseout events
 */
function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}
