<!--
//******************************************************************************
// Toolbar - 2009
// Great Plains Stainless Steel
// Gilles Gomez - alizesonline.com
//******************************************************************************

$defaultMessage="I recommend this page :";							// Default message to introduce the email

//******************************************************************************
// Send the page thru email
//******************************************************************************
function mailPage($message){
	if(!$message) $message=$defaultMessage;							// If the message has not been set -> use the default message instead
	
	$mailString="mailto:?Subject=" + document.title;					// mailto -> subject
	$mailString+="&Body=" + $message + " " + document.title;				// mailto -> message (body)
	$mailString+="( " + location.href + " ). \r\n"; 
	location.href=$mailString;
}


//******************************************************************************
// Add the URL of the page to the IE Favorites or FF bookmarks
//******************************************************************************
function addToBookmarks(){
	var $pageName=document.title;
	var $pageUrl=location.href;
	
	if (window.sidebar) window.sidebar.addPanel($pageName,$pageUrl,"");			// Firefox
	else if(window.external) window.external.AddFavorite($pageUrl,$pageName);		// Explorer
	else if(window.opera && window.print) {							// Opera
		var $element=document.createElement('a');
		$element.setAttribute('href',$pageUrl);
		$element.setAttribute('title',$pageName);
		$element.setAttribute('rel','sidebar');
		$element.click();
	}
	else window.alert("Sorry, your browser does not support this function.\nPlease bookmark this page manually.");
}


//******************************************************************************
// Print the page to the printer
//******************************************************************************
function printPage(){
	window.print();
}


//******************************************************************************
// Send thru SMS
// Requires a special service - For future developments
//******************************************************************************
function sendBySms(){
	window.alert("Not yet !");
}

//-->