var how_many_ads = 40;
var now = new Date()
var sec = now.getSeconds()
var ad = sec % how_many_ads;
ad +=1;
if (ad==1) {
playmid="g5.mid";
tname1="the last waltz";
tname2="delilah";
tname3="that's amore";
score1="0";
score2="0";
score3="1";
}
if (ad==2) {
playmid="g6.mid";
tname1="lyin eyes";
tname2="blanket on the ground";
tname3="stand by your man";
score1="1";
score2="0";
score3="0";
}
if (ad==3) {
playmid="h1.mid";
tname1="think twice";
tname2="another day in paradise";
tname3="what's going on";
score1="0";
score2="1";
score3="0";
}
if (ad==4) {
playmid="h2.mid";
tname1="all the small things";
tname2="fat lip";
tname3="what's my age again";
score1="0";
score2="0";
score3="1";
}
if (ad==5) {
playmid="h3.mid";
tname1="you ain't seen nuthin yet";
tname2="2468 motorway";
tname3="drive";
score1="1";
score2="0";
score3="0";
}
if (ad==6) {
playmid="h4.mid";
tname1="lucky";
tname2="genie in a bottle";
tname3="she's a star";
score1="0";
score2="1";
score3="0";
}
if (ad==7) {
playmid="h5.mid";
tname1="orinoco flow";
tname2="sweet dreams";
tname3="here comes the rain again";
score1="0";
score2="0";
score3="1";
}
if (ad==8) {
playmid="h6.mid";
tname1="in the midnight hour";
tname2="mustang sally";
tname3="groove me";
score1="1";
score2="0";
score3="0";
}
if (ad==9) {
playmid="i1.mid";
tname1="walking after midnight";
tname2="if i had a million dollars";
tname3="country roads";
score1="0";
score2="1";
score3="0";
}
if (ad==10) {
playmid="i2.mid";
tname1="reach";
tname2="one for sorrow";
tname3="bring it all back to me";
score1="0";
score2="0";
score3="1";
}
if (ad==11) {
playmid="i3.mid";
tname1="viva forever";
tname2="mamma";
tname3="good bye";
score1="1";
score2="0";
score3="0";
}
if (ad==12) {
playmid="i4.mid";
tname1="let's sitck together";
tname2="heros";
tname3="pure";
score1="0";
score2="1";
score3="0";
}
if (ad==13) {
playmid="i5.mid";
tname1="alright";
tname2="gonna make you sweat";
tname3="everbody";
score1="0";
score2="0";
score3="1";
}
if (ad==14) {
playmid="i6.mid";
tname1="here comes the sun";
tname2="in my life";
tname3="a day in the life";
score1="1";
score2="0";
score3="0";
}
if (ad==15) {
playmid="j1.mid";
tname1="avalon";
tname2="love is the drug";
tname3="jealous guy";
score1="0";
score2="1";
score3="0";
}
if (ad==16) {
playmid="j2.mid";
tname1="the waterfront";
tname2="new gold dream";
tname3="don't you forget about me";
score1="0";
score2="0";
score3="1";
}
if (ad==17) {
playmid="j3.mid";
tname1="manic monday";
tname2="i don't like mondays";
tname3="monday monday";
score1="1";
score2="0";
score3="0";
}
if (ad==18) {
playmid="j4.mid";
tname1="daniel";
tname2="song sung blue";
tname3="love on the rocks";
score1="0";
score2="1";
score3="0";
}
if (ad==19) {
playmid="j5.mid";
tname1="reach";
tname2="groove is in the heart";
tname3="walking on sunshine";
score1="0";
score2="0";
score3="1";
}
if (ad==20) {
playmid="j6.mid";
tname1="always on my mind";
tname2="it's a sin";
tname3="west end girls ";
score1="1";
score2="0";
score3="0";
}
if (ad==21) {
playmid="k1.mid";
tname1="proud mary";
tname2="badmoon rising";
tname3="travelln band";
score1="0";
score2="1";
score3="0";
}
if (ad==22) {
playmid="k2.mid";
tname1="nowhere man";
tname2="ticket to ride";
tname3="eleanor rigby";
score1="0";
score2="0";
score3="1";
}
if (ad==23) {
playmid="k3.mid";
tname1="crazy little thing called love";
tname2="it's still rock and roll to me";
tname3="don't bring me down";
score1="1";
score2="0";
score3="0";
}
if (ad==24) {
playmid="k4.mid";
tname1="everybody dance now";
tname2="gonna make you sweat";
tname3="pump up the jam";
score1="0";
score2="1";
score3="0";
}
if (ad==25) {
playmid="k5.mid";
tname1="d i s c o";
tname2="hands up";
tname3="ladies night";
score1="0";
score2="0";
score3="1";
}
if (ad==26) {
playmid="k6.mid";
tname1="please help me i'm falling";
tname2="he'll have to go";
tname3="crazy";
score1="1";
score2="0";
score3="0";
}
if (ad==27) {
playmid="l1.mid";
tname1="life is a flower";
tname2="all that she wants";
tname3="whistle down the wind";
score1="0";
score2="1";
score3="0";
}
if (ad==28) {
playmid="l2.mid";
tname1="disco inferno";
tname2="move on up";
tname3="boogie wonderland";
score1="0";
score2="0";
score3="1";
}
if (ad==29) {
playmid="l3.mid";
tname1="heaven must be missing an angel";
tname2="dance yourself dizzy";
tname3="knock on wood";
score1="1";
score2="0";
score3="0";
}
if (ad==30) {
playmid="l4.mid";
tname1="don't stand so close to me";
tname2="message in a bottle";
tname3="walking on the moon";
score1="0";
score2="1";
score3="0";
}
if (ad==31) {
playmid="l5.mid";
tname1="magic carpet ride";
tname2="freed from desire";
tname3="the best things in life are free";
score1="0";
score2="1";
score3="0";
}
if (ad==32) {
playmid="l6.mid";
tname1="angels";
tname2="imagine";
tname3="don't speak";
score1="0";
score2="0";
score3="1";
}
if (ad==33) {
playmid="m1.mid";
tname1="in my life";
tname2="day dream believer";
tname3="a day in the life";
score1="1";
score2="0";
score3="0";
}
if (ad==34) {
playmid="m2.mid";
tname1="gloria";
tname2="maria";
tname3="looking for linda";
score1="0";
score2="1";
score3="0";
}
if (ad==35) {
playmid="m3.mid";
tname1="desperado";
tname2="lyin eyes";
tname3="hotel california";
score1="0";
score2="0";
score3="1";
}
if (ad==36) {
playmid="m4.mid";
tname1="billie jean";
tname2="beat it";
tname3="smooth criminal";
score1="1";
score2="0";
score3="0";
}
if (ad==37) {
playmid="m5.mid";
tname1="don't look back in anger";
tname2="angels";
tname3="imagine";
score1="0";
score2="1";
score3="0";
}
if (ad==38) {
playmid="m6.mid";
tname1="maria";
tname2="looking for linda";
tname3="gloria";
score1="0";
score2="0";
score3="1";
}
if (ad==39) {
playmid="n1.mid";
tname1="enola gay";
tname2="electricity";
tname3="joan of arc";
score1="1";
score2="0";
score3="0";
}
if (ad==40) {
playmid="n2.mid";
tname1="it's raining men";
tname2="i will survive";
tname3="we are family";
score1="0";
score2="1";
score3="0";
}


document.write('<embed  src=\"http://www.theonlinekaraokemachine.i12.com/namethattune/songs/' + playmid + '\"  autoplay=\"False\" controls=smallconsole height=\"45\" width=\"225\" >');
document.write('</embed></td>');
document.write('<td width=\"131\" bgcolor=\"#FF3399\">');
document.write('<select name=\"select3\" size=\"1\">');
document.write('<option value=\"' + score1 + '\" selected>' + tname1 + '</option>');
document.write('<option value=\"' + score2 + '\">' + tname2 + '</option>');
document.write('<option value=\"' + score3 + '\">' + tname3 + '</option>');
document.write('</select>');