	if (document.images) {
		homeoff = new Image
		profileoff = new Image
		resumeoff = new Image
		portfoliooff = new Image
		contactoff = new Image
		homeon = new Image
		profileon = new Image
		resumeon = new Image
		portfolioon = new Image
		contacton = new Image

		homeoff.src = "home1off.gif"
		profileoff.src = "profile1off.gif"
		resumeoff.src = "resume1off.gif"
		portfoliooff.src = "portfolio1off.gif"
		contactoff.src = "contact1off.gif"
		homeon.src = "home1on.gif"
		profileon.src = "profile1on.gif"
		resumeon.src = "resume1on.gif"
		portfolioon.src = "portfolio1on.gif"
		contacton.src = "contact1on.gif"
	}
	else {
		homeoff = ""
		profileoff = ""
		resumeoff = ""
		portfoliooff = ""
		contactoff = ""
		homeon = ""
		profileon = ""
		resumeon = ""
		portfolioon = ""
		contacton = ""

		document.homeImg = ""
		document.profileImg = ""
		document.resumeImg = ""
		document.portfolioImg = ""
		document.contactImg = ""
	}

function homeSwitch(seeHome,whichImage)
	{
	document.images[seeHome].src = whichImage
	}

function profileSwitch(seeProfile,whichImage)
	{
	document.images[seeProfile].src = whichImage
	}

function resumeSwitch(seeResume,whichImage)
	{
	document.images[seeResume].src = whichImage
	}

function portfolioSwitch(seePortfolio,whichImage)
	{
	document.images[seePortfolio].src = whichImage
	}

function gallerySwitch(seeGallery,whichImage)
	{
	document.images[seeGallery].src = whichImage
	}

function contactSwitch(seeContact,whichImage)
	{
	document.images[seeContact].src = whichImage
	}

function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=600,height=400,left = 212,top = 184');");
}

function popUpWin(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=625,height=550,left = 199.5,top = 109');");
}

function popUpWin2(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=800,height=600,left = 112,top = 84');");
}

function popUpPic(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=640,height=480,left = 192,top = 144');");
}

function right(e) {
if (navigator.appName == 'Netscape' && 
(e.which == 3 || e.which == 2))
return false;
else if (navigator.appName == 'Microsoft Internet Explorer' && 
(event.button == 2 || event.button == 3)) {
alert("Copyright © 2001-2010 Ly Pham Rivera");
return false;
}
return true;
}
document.onmousedown=right;
document.onmouseup=right;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
if (document.layers) window.captureEvents(Event.MOUSEUP);
window.onmousedown=right;
window.onmouseup=right;