function bookmarksite(title){
	var url=document.location.href;
if (window.sidebar) // firefox
	window.sidebar.addPanel(title, url, "");
else if(window.opera && window.print){ // opera
	var elem = document.createElement('a');
	elem.setAttribute('href',url);
	elem.setAttribute('title',title);
	elem.setAttribute('rel','sidebar');
	elem.click();
} 
else if(document.all)// ie
	window.external.AddFavorite(url, title);
}

function sendUrl(){		
	var loc=document.location.href;
	loc = replaceAll(loc, "&", "%26");
	var sub="Pyramis Travel"
	window.location="mailto:?subject="+sub+"&body="+loc;
	}
function replaceAll( str, from, to ) {
    var idx = str.indexOf( from );
    while ( idx > -1 ) {
        str = str.replace( from, to ); 
        idx = str.indexOf( from );
    }
    return str;
}
