
function createMap()
{
	if (GBrowserIsCompatible())
	{
		function createMarker(point,html)
		{
			// FF 1.5 fix
	
			html = '<div style="white-space:nowrap;">' + html + '</div>';
			var marker = new GMarker(point);
			GEvent.addListener(marker, "click", function() {
			marker.openInfoWindowHtml(html);
		});
			
		return marker;
	}
	
	var map = new GMap(document.getElementById("locmap"));
	var point = new GLatLng(51.511694, -0.081436)

	map.addControl( new GSmallMapControl() );
	map.centerAndZoom(point,3);
	var marker = createMarker(point,"<b>London Special Risks Ltd,<br>Minster House,<br>42 Mincing Lane,<br>London EC3R 7AE</b>")
	map.addOverlay(marker);
	}
}

var $buoop = {} 
$buoop.ol = window.onload; 
window.onload=function()
{ 
	 if ($buoop.ol) $buoop.ol(); 
	 var e = document.createElement("script"); 
	 e.setAttribute("type", "text/javascript"); 
	 e.setAttribute("src", "http://browser-update.org/update.js"); 
	 document.body.appendChild(e); 
} 


<!--
function MM_validateForm() { //v4.0
  if (document.getElementById){
    var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
    for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=document.getElementById(args[i]);
      if (val) { nm=val.name; if ((val=val.value)!="") {
        if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
          if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-mail address.\n';
        } else if (test!='R') { num = parseFloat(val);
          if (isNaN(val)) errors+='- '+nm+' the number must not contain any spaces.\n';
          if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
            min=test.substring(8,p); max=test.substring(p+1);
            if (num<min || max<num) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';
      } } } else if (test.charAt(0) == 'R') errors += '- '+nm+' is required.\n'; }
    } if (errors) alert('The following error(s) occurred:\n'+errors);
    document.MM_returnValue = (errors == '');
} }
//-->


// IE6 PNG Fix
//if (jQuery.browser.msie) { if(parseInt(jQuery.browser.version) == 6) $("img").pngfix(); }

// Dom
$(document).ready(function()
{
	// Create google map
	if ( $('#locmap').length ) createMap();
	
	// Initiate homepage slider
	if ( $('#slider').length ) $("#slider").easySlider({auto: true,continuous: true,controlsShow: false,speed: 1500,pause: 6000});
	
flowplayer(
		"play-video", 
		"/assets/flash/flowplayer-3.2.7.swf", 
		"/assets/flash/LSR-Final-Cut-large.flv"
	);
}); 



