/* Mootools 1.2 compat */

// CORE
/*
var Window = window;
var Document = document;
var $native = Native;
window.extend(Client.Engine);

// SELECTORS
function $E(selector, filter){
	return ($(filter) || document).getElement(selector);
};

function $ES(selector, filter){
	return ($(filter) || document).getElementsBySelector(selector);
};

// IE Friendly Debug
function debug(thing)
{
	var prefix_date = new String(new Date().getTime());
	if (window.gecko)
	{
		if (typeof(thing) != "object")
			console.debug("["+prefix_date+"] "+thing);
		else
			console.debug(thing);
	}
	else
		alert(thing);
}

function clearSelection()
{
	var sel ;
	if (document.selection && document.selection.empty)
	{
		document.selection.empty() ;
	}
	else if (window.getSelection)
	{
		sel=window.getSelection();
		if (sel && sel.removeAllRanges) sel.removeAllRanges();
	}
}

var Tour = new Class({

	initialize: function(options) {
	
		
		
	}

});

String.prototype.trim = function() {
	return this.replace(/^\s+|\s+$/g,"");
}
String.prototype.ltrim = function() {
	return this.replace(/^\s+/,"");
}
String.prototype.rtrim = function() {
	return this.replace(/\s+$/,"");
}*/

function addBookmark(title,url) 
{	
	if (window.sidebar) 
	{ // Mozilla Firefox Bookmark
		alert("Press CTRL + D to bookmark this page");
		//window.sidebar.addPanel(title, url,"");
	} 
	else if( window.external ) 
	{ // IE Favorite
		window.external.AddFavorite(url, title); 
	}
	else if(window.opera && window.print) 
	{ // Opera Hotlist
		return true; 
	}
}