function bookmark() {
	if (window.external)
		window.external.AddFavorite('http://www.bookalondonhotel.com/', 'Book a London Hotel')
	else
		alert("Sorry, your browser doesn't support this function");
}

function strip(inStr) {
   	while (inStr.substring(0, 1) == ' ') // If first char a space...
		inStr = inStr.substring(1); // ...remove it.
   	while (inStr.substring(inStr.length-1, inStr.length) == ' ') // If last char a space...
		inStr = inStr.substring(0, inStr.length-1); // ...remove it.
   	return inStr;
}

function convertRate(thisForm) {
	var resultText = "";
	var resultDiv = document.getElementById('currencyResult');
	var currencyFrom = thisForm.currencyFrom.value;
	var currencyTo = thisForm.currencyTo.value;
	var stripAmount = strip(thisForm.amount.value);
	if (isNaN(stripAmount))
		resultText = "<p>Input value not a valid number</p>";
	else {
		var amount = parseFloat(stripAmount);
		var tmp = amount / eval("thisForm." + currencyFrom + ".value");
		var result = tmp * eval("thisForm." + currencyTo + ".value");
		if (isNaN(result))
			resultText = "<p>Input value not a valid number</p>";
		else
			resultText = "<h4>" + amount.toFixed(2) + " " + currencyFrom + " = " + result.toFixed(2) + " " + currencyTo + "</h4>";
	}
	resultDiv.innerHTML = resultText;
	//thisForm.result.value = amount.toFixed(2) + " " + currencyFrom + " = " + result.toFixed(2) + " " + currencyTo;
	resultDiv.style.display = "block";
	return false;
}

function opodo() {
	if (MM_FlashCanPlay) {
		var uri = 'http://impgb.tradedoubler.com/imp/js/27582/1197605?' + new String (Math.random()).substring (2, 11);
		document.write('<sc'+'ript language="JavaScript" src="'+uri+'" charset="ISO-8859-1"></sc'+'ript>');
	}
	else {
		var uri = 'http://impgb.tradedoubler.com/imp/img/62773/1197605?' + new String (Math.random()).substring (2, 11);
		document.write('<a href="http://clkuk.tradedoubler.com/click?p=4506&a=1197605&g=62773" target="_blank"><img src="'+uri+'" border=0></a>');
	}
}

function expedia_1() {
	if (MM_FlashCanPlay) {
		var uri = 'http://impgb.tradedoubler.com/imp/js/16194492/1197605?' + new String (Math.random()).substring (2, 11);
		document.write('<sc'+'ript language="JavaScript" src="'+uri+'" charset="ISO-8859-1"></sc'+'ript>');
	}
	else {
		var uri = 'http://impgb.tradedoubler.com/imp/img/16168284/1197605?' + new String (Math.random()).substring (2, 11);
		document.write('<a href="http://clkuk.tradedoubler.com/click?p=21874&a=1197605&g=16168284" target="_blank"><img src="'+uri+'" border=0></a>');
	}
}

function expedia_2() {
	if (MM_FlashCanPlay) {
		var uri = 'http://impgb.tradedoubler.com/imp/js/970420/1197605?' + new String (Math.random()).substring (2, 11);
		document.write('<sc'+'ript language="JavaScript" src="'+uri+'" charset="ISO-8859-1"></sc'+'ript>');
	}
	else {
		var uri = 'http://impgb.tradedoubler.com/imp/img/16168278/1197605?' + new String (Math.random()).substring (2, 11);
		document.write('<a href="http://clkuk.tradedoubler.com/click?p=21874&a=1197605&g=16168278" target="_blank"><img src="'+uri+'" border=0></a>');
	}
}

function insurance() {
	var uri = 'http://impgb.tradedoubler.com/imp/img/12924/1197605?' + new String (Math.random()).substring (2, 11);
	document.write('<a href="http://clkuk.tradedoubler.com/click?p=2556&a=1197605&g=12924" target="_blank"><img src="'+uri+'" border=0></a>');
}

function purple() {
	var uri = 'http://impgb.tradedoubler.com/imp/img/741807/1197605?' + new String (Math.random()).substring (2, 11);
document.write('<a href="http://clkuk.tradedoubler.com/click?p=20642&a=1197605&g=741807" target="_blank"><img src="'+uri+'" border=0></a>');
}

var MM_contentVersion = 8;
var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
if (plugin) {
	var words = navigator.plugins["Shockwave Flash"].description.split(" ");
	for (var i = 0; i < words.length; ++i) {
		if (isNaN(parseInt(words[i])))
			continue;
		var MM_PluginVersion = words[i]; 
	}
	var MM_FlashCanPlay = MM_PluginVersion >= MM_contentVersion;
}
else
	if (navigator.userAgent && navigator.userAgent.indexOf("MSIE") >= 0 
			&& (navigator.appVersion.indexOf("Win") != -1)) {
		document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n'); //FS hide this from IE4.5 Mac by splitting the tag
		document.write('on error resume next \n');
		document.write('MM_FlashCanPlay = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & MM_contentVersion)))\n');
		document.write('</SCR' + 'IPT\> \n');
	}

if (top.location != self.location) {
	top.location.replace(self.location)
}
