window.defaultStatus='';
function clspag() {
}
function genRandom(num) {
 var tempString = ""
 tempString += (Math.random() * num) + 1
 rstring = parseInt(tempString)
 return rstring
}
    var categories = new Array("Amateur", "Anal", "Anime", "Babes", "Blondes", "Blowjobs", "Bondage", "Cumshots", "Ebony", "Fat", "Fetish", "Gay", "Group", "Interracial", "Mature", "Monster Cock", "Public Nudity", "Big Tits", "Shemales", "Stocking", "Upskirts", "Voyeur", "Uniforms", "Pregnant", "Pornstar", "Hairy", "Goth");
    var nop = new Array("10","10","12","15","15","20","20","20","24","25","25","25","28","30","30","36","40");
var offsets = new Array();
var today = new Date();
month = today.getMonth() + 1;
day = today.getDate();
year = today.getYear();
hour = today.getHours();
for(var offset = 0; offset< 10; offset++){
 tempmonth = month
 tempday = day
 tempday = tempday - offset
 if (tempday< 1) {
  tempmonth = tempmonth - 1
  tempday = tempday + 31
 }
 if (tempmonth < 10) {tempmonth="0"+tempmonth};
 if (tempday < 10) {tempday="0"+tempday};
 offsets[offset] = tempmonth + "/" + tempday
}

function vuri(n, j) {
    var uri='';
    uri='http://www.babes2free.com/galleries/'+categories[n]+'/gallery'+j;
    return uri;
}

function getgal(obj, tid, s, numb) {
    obj.href='/cgi-bin/at3/out.cgi?s='+s+'&l=top_'+categories[numb]+'&u=/getgallery.php?tid='+tid;
}

function gengals (numb) {
     id=numb+1;out='<td align=center width=\"25%\" valign=\"top\" >';
     for(var i=0; i<15; i++){
            out=out+'&nbsp;'+'<a href="/cgi-bin/at3/out.cgi?s=65&l=top_'+categories[numb]+'&u=/getgallery.php?tid='+id+'" onmouseover="window.status=vuri('+numb+','+j+');return true">Free Gallery ' +(i+1) + '</a><br>';
    }
    document.write(out+'</td>');
}
