document.getElementById('localboxOne').innerHTML = '
\"Sunny
Max: 12 °c
Min: 7 °c
\"Light
Max: 10 °c
Min: 5 °c
\"Light
Max: 10 °c
Min: 6 °c
\"Light
Max: 10 °c
Min: 7 °c
\"Drizzle\"
Min: 7 °c
Max: 11 °c
Monday
Tuesday
Wednesday
Thursday
Friday
';document.getElementById('namespaceOne').innerHTML = '';document.getElementById('localboxTwo').innerHTML = '
\"Sunny
Max: 12 °c
Min: 7 °c
\"Low-level
Max: 10 °c
Min: 6 °c
\"Sunny
Max: 11 °c
Min: 5 °c
\"Light
Max: 10 °c
Min: 5 °c
\"Low-level
Min: 7 °c
Max: 10 °c
Monday
Tuesday
Wednesday
Thursday
Friday
';document.getElementById('namespaceTwo').innerHTML = '';document.getElementById('localboxThree').innerHTML = '
\"Medium-level
Max: 11 °c
Min: 4 °c
\"Medium-level
Max: 11 °c
Min: 7 °c
\"Sunny
Max: 9 °c
Min: 5 °c
\"Sunny\"
Max: 11 °c
Min: 7 °c
\"Light
Min: 7 °c
Max: 10 °c
Monday
Tuesday
Wednesday
Thursday
Friday
';document.getElementById('namespaceThree').innerHTML = '';document.getElementById('localboxFour').innerHTML = '
\"Medium-level
Max: 10 °c
Min: 4 °c
\"Light
Max: 10 °c
Min: 6 °c
\"Heavy
Max: 9 °c
Min: 5 °c
\"Light
Max: 9 °c
Min: 4 °c
\"Heavy
Min: 7 °c
Max: 9 °c
Monday
Tuesday
Wednesday
Thursday
Friday
';document.getElementById('namespaceFour').innerHTML = '';document.getElementById('nationalboxOne').innerHTML = '
Belfast
Min: 7 °c
Max: 12 °c
Sunny intervals
';document.getElementById('nationalboxTwo').innerHTML = '
Birmingham
Min: 6 °c
Max: 10 °c
Medium-level cloud
';document.getElementById('nationalboxThree').innerHTML = '
Cardiff
Min: 7 °c
Max: 12 °c
Sunny intervals
';document.getElementById('nationalboxFour').innerHTML = '
Edinburgh
Min: 4 °c
Max: 11 °c
Medium-level cloud
';document.getElementById('nationalboxFive').innerHTML = '
Glasgow
Min: 4 °c
Max: 10 °c
Medium-level cloud
';document.getElementById('nationalboxSix').innerHTML = '
London
Min: 7 °c
Max: 11 °c
Low-level cloud
';document.getElementById('mpuArea').innerHTML = "";document.getElementById('mapArea').innerHTML = ""; function setarrows(){ if(curday > 1){ document.getElementById('leftArea').innerHTML = ''; }else{ document.getElementById('leftArea').innerHTML = ' '; } if(curday < 5){ document.getElementById('rightArea').innerHTML = ''; }else{ document.getElementById('rightArea').innerHTML = ' '; } } var curday = 1; setarrows();var scroll = new Fx.Scroll('mapArea', { wait: 2500, duration: 0, transition: Fx.Transitions.Quad.easeInOut }); var nextpos = 250; var prevpos = 250; var curpos = 0; scroll.scrollTo(0,0); $('rightArea').addEvent('click', function(event) { curday = curday + 1; setarrows(); if(curday < 6){ $('mapArea').effect('opacity',{duration: 1000,transition: Fx.Transitions.linear}).start(0.0,1.0); event = new Event(event).stop(); scroll.scrollTo(0,nextpos); curpos = nextpos; nextpos = curpos + 250; prevpos = curpos - 250; }else{ curday = curday - 1; } }); $('leftArea').addEvent('click', function(event) { curday = curday - 1; setarrows(); if(curday > 0){ $('mapArea').effect('opacity',{duration: 1000,transition: Fx.Transitions.linear}).start(0.0,1.0); event = new Event(event).stop(); scroll.scrollTo(0,prevpos); curpos = prevpos; nextpos = curpos + 250; prevpos = curpos - 250; }else{ curday = curday + 1; } });