﻿// JScript File
var news = new Array();

function initNews()
{
    news = new Array(39);
    
    news[0] = ["04.04.2009.", "New edition of the Belgrade map for OS Symbian."];
    news[1] = ["11.04.2009.", "More data added to Belgrade map for OS Symbian!"];
    news[2] = ["12.04.2009.", "<b>Basic verion of GPS map of Novi Sad for Symbian based mobile phones!</b>"];    
    news[3] = ["16.04.2009.", "New version of Belgrade GPS map for Windows devices."];
    news[4] = ["18.04.2009.", "Custom POI submission from map introduced."];
    news[5] = ["22.04.2009.", "Basic street grid for town of Kuršumlija."];
    news[6] = ["23.04.2009.", "<b>New content - GPS map of Kraljevo for za Symbian/Java device in our download section!</b>"];
    news[7] = ["28.04.2009.", "New map content - the initial street grid has been added for the city of Niš. Niš also included in street index."];
    news[8] = ["29.04.2009.", "Search algorythm improved - multiple terms search introduced."];
    news[9] = ["02.05.2009.", "New version of maps for Belgrade, Novi Sad and Kraljevo (OS Symbian) have been posted in our download section."];
    news[10] = ["07.05.2009.", "New object categories added to the Location Index search."];
    news[11] = ["10.05.2009.", "<b>New content - GPS map of Kruševac for za Symbian/Java device in our download section!</b>"];
    news[12] = ["17.05.2009.", "New recommendation for storing map content on memory card. Read more in <a href=symbian_en.html>Java-Symbian section</a>."];
    news[13] = ["17.05.2009.", "<b>New edition of GPS map for Serbia for Symbian/Java device in our download section!</b>"];
    news[14] = ["21.05.2009.", "<b>New</b> - Get links for displaying geolocations on our maps. Read more in <a href=intro_en.html>Intro</a>."];
    news[15] = ["24.05.2009.", "<b>New map editions for Serbia and Belgrade for Symbian/Java device in our download section!</b>"];
    news[16] = ["26.05.2009.", "New content on the site - proximity search introduced in <i>Search location</i> module"];
    news[17] = ["30.05.2009.", "<b>New edition of GPS map for Serbia for Symbian/Java device in our download section!</b>"];
    news[18] = ["04.06.2009.", "<font color=red>New application version for Windows Mobile devices -  new version uses the very same maps as Symbian-based systems. Maps of Novi Sad, Kraljevo, Niš and Kruševac now available for Windows platforms.</font>"];
    news[19] = ["10.05.2009.", "<b>New content - GPS map of Niš in our download section!</b>"];
    news[20] = ["22.06.2009.", "<b>New content on our site</b> - gallery of Serbian maps ready for download. Checkout in section <a href=maps.html>Maps</a>."];
    news[21] = ["23.06.2009.", "<b>New edition of GPS map for Serbia in our download section!</b>"];
    news[22] = ["24.06.2009.", "New data added, mainly for the region of Niš. Street index was updated accordingly. We kinjdly thank our user for POI submission."];
    news[23] = ["26.06.2009.", "Distance search improved - search results now include the distance from reference point."];
    news[24] = ["27.06.2009.", "New mobila application available - Serbiamap.Mobile for quick and efficiant searching of geo content in Serbia. Read more in <a href=download_en.html>Download section</a>"];
    news[25] = ["04.07.2009.", "Basic street grid for Novi Pazar added. Street index updatet accordingly."];
    news[26] = ["08.07.2009.", "Basic street grid added for Trstenik. New map content for Kraljevo and Novi Pazar"];
    news[27] = ["16.07.2009.", "New edition of GPS map for Serbia in our download section!"];
    news[28] = ["21.07.2009", "New content on site - upload your GPS traks to be displayed on our maps !"];
    news[29] = ["02.08.2009", "Street serach improved. Belgrade street index updated."];
    news[30] = ["03.08.2009", "New Belgrade map edition for mobile devices in our <a class=text href=download.html>download</a> section !"];
    news[31] = ["04.08.2009.", "Basic street grid for Vrnjačka Banja added. Street index updatet accordingly."];
    news[32] = ["04.08.2009.", "New data added for Novi Sad area (Petrovaradin, Sajlovo, Sremska Kamenica). Street index updated accordingly. New object types in Location Search (POI search) module (caves, border points, green markets, travel agencies). We thank our users for adding new POIs."];
    news[33] = ["10.08.2009", "<font color='b02727'>New version</font> of Serbiamap.Mobile (1.1) in our <a class=text href=download.html>download</a> section. Street level search for major Serbiam cities inroduced !"];
    news[34] = ["17.08.2009", "Map data updated for New Belgrade area."];
    news[35] = ["22.08.2009", "New map editions have been published for Serbia, Belgrade, Novi Sad and Kraljevo. Check in our <a class=text href=download_en.html>download</a> section !"];
    news[36] = ["12.09.2009.", "Basic street grid for Gornji Milanovac added. Street index updatet accordingly."];
    news[37] = ["24.09.2009.", "Basic street grid for Valjevo added. Street index updatet accordingly."];
    news[38] = ["01.10.2009.", "Basic street grid for Topola added. Street index updatet accordingly."];
}

function printNews()
{
    var newsBox = document.getElementById("News");
    var text = "";
   
    var cnt = Math.min(news.length, 4);
    for (i=news.length-1; i>=news.length - cnt ; i--)
    {	    
        text += "<div class='text' style='margin-bottom:5px; padding:0px'><font color=71aecb>" + news[i][0] + "</font> : &nbsp;" + news[i][1] + "</div>";
    }
    
    
    newsBox.innerHTML = text;
}

function printAllNews()
{
    initNews();
    var newsBox = document.getElementById("News");
    var text = "";
    
    
    for (i=news.length-1; i>=0 ; i--)
    {
        text += "<div class='text' style='margin-top:8px'>" + news[i][0] + "</div>";	    
        text += "<div class='text' style='margin-top:2px'>" + news[i][1] + "</div>";
    }
    
    newsBox.innerHTML = text;
}

