/*
 * anima3.js
 * Cycle de Venezuela
 *
 * Permite escoger aleatoriamente al cargar la página la imagen respectiva en particular,
 * permitiendo así interactuar con ellas en formato imagen.....
 * Esta función permite hasta 10 banners.
 *
 * cycle.com.ve - Caracas noviembre 2006.
 * Script realizado por Webmundial, C.A. 
 * info@webmundial.com.ve
 */


function create() {
        this.width = ''
        this.src = ''
        this.height = ''

}

ads = new Array()
for(var i=1; i<=10; i++) { ads[i] = new create() }


ads[1].width = "176"
ads[1].height = "325"
ads[1].src = "images/cycle_banner_01.jpg"
ads[1].href= "#"
ads[1].border= "0"

ads[2].width = "176"
ads[2].height = "325"
ads[2].src = "images/cycle_banner_02.jpg"
ads[2].href= "#"
ads[2].border= "0"

ads[3].width = "176"
ads[3].height = "325"
ads[3].src = "images/cycle_banner_03.jpg"
ads[3].href= "#"
ads[3].border= "0"

ads[4].width = "176"
ads[4].height = "325"
ads[4].src = "images/cycle_banner_04.jpg"
ads[4].href= "#"
ads[4].border= "0"

ads[5].width = "176"
ads[5].height = "325"
ads[5].src = "images/cycle_banner_05.jpg"
ads[5].href= "#"
ads[5].border= "0"

ads[6].width = "176"
ads[6].height = "325"
ads[6].src = "images/cycle_banner_06.jpg"
ads[6].href= "#"
ads[6].border= "0"

ads[7].width = "176"
ads[7].height = "325"
ads[7].src = "images/cycle_banner_07.jpg"
ads[7].href= "#"
ads[7].border= "0"

ads[8].width = "176"
ads[8].height = "325"
ads[8].src = "images/cycle_banner_08.jpg"
ads[8].href= "#"
ads[8].border= "0"

ads[9].width = "176"
ads[9].height = "325"
ads[9].src = "images/cycle_banner_09.gif"
ads[9].href= "http://www.mdhogar.com/"
ads[9].border= "0"

ads[10].width = "176"
ads[10].height = "325"
ads[10].src = "images/cycle_banner_00.jpg"
ads[10].href= "http://www.cycle.com.ve/images/volante5.jpg"
ads[10].border= "0" 

var n = Math.random() + ''
n = parseInt(n.charAt(10))
if(n >10) {
        n = n - 10
}
else if(n==0) {
        n = n + 10
}
n += ""

var image = ads[n]
var ba = ""
ba += '<a href="' + image.href + '" >'
ba += '<img src="' + image.src + '" width=' + image.width
ba += '\n height=' + image.height + ' border=' + image.border + ' >'
ba += '</a>'