var srcIndex = 1; var ad1_Code = ''; ad1_Code = src1_LoadCode(srcIndex,1); var srcIndex = 1; if (srcIndex > src2_count) srcIndex = 1; var ad2_Code = ''; ad2_Code = src2_LoadCode(srcIndex,2); srcIndex++; if (srcIndex > src1_count) srcIndex = 1; var ad3_Code = ''; ad3_Code = src2_LoadCode(srcIndex,3); function src1_LoadCode(srcnbr,bannbr){ var tempCode = "" tempCode += (' \n') tempCode += ('') tempCode += ('') return tempCode; } function src2_LoadCode(srcnbr,bannbr){ var tempCode = "" tempCode += (' \n') tempCode += ('') tempCode += ('') return tempCode; } function src1_NewAd(tempIndex,tempBan){ tempIndex++; if (tempIndex > src1_count) tempIndex = 1; if (document.all){ if(tempBan == 1){ ad1_write(src1_LoadCode(tempIndex,tempBan)); } else if (tempBan == 2){ ad2_write(src1_LoadCode(tempIndex,tempBan));} else { ad3_write(src1_LoadCode(tempIndex,tempBan));} } } function src2_NewAd(tempIndex,tempBan){ tempIndex++; if (tempIndex > src2_count) tempIndex = 1; if (document.all){ if(tempBan == 1){ ad1_write(src2_LoadCode(tempIndex,tempBan)); } else if (tempBan == 2){ ad2_write(src2_LoadCode(tempIndex,tempBan));} else { ad3_write(src2_LoadCode(tempIndex,tempBan));} } } function ad1_write(text){ if (document.layers) { document.bannerAd1.document.write(text) document.bannerAd1.document.close(); } else if (document.all) document.all.bannerAd1.innerHTML = text } function ad2_write(text){ if (document.layers) { document.bannerAd2.document.write(text) document.bannerAd2.document.close(); } else if (document.all) document.all.bannerAd2.innerHTML = text } function ad3_write(text){ if (document.layers) { document.bannerAd3.document.write(text) document.bannerAd3.document.close(); } else if (document.all) document.all.bannerAd3.innerHTML = text }