function positionElements(){ spaceSides = ((document.documentElement.clientWidth - 860)/2); document.getElementById('nav').style.right = spaceSides + "px"; document.getElementById('nav').style.visibility = "visible"; window.status = "Wiggintons Wills - Inheriting a New Dawn";  if(navigator.appName == "Microsoft Internet Explorer"){  if(navigator.userAgent.indexOf("MSIE 7") != -1){ /* tweak for IE7 as non-standards compliant */   document.getElementById('contentPane').style.paddingTop = "21px";   document.getElementById('nav').style.paddingTop = "15px";   document.getElementById('nav').style.paddingBottom = "5px";   document.getElementById('nav').style.height = "490px";  }  else{   window.status = "IE8";  } }  document.getElementById('contentPane').style.backgroundImage = "url('images/content_top_ie.png')"; if(navigator.userAgent.indexOf("Firefox")!=-1){ document.getElementById('nav').style.height = "425px"; } if(navigator.userAgent.indexOf("Safari")!=-1){ document.getElementById('nav').style.height = "430px"; } if(navigator.userAgent.indexOf("Chrome")!=-1){ document.getElementById('nav').style.height = "463px"; }}  function moveNav(){  /* Control Box Position */ if(navigator.appName == "Microsoft Internet Explorer"){   if(navigator.userAgent.indexOf("MSIE 8")!=-1){   document.getElementById('nav').style.top = document.documentElement.clientHeight + document.documentElement.scrollTop - 430 - 105 + "px";  }  if(navigator.userAgent.indexOf("MSIE 7")!=-1){   document.getElementById('nav').style.top = document.documentElement.clientHeight + document.documentElement.scrollTop - 430 - 150 + "px";  } }	 else{ document.getElementById('nav').style.top = window.scrollY + 200 + "px"; } /*  adjustment for Chrome */ if(navigator.userAgent.indexOf("Chrome")!=-1){ document.getElementById('nav').style.top = window.scrollY + 150 - 45 + "px"; } /* adjustment for Firefox */ if(navigator.userAgent.indexOf("Firefox")!=-1){ document.getElementById('nav').style.top = window.scrollY + 135 + "px"; } /* Impose Top Limit */ if(parseFloat(document.getElementById('nav').style.top) < 200){ document.getElementById('nav').style.top = "200px"; }}  function doCollapse(div,forceOpen){ sectionHeights = new Array(5);  /*extra changes as Chrome has its own rules about div heights */ if(navigator.userAgent.indexOf("Chrome")!=-1){  sectionHeights['howhelp'] = "205px";  sectionHeights['accreditation'] = "150px";  sectionHeights['services'] = "400px";  sectionHeights['emailForm'] = "325px";  sectionHeights['more'] = "85px";     } else if(navigator.userAgent.indexOf("MSIE")!=-1){  /* IE NEEDS ITS OWN DIMENSIONS AS IT'S "SPECIAL" - GET THIS DONE! */  sectionHeights['howhelp'] = "195px";  if(navigator.userAgent.indexOf("MSIE 7")!=-1){   sectionHeights['howhelp'] = "205px";  }    sectionHeights['accreditation'] = "150px";  sectionHeights['services'] = "385px";    if(navigator.userAgent.indexOf("MSIE 7")!=-1){    sectionHeights['services'] = "400px";  }    sectionHeights['emailForm'] = "325px";  sectionHeights['more'] = "85px";     } else{  sectionHeights['howhelp'] = "170px";  sectionHeights['accreditation'] = "130px";  sectionHeights['services'] = "330px";  sectionHeights['emailForm'] = "325px";  sectionHeights['more'] = "75px"; } if(forceOpen != 1){  if(document.getElementById(div).style.visibility == "hidden"){   document.getElementById(div).style.visibility = "visible";   document.getElementById(div).style.height = sectionHeights[div];  }  else{   document.getElementById(div).style.visibility = "hidden";    document.getElementById(div).style.height = "0px";  } } else{   document.getElementById(div).style.visibility = "visible";   document.getElementById(div).style.height = sectionHeights[div]; }}  function formIn(obj,x){ if(x==1){  obj.style.backgroundColor="#ffffff"; } else{  obj.style.backgroundColor="#ffffcc";    }}function showTerms(e,which,dir){  whichBrowser = navigator.userAgent;  if(dir==1){    terms = new Array(8);    defs = new Array(8);    terms[0] = "Wills";    defs[0] = "Legal Document ensuring post-death wishes";    terms[1] = "Executor Support";    defs[1] = "Giving post-death representatives clear instructions and help";    terms[2] = "Funeral Plans";    defs[2] = "Scheme to guarantee funeral wishes are met with ease";       terms[3] = "Living Will/Advanced Decision";    defs[3] = "Ensuring authorities know your wishes when incapacitated";       terms[4] = "Letters of Remembrance";    defs[4] = "Letter expressing your personal thoughts put with the Will";       terms[5] = "Will Trusts";    defs[5] = "Empowering chosen people to manage specific post-death matters";       terms[6] = "Storage";    defs[6] = "Will documents stored safely in Probate Registry with full access";       terms[7] = "Powers of Attorney";    defs[7] = "Empowering people to manage your concerns when incapacitated";      document.getElementById('toolTip').innerHTML = "<strong>" + terms[which] + "</strong><br><em>" + defs[which] + "</em>";      if(navigator.appName == "Microsoft Internet Explorer"){	document.getElementById('toolTip').style.top = parseFloat(e.clientY) + parseFloat(document.body.parentNode.scrollTop) - 25 + "px";	/* document.getElementById('toolTip').style.top = document.documentElement.clientHeight - parseFloat(document.getElementById('toolTip').style.height) - 50 + "px"; */	document.getElementById('toolTip').style.left = parseFloat(e.clientX) + 60 + "px";      }   else{    document.getElementById('toolTip').style.top = parseFloat(e.clientY) + window.scrollY - 25 + "px";	document.getElementById('toolTip').style.left = parseFloat(e.clientX) + 60 + "px";   }      document.getElementById('toolTip').style.visibility = "visible";  }  else{   document.getElementById('toolTip').style.visibility = "hidden";   document.getElementById('toolTip').style.top = "0px";   document.getElementById('toolTip').style.left = "0px";  }} function confirmSent(){ if(document.referrer){  if(document.referrer.indexOf("FormMail")!=-1){   alert('Thank you for your enquiry submission!\nWe will be in touch soon!');   } }} window.onscroll = moveNav;