/*
FILE ARCHIVED ON 14:04:54 Jan 16, 2009 AND RETRIEVED FROM THE
AN OPENWAYBACK INSTANCE ON 9:46:48 Aug 21, 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)).
*/
/* GCA - google custom ads */
var global_google_ads = new Array;
var gca = new Object ;
gca.ad_classes = '' ;
gca.ad_set_classes = '' ;
gca.ad_set_box_classes = '' ;
gca.ad_width = 336 ;
gca.start_pos = 0 ;
gca.ad_style = 1 ;
function google_ad_request_done(google_ads) { // called by google syndication script include
if (google_ads.length == 0) {
return;
}
global_google_ads = google_ads;
return;
}
function gca_process_ad_unit(ad_index) {
var s = '' ;
switch(gca.ad_style) {
case 1 : // vertical -- case 2 to be horizontal
s +=
'
' +
'
';
break ;
}
return s ;
}
function gca_process_ad_units(ad_count) {
var s = '';
var for_start = -1;
var for_end = 0;
if (global_google_ads.length >= gca.start_pos) {
for_start = gca.start_pos;
if (global_google_ads.length >= gca.start_pos+ad_count) {
for_end = gca.start_pos+ad_count ;
gca.start_pos += ad_count ;
} else {
for_end = global_google_ads.length ;
gca.start_pos += global_google_ads.length - gca.start_pos ;
}
}
if (for_start >= 0) {
for(i=for_start; i < for_end; ++i) {
s += gca_process_ad_unit(i) ;
}
}
gca.ad_classes = '' ;
return s ;
}
function gca_display_ad_set(s) {
document.write(s);
}
function gca_process_ad_set_label(s) { //style="padding-bottom:' + gca.ad_container_pad + 'px"
s = 'Ads by Google
' +
'' +
s +
'
' ;
gca.ad_set_box_classes = '' ; //default for next time
return s ;
}
function gca_process_ad_set_container(s) {
s = '' +
s +
'
' ;
gca.ad_set_classes = '' ;
return s ;
}
function create_google_ad_set(ad_count) {
var s = gca_process_ad_units(ad_count) ;
if (s != '') {
s = gca_process_ad_set_label(s);
s = gca_process_ad_set_container(s);
gca_display_ad_set(s);
}
}