/****************************************************************************************/
/*                                                                                      */
/* function SHOWADDRESS displays telephone number, email address and postal address     */
/*                                                                                      */
/* To change the telephone number, email address, or postal address simply change the   */
/* data that appears between the quote marks in lines 9, 10 and 11 below                */                                                                                    
/*                                                                                      */
/****************************************************************************************/

function showaddress() {

var saptel   = "01420 544 860"
var sapemail = "ben@saplingarboriculture.com"
var sapaddr  = "51 Florence Way, Alton, Hampshire, GU34 1UG"

document.write("<span class='bold'>" + "t" + "<\/span>&nbsp;" + saptel + "&nbsp; &nbsp;" 
             + "<span class='bold'>" + "e" + "<\/span>&nbsp;" + sapemail + "&nbsp; &nbsp;" 
             + "<span class='bold'>" + "a" + "<\/span>&nbsp;" + sapaddr)

}
/* end of function SHOWADDRESS                                                          */

/****************************************************************************************/
/*                                                                                      */
/* function GETWINDOWHEIGHT calculates height of the browser window                     */
/*                                                                                      */
/****************************************************************************************/

function getWindowHeight() {
var windowHeight=0;
if (typeof(window.innerHeight)=='number') {
windowHeight=window.innerHeight;
}
else {
if (document.documentElement && document.documentElement.clientHeight) {
windowHeight= document.documentElement.clientHeight;
    }
else {
if (document.body && document.body.clientHeight) {
windowHeight=document.body.clientHeight;
    }
else {
if (document.getElementById && window.screen.availHeight) {
   windowHeight = window.screen.availHeight
   }
}
}
}
return windowHeight;
}
/* end of function GETWINDOWHEIGHT                                                      */

/****************************************************************************************/
/*                                                                                      */
/* function SETFOOTER aligns the footer div to the bottom of the browser window,        */
/* or end of page if the page length is longer than the browser window                  */
/*                                                                                      */
/****************************************************************************************/

function setFooter() {
if (document.getElementById) {
var windowHeight=getWindowHeight()
if (windowHeight>0) {
var contentHeight=document.getElementById('outer').offsetHeight

var footerElement=document.getElementById('footer')
var footerHeight=footerElement.offsetHeight

if (windowHeight-(contentHeight+footerHeight)>=0) {
footerElement.style.position='relative'
footerElement.style.top=(windowHeight-(contentHeight+footerHeight))+'px'
}
else {
footerElement.style.position='static';
}
}
}
}
/* end of function SETFOOTER                                                            */

/****************************************************************************************/
/*                                                                                      */
/* function ADDBOOKMARK invites the user to bookmark our site                           */
/*                                                                                      */
/****************************************************************************************/

function addbookmark() {
var bmurl="http://www.saplingarboriculture.com"
var bmtit="Sapling Arboriculture Ltd"
    if (document.all) { 
    window.external.AddFavorite(bmurl,bmtit)
    }
}					  
/* end of function ADDBOOKMARK                                                          */