// JavaScript Document

//<![CDATA[



var limelightmenu=new Array()

limelightmenu[0]='<a href="advice_startingup.html" class="helplink">Thinking of starting up on your own?</a>'

limelightmenu[1]='<a href="advice_inbusiness.html" class="helplink">Already in business, need an accountant or some advice?</a>'

limelightmenu[2]='<a href="advice_change.html" class="helplink">Want to change accountants?</a>'

limelightmenu[3]='<a href="advice_reviewing.html" class="helplink">Reviewing your business and its status?</a>'

limelightmenu[4]='<a href="advice_helpinghand.html" class="helplink">Just want a helping hand and some good advice?</a>'

limelightmenu[5]='<a href="advice_taxreturn.html" class="helplink">Received a tax return and want to know what to do now?</a>'

limelightmenu[6]='<a href="service_recordkeeping.html" class="helplink">Record keeping</a>'

limelightmenu[7]='<a href="service_vat.html" class="helplink">VAT</a>'

limelightmenu[8]='<a href="service_taxefficiency.html" class="helplink">Tax efficiency</a>'

limelightmenu[9]='<a href="service_management.html" class="helplink">Management accounts</a>'

limelightmenu[10]='<a href="service_yearend.html" class="helplink">Year end accounts</a>'

limelightmenu[11]='<a href="service_formations.html" class="helplink">Company formations</a>'

limelightmenu[12]='<a href="service_payroll.html" class="helplink">Payroll</a>'

limelightmenu[13]='<a href="service_companyreturns.html" class="helplink">Company returns</a>'

limelightmenu[14]='<a href="service_personalreturns.html" class="helplink">Personal Tax returns</a>'

var advicemenu=new Array()

advicemenu[0]='<a href="advice_startingup.html" class="menulink">Thinking of starting up on your own?</a>'

advicemenu[1]='<a href="advice_inbusiness.html" class="menulink">Already in business, need an accountant or some advice?</a>'

advicemenu[2]='<a href="advice_change.html" class="menulink">Want to change accountants?</a>'

advicemenu[3]='<a href="advice_reviewing.html" class="menulink">Reviewing your business and its status?</a>'

advicemenu[4]='<a href="advice_helpinghand.html" class="menulink">Just want a helping hand and some good advice?</a>'

advicemenu[5]='<a href="advice_taxreturn.html" class="menulink">Received a tax return and want to know what to do now?</a>'

var servicemenu=new Array()

servicemenu[0]='<a href="service_recordkeeping.html" class="menulink">Record keeping</a>'

servicemenu[1]='<a href="service_vat.html" class="menulink">VAT</a>'

servicemenu[2]='<a href="service_taxefficiency.html" class="menulink">Tax efficiency</a>'

servicemenu[3]='<a href="service_management.html" class="menulink">Management accounts</a>'

servicemenu[4]='<a href="service_yearend.html" class="menulink">Year end accounts</a>'

servicemenu[5]='<a href="service_formations.html" class="menulink">Company formations</a>'

servicemenu[6]='<a href="service_payroll.html" class="menulink">Payroll</a>'

servicemenu[7]='<a href="service_companyreturns.html" class="menulink">Company returns</a>'

servicemenu[8]='<a href="service_personalreturns.html" class="menulink">Personal Tax returns</a>'

	

var menuwidth='350px' //default menu width

var menubgcolor='#FFFFFF'  //menu bgcolor

var disappeardelay=5000  //menu disappear speed onMouseout (in miliseconds)

var hidemenu_onclick="yes" //hide menu when user clicks within menu?



var ie4=document.all

var ns6=document.getElementById&&!document.all



if (ie4||ns6) {

	document.write('<div id="dropmenudiv" style="visibility:hidden;width:'+menuwidth+';overflow:visible;background-color:'+menubgcolor+'" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"><\/div>')

}



function getposOffset(what, offsettype){

	var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;

	var parentEl=what.offsetParent;

	while (parentEl!=null){

		totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;

		parentEl=parentEl.offsetParent;

	}

	return totaloffset;

}



function showhide(obj, e, visible, hidden, menuwidth,bcolor){

	if (ie4||ns6){

		dropmenuobj.style.left=dropmenuobj.style.top="-500px"

	}

	if (menuwidth!=""){

		dropmenuobj.widthobj=dropmenuobj.style

		dropmenuobj.widthobj.width=menuwidth

	}

	if (bcolor!=""){

		dropmenuobj.bcolorobj=dropmenuobj.style

		dropmenuobj.style.background = bcolor

	} else {

		dropmenuobj.bcolorobj=dropmenuobj.style

		dropmenuobj.style.background = menubgcolor

	}

	if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover"){

		obj.visibility=visible

	} else if (e.type=="click") {

		obj.visibility=hidden

	}

}



function iecompattest(){

	return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body

}



function clearbrowseredge(obj, whichedge){

	var edgeoffset=0

	if (whichedge=="rightedge"){

		var windowedge=ie4 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15

		dropmenuobj.contentmeasure=dropmenuobj.offsetWidth

		if (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure) {

			edgeoffset=dropmenuobj.contentmeasure-obj.offsetWidth

		}

	} else {

		var topedge=ie4 && !window.opera? iecompattest().scrollTop : window.pageYOffset

		var windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18

		dropmenuobj.contentmeasure=dropmenuobj.offsetHeight

		if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure){ //move up?

			edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight

			if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) { //up no good either?

				edgeoffset=dropmenuobj.y+obj.offsetHeight-topedge

			}

		}

	}

	return edgeoffset

}



function populatemenu(what){

	if (ie4||ns6) {

		dropmenuobj.innerHTML=what.join("")

	}

}



function dropdownmenu(obj, e, menucontents, menuwidth, topadjust,leftadjust, bcolor, oflow, menuheight){

	if (window.event) {

		event.cancelBubble=true

	} else if (e.stopPropagation) {

		e.stopPropagation()

	}

	clearhidemenu()

	dropmenuobj=document.getElementById? document.getElementById("dropmenudiv") : dropmenudiv

	populatemenu(menucontents)

	

	if (ie4||ns6){

		showhide(dropmenuobj.style, e, "visible", "hidden", menuwidth, bcolor)

		dropmenuobj.x=getposOffset(obj, "left") - leftadjust;

		dropmenuobj.y=getposOffset(obj, "top") - topadjust;

		dropmenuobj.style.height = menuheight;

		dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+"px"

		dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+"px"

		dropmenuobj.style.overflow = oflow;

	}

	

	return clickreturnvalue()

}



function clickreturnvalue(){

	if (ie4||ns6) {

		return false

	} else {

		return true

	}

}



function contains_ns6(a, b) {

	while (b.parentNode) {

		if ((b = b.parentNode) == a) {

			return true;

		}

	}

	return false;

}



function dynamichide(e){

	if (ie4&&!dropmenuobj.contains(e.toElement)) {

		delayhidemenu()

	} else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget)) {

		delayhidemenu()

	}

}



function hidemenu(e){

	if (typeof dropmenuobj!="undefined"){

		if (ie4||ns6) {

			dropmenuobj.style.visibility="hidden"

		}

	}

}



function delayhidemenu(){

	if (ie4||ns6) {

		delayhide=setTimeout("hidemenu()",disappeardelay)

	}

}



function clearhidemenu(){

	if (typeof delayhide!="undefined") {

		clearTimeout(delayhide)

	}

}



if (hidemenu_onclick=="yes") {

  document.onclick=hidemenu

}

//]]>
