var currentdate = new Date();
var selectedmonth = currentdate.getMonth() + 1;
var lastmonth = selectedmonth ;
var imagenames = new Array();
imagenames[1] = "january";
imagenames[2] = "february";
imagenames[3] = "march";
imagenames[4] = "april";
imagenames[5] = "may";
imagenames[6] = "june";
imagenames[7] = "july";
imagenames[8] = "august";
imagenames[9] = "september";
imagenames[10] = "october";
imagenames[11] = "november";
imagenames[12] = "december";

var imagename = imagenames[selectedmonth];

var yellowimagesources = new Array();

yellowimagesources[1] = "img/january-yellow.jpg";
yellowimagesources[2] = "img/february-yellow.jpg";
yellowimagesources[3] = "img/march-yellow.jpg";
yellowimagesources[4] = "img/april-yellow.jpg";
yellowimagesources[5] = "img/may-yellow.jpg";
yellowimagesources[6] = "img/june-yellow.jpg";
yellowimagesources[7] = "img/july-yellow.jpg";
yellowimagesources[8] = "img/august-yellow.jpg";
yellowimagesources[9] = "img/september-yellow.jpg";
yellowimagesources[10] = "img/october-yellow.jpg";
yellowimagesources[11] = "img/november-yellow.jpg";
yellowimagesources[12] = "img/december-yellow.jpg";

var whiteimagesources = new Array();

whiteimagesources[1] = "img/january-white.jpg";
whiteimagesources[2] = "img/february-white.jpg";
whiteimagesources[3] = "img/march-white.jpg";
whiteimagesources[4] = "img/april-white.jpg";
whiteimagesources[5] = "img/may-white.jpg";
whiteimagesources[6] = "img/june-white.jpg";
whiteimagesources[7] = "img/july-white.jpg";
whiteimagesources[8] = "img/august-white.jpg";
whiteimagesources[9] = "img/september-white.jpg";
whiteimagesources[10] = "img/october-white.jpg";
whiteimagesources[11] = "img/november-white.jpg";
whiteimagesources[12] = "img/december-white.jpg";

var monthlytips = new Array();

monthlytips[1] ="<strong>Gardening Tips For January</strong><br><br><strong>Flowers</strong><br>Remove dead plant tops and tidy up beds ready for spring mulching.<br>Many perennials and grasses can now be cut back.<br><br><strong>Lawns</strong><br>Avoid walking on lawns if frosty or excessively wet.<br>Continue removing fallen leaves from all garden areas (including ponds and gutters).<br>If it is mild, lawn edge repairs can be carried out and patches returfed.<br>Brush away worm casts.<br><br><strong>Shrubs, Roses, Trees, Hedges and Climbers</strong><br>Check ties and stakes to protect against wind damage.<br>Brush off any snow on evergreens to prevent the weight damaging them.<br>Many deciduous shrubs, trees and hedges (not evergreens) can be pruned from now.<br>Bare-rooted roses can be planted.<br>Shrubs can be moved if necessary.<br>Climbers like ivy can be cut back from windows and doors.<br><br><strong>Other Things</strong><br>Place patio pots on feet or bricks to allow them to drain, and keep an eye on them to prevent frost damage or excessive drying out of compost.<br>Birds struggle to survive at this time, most of their natural food, like berries, is hard to find. Helping them with food and water now will give a higher average number throughout the rest of the year.<br><br>";

monthlytips[2] ="<strong>Gardening Tips For February</strong><br><br><strong>Flowers</strong><br>Remove dead plant tops and tidy up beds ready for spring mulching.<br>Many perennials and grasses can now be cut back.<br>Divide clumps of perennials and replant.<br>Prune winter dogwoods to ground level.<br>Prune summer flowering clematis.<br><br><strong>Lawns</strong><br>Avoid walking on lawns if frosty or excessively wet.<br>If it is mild, lawn edge repairs can be carried out and patches returfed. New turf can also be laid.<br>If it is mild and dry, it may be necessary to mow lawn (at highest setting).<br>Brush away worm casts. Spike and top dress with sharp sand.<br><br><strong>Shrubs, Roses, Trees, Hedges and Climbers</strong><br>Plant deciduous shrubs, roses, trees, hedge plants and climbers.<br>Brush off any snow on evergreens to prevent the weight damaging them.<br>Continue pruning deciduous shrubs (not spring flowering ones), trees and hedges.<br>Mulch between shrubs, roses, trees and hedges<br>Shrubs can be moved if necessary.<br>Climbers like ivy can be cut back from windows and doors.<br><br><strong>Other Things</strong><br>Check compost in patio pots does not dry out.<br>Continue to feed and provide water for birds.";

monthlytips[3] ="<strong>Gardening Tips For March</strong><br><br><strong>Flowers</strong><br>Deadhead bulbs as they fade.<br>Weed and mulch beds.<br>Plant summer flowering bulbs, herbaceous perennials and hardy annuals.<br>Divide clumps of perennials and replant.<br>Prune summer flowering clematis.<br><br><strong>Lawns</strong><br>Avoid walking on lawns if excessively wet.<br>If it is mild and dry, mow the lawn at high setting.<br>Lightly rake out any moss, spike and add lawn fertiliser.<br>If it is mild, lawn edge repairs can be carried out and patches returfed.<br>New lawns can be laid, do not walk on new turf for few weeks.<br><br><strong>Shrubs, Roses, Trees, Hedges and Climbers</strong><br>Check ties and stakes to protect against March winds.<br>Continue to plant deciduous shrubs, roses, trees, hedge plants and climbers.<br>Plant evergreen shrubs and hedges.<br>Continue pruning deciduous shrubs (not spring flowering ones), trees and hedges.<br>Mulch and feed shrubs, roses, trees and hedges.<br>Evergreen shrubs can be moved if necessary.<br>Climbers can be pruned.<br><br><strong>Other Things</strong><br>Clean patios, paths and decking.<br>Check compost in patio pots does not dry out.";

monthlytips[4] ="<strong>Gardening Tips For April</strong><br><br><strong>Flowers</strong><br>Deadhead spring flowers.<br>Weed regularly and mulch beds.<br>Plant sweet peas, summer flowering bulbs, herbaceous perennials and hardy annuals.<br>Divide clumps of perennials and replant.<br><br><strong>Lawns</strong><br>Mow frequently according to growth rate of lawn. Lower the cut gradually to 4 to 6 cm.<br>Rake out any moss, spike, weed, and add lawn fertiliser (if not done in March).<br>Trim lawn edges.<br>New lawns can be laid, do not walk on new turf for few weeks.<br>New lawns  can be sown from seed.<br><br><strong>Shrubs, Roses, Trees, Hedges and Climbers</strong><br>Mulch and feed shrubs, roses, trees and hedges.<br>Prune spring flowering shrubs after flowering.<br>Cut back climbers if necessary.<br><br><strong>Other Things</strong><br>Clean patios, paths and decking.<br>Treat wooden fences etc. with wood preservative.";

monthlytips[5] ="<strong>Gardening Tips For May</strong><br><br><strong>Flowers</strong><br>Plant summer flowering bulbs, herbaceous perennials and hardy annuals.<br>Weed regularly and mulch beds.<br>Deadhead spring flowers.<br><br><strong>Lawns</strong><br>Mow frequently to keep the grass at a steady length.<br>Weed and feed as necessary.<br>Trim lawn edges.<br>New lawns can be laid. Do not walk on new turf for few weeks. Keep watered.<br><br><strong>Shrubs, Roses, Trees, Hedges and Climbers</strong><br>Water in newly planted shrubs and roses. Mulch shrubs, roses, trees and hedges.<br>Prune spring flowering shrubs after flowering and feed.<br>Trim evergreen hedges.<br><br><strong>Other Things</strong><br>Plant pots and baskets, keep watering well.<br>Treat wooden fences etc. with wood preservative.";

monthlytips[6] ="<strong>Gardening Tips For June</strong><br><br><strong>Flowers</strong><br>Plant summer bedding.<br>Divide clumps of spring flowering perennials.<br>Weed regularly, removing before they seed.<br>Deadhead blooms to encourage new ones.<br>Stake tall growing herbaceous perennials.<br><br><strong>Lawns</strong><br>Mow frequently to keep the grass at a steady length. Allow to be a little longer if it is dry and hot.<br>Weed and feed as necessary.<br>Trim lawn edges.<br>Do not allow new lawns to dry out. Keep watered.<br><br><strong>Shrubs, Roses, Trees, Hedges and Climbers</strong><br>Water newly planted shrubs and roses.<br>Lightly feed shrubs and roses.<br>Prune spring flowering shrubs after flowering and feed.<br>Prune climbing roses after blooming.<br>Trim evergreen hedges.<br><br><strong>Other Things</strong><br>Water pots and baskets, and liquid feed every 3 weeks.<br>Discourage slugs as much as possible with traps.";

monthlytips[7] ="<strong>Gardening Tips For July</strong><br><br><strong>Flowers</strong><br>Prune spring flowering clematis and early flowering perennials<br>Divide clumps of bearded iris, polyanthus etc.<br>Weed regularly, removing before they seed.<br>Deadhead blooms to encourage new ones.<br>Stake tall growing herbaceous perennials.<br>Plant autumn flowering bulbs.<br><br><strong>Lawns</strong><br>Mow frequently to keep the grass at a steady length. Allow to be a little longer if it is dry and hot.<br>Weed, feed and water as necessary.<br>Trim lawn edges.<br>Do not allow new lawns to dry out. Keep watered.<br><br><strong>Shrubs, Roses, Trees, Hedges and Climbers</strong><br>Water newly planted shrubs and roses.<br>Mulch shrubs and roses to preserve moisture.<br>Prune June flowering shrubs after flowering and feed.<br>Remove suckers from shrubs and roses.<br>Trim evergreen hedges.<br><br><strong>Other Things</strong><br>Water pots and baskets, and liquid feed every 3 weeks.";

monthlytips[8] ="<strong>Gardening Tips For August</strong><br><br><strong>Flowers</strong><br>Deadhead blooms to encourage new ones.<br>Weed regularly, removing before they seed.<br>Divide clumps of iris and other perennials.<br>Cut back herbaceous perennials that have died back.<br>Stake tall growing herbaceous perennials.<br><br><strong>Lawns</strong><br>Mow frequently to keep the grass at a steady length. Allow to be a little longer if it is dry and hot.<br>Weed, feed and water as necessary.<br>Trim lawn edges.<br>If a new lawn is to be sown in September, the ground can be prepared now.<br><br><strong>Shrubs, Roses, Trees, Hedges and Climbers</strong><br>Water shrubs and roses, especially newly planted ones.<br>Prune Wisteria. Climbing roses can be pruned if finished flowering.<br>Deadhead flowering shrubs and roses.<br>Trim evergreen hedges.<br><br><strong>Other Things</strong><br>Deadhead and water pots and baskets, and liquid feed every 3 weeks.";

monthlytips[9] ="<strong>Gardening Tips For September</strong><br><br><strong>Flowers</strong><br>Continue to deadhead blooms.<br>Continue to weed.<br>Clear faded annuals and plant hardy annuals.<br>Divide clumps of iris and other perennials.<br>Cut back herbaceous perennials that have died back.<br>Plant spring bulbs.<br><br><strong>Lawns</strong><br>Mow less frequently and use higher cut as growth rate slows.<br>Weed, spike and top dress with sharp sand. Apply autumn lawn feed.<br>New lawns can be sown or turfed.<br><br><strong>Shrubs, Roses, Trees, Hedges and Climbers</strong><br>Water shrubs and roses, especially newly planted ones.<br>Deadhead flowering shrubs and roses.<br> Climbing roses can be pruned if finished flowering.<br>Prune late flowering shrubs.<br>Trim evergreen hedges.<br>Clear any fallen leaves.<br><br><strong>Other Things</strong><br>Deadhead and water pots and baskets. When plants have faded, replant with spring bulbs and ivy/heather for winter.";

monthlytips[10] ="<strong>Gardening Tips For October</strong><br><br><strong>Flowers</strong><br>Continue to weed.<br>Clear faded annuals and plant hardy annuals.<br>Cut back herbaceous perennials that have died back and remove stakes.<br>Divide clumps of herbaceous perennials. <br>Plant spring bulbs.<br>Plant new herbaceous perennials.<br><br><strong>Lawns</strong><br>Continue to mow when dry and use higher cut as growth rate slows.<br>Weed, spike and top dress with sharp sand. Apply autumn lawn feed.<br>Remove fallen leaves promptly.<br>New lawns can still be sown or turfed.<br><br><strong>Shrubs, Roses, Trees, Hedges and Climbers</strong><br>Check ties and stakes.<br>Prune bush roses and climbing roses.<br> Plant new shrubs, roses, trees, hedges and climbers.<br>Trim deciduous hedges for winter.<br>Clear any fallen leaves.<br><br><strong>Other Things</strong><br>Deadhead and water baskets. When plants have faded, replant with spring bulbs and ivy/heather for winter.";

monthlytips[11] ="<strong>Gardening Tips For November</strong><br><br><strong>Flowers</strong><br>Continue to weed as necessary.<br>Cut back herbaceous perennials that have died back and remove stakes.<br>Divide clumps of herbaceous perennials. <br>Remove fallen leaves and debris.<br>Plant new herbaceous perennials.<br>Continue planting spring bulbs.<br>Plant wallflowers and tulip bulbs.<br><br><strong>Lawns</strong><br>If mild and dry then mow with high cut .<br>If mild and dry then weed, spike and top dress with sharp sand. Apply autumn lawn feed (if not done earlier).<br>Remove fallen leaves promptly.<br>Avoid walking on lawns if frosty or excessively wet.<br>New lawns can still be turfed if mild.<br><br><strong>Shrubs, Roses, Trees, Hedges and Climbers</strong><br>Check ties and stakes.<br>Clear any fallen leaves.<br>Many deciduous shrubs, trees and hedges (not evergreens) can be pruned from now.<br>Shrubs can be moved if necessary.<br>Bare-rooted roses can be planted.<br>Plant new deciduous shrubs, trees, hedges.<br><br><strong>Other Things</strong><br><br>Place patio pots on feet or bricks to allow them to drain, and keep an eye on them to prevent frost damage or excessive drying out of compost.";

monthlytips[12] ="<strong>Gardening Tips For December</strong><br><br><strong>Flowers</strong><br>Remove dead plant tops and tidy up beds ready for spring mulching.<br>Many perennials and grasses can now be cut back.<br>Divide clumps of herbaceous perennials if mild and dry.<br><br><strong>Lawns</strong><br>Avoid walking on lawns if frosty or excessively wet.<br>Continue removing fallen leaves from all garden areas (including ponds and gutters).<br>If it is mild, lawn edge repairs can be carried out and patches returfed.<br><br><strong>Shrubs, Roses, Trees, Hedges and Climbers</strong><br>Check ties and stakes to protect against wind damage.<br>Clear any fallen leaves<br>Brush off any snow on evergreens to prevent the weight damaging them.<br>Many deciduous shrubs, trees and hedges (not evergreens) can be pruned.<br>Bare-rooted roses can be planted.<br>Plant new deciduous shrubs, trees, hedges.<br>Shrubs can be moved if necessary.<br><br><strong>Other Things</strong><br>Place patio pots on feet or bricks to allow them to drain, and keep an eye on them to prevent frost damage or excessive drying out of compost.<br>Provide food and water for birds.";

function gettips(monthnumber)
{

   document.getElementById('tipsarea').innerHTML = monthlytips[monthnumber];
   document.getElementById('tipsarea').scrollTop = 0;   
}

function dateswap()
{
    document[imagename].src= yellowimagesources[selectedmonth];
     gettips(selectedmonth);
}


function swapto(monthnumber){
if(monthnumber != selectedmonth)
  {
   document[imagenames[monthnumber]].src= yellowimagesources[monthnumber];
   document[imagenames[selectedmonth]].src= whiteimagesources[selectedmonth];
   selectedmonth = monthnumber;   
   gettips(selectedmonth);
  }
}