

function random_imglink(){
    var myimages=new Array()
    //specify random images below. You can have as many as you wish
    myimages[1]="image1.gif"
    myimages[2]="image2.gif"
    myimages[3]="image3.gif"
    myimages[4]="image4.gif"
    myimages[5]="image5.gif"
    myimages[6]="image6.gif"

    //specify corresponding links below
    var imagelinks=new Array()
    imagelinks[1]="http://www.javascriptkit.com"
    imagelinks[2]="http://www.netscape.com"
    imagelinks[3]="http://www.microsoft.com"
    imagelinks[4]="http://www.dynamicdrive.com"
    imagelinks[5]="http://www.freewarejava.com"
    imagelinks[6]="http://www.cnn.com"

    var ry=Math.floor(Math.random()*myimages.length)
    if (ry==0)
    ry=1
    document.write('<a href='+'"'+imagelinks[ry]+'"'+'><img src="'+myimages[ry]+'" border=0></a>')
}

function randomBackground(){
    var myimages=["App_Themes/Default/Images/Layout/Poster1.png", 
    "App_Themes/Default/Images/Layout/Poster2.png", 
    "App_Themes/Default/Images/Layout/Poster3.png",
    "App_Themes/Default/Images/Layout/Poster4.png",
    "App_Themes/Default/Images/Layout/Poster5.png",
    "App_Themes/Default/Images/Layout/Poster6.png"]
    
    var content = document.getElementById('poster'); 
    var ry=Math.floor(Math.random()*myimages.length);
    content.style.background='url('+myimages[ry]+') no-repeat'
}
