<!--

// ------------------------------------ CITY-VISITOR SCRIPTS ------------------------------------

function nofollow(a,b,c)
 { 
  document.location.href=a+b+c; 
 } 

function nofollowTOP(a,b,c)
 {
  top.location.href=a+b+c;
 }

function nofollowNW(a,b,c)
 {
	windowloc=a+b+c;
	windowname='StarBuy';

	// Create new window or give it focus if it already exists.
	var newWindow = window.open(windowloc, windowname);

	// Check new window exists
	if(newWindow != null){
		// Give focus
		newWindow.name = windowname;
		newWindow.focus();
	}
}


function checkFlash(){
	UseFlash = false;

	// Detecting flash in internet explorer
	if(navigator.appVersion.indexOf("MSIE") != -1){
		document.write('<SCR' + 'IPT LANGUAGE="VBScript"> \n');
		document.write('On error resume next \n');
		document.write('Set flashObject3 = CreateObject("ShockwaveFlash.ShockwaveFlash.3") \n');
		document.write('Set flashObject4 = CreateObject("ShockwaveFlash.ShockwaveFlash.4") \n');
		document.write('If IsObject(flashObject3) Then \n');
		document.write('UseFlash = 3 \n');
		document.write('End If \n');
		document.write('If IsObject(flashObject4) Then \n');
		document.write('UseFlash = 4 \n');
		document.write('End If \n');
		document.write('</SCR' + 'IPT> \n');
	}

	// Detecting flash in netscape browsers
	if(navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]){
		var plugin = navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin;
		if(plugin && parseInt(plugin.description.substring(plugin.description.indexOf(".")-1)) >= 4){
			UseFlash = 4;
		}
		else if(plugin && parseInt(plugin.description.substring(plugin.description.indexOf(".")-1)) == 3){
			UseFlash = 3;
		}
	}

	return UseFlash;
}
function insertFlash(filename, width, height, loop, salign, bgcolor, menu, imagetype, other, version){
	// Default version to 3 if it doesn't exist
	if(!version){ version = 3; }

	// Write flash or graphic
	if(checkFlash() >= version){
		document.write('<OBJECT CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" CODEBASE="http://active.macromedia.com/flash2/cabs/swflash.cab#version=' + version + ',0,0,0" ID="UK" WIDTH="' + width + '" HEIGHT="' + height + '">');
		document.write('<PARAM NAME="movie" VALUE="/flash/' + filename + '.swf"><PARAM NAME="loop" VALUE="' + loop + '"><PARAM NAME="menu" VALUE="' + menu + '">');
		document.write('<PARAM NAME="quality" VALUE="high"><PARAM NAME="salign" VALUE="' + salign + '"><PARAM NAME="bgcolor" VALUE="' + bgcolor + '">');
		document.write('<EMBED SRC="/flash/' + filename + '.swf" LOOP="' + loop + '" MENU="' + menu + '" QUALITY="high" BGCOLOR="' + bgcolor + '" SWLIVECONNECT="FALSE" WIDTH="' + width + '" HEIGHT="' + height + '" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">');
		document.write('</EMBED></OBJECT>');
	}
	else if(!(navigator.appName && navigator.appName.indexOf("Netscape")>=0 && navigator.appVersion.indexOf("2.")>=0)){
		document.write('<IMG SRC="/flash/' + filename + imagetype + '" WIDTH="' + width + '" HEIGHT="' + height + '" BORDER="0" ' + other + '>');
	}
}
function checkQuickTime(){
	vUseQT = false;

	// Detecting QuickTime in internet explorer
	if(navigator.appVersion.indexOf("MSIE") != -1){
		document.write('<SCR' + 'IPT LANGUAGE="VBScript"> \n');
		document.write('On Error Resume Next \n');
		document.write('Set theObject = CreateObject("QuickTimeCheckObject.QuickTimeCheck.1") \n');
		document.write('On Error goto 0 \n');
		document.write('If IsObject(theObject) Then \n');
		document.write('If theObject.IsQuickTimeAvailable(0) Then \'Just check for file \n');
		document.write('vUseQT = true \n');
		document.write('End If \n');
		document.write('End If \n');
		document.write('</SCR' + 'IPT> \n');
	}

	// Detecting QuickTime in netscape browsers
	if(navigator.plugins){
		for(var vInc = 0; vInc < navigator.plugins.length; vInc++){
			if(navigator.plugins[vInc].name.indexOf("QuickTime") >= 0){
				vUseQT = true;
			}
		}
	}

	return vUseQT;
}
function insertQuickTime(vMovieName, vWidth, vHeight, vAutoplay, vController){

	// Embed or insert QuickTime link
	if(checkQuickTime()){
		if(parseInt(navigator.appVersion) > 3  || navigator.appName.indexOf('Netscape') != -1){
			document.write('<TABLE WIDTH="' + vWidth + '" BORDER="0" CELLSPACING="0" CELLPADDING="0"><TR VALIGN="top">');
			document.write('<TD ALIGN="center">');
			document.write('<EMBED SRC="' + vMovieName + '" WIDTH="' + vWidth + '" HEIGHT="' + vHeight + '" AUTOPLAY="' + vAutoplay + '" CONTROLLER="' + vController + '" PLUGINSPACE="http://www.apple.com/quicktime/download/"></EMBED></TD>');
			document.write('</TR></TABLE>');
		}
		else{
			document.write('<TABLE WIDTH="300" BORDER="0" CELLSPACING="0" CELLPADDING="0"><TR VALIGN="top">');
			document.write('<TD><FONT FACE="Verdana, Arial, Helvetica, sans-serif" SIZE="-2" CLASS="TextSml"><A HREF="' + vMovieName + '">Play QuickTime Movie</A></FONT></TD>');
			document.write('</TR></TABLE>');
		}
	}
	else{
		document.write('<TABLE WIDTH="300" BORDER="0" CELLSPACING="0" CELLPADDING="0"><TR VALIGN="top">');
		document.write('<TD><OBJECT CLASSID="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" WIDTH="' + vWidth + '" HEIGHT="' + vHeight + '" CODEBASE="http://www.apple.com/qtactivex/qtplugin.cab">');
		document.write('<PARAM name="SRC" VALUE="' + vMovieName + '">');
		document.write('<PARAM name="AUTOPLAY" VALUE="' + vAutoplay + '">');
	  	document.write('<PARAM name="CONTROLLER" VALUE="'  + vController + '"></OBJECT></TD>');
	
		if(navigator.appVersion.indexOf("MSIE") != -1 && parseInt(navigator.appVersion) >= 4){
		}
		else{
			document.write('<TD><FONT FACE="Verdana, Arial, Helvetica, sans-serif" SIZE="-2" CLASS="TextSml">You do not seem to have <A HREF="http://www.apple.com/quicktime/download" target="_blank">QuickTime installed</A><P>Quicktime is a gateway for rich media including images, music, MIDI, MP3 and more, it lets you experience more than 200 kinds of digital media with your Mac or PC and offers unparalleled quality, ease of use and functionality.<P>Downloading this software is quick and easy which means you may return to view this item.<P><CENTER><A HREF="http://www.apple.com/quicktime/download" target="_blank"><IMG SRC="/images/vrp_gqt.gif" BORDER="0" WIDTH="81" HEIGHT="31"></A></CENTER></FONT></TD>');
		}

		document.write('</TR></TABLE>');
	}
}
function SpotWindow(windowname, windowloc){

	// Check for window location
	if(!windowloc){
		windowloc = "";
	}

	// Set the window to a fixed size
	var x = (screen.availWidth - 620) / 2;
	var y = (screen.availHeight - 400) / 2;

	// Set the windows properties
	var properties = "marginheight=0,resizable=no,screenX=" + x + ",screenY=" + y + ",status=no,height=400,width=620,toolbar=no,scrollbars=yes,copyhistory=no";

	// Create new window or give it focus if it already exists.
	var newWindow = window.open(windowloc, windowname, properties);

	// Check new window exists
	if(newWindow != null){
		// Give focus and make sure its in right place
		newWindow.name = windowname;
		newWindow.focus();
		newWindow.moveTo(x, y);
	}
}
function NewSpotWindow(windowname, windowloc){

	// Check for window location
	if(!windowloc){
		windowloc = "";
	}

	// Set the window to a fixed position
	var x = (screen.availWidth - 620) / 2;
	var y = (screen.availHeight - 400) / 2;

	// Set the windows properties
	var properties = "marginheight=0,resizable=YES,status=no,toolbar=yes,scrollbars=yes,copyhistory=no";

	// Create new window or give it focus if it already exists.
	var newWindow = window.open(windowloc, windowname, properties);

	// Check new window exists
	if(newWindow != null){
		// Give focus and make sure its in right place
		newWindow.name = windowname;
		newWindow.focus();
	}
}


function OpenWindow(windowname, windowloc, WinHeight, WinWidth){

	// Check for window location
	if(!windowloc){
		windowloc = "";
	}

	// Set the windows properties
	var properties = "marginheight=0,resizable=YES,status=yes,toolbar=yes,height=" + WinHeight + ",width=" + WinWidth + ",scrollbars=yes,copyhistory=no";

	// Create new window or give it focus if it already exists.
	var newWindow = window.open(windowloc, windowname, properties);

	// Check new window exists
	if(newWindow != null){
		// Give focus
		newWindow.name = windowname;
		newWindow.focus();
	}
}

// ------------------------------------ MACROMEDIA IMAGE SCRIPTS ------------------------------------

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.0
  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 && document.getElementById) x=document.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];}
}
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_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

//--------------------------pop up window script----------------------------------------------
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

<!-- Begin
function popUp(URL) {
day = new Date();
id = day.getTime();
//eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=1,menubar=0,resizable=0,width=205,height=210,left = 180,top = 140');");
}
// End -->
//popUp('popup/popup.html');


<!-- set cookie
  function setTempCookie (cname, cval, cdur) {
    document.cookie = cname + "=" + cval + "; path=/; expires=" ;
  }
  function setCookie (cname, cval, cdur) {
    var expires = new Date() ;
    expires.setTime(expires.getTime() + cdur*1000) ;
    document.cookie = cname + "=" + cval + "; path=/; expires=" + expires.toGMTString() ;
  }
  function chkCookie (cname) {
    var rcookie = document.cookie ;
    var sti = rcookie.indexOf(cname + "=") ;
    return (sti != -1) ;
  }

  // The name of the cookie for this pop-up
  var popupcname = "MajesticPopUp" ;
  // The duration of the cookie in seconds
 // var popupcdur = 30*24*60*60 ;
    var popupcdur = 30*24*60*60 ;
  // Check if the popup was shown before
  if (!chkCookie(popupcname)) {
//alert("fred");
    // Put your pop-up display code here
popUp('/events/popup_majestic.html');
    // Set a cookie to mark this pop-up
    setCookie(popupcname, 'x', popupcdur) ;
  }


//--------------------------National pop up window script----------------------------------------------

function get_cookie(Name) {
var search = Name + "="
var returnvalue = "";
if (document.cookie.length > 0) {
offset = document.cookie.indexOf(search)
if (offset != -1) { // if cookie exists
offset += search.length
// set index of beginning of value
end = document.cookie.indexOf(";", offset);
// set index of end of cookie value
if (end == -1)
end = document.cookie.length;
returnvalue=unescape(document.cookie.substring(offset, end))
}
}
return returnvalue;
}

function loadornot(URL)
 {
  if (!chkCookie('popunder')) 
   {
    loadpopunder(URL);
    setTempCookie('popunder', 'y') ;
   }
 }

function loadornot3(URL){
if (!chkCookie('popunder')) {
loadpopunder(URL);
var popupcdur = 0 ;
setTempCookie('popunder', 'y') ;
}
}

function loadpopunder(URL){
var vProperties = "marginheight=0,resizable=yes,status=yes,height=600,width=800,location=1,statusbar=1,toolbar=yes,scrollbars=yes,copyhistory=no";
var vWindowName = "SpotlightPopup";
//win2=window.open(URL,"vWindowName",vProperties);
//win2.blur();
//window.focus();
}

function londonornot()
 {
  if ((chkCookie('thisislondon')) || (top.window.location.href.match(/thisislondon/g))) 
   {
    setTempCookie('thisislondon', 'y');
    return true;
   }
  else
   {
    return false;
   }
 }

// ------------------------------------ NEW MY CITY SCRIPTS ------------------------------------

// Add to My City favourites
function MycityAdd(vAddType){

	if(window.name != "MyCityWin" && window.name.indexOf('Spotlight') == -1){
		self.name = 'cityvisitor';
	}
}

// Open My City window
function MycityWin(){
	var vWinProp = "marginheight=0,resizable=no,status=no,height=350,width=276,toolbar=no,scrollbars=yes,copyhistory=no";
	var vMyCityWindow = window.open("", "MyCityWin", vWinProp);
	if(vMyCityWindow != null){
		vMyCityWindow.focus();
	}
}

MycityAdd(1);

// ------------------------------------ SCRIPTS TO SET DATE ON HOTEL BOOKING FORMS TO NEXT DAY ------------------------------------

function SetDate() {
	var date = new Date();
	var tomorrow = date.getDate();
	var month = date.getMonth();
	var yy = date.getYear();
	var year = (yy < 1000) ? yy + 1900 : yy;
	var theForm = document.forms['MyOtherForm'];
	
	var maxDays = new Array(31,28,31,30,31,30,31,31,30,31,30,31);
	if((year % 4) == 0) maxDays[1] = 29;
	
	if(tomorrow + 1 == maxDays[month] + 1) { tomorrow = 0; month++; }
	if(month == 12) { month = 0; year++; }
	
	theForm.StartDay.options[tomorrow].selected = true;
	theForm.StartMonth.options[month].selected = true;
	for(var i=0; i < theForm.StartYear.length; i++) {
		if(theForm.StartYear.options[i].text == year) {
			theForm.StartYear.options[i].selected = true;
			break;
		}
	}
}


function CottageDate() {
	var date = new Date();
	var tomorrow = date.getDate();
	var month = date.getMonth();
	var yy = date.getYear();
	var year = (yy < 1000) ? yy + 1900 : yy;
	var theForm = document.forms['mbAvailSearch'];
	
	var maxDays = new Array(31,28,31,30,31,30,31,31,30,31,30,31);
	if((year % 4) == 0) maxDays[1] = 29;
	
	if(tomorrow + 1 == maxDays[month] + 1) { tomorrow = 0; month++; }
	if(month == 12) { month = 0; year++; }
	
	theForm.CottageDay.options[tomorrow].selected = true;
	theForm.CottageMonth.options[month].selected = true;
	for(var i=0; i < theForm.CottageYear.length; i++) {
		if(theForm.CottageYear.options[i].text == year) {
			theForm.CottageYear.options[i].selected = true;
			break;
		}
	}
}

function SetTheatreDate() {
	var date = new Date();
	var tomorrow = date.getDate();
	var month = date.getMonth();
	var yy = date.getYear();
	var year = (yy < 1000) ? yy + 1900 : yy;
	var theForm = document.forms['TheatreSearch'];
	
	var maxDays = new Array(31,28,31,30,31,30,31,31,30,31,30,31);
	if((year % 4) == 0) maxDays[1] = 29;
	
	if(tomorrow + 1 == maxDays[month] + 1) { tomorrow = 0; month++; }
	if(month == 12) { month = 0; year++; }
	
	theForm.StartDay.options[tomorrow].selected = true;
	theForm.StartMonth.options[month].selected = true;
	for(var i=0; i < theForm.StartYear.length; i++) {
		if(theForm.StartYear.options[i].text == year) {
			theForm.StartYear.options[i].selected = true;
			break;
		}
	}
}

function SpotlightOpen(url)
{
		newwindow=window.open(url,'testimonial','height=680,width=575,scrollbars=auto,resizable=no,toolbar=no,status=no');
	if (window.focus) {newwindow.focus()}
}

function SpotlightOpen2(url)
{
		newwindow=window.open(url,'testimonial2','height=670,width=585,scrollbars=yes,resizable=no,toolbar=no,status=no');
	if (window.focus) {newwindow.focus()}
}


//-->
