Recent Posts

New Zealand's Latest News, Business, Sport, Weather, Travel, Technology, Entertainment, Politics, Finance, Health, Environment and Science on Astini News

Have you got a 'smart' phone?

  1. & Yes & &
  2. &
  3. & No, but I'm getting one & &
  4. &
  5. & No chance, not for me & &
  6. &

Traffic Update

Auckland

"); } $.each(road.directions, function(direction, stat) { var level = stat.level.toLowerCase().replace(' ', ''); if (direction.toLowerCase() == 'citybound') { var dir = 'right'; } else { var dir = 'left'; } var $div = $("

" + direction + " " + stat.name + ": " + stat.level + "

"); $(' trafficcontent').append($div); }); // set cookie so this tab is remembered when we come back $.cookie('traffic',road.abbrev,{expires:365}); }); // if nothing is selected yet select the first tab, otherwise see if we can match the cookie if (road.abbrev == $.cookie('traffic')){ selected_li = $li; } $(' traffictabs').append($li); }); // end of closure / loop // if something was selected via cookie then click it if (selected_li) { selected_li.click(); // otherwise pick something random } else { var tabs = $(' traffictabs li') var index = Math.floor(Math.random() * (tabs.length)); $(tabs[index]).click(); $.cookie('traffic',null); } });

What's on Your Mind...