﻿var how_many_ads = 28; //total number of TCGs
var now = new Date()
var sec = now.getSeconds()
var ad = sec % how_many_ads;
ad +=1;

//start the TCGs

if (ad==1) {
	site="La Musica";
	url="http://www.dancing-mad.net/lamusicatcg/";
	alt="The original music tcg";
	banner="http://www.dancing-mad.net/lamusicatcg/images/button/mysty11.gif";
}

if (ad==2) {
	site="Ivalice";
	url="http://ivalice.sachmis.com/";
	alt="Ivalice is a TCG based on the Final Fantasy series!";
	banner="http://ivalice.sachmis.com/linksin/02aira.gif";
}

if (ad==3) {
	site="Front";
	url="http://cheap-glue.net/front/";
	alt="A CD/DVD Cover Puzzle TCG";
	banner="http://cheap-glue.net/front/images/100351.gif";
}

if (ad==4) {
	site="Celestial";
	url="http://celestial.clavis-sama.com/";
	alt="Celestial is an anime characters TCG that has a wide variety of anime!";
	banner="http://celestial.clavis-sama.com/images/1003502.gif";
}

if (ad==5) {
	site="Countdown";
	url="http://countdown.love-jam.net";
	alt="A TCG centered on some of Japan's brightest stars in the entertainment business: the multi-talented idols of Johnny's Entertainment!";
	banner="http://i190.photobucket.com/albums/z172/igiari/tcg/countdowntcg.png";
}

if (ad==6) {
	site="Dramatic";
	url="http://dramatic.sayaendou.net/";
	alt="All about Asian Movies and Dramas!";
	banner="http://dramatic.sayaendou.net/www/buttons/ninamori-100x35-001.gif";
}

if (ad==7) {
	site="Rawrville Cinema";
	url="http://cinema.rawrville.org/";
	alt="A movie characters TCG.";
	banner="http://cinema.rawrville.org/extras/rc4.gif";
}

if (ad==8) {
	site="Prelude";
	url="http://prelude.pathofstardust.net";
	alt="A music TCG featuring music videos and CD covers.";
	banner="http://prelude.pathofstardust.net/images/buttonx001.png";
}

if (ad==9) {
	site="Aspire";
	url="http://aspire.ohexcite.net/index.php";
	alt="Aspire offers free custom layouts and game scripts for tcg owners!";
	banner="http://img517.imageshack.us/img517/5757/bannerlr3.gif";
}

if (ad==10) {
	site="Very Beauty";
	url="http://verybeauty.clavis-sama.com";
	alt="A Japanese Music TCG";
	banner="http://verybeauty.clavis-sama.com/images/rina_verybeautybanner.gif";
}

if (ad==11) {
	site="Sweet Banana";
	url="http://banana.pyroforicity.com/";
	alt="It's all about food!";
	banner="http://banana.pyroforicity.com/buttons/10035/button02_xerox.gif";
}

if (ad==12) {
	site="Sugar & Spice";
	url="http://sugar.collybird.org";
	alt="Food TCG!";
	banner="http://sugar.collybird.org/images/buttons/button01.png";
}

if (ad==13) {
	site="weeeek";
	url="http://weeeek.strawberry-tenshi.net/";
	alt="NEWS tcg";
	banner="http://weeeek.strawberry-tenshi.net/site/weeeek_100x35.gif";
}

if (ad==14) {
	site="The Works";
	url="http://theworks.book-worm.net/";
	alt="An online TCG that features everything!";
	banner="http://theworks.book-worm.net/linkus/2.gif";
}

if (ad==15) {
	site="Digified";
	url="http://digified.januaryblue.net/";
	alt="A TCG dedicated to the Digital Monsters (Digimon) anime and games.";
	banner="http://digified.januaryblue.net/link/100x35-01.gif";
}

if (ad==16) {
	site="PuzzleMANIA";
	url="http://mania.ninja-song.net";
	alt="PuzzleMANIA is an anime, manga, and video game puzzle deck TCG";
	banner="http://www.mania.ninja-song.net/links/pm_link16.gif";
}

if (ad==17) {
	site="Amuse";
	url="http://amuse.kiss-or-kill.net";
	alt="A TCG about Asian Personalities";
	banner="http://img.photobucket.com/albums/v419/w-indsluver/04.png";
}

if (ad==18) {
	site="Liberali Fatali Rebirth";
	url="http://lfr.clavis-sama.com/";
	alt="Returning Final Fantasy TCG covering any and all Final Fantasy!";
	banner="http://lfr.clavis-sama.com/button/button1003501.gif";
}

if (ad==19) {
	site="Cadence";
	url="http://cadence.ohexcite.net/";
	alt="Music TCG";
	banner="http://cadence.ohexcite.net/site/10035.gif";
}

if (ad==20) {
	site="Cinerama";
	url="http://cinerama.clavis-sama.com/";
	alt="TCG dealing with animations from all over";
	banner="http://cinerama.clavis-sama.com/links/link1_100x35.gif";
}

if (ad==21) {
	site="Moxie";
	url="http://moxie.lithiumtears.net/";
	alt="Moxie is a pin up puzzle tcg";
	banner="http://moxie.lithiumtears.net/moxie1.gif";
}

if (ad==22) {
	site="Premiere";
	url="http://www.ayeupmeduck.com/premiere";
	alt="Premiere - a movie tcg";
	banner="http://www.ayeupmeduck.com/premiere/links/premiere100x35rain1.gif";
}

if (ad==23) {
	site="Myths and Legends";
	url="http://myths.baptism-of-blood.net/";
	alt="About myths and legends from around the world and time.";
	banner="http://myths.baptism-of-blood.net/images/affiliates/ours/100x35_1.gif";
}

if (ad==24) {
	site="Forks High";
	url="http://twilight.captains-wench.net";
	alt="The original Twilight Series TCG!";
	banner="http://www.captains-wench.net/tcg/images/ryleigh-100x35.png";
}

if (ad==25) {
	site="Sweet Temptation";
	url="http://temptation.baptism-of-blood.net/";
	alt="Dedicated to yaoi, boy love and shounen-ai.";
	banner="http://temptation.baptism-of-blood.net/images/button04.gif";
}

if (ad==26) {
	site="Cherish";
	url="http://cherish.pathofstardust.net";
	alt="Cherish is a 'relationships' TCG which has a wide range of categories.";
	banner="http://cherish.pathofstardust.net/images/buttons/cherish-buttons100x35-09.jpg";
}

if (ad==27) {
	site="Seven Seas";
	url="http://www.seven.enchantedxforest.net/";
	alt=": Disney's POTCs newest TCG.";
	banner="http://www.seven.enchantedxforest.net/buttons/100x35_1.png";
}

if (ad==28) {
	site="All or Nothing";
	url="http://www.allornothing.ama-gaeru.net";
	alt="A TCG about the JE group KAT-TUN";
	banner="http://i175.photobucket.com/albums/w154/musetcg/lily_button05.gif";
}

document.write('<a href=\"' + url + '\" target=\"_blank\" title=\"' + site + ':  ' + alt + '\">');
document.write('<img src=\"' + banner + '\" border=0 width=100 + height=35></a><br>');
document.write('<a href="http://addict.cerestia.net/" target=_blank title="TCG Addict Exchange">');
document.write('<img src=http://addict.cerestia.net/exchange.gif border=0></a>');