var banner=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[0]=['product/Replicator.gif', 'replicator_record_and_playback.html', '']
banner[1]=['product/SIPTrafficGenerator.gif', 'sip_client_server_traffic_generator.html', '']
banner[2]=['product/SCTPTrafficGenerator.gif', 'sctp_client_server_traffic_generator.html', '']
banner[3]=['product/SIPconformancetester.gif', 'sip_conformance_test_pro.html', '']
banner[4]=['product/SIPIMSConformanceTester.gif', 'sip_ims_conformance_test_pro.html', '']
banner[5]=['product/h323conformancetester.gif', 'h323_conformance_test_pro.html', '']
banner[6]=['product/SIGTRANM3UAconformanceteste.gif', 'sigtran_m3ua_conformance_test_pro.html', '']
banner[7]=['Valid8seal_front.jpg', 'press_release_042806_gold_level_cert.html', '']
banner[8]=['product/SIGTRANSCTPconformanceteste.gif', 'sctp_conformance_test_pro.html', '']
banner[9]=['product/MEGACOconformancetester.gif', 'megaco_conformance_test_pro.html', '']
banner[10]=['product/CallServerEmulator.gif', 'megaco_call_server_emulator.html', '']
banner[11]=['product/SIGTRANIUAconformanceteste.gif', 'sigtran_iua_conformance_test_pro.html', '']
banner[12]=['product/SIPTconformancetester.gif', 'sipt_conformance_test_pro.html', '']
banner[13]=['product/SIGTRANM2UAconformanceteste.gif', 'sigtran_m2ua_conformance_test_pro.html', '']
banner[14]=['product/MGCPconformancetester.gif', 'mgcp_conformance_test_pro.html', '']
banner[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.length;i++){
var cacheimage=new Image()
cacheimage.src=banner[i][0]
}

var currentslide=0

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

if (document.layers){
crossrotateobj.document.write(contentcontainer)
crossrotateobj.document.close()
}
else if (ie||dom)
crossrotateobj.innerHTML=contentcontainer
if (currentslide==banner.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


