<!-- last updated September 18th, 2003 //-->
var joining = 0;

//if (self != top) {
//top.location = self.location;
//}

function byeBye() {
    if (joining == 0) { 
	    girlfriends = window.open('','girlfriend','height=520,width=760,scrollbars=1,resizable=1,toolbar=1')
		girlfriends.moveTo(0,0);
		girlfriends.blur();
		girlfriends.resizeTo(screen.availWidth,screen.availHeight);
		girlfriends.location="/arp/index.shtml";
	}
}

function entryOpen() {
	    win = window.open('','win','height=520,width=760,scrollbars=1,resizable=1,toolbar=1')
		win.moveTo(0,0);
		win.blur();
		win.resizeTo(screen.availWidth,screen.availHeight);
		win.location="/random_group.php?group=99";
}

function openWin(location,width) { // opens a pop-up window to view the photos.
  var newHeight;
  
  if (screen.availHeight < 420) { 
      newHeight = screen.availHeight;
  } else { 
      newHeight = screen.availHeight - 120;
  }
  
  win=window.open(location,'Win',"width=" + width + ",height=" + newHeight + ",menubar=1,toolbar=1,resizable=1,scrollbars=1,top=1,left=1");
  //pics.document.bgColor='#006699';
  win.moveTo(0,0);
  win.focus();
}

function openMe(location,width,height) { // opens a pop-up window to view the photos.
  pics=window.open(location,'picture',"width=" + width + ",height=" + height + "toolbars=1,resizable=1,scrollbars=1,top=1,left=1");
  pics.document.bgColor='black';
  pics.moveTo(0,0);
  pics.focus();
}

function openPic(location,width,height) { // opens a pop-up window to view the photos.
  pics=window.open('','',"width=" + width + ",height=" + height);
  pics.document.write('<html>');
  pics.document.write('<body bgcolor="#E5EEFF" bottommargin="0" leftmargin="0" marginheight="0" marginwidth="0" rightmargin="0" topmargin="0">');
  pics.document.write('<img src="' + location + '" onClick="window.close();">');
  pics.document.write('</body></html>');
  pics.moveTo(0,0);
  pics.focus();
}

function addBookMark(){
    if(document.all);
	window.external.AddFavorite('http://www.annasfunhouse.com','Anna\'s FunHouse');
}
// get the date information
//
date = new Date();
month = new String;
day = new String;
year = new String;

month = date.getMonth()
day = date.getDate()

// This is the y2k fixer function--don't worry about how this works,
// but if you want it in your scripts, you can cut and paste it. 
//
 function y2k(number) { 
return (number < 1000) ? number + 1900 : number;
}

// Get the year and fix the y2k bug using the fixer function.
//
year = y2k(date.getYear())

// Translate the number of the month to a word--so 0 becomes January.
// Notice that I've cut months 3 to 10 to save space.  if you want to
// run this example, you'll have to put those in place of the ellipsis, . . .
//
if (month == "0")
	month = "January";
	else
if (month == "1")
	month = "February";
	else
if (month == "2")
	month = "March";
	else
if (month == "3")
	month = "April";
	else
if (month == "4")
	month = "May";
	else
if (month == "5")
	month = "June";
	else
if (month == "6")
	month = "July";
	else
if (month == "7")
	month = "August";
	else
if (month == "8")
	month = "September";
	else
if (month == "9")
	month = "October";
	else
if (month == "10")
	month = "November";
	else
if (month == "11")
	month = "December";
