// The Elms Guest House JavaScript Document //


//--------------- LOCALIZEABLE GLOBALS ---------------
var d=new Date();
var monthname=new Array("January","February","March","April","May","June","July","August","September","October","November","December");
//Ensure correct for language. English is "January 1, 2004"
var TODAY = monthname[d.getMonth()] + " " + d.getDate() + ", " + d.getFullYear();
//---------------   END LOCALIZEABLE   ---------------

// start email a friend //

function mailpage()
{
mail_str = "mailto:?subject= The Elms Guest House, St.Austell, Cornwall " //+ document.title // took this out until I correct the title
;
mail_str += "&body= Hi, I thought you might be interested in this Guest House located in the perfect location from which to visit most of Cornwalls major attractions including The Eden Project, Charlestown and The Lost Gardens of Heligan " //+ document.title
;
mail_str += "&body=You can view all details at, " //+ document.title
;
mail_str += "  " + location.href;
location.href = mail_str;
}

// end email a friend //


/***********************************************
* Bookmark site script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

/* Modified to support Opera */
function bookmarksite(title,url){
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);
}