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="a1.mid";
tname1="you spin me round";
tname2="abracadabbra";
tname3="devil woman";
score1="0";
score2="1";
score3="0";
}
if (ad==2) {
playmid="a2.mid";
tname1="close to you";
tname2="can't smile without you";
tname3="could it be magic";
score1="0";
score2="1";
score3="0";
}
if (ad==3) {
playmid="a3.mid";
tname1="gimmie all your lovin";
tname2="legs";
tname3="viva las vega";
score1="1";
score2="0";
score3="0";
}
if (ad==4) {
playmid="a4.mid";
tname1="living in a box";
tname2="lessons in love";
tname3="we are family";
score1="0";
score2="1";
score3="0";
}
if (ad==5) {
playmid="a5.mid";
tname1="there she goes";
tname2="pretty fly for a white guy";
tname3="one week";
score1="0";
score2="0";
score3="1";
}
if (ad==6) {
playmid="a6.mid";
tname1="superstition";
tname2="sir duke";
tname3="jammin";
score1="1";
score2="0";
score3="0";
}
if (ad==7) {
playmid="b1.mid";
tname1="nightfever";
tname2="tragedy";
tname3="you should be dancing";
score1="0";
score2="1";
score3="0";
}
if (ad==8) {
playmid="b2.mid";
tname1="just a gigilo";
tname2="the whistle song";
tname3="always look on the birght side of life";
score1="0";
score2="0";
score3="1";
}
if (ad==9) {
playmid="b3.mid";
tname1="california girls";
tname2="surfin usa";
tname3="good vibrations";
score1="1";
score2="0";
score3="0";
}
if (ad==10) {
playmid="b4.mid";
tname1="i'd like to teach the world to sing";
tname2="in the summer time";
tname3="brand new key";
score1="0";
score2="1";
score3="0";
}
if (ad==11) {
playmid="b5.mid";
tname1="from a distance";
tname2="wind beneath my wings";
tname3="my heart will go on";
score1="0";
score2="0";
score3="1";
}
if (ad==12) {
playmid="b6.mid";
tname1="i'm like a bird";
tname2="viva forever";
tname3="don't speak";
score1="1";
score2="0";
score3="0";
}
if (ad==13) {
playmid="c1.mid";
tname1="angels";
tname2="she's the one";
tname3="imagine";
score1="0";
score2="1";
score3="0";
}
if (ad==14) {
playmid="c2.mid";
tname1="ten guitars";
tname2="please release me";
tname3="the green green grass of home";
score1="0";
score2="0";
score3="1";
}
if (ad==15) {
playmid="c3.mid";
tname1="life is a flower";
tname2="all that she wants";
tname3="whistle down the wind";
score1="1";
score2="0";
score3="0";
}
if (ad==16) {
playmid="c4.mid";
tname1="let's hang on";
tname2="hey baby";
tname3="my girl";
score1="0";
score2="1";
score3="0";
}
if (ad==17) {
playmid="c5.mid";
tname1="maggie may";
tname2="some guys have all the luck";
tname3="do ya think i'm sexy";
score1="0";
score2="0";
score3="1";
}
if (ad==18) {
playmid="c6.mid";
tname1="close to you";
tname2="didn't we almost have it all";
tname3="you're so vain";
score1="1";
score2="0";
score3="0";
}
if (ad==19) {
playmid="d1.mid";
tname1="please help me i'm falling";
tname2="i can't stop loving you";
tname3="walking after midnight";
score1="0";
score2="1";
score3="0";
}
if (ad==20) {
playmid="d2.mid";
tname1="groove is in the heart";
tname2="sweet caroline";
tname3="love is in the air";
score1="0";
score2="0";
score3="1";
}
if (ad==21) {
playmid="d3.mid";
tname1="move on up";
tname2="disco inferno";
tname3="native new yorker";
score1="1";
score2="0";
score3="0";
}
if (ad==22) {
playmid="d4.mid";
tname1="midnight at the oasis";
tname2="rock dj";
tname3="i don't wanna dance";
score1="0";
score2="1";
score3="0";
}
if (ad==23) {
playmid="d5.mid";
tname1="footloose";
tname2="fame";
tname3="i'm so excited";
score1="0";
score2="0";
score3="1";
}
if (ad==24) {
playmid="d6.mid";
tname1="i come from a land downunder";
tname2="the safety dance";
tname3="devil inside";
score1="1";
score2="0";
score3="0";
}
if (ad==25) {
playmid="e1.mid";
tname1="congratuations";
tname2="celebrate";
tname3="ladies night";
score1="0";
score2="1";
score3="0";
}
if (ad==26) {
playmid="e2.mid";
tname1="mr vain";
tname2="babe";
tname3="please don't go";
score1="0";
score2="0";
score3="1";
}
if (ad==27) {
playmid="e3.mid";
tname1="heaven is a place on earth";
tname2="leave a light on";
tname3="wild horses";
score1="1";
score2="0";
score3="0";
}
if (ad==28) {
playmid="e4.mid";
tname1="you've lost that loving feeling";
tname2="to love somebody";
tname3="isn't she lovely";
score1="0";
score2="1";
score3="0";
}
if (ad==29) {
playmid="e5.mid";
tname1="don't dream it's over";
tname2="steamy windows";
tname3="weather with you";
score1="0";
score2="0";
score3="1";
}
if (ad==30) {
playmid="e6.mid";
tname1="knock 3 times";
tname2="under the boardwalk";
tname3="on broadway";
score1="1";
score2="0";
score3="0";
}
if (ad==31) {
playmid="f1.mid";
tname1="echo beach";
tname2="rock lobster";
tname3="love shack";
score1="0";
score2="1";
score3="0";
}
if (ad==32) {
playmid="f2.mid";
tname1="all around the world";
tname2="don't look back in anger";
tname3="wonderwall";
score1="0";
score2="0";
score3="1";
}
if (ad==33) {
playmid="f3.mid";
tname1="ray of light";
tname2="don't tell me";
tname3="what it feels like for a girl";
score1="1";
score2="0";
score3="0";
}
if (ad==34) {
playmid="f4.mid";
tname1="together forever";
tname2="never gonna give you up";
tname3="better the devil you know";
score1="0";
score2="1";
score3="0";
}
if (ad==35) {
playmid="f5.mid";
tname1="angels";
tname2="don't look back in anger";
tname3="imagine";
score1="0";
score2="0";
score3="1";
}
if (ad==36) {
playmid="f6.mid";
tname1="when a man loves a woman";
tname2="whiter shade of pale";
tname3="I can't help falling in love with you";
score1="1";
score2="0";
score3="0";
}
if (ad==37) {
playmid="g1.mid";
tname1="i'm so tired of being alone";
tname2="let's spend the night together";
tname3="Lets Stay Together ";
score1="0";
score2="1";
score3="0";
}
if (ad==38) {
playmid="g2.mid";
tname1="sitting on the dock of the bay";
tname2="the midnight hour";
tname3="i heard it through the grapevine";
score1="0";
score2="0";
score3="1";
}
if (ad==39) {
playmid="g3.mid";
tname1="sweet home alabama";
tname2="that's the way it is";
tname3="freebird";
score1="1";
score2="0";
score3="0";
}
if (ad==40) {
playmid="g4.mid";
tname1="That Don't Impress Me Much ";
tname2="man, i feel like a woman";
tname3="Don't Be Stupid";
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=\"select1\" 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>');