/*
FILE ARCHIVED ON 8:39:28 Sep 17, 2008 AND RETRIEVED FROM THE
AN OPENWAYBACK INSTANCE ON 21:21:24 Jul 1, 2024.
JAVASCRIPT APPENDED BY OPENWAYBACK, COPYRIGHT INTERNET ARCHIVE.
ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C.
SECTION 108(a)(3)).
*/
/* javascript component called 09172008-03:31AM with id(s) stud_sat, stud_sat_dates */
// ensures same ad can't display in two slots of the same size
// ensures removing ad from the array also removes any ads in the same grouping
function removeFromAdList(alist, html) {
// parse html for grouping value from the id attribute of the img tag
var imgTag = html.substr(html.indexOf(" 0) {
var rndNum = Math.floor(Math.random() * ad_ar.length);
var html = ad_ar[rndNum];
document.write(html);
//trackAdImpression(html);
if (pos == 'top' || pos == 'bottom') {
if (window.bottom) {
bottom = removeFromAdList(bottom, html);
} else if (window.bottom_left) {
bottom_left = removeFromAdList(bottom_left, html);
bottom_right = removeFromAdList(bottom_right, html);
}
} else if (pos == 'bottom_left') {
bottom_right = removeFromAdList(bottom_right, html);
}
}
}
// gets 2 random and different ads from an array and writes them out
function getDoubleAds(pos) {
var ad_ar = eval('window.' + pos);
if (ad_ar && ad_ar.length > 0) {
document.write('
![]() | ' +
'' ); if (window.bottom) { getAds('bottom'); } else { getAds('bottom_left'); } document.write( ' | ' + '![]() | ' +
'' ); if (window.bottom) { getAds('bottom'); } else { getAds('bottom_right'); } document.write( ' |