
var gMapUrl = new Array();


gMapUrl[0] = "http://maps.google.com/maps?f=q&amp;source=s_q&amp;hl=en&amp;geocode=&amp;q=8+Grosvenor+Gardens,+London+SW1W+0DH&amp;mrt=all&amp;sll=51.497678,-0.148074&amp;sspn=0.000987,0.001848&amp;ie=UTF8&amp;t=h&amp;ll=51.498004,-0.147028&amp;spn=0.00167,0.002543&amp;z=17&amp;iwloc=A&amp;output=embed";

gMapUrl[1] = "http://maps.google.com/maps?f=q&amp;source=s_q&amp;hl=en&amp;geocode=&amp;q=8+Grosvenor+Gardens,+London+SW1W+0DH&amp;mrt=all&amp;sll=51.498925,-0.146556&amp;sspn=0.007895,0.014784&amp;ie=UTF8&amp;t=p&amp;ll=51.498298,-0.14677&amp;spn=0.006679,0.010171&amp;z=15&amp;iwloc=A&amp;output=embed";

gMapUrl[2] = "http://maps.google.com/maps/sv?cbp=12,183.94,,2,-5&amp;cbll=51.498048,-0.147537&amp;v=1&amp;panoid=&amp;gl=&amp;hl=en";

gMapUrl[3] = "http://maps.google.com/maps?f=q&amp;source=s_q&amp;hl=en&amp;geocode=&amp;q=8+Grosvenor+Gardens,+London+SW1W+0DH&amp;mrt=all&amp;sll=51.497883,-0.148337&amp;sspn=0.007895,0.014784&amp;ie=UTF8&amp;t=h&amp;ll=51.497763,-0.146706&amp;spn=0.000835,0.001271&amp;z=18&amp;output=embed";

gMapUrl[4] = "http://maps.google.com/maps?f=q&amp;hl=en&amp;geocode=&amp;q=8+Grosvenor+Gardens,+London+SW1W+0DH&amp;mrt=all&amp;sll=51.497616,-0.147264&amp;sspn=0.007868,0.022144&amp;ie=UTF8&amp;source=embed&amp;num=10&amp;ll=51.497309,-0.147543&amp;spn=0.013359,0.020342&amp;z=14&amp;output=embed";

gMapUrl[5] = "http://maps.google.com/maps?f=q&amp;source=s_q&amp;hl=en&amp;geocode=&amp;q=8+Grosvenor+Gardens,+London+SW1W+0DH&amp;mrt=all&amp;sll=51.497883,-0.148337&amp;sspn=0.007895,0.014784&amp;g=8+Grosvenor+Gardens,+London+SW1W+0DH&amp;ie=UTF8&amp;t=h&amp;ll=51.497857,-0.1472&amp;spn=0.00167,0.002543&amp;z=17&amp;output=embed";


gMapUrl[6] = "http://maps.google.com/maps/sv?cbp=12,153.87,,2,-0.75&amp;cbll=51.498125,-0.147229&amp;panoid=&amp;v=1&amp;hl=en&amp;gl="

var servicesmenutmr;
var peoplemenutmr;
var c=0;

var moreinfoDiv = "";

function clientlogonvalidate()
{
	document.location = "clientlogin-process.htm";
	}

function select_gmaps()
{
	//document.frames[0].location = select_map_url();
	img = document.getElementById("img_splash");
	img.src = "images/map/" + select_image();
	setTimeout("select_gmaps();",15000);
}
function select_map_url()
{
	var iMax = gMapUrl.length;
	var mapid=Math.floor(Math.random()* iMax) // 0-(gMap.Length-1);
	return gMapUrl[mapid].replace(/&amp;/gi,"&");
}
function select_image()
{
	var iMax = 7;
	var imgid=(Math.floor(Math.random()* iMax-1)) // 0-(gMap.Length-1);
	if (imgid<0) imgid=0;
	imgid++;
	return "image" + imgid + ".jpg";
}
function showmore(sDiv)
{
	if (moreinfoDiv!="")
	{
		$("#" + moreinfoDiv).slideUp(150);
		img = document.getElementById(moreinfoDiv + "_img");
		img.src = "images/B_moreinfo.gif";
		img.onmouseover = function() {this.src="images/B_moreinfo-over.gif";}; 
		img.onmouseout = function() {this.src="images/B_moreinfo.gif";}; 
		
	}
	if (moreinfoDiv!=sDiv)
	{
		$("#" + sDiv).slideDown(150); 
		moreinfoDiv = sDiv;
		img = document.getElementById(moreinfoDiv + "_img");
		img.src = "images/B_moreinfominus.gif";
		img.onmouseover = function() {this.src="images/B_moreinfominus-over.gif";}; 
		img.onmouseout = function() {this.src="images/B_moreinfominus.gif";}; 
		
	}
	else
		moreinfoDiv = "";
	
}

function clearhide(sDiv)
{

	if (sDiv=="servicesmenu")
	{
		clearTimeout(servicesmenutmr);
	}
	if (sDiv=="peoplemenu")
	{
		clearTimeout(peoplemenutmr);
	}
}
function showmenu(sDiv)
{
	clearhide(sDiv);
	sDiv = "#" + sDiv;
	$(sDiv).slideDown(150); 
	return false;
}

function hidemenu(sDiv)
{
	if (sDiv=="servicesmenu")
	{
		servicesmenutmr = setTimeout("hidemenudiv('" + sDiv + "')",100)
	}
	if (sDiv=="peoplemenu")
	{
		peoplemenutmr = setTimeout("hidemenudiv('" + sDiv + "')",100)
	}
}
function hidemenudiv(sDiv)
{
	sDiv = "#" + sDiv;
	$(sDiv).slideUp(150); 
	clearhide(sDiv);
	return false;
}

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];}
}