var banner_interface=new Array()

// Set these variables to match the banners
var bannerwidth='267px' //set to width of LARGEST image in your slideshow
var bannerheight='200px' //set to height of LARGEST iamge in your slideshow, plus any text description
var bgcolor='#ffffff'

// Set the delay between banners (in milliseconds)
var delay=4500  //12000

//banner[x]=["path to image", "OPTIONAL link for image", "OPTIONAL text description (supports HTML tags)"]
//banner[0]=['product/rtp_quality.png', 'rtp_quality_analyzer.html', '']
banner_interface[0]=['product/Replicator.gif', 'replicator_record_and_playback.html', '']
banner_interface[1]=['product/SIPTrafficGenerator.gif', 'sip_client_server_traffic_generator.html', '']
banner_interface[2]=['product/SCTPTrafficGenerator.gif', 'sctp_client_server_traffic_generator.html', '']
banner_interface[3]=['product/SIPconformancetester.gif', 'sip_conformance_test_pro.html', '']
banner_interface[4]=['product/SIPIMSConformanceTester.gif', 'sip_ims_conformance_test_pro.html', '']
banner_interface[5]=['product/h323conformancetester.gif', 'h323_conformance_test_pro.html', '']
banner_interface[6]=['product/SIGTRANM3UAconformanceteste.gif', 'sigtran_m3ua_conformance_test_pro.html', '']
banner_interface[7]=['Valid8seal_front2008.jpg', 'press_release_042806_gold_level_cert.html', '']
banner_interface[8]=['product/SIGTRANSCTPconformanceteste.gif', 'sctp_conformance_test_pro.html', '']
banner_interface[9]=['product/MEGACOconformancetester.gif', 'megaco_conformance_test_pro.html', '']
banner_interface[10]=['product/CallServerEmulator.gif', 'megaco_call_server_emulator.html', '']
banner_interface[11]=['product/SIGTRANIUAconformanceteste.gif', 'sigtran_iua_conformance_test_pro.html', '']
banner_interface[12]=['product/SIPTconformancetester.gif', 'sipt_conformance_test_pro.html', '']
banner_interface[13]=['product/SIGTRANM2UAconformanceteste.gif', 'sigtran_m2ua_conformance_test_pro.html', '']
banner_interface[14]=['product/MGCPconformancetester.gif', 'mgcp_conformance_test_pro.html', '']
banner_interface[15]=['product/SoftswitchEmulator.gif', 'sigtran_mgc_emulator_tgen.html', '']

// Banner Ad Rotation Script
var ie=document.all
var dom=document.getElementById

for (i=0;i<banner_interface.length;i++){
var cacheimage=new Image()
cacheimage.src=banner_interface[i][0]
}

var currentslide=0

function rotateimages(){
contentcontainer='<center>'
if (banner_interface[currentslide][1]!="")
contentcontainer+='<a href="'+banner_interface[currentslide][1]+'">'
contentcontainer+='<img src="'+banner_interface[currentslide][0]+'" border="0" vspace="3">'
if (banner_interface[currentslide][1]!="")
contentcontainer+='</a>'
contentcontainer+='</center>'
if (banner_interface[currentslide][2]!="")
contentcontainer+=banner_interface[currentslide][2]

if (document.layers){
crossrotateobj.document.write(contentcontainer)
crossrotateobj.document.close()
}
else if (ie||dom)
crossrotateobj.innerHTML=contentcontainer
if (currentslide==banner_interface.length-1) currentslide=0
else currentslide++
setTimeout("rotateimages()",delay)
}

if (ie||dom)
document.write('<div id="slidedom" style="width:'+bannerwidth+';height:'+bannerheight+'; background-color:'+bgcolor+'"></div>')

function start_slider(){
crossrotateobj=dom? document.getElementById("slidedom") : ie? document.all.slidedom : document.slidensmain.document.slidenssub
if (document.layers)
document.slidensmain.visibility="show"
rotateimages()
}

if (ie||dom)
start_slider()
else if (document.layers)
window.onload=start_slider


