// JavaScript Document
<!--

if(document.all && !document.getElementById) {
    document.getElementById = function(id) {
         return document.all[id];
    }
}


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];}
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

function replaceRecordImage(obj)
{
	obj.src='/images/records/rhp/logo_gwr.gif';
}

/*JavaScript Image slideshow:*/
var slideimages=new Array()
var slidelinks=new Array()
function slideshowimages(){
    for (i=0;i<slideshowimages.arguments.length;i++){
    slideimages[i]=new Image()
    slideimages[i].src=slideshowimages.arguments[i]
    }
}
function slideshowlinks(){
    for (i=0;i<slideshowlinks.arguments.length;i++)
    slidelinks[i]=slideshowlinks.arguments[i]
}




/* ADS on home page */
var adimages=new Array()
var adlinks=new Array()

function adshowimages(){
    for (i=0;i<adshowimages.arguments.length;i++){
    adimages[i]=new Image()
    adimages[i].src=adshowimages.arguments[i]
    }
}
function adshowlinks(){
    for (i=0;i<adshowlinks.arguments.length;i++)
    adlinks[i]=adshowlinks.arguments[i]
}
/* End ADS */




function gotoshow(){
if (!window.winslide||winslide.closed)
    winslide=window.open(slidelinks[whichlink])
else
    winslide.location=slidelinks[whichlink]
    winslide.focus()
}


//Maximise the popup window before going off to WorldPay
function maxWindow() {
    window.moveTo(0,0); 
    if (document.all) {
        top.window.resizeTo(screen.availWidth,screen.availHeight);
    } 
    else if (document.layers || document.getElementById) {
        if (top.window.outerHeight < screen.availHeight || top.window.outerWidth < screen.availWidth){
            top.window.outerHeight = screen.availHeight;
            top.window.outerWidth = screen.availWidth;
        }
    }
} 
//Checkbox Client Validator
function ClientValidation(source, args) 
{ 
     //args.IsValid = document.all["chkFaq"].checked; 
     args.IsValid = document.getElementById("chkFaq").checked;
} 
function ClientValidation2(source, args) 
{ 
     args.IsValid = document.getElementById("chkTsCs").checked;
} 
function ClientValidation3(source, args) 
{ 
     //args.IsValid = document.all["chkTsCs"].checked; 
     args.IsValid = document.getElementById("chkTsCs").checked;
} 
function ClientValidationWizard(source, args) 
{ 
     args.IsValid = document.getElementById("wizard_chkTsCs").checked;
     //alert(document.getElementById("wizard_chkTsCs").checked);
} 

 
/******/
<!-- 
var cX = 0; var cY = 0;
function UpdateCursorPosition(e){ cX = e.pageX; cY = e.pageY;}
function UpdateCursorPositionDocAll(e){ cX = event.clientX; cY = event.clientY;}
if(document.all) { document.onmousemove = UpdateCursorPositionDocAll; }
else { document.onmousemove = UpdateCursorPosition; }
function AssignPosition(d,xx,yy) {
    d.style.left = (cX+xx) + "px";
    d.style.top = (cY+yy) + "px";
}
function HideContent(d) {
    if(d.length < 1) { return; }
    document.getElementById(d).style.display = "none";
}
function ShowContent(d,xx,yy) {
    if(d.length < 1) { return; }
    var dd = document.getElementById(d);
    AssignPosition(dd,xx,yy);
    dd.style.display = "block";
}
function HideAllContent() {
    document.getElementById('ireland').style.display = "none";
    document.getElementById('usa').style.display = "none";
    document.getElementById('usa_ny').style.display = "none";
    document.getElementById('canada').style.display = "none";
    document.getElementById('portugal').style.display = "none";
    document.getElementById('france').style.display = "none";
    document.getElementById('uk').style.display = "none";
    document.getElementById('norway').style.display = "none";
    document.getElementById('germany').style.display = "none";
    document.getElementById('southafrica').style.display = "none";
    document.getElementById('australia').style.display = "none";
    document.getElementById('newzealand').style.display = "none";
    document.getElementById('andorra').style.display = "none";
}
  // this variable will collect the html which will eventually be placed in the side_bar
          var side_bar_html = "";
        
          // arrays to hold copies of the markers and html used by the side_bar
          // because the function closure trick doesnt work there
          var gmarkers = [];
          var i = 0;
//-->
