<!--
	var BopMargin;
	var BobMove;
	var counter;
	var usragnt;
	var renderdone;

	/* ------------------------
		/Life_In_London/ 
	---------------------------
	*/

        function ShowThumbsRETURNFunc()
        {
                try
                {
                        if (ShowThumbsHTTPReq.readyState==4)
                        {
                                if (ShowThumbsHTTPReq.status == 200)
                                {
					document.getElementById("thumbnailsID").innerHTML=ShowThumbsHTTPReq.responseText;
					done=1;
                                }
                                document.getElementById("pbarID").style.display="none";
                        }
                }
                catch (E) { }
        }

	function ShowThumbs(url)
	{
        	if ((usragnt=="IE6") || (usragnt=="IE7"))
                {       ShowThumbsHTTPReq = new ActiveXObject("Microsoft.XMLHTTP");
                }
                else
                {       ShowThumbsHTTPReq = new XMLHttpRequest();
                }
                document.getElementById("pbarID").style.display="block";
                ShowThumbsHTTPReq.abort();
                ShowThumbsHTTPReq.onreadystatechange = ShowThumbsRETURNFunc;
                ShowThumbsHTTPReq.open("GET", "/Life_In_London/show.php?url="+url+"&show=popup", true);
                ShowThumbsHTTPReq.send(null);
	}

	function PopUp(url)
	{
		var popupwin=window.open("/Life_In_London/PopUp.php?"+url,"Full_View","width=700,height=550,resizable=yes,toolbar=no,scrollbars=yes,location=no,directories=no,status=no,menubar=no");
	}

	/* -------------------
		/projects/ 
	----------------------
	*/

	var ShowProjectHTTPReq;
	
	function ShowProjectRETURNFunc()
	{
		try 
		{
			if (ShowProjectHTTPReq.readyState==4)
			{
				if (ShowProjectHTTPReq.status == 200)
				{
					document.getElementById("projectID").innerHTML=ShowProjectHTTPReq.responseText;
					done=1;
				}
				document.getElementById("pbarID").style.display="none";
				Reflow();
			}
		}
		catch (E) { }
	}

	function ShowProject(projectID)
	{
		if ((usragnt=="IE6") || (usragnt=="IE7"))
		{	ShowProjectHTTPReq = new ActiveXObject("Microsoft.XMLHTTP");
		}	
		else
		{	ShowProjectHTTPReq = new XMLHttpRequest();
 		}
		document.getElementById("pbarID").style.display="block";
		ShowProjectHTTPReq.abort();
		ShowProjectHTTPReq.onreadystatechange = ShowProjectRETURNFunc;
		ShowProjectHTTPReq.open("GET", "/projects/show.php?"+projectID, true);
		ShowProjectHTTPReq.send(null);
	}

	/* -------------------
		/career/
	----------------------
	*/

	var DescribeEmployerHTTPReq;
	
	function DescribeEmployerRETURNFunc()
	{
		try 
		{
			if (DescribeEmployerHTTPReq.readyState==4)
			{
				if (DescribeEmployerHTTPReq.status == 200)
				{
					document.getElementById("hoverID").innerHTML=DescribeEmployerHTTPReq.responseText;
					done=1;
				}
				Reflow();
			}
		}
		catch (E) { }
	}

	function DescribeEmployer(employerID)
	{
		if ((usragnt=="IE6") || (usragnt=="IE7"))
		{	DescribeEmployerHTTPReq = new ActiveXObject("Microsoft.XMLHTTP");
		}	
		else
		{	DescribeEmployerHTTPReq = new XMLHttpRequest();
 		}
		HoverOver("Loading details, please wait...<img src='progress.gif' alt='progress'/>");
		DescribeEmployerHTTPReq.abort();
		DescribeEmployerHTTPReq.onreadystatechange = DescribeEmployerRETURNFunc;
		DescribeEmployerHTTPReq.open("GET", "/career/DescribeEmployer.php?"+employerID, true);
		DescribeEmployerHTTPReq.send(null);
	}

	/* -------------------
		/
	----------------------
	*/

	function BopThen(Id2Bop)
	{
		BopMargin=BopMargin+BopMove;
		document.getElementById(Id2Bop).style.marginLeft=BopMargin+"px";
		if (BopMargin==0) 
		{
			window.onresize=Reflow;
			clearInterval(counter);
		}
		if (BopMargin>30) {BopMove=-2; BopMargin=30;}
	}

	function Bop(Id2Bop)
	{
		BopMove=6;
		BopMargin=-101;
		if (document.getElementById(Id2Bop))
		{
			document.getElementById(Id2Bop).style.textIndent="0px";
			counter=window.setInterval("BopThen('"+Id2Bop+"')",2);
		}
	}

	function Reflow()
	{
		var adjy=35;
		var hdry=document.getElementById("headerID").offsetHeight;
		var bdyy=document.getElementById("mainbodyID").offsetHeight;
		var ftry=document.getElementById("footerID").offsetHeight;
		if ((usragnt=="IE6") || (usragnt=="IE7")) { var winy=document.documentElement.clientHeight; } else { var winy=window.innerHeight; }
		if ((hdry+bdyy+ftry)<winy) { document.getElementById("footerID").style.top=(winy-hdry-bdyy-ftry-adjy)+'px'; }
		else
		{	document.getElementById("footerID").style.top="0px";
			ftry=0;
		}
		if (document.getElementById('timeLineID')) { document.getElementById('timeLineID').style.height=(winy-hdry-ftry-adjy-23)+'px'; }
	}

	function CursorTracker(e) 
	{
		var myPos=0;
		var mxPos=0;
		if ((usragnt=="FF") || (usragnt=="S") || (usragnt=="O")) { mxPos = e.pageX; myPos = e.pageY;}
		if ((usragnt=="IE7") || (usragnt=="IE6")) { mxPos = mouseX(event); myPos = mouseY(event);}
		document.getElementById('hoverID').style.left = (mxPos+5) + "px";
		document.getElementById('hoverID').style.top = (myPos+5) + "px";
	}

	function HoverZap()
	{
 	 	document.getElementById('hoverID').innerHTML = "";
  		document.getElementById('hoverID').style.display= "none";
	}

	function HoverOut()
	{
		this.xxx=window.setTimeout('HoverZap()',500);
	}

	function HoverOver(s)
	{
		if (this.xxx != null) { window.clearTimeout(this.xxx); }
		if (renderdone==true)
		{
			document.getElementById('hoverID').innerHTML= s;
			document.getElementById('hoverID').style.display= "block";
		}
	}

	function init()
	{
		usragnt="NA";
		if (navigator.userAgent.indexOf("MSIE 7.0") != -1) { usragnt="IE7"; }
		if (navigator.userAgent.indexOf("MSIE 6.0") != -1) { usragnt="IE6"; }
		if (navigator.userAgent.indexOf("Firefox") != -1)  { usragnt="FF";  }
		if (navigator.userAgent.indexOf("Opera") != -1)  { usragnt="O";  }
		if (navigator.userAgent.indexOf("Safari") != -1) { usragnt="S"; }
		Reflow();
		renderdone=true;
		Bop('H1ID');

	}

	window.onload=init;
// -->


