//This is the script which generate a random add on the page

addir = "/adds/"


   //define no. of ads (for ad-bar generation)
max = 4

  //arrays defined for adds
image = new Array(5)
url = new Array(5)
title = new Array(5)

//add inages and links
title[1] = "Nepali Music"
image[1] = "nepalisong.gif"
url[1] = "http://www.nepalisong.com"

title[2] = "Nepali Music"
image[2] = "nepalisong.gif"
url[2] = "http://www.nepalisong.com"

title[3] = "Nepali Songs"
image[3] = "nepalisong.gif"
url[3] = "http://www.nepalisong.com"

title[4] = "Nepali Music"
image[4] = "nepalisong.gif"
url[4] = "http://www.nepalisong.com"


 //this programs grnerate a random adds with corresponding link
    function returnadbar() {
    //first get random no. between 1 and max
  n = Math.round((max*Math.random()) + 0.5)
    //then write the image and link to the HTML file
  document.write("<a href =" + url[n] + " ><img src = " + addir + image[n] + " WIDTH=468 HEIGHT=60 BORDER=0 ></a>")
  }


