
function displayDate()
{
var mydate=new Date()
var year=mydate.getYear()
if (year < 1000)
year+=1900
var day=mydate.getDay()
var month=mydate.getMonth()
var daym=mydate.getDate()
if (daym<10)
daym="0"+daym
var hours=mydate.getHours()
var minutes=mydate.getMinutes()
var seconds=mydate.getSeconds()
var dn="am"
if (hours>=12)
dn="pm"
if (hours>12){
hours=hours-12
}
if (hours==0)
hours=12
if (minutes<=9)
minutes="0"+minutes
if (seconds<=9)
seconds="0"+seconds
var dayarray=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday")
var montharray=new Array("January","February","March","April","May","June","July","August","September","October","November","December")
document.write("<font color='#000000' size=1 face='Arial'><b>"+dayarray[day]+" "+daym+" "+montharray[month]+" "+year+" | "+hours+":"+minutes+" "+dn+"</b></font>")
}




var pausecontent=new Array()
pausecontent[0]='<a href="../press-releases/10aug-accountant-gains-forensic-accreditation.htm">Accountant Gains Forensic Accreditation </a><br>A partner at Milsted Langdon chartered accountants has become one of the first people in the...'
pausecontent[1]='<a href="../press-releases/10aug-accountant-gets-on-his-bike-for-charity.htm">Accountant Gets On His Bike For Charity</a><br>A trainee accounts technician from Westcountry-based accountants Milsted Langdon has cycled...'
pausecontent[2]='<a href="../press-releases/10aug-new-arrivals-at-milsted-langdon.htm">New Arrivals At Milsted Langdon</a><br>West Country-based chartered accountancy firm Milsted Langdon is welcoming a number of new recruits...'
pausecontent[3]='<a href="../business-news/10aug-paye-in-the-spotlight.htm">PAYE in the Spotlight</a><br>PAYE could be on course for significant change following the launch of a  major consultation...'
pausecontent[4]='<a href="../business-news/10aug-hmrc-under-fire-over-income-tax-cases-backlog.htm">HMRC Under Fire over Income Tax Cases Backlog</a><br>The head of the National Audit Office has criticised HM Revenue & Customs (HMRC)...'
pausecontent[5]='<a href="../business-news/10aug-online-vat-deadline-looming.htm">Online VAT Deadline Looming</a><br>Businesses need to act now if they have not already registered for online filing of VAT returns...'
pausecontent[6]='<a href="../business-news/10aug-tax-set-to-be-made-simpler.htm">Tax Set To Be Made Simpler</a><br>Chancellor George Osborne has launched a new Office for Tax Simplification (OTS), with the task of identifying areas where complexities in the tax system for businesses and individuals can be reduced...'
pausecontent[7]='<a href="../business-news/10aug-get-ready-for-new-equality-act.htm">Get Ready For New Equality Act </a><br>Time is ticking away for businesses to review their policies and practices...'
pausecontent[8]='<a href="../business-news/10aug-late-returns-grace-period-to-end.htm">Late Returns Grace Period To End</a><br>Businesses are reminded that a seven-day grace period for late...'
pausecontent[9]='<a href="../business-news/10aug-guide-aims-to-make-managing-employee-performance-easier.htm">Guide Aims To Make Managing Employee Performance Easier</a><br>New guidance is now available for businesses to help them manage the performance of their workforce more effectively...'
pausecontent[10]='<a href="../business-news/10aug-revised-guidance-on-fit-and-proper-persons.htm">Revised Guidance On Fit And Proper Persons</a><br>New guidance on the fit and proper persons test for managers of charities has been issued...'
pausecontent[11]='<a href="business-news-10aug-hmrc-issues-new-security-alerts.htm">HMRC Issues New Security Alerts</a><br>HM Revenue &amp; Customs has issued a new security warning over an email currently in circulation...'
pausecontent[12]='<a href="../taxing-times-blog.htm">Taxing Times Blog</a><br />This blog will give you our take on tax issues affecting businesses and individuals...<br><br>'
pausecontent[13]='<a href="../current-vacancies.htm">Job Vacancy</a><br /><b>Administrator</b><br>In our busy Taunton office. Financial Services experience is not essential but would be an advantage...<br><br>'
pausecontent[14]='<a href="../mini-guides.htm">Mini Guides 2009/10</a><br />Download our PDF mini guides...<br><br>'



/***********************************************
* Pausing up-down scroller- &copy; Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for this script and 100s more.
***********************************************/

function pausescroller(content, divId, divClass, delay){
this.content=content //message array content
this.tickerid=divId //ID of ticker div to display information
this.delay=delay //Delay between msg change, in miliseconds.
this.mouseoverBol=0 //Boolean to indicate whether mouse is currently over scroller (and pause it if it is)
this.hiddendivpointer=1 //index of message array for hidden div
document.write('<div id="'+divId+'" class="'+divClass+'" style="position: relative; overflow: hidden"><div class="innerDiv" style="position: absolute; width: 100%" id="'+divId+'1">'+content[0]+'</div><div class="innerDiv" style="position: absolute; width: 100%; visibility: hidden" id="'+divId+'2">'+content[1]+'</div></div>')
var scrollerinstance=this
if (window.addEventListener) //run onload in DOM2 browsers
window.addEventListener("load", function(){scrollerinstance.initialize()}, false)
else if (window.attachEvent) //run onload in IE5.5+
window.attachEvent("onload", function(){scrollerinstance.initialize()})
else if (document.getElementById) //if legacy DOM browsers, just start scroller after 0.5 sec
setTimeout(function(){scrollerinstance.initialize()}, 500)
}

// -------------------------------------------------------------------
// initialize()- Initialize scroller method.
// -Get div objects, set initial positions, start up down animation
// -------------------------------------------------------------------

pausescroller.prototype.initialize=function(){
this.tickerdiv=document.getElementById(this.tickerid)
this.visiblediv=document.getElementById(this.tickerid+"1")
this.hiddendiv=document.getElementById(this.tickerid+"2")
this.visibledivtop=parseInt(pausescroller.getCSSpadding(this.tickerdiv))
//set width of inner DIVs to outer DIV's width minus padding (padding assumed to be top padding x 2)
this.visiblediv.style.width=this.hiddendiv.style.width=this.tickerdiv.offsetWidth-(this.visibledivtop*2)+"px"
this.getinline(this.visiblediv, this.hiddendiv)
this.hiddendiv.style.visibility="visible"
var scrollerinstance=this
document.getElementById(this.tickerid).onmouseover=function(){scrollerinstance.mouseoverBol=1}
document.getElementById(this.tickerid).onmouseout=function(){scrollerinstance.mouseoverBol=0}
if (window.attachEvent) //Clean up loose references in IE
window.attachEvent("onunload", function(){scrollerinstance.tickerdiv.onmouseover=scrollerinstance.tickerdiv.onmouseout=null})
setTimeout(function(){scrollerinstance.animateup()}, this.delay)
}


// -------------------------------------------------------------------
// animateup()- Move the two inner divs of the scroller up and in sync
// -------------------------------------------------------------------

pausescroller.prototype.animateup=function(){
var scrollerinstance=this
if (parseInt(this.hiddendiv.style.top)>(this.visibledivtop+5)){
this.visiblediv.style.top=parseInt(this.visiblediv.style.top)-5+"px"
this.hiddendiv.style.top=parseInt(this.hiddendiv.style.top)-5+"px"
setTimeout(function(){scrollerinstance.animateup()}, 50)
}
else{
this.getinline(this.hiddendiv, this.visiblediv)
this.swapdivs()
setTimeout(function(){scrollerinstance.setmessage()}, this.delay)
}
}

// -------------------------------------------------------------------
// swapdivs()- Swap between which is the visible and which is the hidden div
// -------------------------------------------------------------------

pausescroller.prototype.swapdivs=function(){
var tempcontainer=this.visiblediv
this.visiblediv=this.hiddendiv
this.hiddendiv=tempcontainer
}

pausescroller.prototype.getinline=function(div1, div2){
div1.style.top=this.visibledivtop+"px"
div2.style.top=Math.max(div1.parentNode.offsetHeight, div1.offsetHeight)+"px"
}

// -------------------------------------------------------------------
// setmessage()- Populate the hidden div with the next message before it's visible
// -------------------------------------------------------------------

pausescroller.prototype.setmessage=function(){
var scrollerinstance=this
if (this.mouseoverBol==1) //if mouse is currently over scoller, do nothing (pause it)
setTimeout(function(){scrollerinstance.setmessage()}, 100)
else{
var i=this.hiddendivpointer
var ceiling=this.content.length
this.hiddendivpointer=(i+1>ceiling-1)? 0 : i+1
this.hiddendiv.innerHTML=this.content[this.hiddendivpointer]
this.animateup()
}
}

pausescroller.getCSSpadding=function(tickerobj){ //get CSS padding value, if any
if (tickerobj.currentStyle)
return tickerobj.currentStyle["paddingTop"]
else if (window.getComputedStyle) //if DOM2
return window.getComputedStyle(tickerobj, "").getPropertyValue("padding-top")
else
return 0
}




// JavaScript Document

//SuckerTree Horizontal Menu (Sept 14th, 06)
//By Dynamic Drive: http://www.dynamicdrive.com/style/

var menuids=["submenu1"] //Enter id(s) of SuckerTree UL menus, separated by commas

function buildsubmenus_horizontal(){
for (var i=0; i<menuids.length; i++){
  var ultags=document.getElementById(menuids[i]).getElementsByTagName("ul")
    for (var t=0; t<ultags.length; t++){
		if (ultags[t].parentNode.parentNode.id==menuids[i]){ //if this is a first level submenu
			ultags[t].style.top=ultags[t].parentNode.offsetHeight+"px" //dynamically position first level submenus to be height of main menu item
			ultags[t].parentNode.getElementsByTagName("a")[0].className="mainfoldericon"
		}
		else{ //else if this is a sub level menu (ul)
		  ultags[t].style.left=ultags[t-1].getElementsByTagName("a")[0].offsetWidth+"px" //position menu to the right of menu item that activated it
    	ultags[t].parentNode.getElementsByTagName("a")[0].className="subfoldericon"
		}
    ultags[t].parentNode.onmouseover=function(){
    this.getElementsByTagName("ul")[0].style.visibility="visible"
    }
    ultags[t].parentNode.onmouseout=function(){
    this.getElementsByTagName("ul")[0].style.visibility="hidden"
    }
    }
  }
}

if (window.addEventListener)
window.addEventListener("load", buildsubmenus_horizontal, false)
else if (window.attachEvent)
window.attachEvent("onload", buildsubmenus_horizontal)





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+' must contain a number.\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 == '');
} }