Your most-read Scottish stories of 2012

The BBC Scotland news website has looked back at our most-read stories of 2012.

Here is the top 10, with the ranking based on the number of page views:

1. Stewart Francis's Posh and Becks joke Fringe 'funniest'

Media playback is unsupported on your device
Media captionStewart Francis delivers his award-winning joke on Posh and Becks

Comedian Stewart Francis won an award for the funniest joke of the Edinburgh Fringe.

The deadpan Canadian funnyman was given the prize by digital TV channel Dave, whose panel put a selection of their favourites to a public vote.

He won for the joke: "You know who really gives kids a bad name? Posh and Becks."

2. NeverSeconds blogger Martha Payne school dinner photo ban lifted

A controversial ban preventing a nine-year-old girl from photographing her school meals has been lifted following a storm of protest on the internet.

Martha Payne, from Argyll, has now recorded more than three million hits on her NeverSeconds blog.

Argyll and Bute Council said press coverage of the blog had led catering staff to fear for their jobs.

3. Rangers Football Club enters administration

Rangers Football Club has entered administration - meaning it has been docked 10 points, effectively ending its Scottish Premier League challenge.

The club appointed London firm Duff and Phelps as administrators at 14:50 (on 14 February).

The move followed an unsuccessful legal bid by HM Revenue and Customs (HMRC) at the Court of Session in Edinburgh to appoint its own administrator.

HMRC lodged its petition over alleged non-payment of about £9m in PAYE and VAT following Craig Whyte's takeover.

4. Glasgow Airport evacuation: Passenger tells of panic on Jet2 plane

Media playback is unsupported on your device
Media captionPassengers are forced to use emergency chutes to evacuate a plane at Glasgow airport after the pilot reports smoke in the cabin

Passengers on an Alicante-bound plane from Glasgow Airport have described "sheer panic" after "swirling" smoke in the cabin forced an emergency stop.

Stephen McFadden said "people started running" as the pilot of the Jet2 737 shouted "get out, get out" following the emergency stop at 07:40 (on 19 October).

A total of 20 passengers were injured - six of whom attended hospital, with one being detained.

The runway reopened at 10:00.

5. Snow and ice return to parts of Scotland (3 April)

Media playback is unsupported on your device
Media captionWinter weather has returned to northern parts of the UK with up to 20cm of snow reported over mountains in Scotland.

Wintry weather returned to much of Scotland (on 3 April) - with 15cm (6in) of snow in Aberdeenshire.

Grampian Police said Moray had taken the brunt of the weather. Heavy snow has also fallen across the Scottish Borders, but roads remained passable.

A mountain rescue team was called to assist a group of nine people - including six teenagers - left stuck by the snow in the Cairngorms.

They were later flown to safety in Braemar by a Royal Navy helicopter.

6. Scotland battered by severe gales (4 January)

Image caption Scotland took a battering as gales gusted up to 100mph

Severe storm-force winds and heavy snowfalls have hit Scotland (4 January), disrupting travel, damaging buildings and cutting power to tens of thousands of homes.

Gales gusted up to 100mph and heavy snowfalls affected higher routes. Many buildings were damaged.

There was disruption to air, rail, ferry and bus routes.

7. Man freed after getting his head stuck in bin in Aberdeen

Image caption The man was freed by firefighters

Firefighters were called out to rescue a man whose head was stuck in a public litter bin in Aberdeen.

It is not yet known how the man got into the predicament, which happened on the city's Justice Street.

Emergency services were alerted to the man stuck with his head in the opening of the 4ft-high bin early on Sunday evening.

A spokesman for Grampian Fire and Rescue Service said the man was not injured.

He was taken to hospital for a check-up.

8. London 2012: North Koreans walk off after flag row

Media playback is unsupported on your device
Media captionFlag error offends North Koreans

The North Korean women's football team walked off the pitch at their Olympic match in Glasgow after their images were shown on a screen beside a South Korean flag.

Kick-off was scheduled for 19:45 BST (on 26 July) but the game started over an hour late.

North Korea beat Colombia 2-0 in the second of the Olympic matches held at Hampden Park on Wednesday.

Games organisers in London have apologised to North Korean officials for the mistake.

9. Deep-fried Mars bars disowned by chocolate firm

Image caption Mars has written to the owners saying the product is not authorised or endorsed

Chocolate manufacturing giant Mars has distanced itself from the famous deep-fried Mars bar by seeking a disclaimer.

The Carron Fish Bar in Stonehaven, in Aberdeenshire, claims to be the birthplace of the recipe almost two decades ago.

Plans to bid for EU protected geographical status were dropped.

Mars has written to the owners saying the product is not authorised or endorsed as it does not fit the company's promotion of healthy living.

10. Player's dad dies after cup final

The father of a Kilmarnock footballer has died of a suspected heart attack after watching his son's team beat Celtic in the League Cup final.

Midfielder Liam Kelly, 22, was seen running up the tunnel at Hampden after his father collapsed at the end of the club's 1-0 victory on Sunday.

Jack Kelly, 59, collapsed just before 17:00 (on 19 March) near the Kilmarnock dugout. He died in hospital a short time later.

His son was told just before Kilmarnock lifted the trophy.