// This function displays a horizontal bar of specified width
function bar(widthPct) {
          document.write("<HR ALIGN='left' WIDTH=" + widthPct + "%>")
}
// This function displays a heading 
function category(title) {
          document.write("<h3>", title, "</h3>")
}

// This function displays detailed events
function EventDef(year, remarks, index) {

        document.write("<p><font size=-1 FACE='Verdana,Helvetica,Arial,Sans Serif'><b> ", year, "</font></b>")



if (index.indexOf('CAN')>-1){
         document.write(" <img src='img/CAN.gif' height=15 title='CAN'>")
}
if (index.indexOf('USA')>-1){
         document.write(" <img src='img/USA.gif' height=15 title='USA'>")
}
if (index.indexOf('AUS')>-1){
         document.write(" <img src='img/AUS.gif' height=15 title='AUS'>")
}
if (index.indexOf('BUL')>-1){
         document.write(" <img src='img/BUL.gif' height=15 title='BUL'>")
}
if (index.indexOf('BLR')>-1){
         document.write(" <img src='img/BLR.gif' height=15 title='BLR'>")
}
if (index.indexOf('UK')>-1){
         document.write(" <img src='img/UK.gif' height=15 title='UK'>")
}
if (index.indexOf('JPN')>-1){
         document.write(" <img src='img/JPN.gif' height=15 title='JPN'>")
}
if (index.indexOf('FIG')>-1){
         document.write(" <img src='img/FIG.gif' height=15 title='FIG'>")
}
if (index.indexOf('RUS')>-1){
         document.write(" <img src='img/RUS.gif' height=15 title='RUS'>")
}
if (index.indexOf('GER')>-1){
         document.write(" <img src='img/GER.gif' height=15 title='GER'>")
}
if (index.indexOf('EST')>-1){
         document.write(" <img src='img/EST.gif' height=15 title='EST'>")
}
if (index.indexOf('CHN')>-1){
         document.write(" <img src='img/CHN.gif' height=15 title='DEN'>")
}
if (index.indexOf('FIN')>-1){
         document.write(" <img src='img/FIN.gif' height=15 title='DEN'>")
}
if (index.indexOf('SWE')>-1){
         document.write(" <img src='img/SWE.gif' height=15 title='DEN'>")
}
if (index.indexOf('URS')>-1){
         document.write(" <img src='img/URS.gif' height=15 title='DEN'>")
}
if (index.indexOf('MAL')>-1){
         document.write(" <img src='img/MAL.gif' height=15 title='MAL'>")
}
if (index.indexOf('HUN')>-1){
         document.write(" <img src='img/HUN.gif' height=15 title='HUN'>")
}
if (index.indexOf('SPN')>-1){
         document.write(" <img src='img/SPN.gif' height=15 title='SPN'>")
}
if (index.indexOf('DEN')>-1){
         document.write(" <img src='img/DEN.gif' height=15 title='DEN'>")
}
if (index.indexOf('KOR')>-1){
         document.write(" <img src='img/KOR.gif' height=15 title='KOR'>")
}
if (index.indexOf('CUB')>-1){
         document.write(" <img src='img/CUB.gif' height=15 title='CUB'>")
}
if (index.indexOf('CZE')>-1){
         document.write(" <img src='img/CZE.gif' height=15 title='CZE'>")
}
document.write(" <br> ") 
document.write(remarks)

if (index.indexOf('new')>-1){
         document.write("<img src='img/new.gif' height=10>")
}

if (index.indexOf('updated')>-1){
         document.write("<img src='img/updated.gif' height=10>")
}


}

