// Banner.js

function get_random(n) {
    var ranNum= Math.floor(Math.random()*n);
    return ranNum + 1;
}


function create() {  
	 this.width = ''; 
	 this.height = '';  
	 this.src = '';
	 this.href = ''; 
	 this.border = '';  
	 this.mouseover = '';  
	 this.sponsor = '';
 }  
 ads = new Array();
 for (var i=1; i<=2; i++) { ads[i] = new create() };
   
 ads[1].width = '234';
 ads[1].height = '60'; 
 ads[1].src = 'images/halfbanner_a.gif';
 ads[1].href = 'http://www.littlelite.net/foldercrypt/'; 
 ads[1].border = '0';
 ads[1].mouseover = 'Folder Crypt';
 ads[1].sponsor = 'Folder Crypt';
   
 ads[2].width = '234';
 ads[2].height = '60'  
 ads[2].src = 'images/secretsaniborder.gif'  
 ads[2].href = 'https://secrets-app.appspot.com/'  
 ads[2].border = '0'  
 ads[2].mouseover = 'Secrets - Free!'  
 ads[2].sponsor = 'Secrets - Free!'  
   
 var n = get_random(2);
   
 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  + '" alt="'+ image.sponsor +'"></a>'  
 