function popUp(page,width,height) {
	var wleft = (screen.width - width) / 3;
	var wtop = (screen.height - height) / 4;
	winprops = 'height='+height+',width='+width+',top='+wtop+',left='+wleft+',menubar=0,resizable=1,scrollbars=no,status=0,titlebar=0,toolbar=0'
	var newwin = window.open(page, "Image", winprops)
}
function nav_goTo( url ) {
	window.location.href = url;
}

function navBar( tableCellRef, hoverFlag, navStyle ) {
	if ( hoverFlag ) {
		switch ( navStyle ) {
			case 1:
				tableCellRef.style.backgroundColor = '#CCCC00';
				break;
			default:
				if ( document.getElementsByTagName ) {
					tableCellRef.getElementsByTagName( 'a' )[0].style.color = '#c00';
				}
		}
	} else {
		switch ( navStyle ) {
			case 1:
				tableCellRef.style.backgroundColor = '#DDDDB7';
				break;
			default:
				if ( document.getElementsByTagName ) {
					tableCellRef.getElementsByTagName( 'a' )[0].style.color = '#000';
				}
		}
	}
}

function navBarClick( tableCellRef, navStyle, url ) {
	navBar( tableCellRef, 0, navStyle );
	nav_goTo( url );
}

function popUp2(url_string) {
	props=window.open(url_string, 'poppage2', 'toolbar=no,scrollbars=yes,location=no,status=no,menubar=no,resizable=yes,width=380,height=500,left=200,top=100');
}

function popUpSized(url_string, w_width, w_height) {
	props=window.open(url_string, 'poppage2', 'toolbar=no,scrollbars=yes,location=no,status=no,menubar=no,resizable=yes,width=' + w_width + ',height=' + w_height + ',left=200,top=100');
}
function popUpInvite()
{
	props=window.open('preview_invite.php', 'pop_invite_page', 'toolbars=0,scrollbars=0,location=0,statusbars=0,menubars=0,resizable=1,width=600,height=600,left=200,top=100');
}