function create() {
        this.width = ''
        this.height = ''
        this.src = ''
        this.href = ''
        this.border = ''
        this.mouseover = ''
        this.sponsor = ''
}
ads = new Array()
for(var i=1; i<=5; i++) { ads[i] = new create() }

ads[1].width = "760"
ads[1].height = "100"
ads[1].src = "images/banner-japan.jpg"
ads[1].href = "default.asp"
ads[1].border = "0"
ads[1].mouseover = "Home"

ads[2].width = "760"
ads[2].height = "100"
ads[2].src = "images/banner-india.jpg"
ads[2].href = "default.asp"
ads[2].border = "0"
ads[2].mouseover = "Home"

ads[3].width = "760"
ads[3].height = "100"
ads[3].src = "images/banner-morocco.jpg"
ads[3].href = "default.asp"
ads[3].border = "0"
ads[3].mouseover = "Home"

ads[4].width = "760"
ads[4].height = "100"
ads[4].src = "images/banner-india.jpg"
ads[4].href = "default.asp"
ads[4].border = "0"
ads[4].mouseover = "Home"

ads[5].width = "760"
ads[5].height = "100"
ads[5].src = "images/banner-japan.jpg"
ads[5].href = "default.asp"
ads[5].border = "0"
ads[5].mouseover = "Home"

var n = Math.random() + ''
n = parseInt(n.charAt(5))
if(n >5) {
        n = n - 5
}
else if(n==0) {
        n = n + 5
}
n += ""

var image = ads[n]
var ad = ""
ad += '<a href="' + image.href + '" \n'
ad += 'onMouseOver="self.status=\'' + image.mouseover + '\'\;return true" \n'
ad += 'onMouseOut="self.status=\'\'"> \n'
ad += '<img src="' + image.src + '" width=' + image.width
ad += '\n height=' + image.height + ' border=' + image.border
ad += '\n><br>' + image.sponsor + '</a>'

function calcHeight()
{
  //find the height of the internal page
  var the_height=
    document.getElementById('the_iframe').contentWindow.
      document.body.scrollHeight;

  //change the height of the iframe
  document.getElementById('the_iframe').height=
      the_height;
}

// this will resize the iframe every
// time you change the size of the window.
window.onresize=calcHeight;

function breakout_of_frame()
{
  if (top.location != location) {
    top.location.href = document.location.href ;
  }
}