function OpenScreenShot(PhotoLocation){
	iwidth = 500
	iheight = 373
	leftPos = 0
	topPos = 0
	if (screen) {
	leftPos = (screen.width / 2) - (iwidth/2)
	topPos = (screen.height / 2) - (iheight/2)
	}
	if (typeof newWindow != 'undefined') {
	newWindow.close()
	}
	newWindow = window.open('','newWin','width='+iwidth+',height='+iheight+', left='+leftPos+',top='+topPos)
	newWindow.document.write ("<HTML> <HEAD> <TITLE>Snap TV Games</TITLE><link href='style/style_gallery.css' rel='stylesheet' type='text/css'> </HEAD> <BODY leftmargin=0 bottommargin=0 rightmargin=0 topmargin=0 text='#000000' onLoad='window.focus();' > <DIV ALIGN='center'> <a href='javascript:window.close();' title='Click to close'><IMG SRC=" + PhotoLocation + " border=0></a> </DIV> </BODY> </HTML> ")
}

function OpenImgPop(PhotoLocation, iwidth, iheight){
	leftPos = 0
	topPos = 0
	if (screen) {
	leftPos = (screen.width / 2) - (iwidth/2)
	topPos = (screen.height / 2) - (iheight/2)
	}
	if (typeof newWindow != 'undefined') {
	newWindow.close()
	}
	newWindow = window.open('','newWin','width='+iwidth+',height='+iheight+', left='+leftPos+',top='+topPos)
	newWindow.document.write ("<HTML> <HEAD> <TITLE>Snap TV Games</TITLE><link href='style/style_gallery.css' rel='stylesheet' type='text/css'> </HEAD> <BODY leftmargin=0 bottommargin=0 rightmargin=0 topmargin=0 text='#000000' onLoad='window.focus();' > <DIV ALIGN='center'> <a href='javascript:window.close();' title='Click to close'><IMG SRC=" + PhotoLocation + " border=0></a> </DIV> </BODY> </HTML> ")
}

function OpenRegImgPop(PhotoLocation, iwidth, iheight){
	leftPos = 0
	topPos = 0
	if (typeof newWindow != 'undefined') {
	newWindow.close()
	}
	newWindow = window.open('','newWin','width='+iwidth+',height='+iheight+', left='+leftPos+',top='+topPos)
	newWindow.document.write ("<HTML> <HEAD> <TITLE>Snap TV Games</TITLE><link href='style/style_gallery.css' rel='stylesheet' type='text/css'> </HEAD> <BODY leftmargin=0 bottommargin=0 rightmargin=0 topmargin=0 text='#000000' onLoad='window.focus();' > <DIV ALIGN='center'> <a href='javascript:window.close();' title='Click to close'><IMG SRC=" + PhotoLocation + " border=0></a> </DIV> </BODY> </HTML> ")
}

function OpenCenteredPop(Url, iwidth, iheight){
	leftPos = 0
	topPos = 0
	if (screen) {
	leftPos = (screen.width / 2) - (iwidth/2)
	topPos = (screen.height / 2) - (iheight/2)
	}
	if (typeof newWindow != 'undefined') {
	newWindow.close()
	}
	newWindow = window.open(Url,'newWin','width='+iwidth+',height='+iheight+', left='+leftPos+',top='+topPos)
}

function OpenRegPop(Url, iwidth, iheight){
	leftPos = 0
	topPos = 0
	if (typeof newWindow != 'undefined') {
	newWindow.close()
	}
	newWindow = window.open(Url,'newWin','width='+iwidth+',height='+iheight+', left='+leftPos+',top='+topPos)
}

function SelfCenteredPop(Url, iwidth, iheight){
	leftPos = 0
	topPos = 0
	if (screen) {
	leftPos = (screen.width / 2) - (iwidth/2)
	topPos = (screen.height / 2) - (iheight/2)
	}
	if (typeof popWindow != 'undefined') {
	popWindow.close()
	}
	popWindow = window.open(Url,'newPop','width='+iwidth+',height='+iheight+', left='+leftPos+',top='+topPos)
}

function toggleDisplay(strElement) {
	if( document.getElementById(strElement).style.display == "none" ) {
		document.getElementById(strElement).style.display = "block";
	} else {
		document.getElementById(strElement).style.display = "none"; }
}

function togOff(strElement) {
	document.getElementById(strElement).style.display = "none";
}

function togOn(strElement) {
	document.getElementById(strElement).style.display = "block";
}
