function showGallery(page) {
	try {
		galpop.focus();
	}catch(e) {}
	galpop = window.open(page,'galpop','location=0,resizable=1,scrollbars=yes,menubar=0,toolbar=1,width=760,height=550,left=5,top=5');
	return false;
}

function showForum(page) {
	try {
		forumpop.focus();
	}catch(e) {}
	forumpop = window.open(page,'forumpop','location=0,resizable=1,scrollbars=yes,menubar=0,toolbar=1,width=760,height=550,left=5,top=5');
	return false;
}

function arrowOn(i) {
	// alert("document.getElementById('arrow_"+i+"');");
	obj = eval("document.getElementById('arrow_"+i+"');");
	obj.src="/sn_images/arrow_on.gif";
}
function arrowOff(i) {
	obj = eval("document.getElementById('arrow_"+i+"');");
	obj.src="/sn_images/arrow.gif";
}
	
function showWindow(page) {
	try {
		winpop.focus();
	}catch(e) {}
	winpop = window.open(page,'winpop','location=0,menubar=0,toolbar=0,width=500,height=600,left=5,top=5');
}	

function PopupPage(page) {
	try {
		poppop.focus();
	}catch(e) {}
	poppop = window.open(page,'poppop','location=0,resizable=1,scrollbars=yes,menubar=0,toolbar=0,width=760,height=550,left=5,top=5');
	return false;
}

function ShowLayout(image,w,h) {
	try {
		wine.close();
	}
	catch (e){}
	w = w + 20;
	h = h + 20;
	wine = window.open("/images/layouts/"+image,'LayoutImage','menubar=no,status=no,resizable=no,toolbar=no,width='+w+',height='+h);					
}

function ShowAnyPic(Pic,w,h) {
	try {
		anywin.close();
	}
	catch (e){}
	w = w + 20;
	h = h + 20;
	anywin = window.open(Pic,'Image','menubar=no,status=no,resizable=no,toolbar=no,width='+w+',height='+h);					
}