/*Remember to set the multiply number (after math.random) to the amount of ads you have listed below*/

var ad = Math.floor((Math.random()*6)+1);

if (ad==1) {
alt1="";
pic1="/i/rotate/image1.jpg";
alt2="";
pic2="/i/rotate/image2.jpg";
alt3="";
pic3="/i/rotate/image3.jpg";
}
if (ad==2) {
alt1="";
pic1="/i/rotate/image2.jpg";
alt2="";
pic2="/i/rotate/image3.jpg";
alt3="";
pic3="/i/rotate/image4.jpg";
}
if (ad==3) {
alt1="";
pic1="/i/rotate/image3.jpg";
alt2="";
pic2="/i/rotate/image4.jpg";
alt3="";
pic3="/i/rotate/image5.jpg";
}
if (ad==4) {
alt1="";
pic1="/i/rotate/image4.jpg";
alt2="";
pic2="/i/rotate/image5.jpg";
alt3="";
pic3="/i/rotate/image6.jpg";
}
if (ad==5) {
alt1="";
pic1="/i/rotate/image5.jpg";
alt2="";
pic2="/i/rotate/image6.jpg";
alt3="";
pic3="/i/rotate/image1.jpg";
}
if (ad==6) {
alt1="";
pic1="/i/rotate/image6.jpg";
alt2="";
pic2="/i/rotate/image1.jpg";
alt3="";
pic3="/i/rotate/image2.jpg";
}

document.write('<div class="image1"><a href="/Home/ChoosingRightCondom/"><img src="' + pic1 + '" alt="' + alt1 + '"/><span>Choosing the right condom</span></a></div>');
document.write('<div class="image2"><a href="/Home/GettingHoldofCondoms/"><img src="' + pic2 + '" alt="' + alt2 + '"/><span>Getting hold of condoms</span></a></div>');
document.write('<div class="image3"><a href="/Home/ProblemsUsingCondoms/"><img src="' + pic3 + '" alt="' + alt3 + '"/><span>Problems using condoms</span></a></div>');

