function arrayLoad(location, width, height, image, url, title, duration) {
if (location == 'Left') {
left_array[left_index] = new makeAd()
left_array[left_index].width = width
left_array[left_index].height = height
left_array[left_index].image = image
left_array[left_index].url = url
left_array[left_index].title = title
left_array[left_index].duration = duration * 1000
left_index++
}
if (location == 'Right') {
right_array[right_index] = new makeAd()
right_array[right_index].width = width
right_array[right_index].height = height
right_array[right_index].image = image
right_array[right_index].url = url
right_array[right_index].title = title
right_array[right_index].duration = duration * 1000
right_index++
}
if (location == 'Top') {
top_array[top_index] = new makeAd()
top_array[top_index].width = width
top_array[top_index].height = height
top_array[top_index].image = image
top_array[top_index].url = url
top_array[top_index].title = title
top_array[top_index].duration = duration * 1000
top_index++
}
if (location == 'Bottom') {
bottom_array[bottom_index] = new makeAd()
bottom_array[bottom_index].width = width
bottom_array[bottom_index].height = height
bottom_array[bottom_index].image = image
bottom_array[bottom_index].url = url
bottom_array[bottom_index].title = title
bottom_array[bottom_index].duration = duration * 1000
bottom_index++
}
}
function makeAd() {
this.width = ''
this.height = ''
this.image = ''
this.url = ''
this.title = ''
this.duration = 0
}
function left_LoadCode(srcnbr){
var tempCode = ""
tempCode += (' \n')
tempCode += ('
')
tempCode += ('')
return tempCode;
}
function right_LoadCode(srcnbr){
var tempCode = ""
tempCode += (' \n')
tempCode += ('
')
tempCode += ('')
return tempCode;
}
function top_LoadCode(srcnbr){
var tempCode = ""
tempCode += (' \n')
tempCode += ('
')
tempCode += ('')
return tempCode;
}
function bottom_LoadCode(srcnbr){
var tempCode = ""
tempCode += (' \n')
tempCode += ('
')
tempCode += ('')
return tempCode;
}
function left_NewAd(tempIndex){ //- Load next ad -\\
tempIndex++;
if (tempIndex > left_count) tempIndex = 1;
if (document.all){adleft_write(left_LoadCode(tempIndex));}
}
function right_NewAd(tempIndex){ //- Load next ad -\\
tempIndex++;
if (tempIndex > right_count) tempIndex = 1;
if (document.all){adright_write(right_LoadCode(tempIndex));}
}
function top_NewAd(tempIndex){ //- Load next ad -\\
tempIndex++;
if (tempIndex > top_count) tempIndex = 1;
if (document.all){adtop_write(top_LoadCode(tempIndex));}
}
function bottom_NewAd(tempIndex){ //- Load next ad -\\
tempIndex++;
if (tempIndex > bottom_count) tempIndex = 1;
if (document.all){adbottom_write(bottom_LoadCode(tempIndex));}
}
function adleft_write(text){
if (document.layers) {
document.bannerAdleft.document.write(text)
document.bannerAdleft.document.close();
} else
if (document.all) document.all.bannerAdleft.innerHTML = text
}
function adright_write(text){
if (document.layers) {
document.bannerAdright.document.write(text)
document.bannerAdright.document.close();
} else
if (document.all) document.all.bannerAdright.innerHTML = text
}
function adtop_write(text){
if (document.layers) {
document.bannerAdtop.document.write(text)
document.bannerAdtop.document.close();
} else
if (document.all) document.all.bannerAdtop.innerHTML = text
}
function adbottom_write(text){
if (document.layers) {
document.bannerAdbottom.document.write(text)
document.bannerAdbottom.document.close();
} else
if (document.all) document.all.bannerAdbottom.innerHTML = text
}