<!-- 
window.defaultStatus="Welcome to Bugay Family in Cyberspace!";

function swapImage(name, source) {
	document.images[name].src = source;
    return true;
}

var myimages=new Array()
function preloadimages(){
	for (i=0;i<preloadimages.arguments.length;i++){
		myimages[i]=new Image()
		myimages[i].src=preloadimages.arguments[i]
	}
}
preloadimages("about1.gif","wenber1.gif","brian1.gif","photo1.gif","guestbook1.gif")

function SabiMoAraw() {
	var petsa_ngayon = new Date();
	var araw = petsa_ngayon.getDay();
	var buwan = petsa_ngayon.getMonth();
	var petsa = petsa_ngayon.getDate();
	var taon = petsa_ngayon.getYear();
	
	return Araw[araw] + Buwan[buwan] + petsa + ", " + taon;
}

Araw = new Array(7);
Araw[0] = "Sunday - ";
Araw[1] = "Monday - ";
Araw[2] = "Tuesday - ";
Araw[3] = "Wednesday - ";
Araw[4] = "Thursday - ";
Araw[5] = "Friday - ";
Araw[6] = "Saturday - ";

Buwan = new Array(12);
Buwan[0] = "Jan. ";
Buwan[1] = "Feb. ";
Buwan[2] = "Mar. ";
Buwan[3] = "Apr. ";
Buwan[4] = "May ";
Buwan[5] = "June ";
Buwan[6] = "July ";
Buwan[7] = "Aug. ";
Buwan[8] = "Sep. ";
Buwan[9] = "Oct. ";
Buwan[10] = "Nov. ";
Buwan[11] = "Dec. ";

var message="Function Disabled!";
function clickIE() {if (document.all) {alert(message);return false;}}
function clickNS(e) {if
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {alert(message);return false;}}}
if (document.layers)
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
document.oncontextmenu=new Function("return false")

var win=null;
function NewWindow(mypage,myname,w,h,scroll,pos){
if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}
settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';
win=window.open(mypage,myname,settings);}

function gen_link(fayls) {
	var my_links = new Array()
	my_links[0] = 'http://bbugay.tripod.com/cgi-bin/guestbook.htm'
	my_links[1] = 'view1.htm'
	my_links[2] = 'view2.htm'
	my_links[3] = 'view3.htm'
	my_links[4] = 'view4.htm'
	my_links[5] = 'view5.htm'
	my_links[6] = 'view6.htm'
	my_links[7] = 'view7.htm'
	my_links[8] = 'view8.htm'
	my_links[9] = 'view9.htm'

	var new_links = ''
	var x = 0
	var y = 0
	for (i=my_links.length; i>=1; i--){
		x++
		if (my_links[i] == fayls) {
			new_links =  new_links + '<b>' + x + "</b> "
		} else {
			new_links =  new_links + '<a href="' + my_links[y] + '">' + x + '</a> '
		}
		if (y == 0) {
			y = my_links.length - 1
		} else {
			y--
		}
	}
	return new_links
}

function prev_next(z) {
	var pn_links = new Array()
	pn_links[0] = 'http://bbugay.tripod.com/cgi-bin/guestbook.htm'
	pn_links[1] = 'view1.htm'
	pn_links[2] = 'view2.htm'
	pn_links[3] = 'view3.htm'
	pn_links[4] = 'view4.htm'
	pn_links[5] = 'view5.htm'
	pn_links[6] = 'view6.htm'
	pn_links[7] = 'view7.htm'
	pn_links[8] = 'view8.htm'
	pn_links[9] = 'view9.htm'
	pn_links[10] = 'http://bbugay.tripod.com/cgi-bin/guestbook.htm'
	location.href(pn_links[z])
}

function child() {
	var a = Math.round(Math.random()*(8))
	children = new Array
	children[0] = 'Children are a poor man\'s riches.' 
	children[1] = 'Kids go where there is excitement. They stay where there is love.' 
	children[2] = 'In raising my children I have lost my mind but found my soul.' 
	children[3] = 'Soft is the heart of a child. Do not harden it.' 
	children[4] = 'Children spell love<br>T-I-M-E.' 
	children[5] = 'To be free to learn, Children need to be free to dream.'  
	children[6] = 'Children are likely to live up to what you believe of them.'  
	children[7] = 'Children need models rather than critics.' 
	children[8] = 'Children need love. Especially when they don\'t deserve it.' 
	return children[a]
}

function halo_halo() {
	var b = Math.round(Math.random()*(46))
	mix = new Array
	mix[0] = 'If you have a lot of tension and you get a headache, do what it says on the aspirin bottle Take two aspirin and Keep away from children.' 
	mix[1] = 'Children have never been very good at listening to their elders, but they have never failed to imitate them.' 
	mix[2] = 'There are 3 ways to get something done. (1) Do it yourself. (2) Hire someone to do it for you. (3) Forbid your kids to do it.' 
	mix[3] = 'The best thing you can give your children, next to good habits, are good memories.'
	mix[4] = 'The more I encourage a child to think for himself the more he will care what I think.' 
	mix[5] = 'Our children are watching us live, and what we are shouts louder than anything we can say.' 
	mix[6] = 'Parenthood: The art of bringing up children without putting them down.' 
	mix[7] = 'The best security blanket a child can have is parents who respect each other.' 
	mix[8] = 'As parents we never stand so tall as when we stoop to help our children.' 
	mix[9] = 'Where parents do too much for their children, the children will not do much for themselves.' 
	mix[10] = 'A torn jacket is soon mended, But hard words bruise the heart of a child.' 
	mix[11] = 'The word \'Checkmate\' in chess comes from the Persian phrase \'Shah Mat,\' which means \'the king is dead\'.' 
	mix[12] = '\'Underground\' is the only word in the English language that begins and ends with the letters \'und\'.'
	mix[13] = 'Emus and kangaroos cannot walk backwards, and are on the Australian coat of arms for that reason.' 
	mix[14] = 'The muzzle of a lion is like a fingerprint: no two lions have the same pattern of whiskers.' 
	mix[15] = 'The metal cesium will melt in your hand and catch fire due to the temperature of your skin.' 
	mix[16] = 'The only 15 letter word that can be spelled without repeating a letter is uncopyrightable.' 
	mix[17] = 'The metal instrument used in shoe stores to measure feet is called the Brannock device.' 
	mix[18] = 'Dueling is legal in Paraguay as long as both parties are registered blood donors.' 
	mix[19] = 'The word \'set\' has more definitions than any other word in the English language.' 
	mix[20] = 'Experts say married men change their underwear twice as often as single men.'
	mix[21] = 'Cats have over one hundred vocal sounds, while dogs only have about ten.' 
	mix[22] = 'Astronauts are taller in space than they are on Earth (due to gravity).' 
	mix[23] = 'The mouths of the President\'s faces on Mt. Rushmore are 18 feet wide.' 
	mix[24] = 'Ancient Chinese artists would never paint pictures of women\'s feet.' 
	mix[25] = 'Julius Caesar and Napoleon Bonaparte both suffered from epilepsy.' 
	mix[26] = 'The letters KGB stand for Komitet Gosudarstvennoy Bezopasnosti.'
	mix[27] = 'Don\'t expect your friends to be as excited about your \'100\' as you are.'
	mix[28] = 'Sometimes you have to take the test before you\'ve finished studying.'
	mix[29] = '<b>Q.</b> What do you get when you put a fish and an elephant together?<br><b>A.</b> Swimming trunks.' 
	mix[30] = '<b>Q.</b> Why did the soccer player bring string to the game?<br><b>A.</b> So he could tie the score.' 
	mix[31] = '<b>Q.</b> Why are some fish at the bottom of the ocean?<br><b>A.</b> Because they dropped out of school!'
	mix[32] = '<b>Q.</b> What do you get when you cross a cat with a lemon?<br><b>A.</b> A sour puss!' 
 	mix[33] = '<b>Q.</b> Why do birds fly south for the winter?<br><b>A.</b> Its easier than walking!' 
 	mix[34] = '<b>Q.</b> What did one wall say to the other wall?<br><b>A.</b> I\'ll meet you at the corner.' 
 	mix[35] = '<b>Q.</b> What kind of dog tells time?<br><b>A.</b> A watch dog!' 
 	mix[36] = '<b>Q.</b> What do cats eat for breakfast?<br><b>A.</b> Mice Crispies!' 
 	mix[37] = '<b>Q.</b> How do you communicate with a fish?<br><b>A.</b> Drop him a line!' 
 	mix[38] = '<b>Q.</b> How does a moulded fruit-flavoured dessert answer the phone?<br><b>A.</b> Jell-o!' 
 	mix[39] = '<b>Q.</b> What kind of lights did Noah use on the Ark?<br><b>A.</b> Flood lights!' 
 	mix[40] = '<b>Q.</b> What did the the tie say to the hat?<br><b>A.</b> You go on a head, I\'ll just hang around!' 
 	mix[41] = '<b>Q.</b> Why did the cookie go to the hospital?<br><b>A.</b> He felt crummy!' 
 	mix[42] = '<b>Q.</b> What did the fireman\'s wife get for Christmas?<br><b>A.</b> A ladder in her stocking!' 
 	mix[43] = '<b>Q.</b> Where do bulls get their messages<br><b>A.</b> On a bull-etin board.' 
 	mix[44] = '<b>Q.</b> What is a tornado?<br><b>A.</b> Mother nature doing the twist!' 
 	mix[45] = '<b>Q.</b> Where do sheep go to get haircuts?<br><b>A.</b> To the Baa Baa shop!' 
 	mix[46] = '<b>Q.</b> What two days of the week start with the letter \'T\'?<br><b>A.</b> Today and Tomorrow!'
	return mix[b]
}

function trivia() {
	var c = Math.round(Math.random()*(17))
	trivia = new Array
	trivia[0] = 'Hawaii has the largest consumption of Spam in the United States.' 
	trivia[1] = 'The human body has enough fat to produce seven bars of soap.' 
	trivia[2] = 'Swedes drink more coffee than any other people in the world.' 
	trivia[3] = 'The ancient Egyptians slept on pillows made of stone.' 
	trivia[4] = 'Steamboat Willie was Disney\'s first film with sound.' 
	trivia[5] = 'A violin contains about 70 separate pieces of wood.' 
	trivia[6] = 'Albert Einstein never learned how to drive a car.' 
	trivia[7] = 'On the average, there are eight peas in a pod.' 
	trivia[8] = 'The orchid lasts longer than any other bloom.' 
	trivia[9] = 'The only rock that floats in water is pumice.' 
	trivia[10] = 'Your thumb is the same length as your nose.' 
	trivia[11] = 'The word for poison in German is gift.'
	trivia[12] = 'The lifespan of a tastebud is 10 days.'
	trivia[13] = 'Taiwan was known formerly as Formosa.' 
	trivia[14] = 'A pregnant goldfish is called a twit.'
	trivia[15] = 'The paper clip was patented in 1901.'
	trivia[16] = 'A cat has 32 muscles in each ear.'
	trivia[17] = 'Ingrown toenails are hereditary.'
	return trivia[c]
}

function kid() {
	var d = Math.round(Math.random()*(17))
	kids = new Array
	kids[0] = 'One drop of black paint from the brush clouds the whole cup of water.' 
	kids[1] = 'When your mom is mad at your dad, don\'t let her brush your hair.'
	kids[2] = 'You can\'t start over just because you\'re losing the game.' 
	kids[3] = 'The best place to be when you are sad is in Grandma\'s lap.' 
	kids[4] = 'It\'s easier to see the mistakes on someone else\'s paper.' 
	kids[5] = 'Sometimes the best one in the play has the fewest lines.'
	kids[6] = 'No matter how hard you try, you can\'t baptize cats.'
	kids[7] = 'Never hold a dustbuster and a cat at the same time.'
	kids[8] = 'Never ask your 3-year old brother to hold a tomato.' 
	kids[9] = 'If you want someone to listen to you, whisper it.'
	kids[10] = 'Your room gets smaller as you get bigger.'
	kids[11] = 'You can\'t trust dogs to watch your food.'
	kids[12] = 'Twelve is a lot older than eight.'
	kids[13] = 'It\'s hard to unlearn a bad word.'
	kids[14] = 'It\'s hard to unlearn a bad word.'
	kids[15] = 'Ask Why until you understand.'
	kids[16] = 'All libraries smell the same.'
	kids[17] = 'Silence can be an answer.'
	return kids[d]
}

function validateCode() {
	txt = document.gbook.comments.value;
	if ((txt.indexOf("<") > -1) || (txt.indexOf(">") > -1)){
		alert("Sorry HTML code are not allowed.");
		document.gbook.comments.focus();
		return false;
	}
	return true;
}

document.write('<link rel="STYLESHEET" type="text/css" href="bugay.css">');
document.write('</head>');
var url = location.href;
if (url.indexOf("index.htm") != -1) {
	document.write('<body bgcolor="#FFFFFF" leftmargin="0" rightmargin="0" marginwidth="0" topmargin="0" vlink="#0000FF">');
} else {
	document.write('<body bgcolor="#FFFFFF" topmargin="5" vlink="#0000FF">');
}
// -->
