//Copyright(C)2002-2009 Pluginlab Limited. All rights reserved.
//www.pluginlab.com
//ProductID:PLVSM
//Registered to:grahamward
var IGMYeFC={dummy:0,
version:'1.0.3.4',
seo_links:1,
menu_width:250,
layer:false,
x:0,
y:0,
valign:0,
is_floating:false,
show_selected:true,
expand_selected:true,
expandSelAnimated:false,
one_opened:true,
animation_type:1,
open_speed:10,
OpenByMouseOver:false,
DelayOpenByMouseOver:1154,
rtl:false,
PREVIEW_BACKGROUND_COLOR:'#FFFFFF',
MENU_NAME:'PLVSM menu',
stream:[0,"Click&nbsp;below&nbsp;for&nbsp;further&nbsp;services","Click below for further services",'','','IGMYeFC__SmallText',25,0,false,0,0,"Professional&nbsp;Indemnity&nbsp;Insurance:","Professional Indemnity Insurance protects you and your clients financially in the event of negligent acts, errors or omissions being made by your practice. It is designed to meet the costs of defending claims as well as any resultant damages, excluding FSA type fines.",'','','IGMYeFC__navHeading',25,0,false,0,0,"For&nbsp;IFAs","For IFAs",'*../../professional-indemnity-insurance-for-ifas.html','','IGMYeFC__MainNav',25,0,false,3,0,"Claims&nbsp;Service","Claims Service",'*../../claims-ifas.html','','IGMYeFC__SubNav',25,0,false,0,0,"MLP&nbsp;Insurance","MLP Insurance",'*../../management-liability-portfolio-insurance-for-ifas.html','','IGMYeFC__SubNav',25,0,false,0,0,"Office&nbsp;Combined&nbsp;Insurance","Office Combined Insurance",'*../../office-insurance-for-ifas.html','','IGMYeFC__SubNav',25,0,false,0,0,"For&nbsp;Investment&nbsp;Funds","For Investment Funds",'*../../investment-fund.html','','IGMYeFC__MainNav',25,0,false,1,0,"Claims&nbsp;Service","Claims Service",'*../../claims-investment-funds.html','','IGMYeFC__SubNav',25,0,false,0,0,"For&nbsp;Mortgage&nbsp;Brokers","For Mortgage Brokers",'*../../professional-indemnity-insurance-for-mortgage-brokers.html','','IGMYeFC__MainNav',25,0,false,3,0,"Claims&nbsp;Service","Claims Service",'*../../claims-mortgage-brokers.html','','IGMYeFC__SubNav',25,0,false,0,0,"MLP&nbsp;Insurance","MLP Insurance",'*../../management-liability-portfolio-insurance-for-mortgage-brokers.html','','IGMYeFC__SubNav',25,0,false,0,0,"Office&nbsp;Combined&nbsp;Insurance","Office Combined Insurance",'*../../office-insurance-for-mortgage-brokers.html','','IGMYeFC__SubNav',25,0,false,0,0,"For&nbsp;Solicitors","For Solicitors",'http://www.pyvlegal.co.uk','','IGMYeFC__MainNav',25,0,false,0,0,"For&nbsp;Other&nbsp;Professions","For Other Professions including Accountants, Approved Inspectors, Business&Management Consultants, Design&Construction, General Brokers, IT Professionals and Recruitment Consultants",'*../../professional-indemnity-insurance-for-other-professions.html','','IGMYeFC__MainMenuOpen',25,0,false,8,0,"Accountants","Accountants",'*../../professional-indemnity-insurance-for-accountants.html','','IGMYeFC__SubNav',25,0,false,0,0,"Approved&nbsp;Inspectors","Approved Inspectors",'*../../professional-indemnity-insurance-for-inspectors.html','','IGMYeFC__SubNav',25,0,false,0,0,"Business&nbsp;&amp;&nbsp;Management&nbsp;Consultants","Business&Management Consultants",'*../../professional-indemnity-insurance-for-business-and-management-consultants.html','','IGMYeFC__SubNav',25,0,false,0,0,"Design&nbsp;&amp;&nbsp;Construction","Design&Construction",'*../../professional-indemnity-insurance-for-design-and-construction.html','','IGMYeFC__SubNav',25,0,false,0,0,"General&nbsp;Brokers","General Brokers",'*../../professional-indemnity-insurance-for-general-brokers.html','','IGMYeFC__SubNav',25,0,false,0,0,"IT&nbsp;Professionals","IT Professionals",'*../../professional-indemnity-insurance-for-it.html','','IGMYeFC__SubNav',25,0,false,0,0,"Recruitment&nbsp;Consultants","Recruitment Consultants",'*../../professional-indemnity-insurance-for-recruitment-consultants.html','','IGMYeFC__SubNav',25,0,false,0,0,"Claims&nbsp;Service","Claims Service",'*../../claims-other-professions.html','','IGMYeFC__SubNav',25,0,false,0,0,"For&nbsp;Wholesale","For Wholesale",'*../../wholesale.html','','IGMYeFC__MainNav',25,0,false,1,0,"Claims&nbsp;Services","Claims Services",'*../../claims-wholesale.html','','IGMYeFC__SubNav',25,0,false,0,0,"Online&nbsp;Quote&nbsp;&amp;&nbsp;Buy","Online Quote&Buy",'*../../quote-and-buy.html','','IGMYeFC__MainNav',25,0,false,0,0,"","",'','','IGMYeFC__Spacer',25,0,false,0,0,"Other&nbsp;Insurance&nbsp;Products:","Other Insurance Products:",'','','IGMYeFC__navHeading',25,0,false,0,0,"D&amp;O&nbsp;and&nbsp;Employment&nbsp;Practices&nbsp;Liability&nbsp;(EPL)","Directors' and Officers Liability(D&O)and Employment Practices Liability(EPL)Insurance",'*../../d-and-o-and-epl.html','','IGMYeFC__MainNav',25,0,false,2,0,"Benefits&nbsp;Summary","Benefits Summary",'*../../epl-benefits.html','','IGMYeFC__SubNav',25,0,false,0,0,"Claims&nbsp;Service","Claims Service",'*../../claims-d-and-o.html','','IGMYeFC__SubNav',25,0,false,0,0,"Management&nbsp;Liability&nbsp;Portfolio&nbsp;(MLP)","Management Liability Portfolio(MLP)",'*../../management-liability-portfolio-insurance.html','','IGMYeFC__MainNav',25,0,false,1,0,"Claims&nbsp;Service","Claims Service",'*../../claims-mlp.html','','IGMYeFC__SubNav',25,0,false,0,0,"Office&nbsp;Combined&nbsp;Insurance","Office Combined Insurance",'*../../office-insurance.html','_top','IGMYeFC__MainNav',25,0,false,1,0,"Claims&nbsp;Service","Claims Service",'*../../claims-office-combined.html','','IGMYeFC__SubNav',25,0,false,0,0,"Warranty&nbsp;and&nbsp;Indemnity&nbsp;Insurance","Warranty and Indemnity Insurance",'*../../warranty.html','','IGMYeFC__MainNav',25,0,false,1,0,"Claims&nbsp;Service","Claims Service",'*../../claims-warranty.html','','IGMYeFC__SubNav',25,0,false,0,0,"","",'','','IGMYeFC__Spacer',25,0,false,0,0,"Company&nbsp;Information:","Company Information",'','','IGMYeFC__navHeading',25,0,false,0,0,"New&nbsp;Products&nbsp;&amp;&nbsp;Services","New Products&Services",'*../../new-products-and-services.html','','IGMYeFC__Products',25,0,false,0,0,"About&nbsp;Us","About Us",'*../../about-us.html','','IGMYeFC__MainNav',25,0,false,0,0,"Careers","Careers",'*../../careers.html','','IGMYeFC__MainNav',25,0,false,0,0,"Claims&nbsp;Service","Claims Service",'*../../claims.html','','IGMYeFC__MainNav',25,0,false,0,0,"Contact&nbsp;Us","Contact Us",'*../../contact-us.aspx','','IGMYeFC__MainNav',25,0,false,0,0,"Media&nbsp;&amp;&nbsp;Events","Media&Events",'*../../media-and-events.html','','IGMYeFC__MainNav',25,0,false,0,0,"Our&nbsp;People","Our People",'*../../our-people.html','','IGMYeFC__MainNav',25,0,false,0,0,"Useful&nbsp;Links","Useful Links",'*../../links.html','','IGMYeFC__MainNav',25,0,false,0],
browser:function(){var ua=navigator.userAgent.toLowerCase()
this.opera=ua.indexOf('opera')>=0
this.safari=ua.indexOf('safari')>=0
this.ie=document.all&&!this.opera
this.macie=this.ie&&ua.indexOf('mac')>=0
this.winie=this.ie&&!this.macie
this.ieCanvas=(this.ie&&document.compatMode=="CSS1Compat")?document.documentElement:document.body
return this},
setPathAdjustment:function(ID){var sl=''
var sc=document.getElementsByTagName('script')
for(var i=0;i<sc.length;i++){if(sc[i].innerHTML.search(ID)>-1)sl=sc[i].src}this.SCRIPT_LOCATION=sl.substr(0, sl.lastIndexOf('/')+1)},
adjustPath:function(path){if(path.charAt(0)!='*')return path
return this.SCRIPT_LOCATION+path.substr(1)},
linkScripts:function(aNewScripts){var scripts=document.getElementsByTagName('script')
for(var i=0;i<aNewScripts.length;i++){var bScriptLinked=false
for(var j=0;j<scripts.length;j++){if(aNewScripts[i]==scripts[j].src){bScriptLinked=true;break}}if(!bScriptLinked)document.write("<script src='"+this.adjustPath(aNewScripts[i])+"' type='text/javascript'><\/script>")}},
isCurrent:function(r){if(!r)return false
var l=location.href
if(r.search('//')==-1){if(r.charAt(0)=='/')
r=l.replace(/(.*\/\/[^\/]*).*/,'$1')+r
else
r=l.replace(/[^\/]*$/,'')+r}do{var r1=r
r=r1.replace(/[^\/]*\/\.\.\//,'')}while(r!=r1)
return r==l},
addLoadEvent:function(f){var done=0
function w(){if(!done){done=1
f()}}if(document.addEventListener){document.addEventListener('DOMContentLoaded', w, false)}if(this.br.ie&&window==top)(function(){try{document.documentElement.doScroll('left')}catch(e){setTimeout(arguments.callee, 0)
return}w()})()
var oldf=window.onload
if(typeof oldf!='function'){window.onload=w}else{window.onload=function(){try{oldf()}catch(e){}w()}}},
init:function(){var m=this
m.ID=PLVSM_ID
m.br=new m.browser()
m.setPathAdjustment('PLVSMMenu script ID:'+m.ID+' ')
m.linkScripts(new Array())
m.addLoadEvent(m.onload)},
onload:function(){IGMYeFC.start()},
addItem:function(i, p, level, submenuIndex){if(i>=this.stream.length)return i;var li=document.createElement('li');li.bClosed=true;li.bAnimated=false;li.ItemType=this.stream[i++];li.ItemText=this.stream[i++];li.title=this.stream[i++];li.title=li.title.replace(/&quot;/gi, '"');li.ItemURL=this.adjustPath(this.stream[i++]);li.URLTarget=this.stream[i++];if(li.URLTarget.substr(0,3)=='_PL'){li.func=this.stream[i++];li.params=this.stream[i++];}li.classMain=this.stream[i++];li.h=this.stream[i++];var VertInterval=this.stream[i++];//-margin       css 
li.h+=VertInterval;li.height=li.h-VertInterval+'px';//
li.AlwaysStayOpen=this.stream[i++];var nCountChildren=this.stream[i++];li.ItemCountChildren=nCountChildren;li.level=level;li.style.width=this.menu_width+'px';li.style.listStyle='none';li.style.padding='0px';li.style.margin='0px';li.style.overflow='hidden';li.style.display='block';li.style.float='left';li.style.border='0px';li.style.fontSize='1px';li.sel=false;if(this.show_selected){li.sel=this.isCurrent(li.ItemURL);}li.onclick=this.onclick;var curLi=this.submenus[submenuIndex].lis.length;this.submenus[submenuIndex].lis[curLi]=li;if(nCountChildren>0){this.SubMenuId++;this.submenus[this.SubMenuId]=new this.submenu(this, li, this.SubMenuId, submenuIndex);li.ChildSubMenuId=this.SubMenuId;}else{li.ChildSubMenuId=-1;}var curSubMenuInd=this.SubMenuId;while(nCountChildren--){i=this.addItem(i, this.submenus[curSubMenuInd].ul, level+1, curSubMenuInd);}if(level==0){i=this.addItem(i, p, level, submenuIndex);}return i;},
start:function(){var m=this;m.pref='PLVSM';m.submenus=new Array;m.SubMenuId=0;m.submenus[m.SubMenuId]=new m.submenu(m, null, 0,-1);var streamImdex=0;m.addItem(streamImdex, m.submenus[m.SubMenuId].ul, 0, m.SubMenuId);var i=0;while(i<m.submenus.length){var ul=m.submenus[i].ul;var lis=m.submenus[i].lis;if(lis){for(var curLi=0;curLi<lis.length;curLi++){var li=lis[curLi];var h=document.createElement('div');if(li.sel){h.className=li.classMain+'_SEL';}else{h.className=li.classMain;h.classMain=li.classMain;h.classMO=li.classMain+'_MO';h.onmouseover=this.onmouseover;h.onmouseout=this.onmouseout;}h.innerHTML=li.ItemText;li.appendChild(h);if(li.ChildSubMenuId>=0){li.appendChild(m.submenus[li.ChildSubMenuId].div);}}}if(i==0){while(ul.firstChild)ul.removeChild(ul.firstChild);}for(var curLi=0;curLi<lis.length;curLi++){ul.appendChild(lis[curLi]);}i++;}this.ExpandAllAlwaysStayOpen();if(this.expand_selected==true){this.ExpandSelected();}},
arr:[],
save_open_speed:0,
DownAfterWait:function(ind){if(this.arr[ind].SMParent.bAnimated==true){window.setTimeout('IGMYeFC.DownAfterWait('+ind+')', 50);return;}this.arr[ind].SMParent.bClosed=false;ind--;if(ind>=0){eval('IGMYeFC.sm'+this.arr[ind].SMParent.ChildSubMenuId+'.slidedown(0, 0, 2, 0, 0,-2)');this.DownAfterWait(ind);}else{this.arr.length=0;this.open_speed=this.save_open_speed;}},
ExpandAllAlwaysStayOpen:function(){for(var j=0;j<this.submenus[0].lis.length;j++){//top level only
if(this.submenus[0].lis[j].AlwaysStayOpen==true&&this.submenus[0].lis[j].bClosed==true){this.save_open_speed=this.open_speed;this.open_speed=1000;eval('IGMYeFC.sm'+this.submenus[0].lis[j].ChildSubMenuId+'.slidedown(0, 0, 2, 0, 0,-2)');this.open_speed=this.save_open_speed;this.submenus[0].lis[j].bClosed=false;}}},
ExpandSelected:function(){for(var i=0;i<this.submenus.length;i++){for(var j=0;j<this.submenus[i].lis.length;j++){if(this.submenus[i].lis[j].sel==true&&
(i>0&&this.submenus[i].SMParent.bClosed==true||this.submenus[i].lis[j].ChildSubMenuId>=0)){if(this.submenus[i].lis[j].ChildSubMenuId>=0){this.arr.push(this.submenus[this.submenus[i].lis[j].ChildSubMenuId]);}if(this.submenus[i].lis[j].level>0){var parent=this.submenus[i];while(parent.parentSubMenuInd>-1){this.arr.push(parent);parent=this.submenus[parent.parentSubMenuInd];}}if(this.arr.length>0){this.save_open_speed=this.open_speed;if(this.expandSelAnimated==false){this.open_speed=1000;}eval('IGMYeFC.sm'+this.arr[this.arr.length-1].SMParent.ChildSubMenuId+'.slidedown(0, 0, 2, 0, 0,-2)');this.DownAfterWait(this.arr.length-1);return;}}}}},
CloseAllLevels:function(level, index){for(var j=0;j<this.submenus[index].lis.length;j++){if(this.submenus[index].lis[j].bClosed==false&&
 this.submenus[index].lis[j].level==level&&
 this.submenus[index].lis[j].AlwaysStayOpen==false){eval('IGMYeFC.sm'+this.submenus[index].lis[j].ChildSubMenuId+'.slideup(0, 0, 2)');this.submenus[index].lis[j].bClosed=true;}}},
GetOpened:function(level, index){for(var j=0;j<this.submenus[index].lis.length;j++){if(this.submenus[index].lis[j].bClosed==false&&
 this.submenus[index].lis[j].level==level&&
 this.submenus[index].lis[j].AlwaysStayOpen==false){return this.submenus[index].lis[j].ChildSubMenuId;}}return-1;},
IsOtherAnimated:function(SubMenuId){for(var i=0;i<this.submenus.length;i++){for(var j=0;j<this.submenus[i].lis.length;j++){if(this.submenus[i].lis[j].bAnimated==true&&this.submenus[i].lis[j].ChildSubMenuId!=SubMenuId){return true;}}}return false;},
CurLi:null,
DelayTimer:null,
OpenURL:function(){if(IGMYeFC.CurLi){if(IGMYeFC.CurLi.func)
eval(IGMYeFC.CurLi.func+'("PLVSMMenu script ID:"+IGMYeFC.ID,"'+IGMYeFC.CurLi.ItemURL+'",'+IGMYeFC.CurLi.params+')')
else{if(!IGMYeFC.CurLi.ItemURL)return
if(IGMYeFC.CurLi.URLTarget)window.open(IGMYeFC.CurLi.ItemURL,IGMYeFC.CurLi.URLTarget)
else location=IGMYeFC.CurLi.ItemURL}}},
onclick:function(evt){var e=IGMYeFC.br.ie?event:evt;if(this.level&&this.level>0){if(IGMYeFC.br.ie)e.cancelBubble=true;else e.stopPropagation();}if(this.sel==true&&this.ChildSubMenuId<0)return;if(this.AlwaysStayOpen==true)return;if((this.sel==false)&&(this.ChildSubMenuId<0||(this.ChildSubMenuId>=0&&this.bClosed))){if(!IGMYeFC.OpenByMouseOver){IGMYeFC.CurLi=this;IGMYeFC.OpenURL();}}if(this.ChildSubMenuId>=0){if(IGMYeFC.IsOtherAnimated(-1)==false){if(this.bClosed){if(IGMYeFC.one_opened==true){if(IGMYeFC.animation_type==1){eval('SubMenuObj=IGMYeFC.sm'+this.ChildSubMenuId);if(SubMenuObj){IGMYeFC.CloseAllLevels(this.level, SubMenuObj.parentSubMenuInd);}}}eval('IGMYeFC.sm'+this.ChildSubMenuId+'.slidedown(0, 0, 2, 0, 0,-2)');this.bClosed=false;}else{eval('IGMYeFC.sm'+this.ChildSubMenuId+'.slideup(0, 0, 2)');this.bClosed=true;}}}},
onmouseover:function(evt){this.className+=' '+this.classMO;if(IGMYeFC.OpenByMouseOver){IGMYeFC.CurLi=this.parentNode;IGMYeFC.DelayTimer=setTimeout('IGMYeFC.OpenURL()', IGMYeFC.DelayOpenByMouseOver);}},
onmouseout:function(evt){this.className=this.classMain;if(IGMYeFC.DelayTimer){clearTimeout(IGMYeFC.DelayTimer);IGMYeFC.CurLi=null;}},
getSource:function(evt, CSSClass){var e=this.br.ie?event.srcElement:evt.target
if(e&&e.className&&e.className.substr(0,CSSClass.length)==CSSClass)
return e;return;}};IGMYeFC.submenu=function(m, p, index, parentSM){var f=this
f.lis=new Array;if(index==0){f.div=document.getElementById(m.ID+'Div');var uls=f.div.getElementsByTagName('ul');if(uls[0]){f.ul=uls[0];}}else{f.div=document.createElement('div');f.div.style.margin='0px';f.div.style.padding='0px';f.div.style.overflow='hidden';f.div.style.height='0px';f.div.style.display='none';f.div.style.border='0px';p.Child=f;f.ul=document.createElement('ul');f.ul.style.margin='-10000px 0px 0px';f.ul.style.padding='0px';f.ul.style.overflow='hidden';f.ul.style.display='block';f.ul.style.float='left';f.ul.style.width=m.menu_width+'px';f.ul.style.listStyle='none';f.ul.fontSize='1px';f.div.appendChild(f.ul);}f.parentSubMenuInd=parentSM;f.SubMenuInd=index;f.m=m;f.SMParent=p;f.obj='IGMYeFC.sm'+index;f.ParentNeedUp=false;eval(f.obj+'=f');};IGMYeFC.submenu.prototype={GetChildSize:function(iSize, iSubMenuId){with(this){for(var i=0;i<m.submenus.length;i++){if(m.submenus[i].parentSubMenuInd==iSubMenuId){if(m.submenus[i].SMParent&&m.submenus[i].SMParent.bClosed==false){for(j=0;j<m.submenus[i].lis.length;j++){iSize+=m.submenus[i].lis[j].h;}}iSize=GetChildSize(iSize, m.submenus[i].SubMenuInd);}}}return iSize;},
slidedown:function(b, endSize, bRecurs, bUp, endSizeUp, Id){with(this){if(m.one_opened==true&&m.animation_type==1){if(bRecurs==2&&m.IsOtherAnimated(SubMenuInd)){window.setTimeout(obj+'.slidedown(0, 0, 2, 0, 0,-1)', 20);return;}}if(bRecurs==2){SMParent.bAnimated=true;ParentNeedUp=true;}if(m.one_opened==true){if(m.animation_type==0&&bUp>=0){if(Id==-2){Id=m.GetOpened(SMParent.level, parentSubMenuInd);}if(Id>=0&&bUp<=endSizeUp){eval('var valUp=m.sm'+Id+'.slideup(bUp, endSizeUp, 1)');bUp=valUp.b;endSizeUp=valUp.endSize;}}}if(endSize==0){for(i=0;i<lis.length;i++){endSize+=lis[i].h;}endSize=GetChildSize(endSize, SubMenuInd);}if(b<0)b=0
if(b==0){div.style.display='block';}var addb=m.open_speed;if(bRecurs==2){b+=m.open_speed;if((b>endSize)&&(b-endSize)<m.open_speed)b=endSize;}if(ul.style.marginTop!='0px'){ul.style.marginTop=b-endSize+'px';}if(b>0){if(b==endSize){var mod1=endSize % addb;if(mod1!=0)addb=mod1;}div.style.height=div.clientHeight+addb+'px';}if(parentSubMenuInd>0){eval(m.submenus[parentSubMenuInd].obj+'.slidedown('+ b+','+endSize+',0,-1,-1,-1)');}if(bRecurs==2&&b>=endSize){SMParent.bAnimated=false;if(m.one_opened==true){if(m.animation_type==0&&bUp>=0){if(Id>=0&&bUp<endSizeUp){eval('m.sm'+Id+'.slideup(bUp, endSizeUp, 2)');}}}return;}if(bRecurs==2){if(b<endSize){window.setTimeout(obj+'.slidedown('+b+','+endSize+',2,'+bUp+','+endSizeUp+','+Id+')', 20);}}}},
slideup:function(b, endSize, bRecurs){with(this){if(bRecurs==2){SMParent.bAnimated=true;}if(endSize==0){endSize=div.clientHeight;}if(b<0)b=0
if(bRecurs>0){if(b<endSize)
b+=m.open_speed;if((b>endSize)&&(b-endSize)<=m.open_speed)b=endSize;}if(bRecurs>0){ul.style.marginTop=-b+'px';}var addb=m.open_speed;if(b>0){if(b==endSize){var mod1=endSize % addb;if(mod1!=0)addb=mod1;}var divh=div.clientHeight-addb;if(divh<0)divh=0;div.style.height=divh+'px';}if(bRecurs>0&&b==endSize){div.style.display='none';}if(parentSubMenuInd>0){if(b<=endSize){if(ParentNeedUp){eval(m.submenus[parentSubMenuInd].obj+'.slideup('+ b+','+endSize+',0)');if(b==endSize){ParentNeedUp=false;}}}}if(b<endSize){if(bRecurs==2){window.setTimeout(obj+'.slideup('+b+','+endSize+',2)', 20);}}else{SMParent.bAnimated=false;if(bRecurs>0){SMParent.bClosed=true;}}}return{b:b, endSize:endSize};},
dummy:null};IGMYeFC.init();