﻿
function splash_imglink() {
    var myimages = new Array()
    //specify random images below. You can have as many as you wish
    myimages[1] = "../images/splash/01.jpg"
    myimages[2] = "../images/splash/02.jpg"
    myimages[3] = "../images/splash/03.jpg"
    myimages[4] = "../images/splash/01.jpg"
    myimages[5] = "../images/splash/02.jpg"

    //specify corresponding links below
    var imagelinks = new Array()
    imagelinks[1] = ""
    imagelinks[2] = ""
    imagelinks[3] = ""
    imagelinks[4] = ""
    imagelinks[5] = ""


    var ry = Math.floor(Math.random() * myimages.length)
    if (ry == 0)
        ry = 1
    document.write('<a href=' + '"' + imagelinks[ry] + '"' + '><img src="' + myimages[ry] + '" style="border-left:1px solid #4a322b;border-top:1px solid #4a322b; border-bottom:1px solid #4a322b;" border="0"></a>')
}

function random_imglink() {
    var myimages = new Array()
    //specify random images below. You can have as many as you wish
    myimages[1] = "../images/hpbanner/01.jpg"
    myimages[2] = "../images/hpbanner/02.jpg"
    myimages[3] = "../images/hpbanner/01.jpg"
    myimages[4] = "../images/hpbanner/02.jpg"
    myimages[5] = "../images/hpbanner/01.jpg"

    //specify corresponding links below
    var imagelinks = new Array()
    imagelinks[1] = ""
    imagelinks[2] = ""
    imagelinks[3] = ""
    imagelinks[4] = ""
    imagelinks[5] = ""

    var ry = Math.floor(Math.random() * myimages.length)
    if (ry == 0)
        ry = 1
    document.write('<a href=' + '"' + imagelinks[ry] + '"' + '><img src="' + myimages[ry] + '"  align="center" border="0"></a>')
}
