function show(item)
{
    if (item.style.display=='none')
    {
        item.style.display='';
    }
    else
    {
        item.style.display='none'
    }        
}

function DisplaySong( s, i, title_style_aux, body_style_aux, hide_hr )
{
    var space = "&nbsp;&nbsp;&nbsp;&nbsp;";
    var style_name = "cursor:none;";
    var style_body = "display:'none';";
    if ( title_style_aux )
    {
        style_name += title_style_aux;
    }
    if ( body_style_aux )
    {
        style_body += body_style_aux;
    }    

    document.write( "<tr><td><span id=\"span"+i+"\" style=\""+style_name+"\">" + (s.day<10?"0":"")+s.day+"-"+(s.month<10?"0":"")+s.month+"-"+s.year+" "+(s.hour<10?"0":"")+s.hour+":"+(s.minute<10?"0":"")+s.minute+":"+(s.second<10?"0":"")+s.second+"</span></td> ");
    document.write( "<td><span id=\"song"+i+"\" style=\""+style_name+"\" onClick=\"show(span"+i+")\">" + s.title + "<br/></span></td></tr>" );
//    if ( !hide_hr ) 
//        document.write( "<hr>" );

}

function DisplaySongs( style1, style2, hide_hr )
{
    var n = 40; // default
    if ( blogamp_num_songs )
    {
        n = blogamp_num_songs;
    }

    document.write("<table>");
    for ( i = 0; i < blogamp_num_songs; i++ )
    {
        if ( musics[i] )
        {
            DisplaySong( musics[i], i, style1, style2, hide_hr );
        }
    }
    document.write("</table>");
    document.write( "<div align=right><font style=\""+style2+"\">powered by <a href='http://www.geocities.com/insanitydrops/blogamp/' target='_blank'>BlogAmp</a></font></div>" );

}