function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
var imgCount = 1;

function getNextImg(url,ext,imgAmount)
	{
	if(imgCount < imgAmount)
		{
			imgCount++;
			document["common"].src = url + imgCount + ext;
		}
	}			
function getPrevImg(url,ext)
	{
		if(imgCount > 1)
			{
				imgCount--;
				document["common"].src = url + imgCount + ext;
			}
	}





function right(e) 
	{
		if (navigator.appName == 'Netscape' && (e.which == 3 || e.which == 2)) return false;
		else if (navigator.appName == 'Microsoft Internet Explorer' && (event.button == 2 || event.button == 3))
			{
				alert("This Page is fully protected and all IP addresses are logged");
				return false;
			}
		return true;
	}
document.onmousedown=right;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
window.onmousedown=right;
		
function openAnyWindow(url, name)
	{
		var l = openAnyWindow.arguments.length;
		var w = "";
		var h = "";
		var features = "";
		for (i=2; i<l; i++)
			{
				var param = openAnyWindow.arguments[i];
				if ((parseInt(param) == 0) || (isNaN(parseInt(param))))
					{
						features += param + ',';
					}
				else
					{
						(w == "") ? w = "width=" + param + "," :
						h = "height=" + param;
					}
			}
		features += w + h;
		var code = "popupWin = window.open(url, name";
		if (l > 2) code += ", '" + features;
		code += "')";
		eval(code);
	}

function defaultDates(x)
	{
		var myDate = new Date();
		myDate.setDate(myDate.getDate() + 1);
		x.elements["doa_dd"].value = myDate.getDate();
		x.elements["doa_mm"].value = myDate.getMonth() + 1;
	}
function writeMenu(hotel,area,areaUrl,mapUrl,email,HotelID)
	{
BuildLayer('v','','','','250','250','','','','1','1','1px None #ACA899','1px None #ACA899','1px None #ACA899','1px None #ACA899','left','#47ADFF','','1','1','','Filter:none(Duration=0.5)','','#C0C0C0','0','Default','Pointer','','100','0','#FFFFFF')
SwapDiv('wme3','','','menupic.jpg','blank.gif','87','148','blank.gif','blank.gif','0','0','4','4','Arial','Arial','8pt','8pt','normal','normal','transparent','transparent','normal','normal','none','none','#000000','transparent','blank.gif','blank.gif','0','0','0','0','none','none','none','none','none','none','none','none','top','left','','','','_self','','','2','blank.gif','blank.gif','auto','auto','0','0','0')
SwapDiv('wme10','wme3',hotel + ' Hotel','blank.gif',_,'16','16',_,_,_,_,'auto','auto',_,_,_,_,_,_,'#000000','#000000','bold','bold',_,_,'#ADE0FF','#ADE0FF',_,_,'1','1','1','1','0px Solid #FFFFFF','0px Solid #FFFFFF','0px Solid #FFFFFF','0px Solid #FFFFFF','0px Solid #FFFFFF','0px Solid #FFFFFF','0px Solid #FFFFFF','0px Solid #FFFFFF','middle',_,_,_,_,_,_,_,'0',_,_,_,_,_,_,_)
SwapDiv('wme11','wme10','TEL: 00-44-1844-343132',_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,'0',_,_,_,_,_,_,_)
SwapDiv('wme4','wme10','BOOK ' + hotel,_,'blueIdx.gif','10','21',_,_,_,_,_,_,_,_,_,_,_,_,'#FFFFFF','#FF0000',_,_,_,_,'#47ADFF','#CEE9FF',_,_,_,_,_,_,'1px Solid #8CCBFF','1px Solid #8CCBFF','1px Solid #8CCBFF','1px Solid #8CCBFF','1px Solid #EEF8FF','1px Solid #EEF8FF','1px Solid #EEF8FF','1px Solid #EEF8FF',_,_,'https://secure.hotel-assist.net/search.asp?HotelID=' + HotelID,'Book the ' + hotel + ' Hotel or check availability and prices','Make a reservation at the ' + hotel + ' hotel in London','_blank',_,_,'0',_,_,_,_,_,_,_)
SwapDiv('wme5','wme4',hotel + ' map',_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,'#000000','normal','normal',_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,mapUrl,'','Map of the ' + hotel + ' hotel location',_,_,_,'0',_,_,_,_,_,_,_)
SwapDiv('wme6','wme5','Chat to London Agent',_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,'http://www.hotel-assist.com/realcall.html','Chat online to one of our agents in london','Chat online to one of our agents in london',_,_,_,'0',_,_,_,_,_,_,_)
SwapDiv('wme7','wme5','Email about the Blakemore',_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,'mailto:' + email + '@hotel-assist.com?subject=Enquiry for the ' + hotel + ' hotel, London',_,'','_self',_,_,'0',_,_,_,_,_,_,_)
SwapDiv('wme8','wme7','More hotels in this area',_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,'http://www.hotel-assist.com/' + areaUrl ,'Hotels in ' + area + ' london','Hotels in ' + area + ' london',_,_,_,'0',_,_,_,_,_,_,_)
SwapDiv('wme9','wme7','Where to stay in London',_,_,_,_,'7','7',_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,'','Check out all London districts','http://www.hotel-assist.com/where-to-stay-in-london.html',_,_,_,'0',_,_,_,_,_,_,_)
FreeLayer('wme13','','5','v','0','0','1','2','1px Solid #ACA899','1px Solid #ACA899','1px Solid #ACA899','1px Solid #ACA899','#FFFFFF','','1','1','','Filter:none(Duration=0.5)','','#C0C0C0','0','100')
SwapDiv('wme12','wme7','Interactive map',_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,'http://www.hotel-assist.com/where-to-stay-in-london.html','Map of London districts','Map of London districts',_,_,_,'0',_,_,_,_,_,_,_)
SwapDiv('wme14','wme7','Kensington',_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,'http://www.hotel-assist.com/hotels-kensington-london.html','Hotels in kensington London','Hotels in kensington London',_,_,_,'0',_,_,_,_,_,_,_)
SwapDiv('wme15','wme7','West End',_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,'http://www.hotel-assist.com/hotels-west-end-london.html','Hotels in the West End of London','Hotels in the West End of London',_,_,_,'0',_,_,_,_,_,_,_)
SwapDiv('wme16','wme8','Bayswater',_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,'Bayswater hotels','Bayswater hotels',_,_,_,'0',_,_,_,_,_,_,_)
SwapDiv('wme17','wme7','City',_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,'http://www.hotel-assist.com/hotels-city-london.html','Hotels in the City','Hotels in the City',_,_,_,'0',_,_,_,_,_,_,_)
SwapDiv('wme18','wme7','London Special Offers',_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,'http://www.hotel-assist.com/offers.html','Deals in London hotels','Deals in London hotels',_,_,_,'0',_,_,_,_,_,_,_)
InitDiv();
HideDiv();
	}