//v1.0
//Copyright 2006 Adobe Systems, Inc. All rights reserved.
function AC_AddExtension(src, ext)
{
  if (src.indexOf('?') != -1)
    return src.replace(/\?/, ext+'?'); 
  else
    return src + ext;
}

function AC_Generateobj(objAttrs, params, embedAttrs) 
{ 
  var str = '<object ';
  for (var i in objAttrs)
    str += i + '="' + objAttrs[i] + '" ';
  str += '>';
  for (var i in params)
    str += '<param name="' + i + '" value="' + params[i] + '" /> ';
  str += '<embed ';
  for (var i in embedAttrs)
    str += i + '="' + embedAttrs[i] + '" ';
  str += ' ></embed></object>';

  document.write(str);
}

function AC_FL_RunContent(){
  var ret = 
    AC_GetArgs
    (  arguments, ".swf", "movie", "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
     , "application/x-shockwave-flash"
    );
  AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);
}

function AC_SW_RunContent(){
  var ret = 
    AC_GetArgs
    (  arguments, ".dcr", "src", "clsid:166B1BCA-3F9C-11CF-8075-444553540000"
     , null
    );
  AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);
}

function AC_GetArgs(args, ext, srcParamName, classid, mimeType){
  var ret = new Object();
  ret.embedAttrs = new Object();
  ret.params = new Object();
  ret.objAttrs = new Object();
  for (var i=0; i < args.length; i=i+2){
    var currArg = args[i].toLowerCase();    

    switch (currArg){	
      case "classid":
        break;
      case "pluginspage":
        ret.embedAttrs[args[i]] = args[i+1];
        break;
      case "src":
      case "movie":	
        args[i+1] = AC_AddExtension(args[i+1], ext);
        ret.embedAttrs["src"] = args[i+1];
        ret.params[srcParamName] = args[i+1];
        break;
      case "onafterupdate":
      case "onbeforeupdate":
      case "onblur":
      case "oncellchange":
      case "onclick":
      case "ondblClick":
      case "ondrag":
      case "ondragend":
      case "ondragenter":
      case "ondragleave":
      case "ondragover":
      case "ondrop":
      case "onfinish":
      case "onfocus":
      case "onhelp":
      case "onmousedown":
      case "onmouseup":
      case "onmouseover":
      case "onmousemove":
      case "onmouseout":
      case "onkeypress":
      case "onkeydown":
      case "onkeyup":
      case "onload":
      case "onlosecapture":
      case "onpropertychange":
      case "onreadystatechange":
      case "onrowsdelete":
      case "onrowenter":
      case "onrowexit":
      case "onrowsinserted":
      case "onstart":
      case "onscroll":
      case "onbeforeeditfocus":
      case "onactivate":
      case "onbeforedeactivate":
      case "ondeactivate":
      case "type":
      case "codebase":
        ret.objAttrs[args[i]] = args[i+1];
        break;
      case "width":
      case "height":
      case "align":
      case "vspace": 
      case "hspace":
      case "class":
      case "title":
      case "accesskey":
      case "name":
      case "id":
      case "tabindex":
        ret.embedAttrs[args[i]] = ret.objAttrs[args[i]] = args[i+1];
        break;
      default:
        ret.embedAttrs[args[i]] = ret.params[args[i]] = args[i+1];
    }
  }
  ret.objAttrs["classid"] = classid;
  if (mimeType) ret.embedAttrs["type"] = mimeType;
  return ret;
}


function mmLoadMenus() {
  if (window.mm_menu_0604103850_0) return;
  window.mm_menu_0604103850_0 = new Menu("root",164,20,"Arial, Helvetica, sans-serif",10,"#FFFFFF","#FF9933","#f6732f","#000000","left","middle",5,0,20,-5,7,true,false,true,0,true,true);
   mm_menu_0604103850_0.addMenuItem("Key&nbsp;Staff","location='index.php?go=keystaff'");
  mm_menu_0604103850_0.addMenuItem("Contact&nbsp;Us","location='index.php?go=contactus'");
  mm_menu_0604103850_0.addMenuItem("Recruitment","location='index.php?go=recruitment'");
  mm_menu_0604103850_0.addMenuItem("Terms&nbsp;of&nbsp;Business","location='index.php?go=terms'");
  mm_menu_0604103850_0.addMenuItem("FSA&nbsp;Notice","location='index.php?go=FSA'");
  mm_menu_0604103850_0.addMenuItem("Glossary&nbsp;of&nbsp;Terms","location='index.php?go=glossary'");
   mm_menu_0604103850_0.addMenuItem("Environment","location='index.php?go=environment'");
    mm_menu_0604103850_0.addMenuItem("Where&nbsp;to&nbsp;find&nbsp;us","location='index.php?go=wheretofind'");
  mm_menu_0604103850_0.fontWeight="bold";
  mm_menu_0604103850_0.hideOnMouseOut=true;
  mm_menu_0604103850_0.bgColor='#555555';
  mm_menu_0604103850_0.menuBorder=0;
  mm_menu_0604103850_0.menuLiteBgColor='#FFFFFF';
  mm_menu_0604103850_0.menuBorderBgColor='#000000';

  window.mm_menu_0604005752_0 = new Menu("root",184,20,"Arial, Helvetica, sans-serif",10,"#FFFFFF","#FF9933","#f6732f","#000000","left","middle",5,0,20,-5,7,true,false,true,0,true,true);
mm_menu_0604005752_0.addMenuItem("Protecting&nbsp;Your&nbsp;Investments","location='index.php?go=protecting'");
mm_menu_0604005752_0.addMenuItem("Contractors&nbsp;Insurance","location='index.php?go=contractors'");
mm_menu_0604005752_0.addMenuItem("Liabilities","location='index.php?go=liabilities'");
mm_menu_0604005752_0.addMenuItem("Commercial&nbsp;Combined","location='index.php?go=commercialcombined'");
mm_menu_0604005752_0.addMenuItem("Commercial&nbsp;Property","location='index.php?go=commercial'");
mm_menu_0604005752_0.addMenuItem("Motor&nbsp;Fleet","location='index.php?go=motor'");
mm_menu_0604005752_0.addMenuItem("Risk&nbsp;Management","location='index.php?go=risk'");
mm_menu_0604005752_0.addMenuItem("Commercial&nbsp;Legal&nbsp;Exps&nbsp;Insurance","location='index.php?go=commerciallegal'");
mm_menu_0604005752_0.addMenuItem("Insuring&nbsp;renovation&nbsp;&amp;&nbsp;repairs","location='index.php?go=renovation'");
mm_menu_0604005752_0.addMenuItem("Directors&nbsp;&&nbsp;&nbsp;Offices","location='index.php?go=directors'");
mm_menu_0604005752_0.addMenuItem("Niche&nbsp;Packages","location='index.php?go=niche'");
mm_menu_0604005752_0.addMenuItem("Newsletter&nbsp;","location='index.php?go=newslettercorporate'");
   mm_menu_0604005752_0.fontWeight="bold";
   mm_menu_0604005752_0.hideOnMouseOut=true;
   mm_menu_0604005752_0.bgColor='#555555';
   mm_menu_0604005752_0.menuBorder=0;
   mm_menu_0604005752_0.menuLiteBgColor='#FFFFFF';
   mm_menu_0604005752_0.menuBorderBgColor='#000000';

  window.mm_menu_0604165624_0 = new Menu("root",184,20,"Arial, Helvetica, sans-serif",10,"#FFFFFF","#FF9933","#f6732f","#000000","left","middle",5,0,20,-5,7,true,false,true,0,true,true);
  mm_menu_0604165624_0.addMenuItem("Travel","location='index.php?go=travel'");
  mm_menu_0604165624_0.addMenuItem("Home&nbsp;Insurance","location='index.php?go=buildingspersonal'");
    mm_menu_0604165624_0.addMenuItem("Motor&nbsp;Insurance","location='index.php?go=motorpersonal'");
  mm_menu_0604165624_0.addMenuItem("Claims&nbsp;Service","location='index.php?go=claims'");
    mm_menu_0604165624_0.addMenuItem("Let&nbsp;Homes","location='index.php?go=lets'");
    mm_menu_0604165624_0.addMenuItem("Holiday&nbsp;Homes","location='index.php?go=holiday'");
    mm_menu_0604165624_0.addMenuItem("Newsletter&nbsp;","location='index.php?go=newsletter'");
   mm_menu_0604165624_0.fontWeight="bold";
   mm_menu_0604165624_0.hideOnMouseOut=true;
   mm_menu_0604165624_0.bgColor='#555555';
   mm_menu_0604165624_0.menuBorder=0;
   mm_menu_0604165624_0.menuLiteBgColor='#FFFFFF';
   mm_menu_0604165624_0.menuBorderBgColor='#000000';

  window.mm_menu_0604165717_0 = new Menu("root",184,20,"Arial, Helvetica, sans-serif",10,"#FFFFFF","#FF9933","#f6732f","#000000","left","middle",5,0,20,-5,7,true,false,true,0,true,true);
 // mm_menu_0604165717_0.addMenuItem("High&nbsp;value&nbsp;Perfomance&nbsp;Vehicles","location='index.php?go=luxuries'");
  mm_menu_0604165717_0.addMenuItem("Buildings","location='index.php?go=buildings'");
   mm_menu_0604165717_0.addMenuItem("Period&nbsp;and&nbsp;Listed&nbsp;Buildings","location='index.php?go=period'");
    mm_menu_0604165717_0.addMenuItem("Contents","location='index.php?go=contents'");
	 mm_menu_0604165717_0.addMenuItem("Fine&nbsp;Art","location='index.php?go=fineart'");
	  mm_menu_0604165717_0.addMenuItem("Private&nbsp;Collectors","location='index.php?go=privatecollectors'");
	 mm_menu_0604165717_0.addMenuItem("Jewellery","location='index.php?go=jewellery'");
		   mm_menu_0604165717_0.addMenuItem("Yacht","location='index.php?go=yacht'"); 
		   mm_menu_0604165717_0.addMenuItem("Second&nbsp;Homes","location='index.php?go=secondhomes'")
				 mm_menu_0604165717_0.addMenuItem("Newsletter","location='index.php?go=newsletterprivate'");
   mm_menu_0604165717_0.fontWeight="bold";
   mm_menu_0604165717_0.hideOnMouseOut=true;
   mm_menu_0604165717_0.bgColor='#555555';
   mm_menu_0604165717_0.menuBorder=0;
   mm_menu_0604165717_0.menuLiteBgColor='#FFFFFF';
   mm_menu_0604165717_0.menuBorderBgColor='#000000';

mm_menu_0604165717_0.writeMenus();
} // mmLoadMenus()


