var how_many_ads = 10;
var now = new Date()
var sec = now.getSeconds()
var ad = sec % how_many_ads;
ad +=1;
if (ad==1) {
url="http://ms-goodies.com/layouts/all/get_code.php?cat=retro-vintage&background=marilyn-monroe-3.png";
alt="Marilyn Monroe Retro Vintage MySpace Layout";
banner="http://i221.photobucket.com/albums/dd229/ms-goodies/myspace/backgrounds/retro-vintage/marilyn-monroe-3.png";
width="255";
height="150";
}

if (ad==2) {
url="http://ms-goodies.com/layouts/all/get_code.php?cat=skull&background=tattoo.gif";
alt="Tattoo Skull MySpace Layout";
banner="http://i221.photobucket.com/albums/dd229/ms-goodies/myspace/backgrounds/skull/tattoo.gif";
width="255";
height="150";
}

if (ad==3) {
url="http://ms-goodies.com/layouts/all/get_code.php?cat=animal&background=turtles.gif";
alt="Turtles Animal MySpace Layout";
banner="http://i221.photobucket.com/albums/dd229/ms-goodies/myspace/backgrounds/animal/turtles.gif";
width="255";
height="150";
}

if (ad==4) {
url="http://ms-goodies.com/layouts/all/get_code.php?cat=animal-print&background=pink-leopard-flashy.gif";
alt="Pink Leopard Flashy Animal Print MySpace Layout";
banner="http://i221.photobucket.com/albums/dd229/ms-goodies/myspace/backgrounds/animal-print/pink-leopard-flashy.gif";
width="255";
height="150";
}

if (ad==5) {
url="http://ms-goodies.com/layouts/all/get_code.php?cat=brand&background=ed-hardy-love-kills-slowly-polka-do.gif";
alt="Ed Hardy Love Kills Slowly Polka Do Brand MySpace Layout";
banner="http://i221.photobucket.com/albums/dd229/ms-goodies/myspace/backgrounds/brand/ed-hardy-love-kills-slowly-polka-do.gif";
width="255";
height="150";
}

if (ad==6) {
url="http://ms-goodies.com/layouts/all/get_code.php?cat=character&background=pink-black-hello-kitty.gif";
alt="Pink Black Hello Kitty Character MySpace Layout";
banner="http://i221.photobucket.com/albums/dd229/ms-goodies/myspace/backgrounds/character/pink-black-hello-kitty.gif";
width="255";
height="150";
}

if (ad==7) {
url="http://ms-goodies.com/layouts/all/get_code.php?cat=girly&background=neon-splat.png";
alt="Neon Splat Girly MySpace Layout";
banner="http://i221.photobucket.com/albums/dd229/ms-goodies/myspace/backgrounds/girly/neon-splat.png";
width="255";
height="150";
}

if (ad==8) {
url="http://ms-goodies.com/layouts/all/get_code.php?cat=crown&background=glitter-bling.jpg";
alt="Glitter Bling Crown MySpace Layout";
banner="http://i221.photobucket.com/albums/dd229/ms-goodies/myspace/backgrounds/crown/glitter-bling.jpg";
width="255";
height="150";
}

if (ad==9) {
url="http://ms-goodies.com/layouts/all/get_code.php?cat=diamond&background=neon-flashy.gif";
alt="Neon Flashy Diamond MySpace Layout";
banner="http://i221.photobucket.com/albums/dd229/ms-goodies/myspace/backgrounds/diamond/neon-flashy.gif";
width="255";
height="150";
}

if (ad==10) {
url="http://ms-goodies.com/layouts/all/get_code.php?cat=celebrities-bands&background=justin-bieber.jpg";
alt="Justin Bieber MySpace Layout";
banner="http://i221.photobucket.com/albums/dd229/ms-goodies/myspace/backgrounds/celebrities-bands/justin-bieber.jpg";
width="255";
height="150";
}

document.write('<a href=\"' + url + '\" target=\"_blank\">');
document.write('<img src=\"' + banner + '\" width=')
document.write(width + ' height=' + height + ' ');
document.write('alt=\"' + alt + '\" border=\"0" class=\"border3\"></a>');

