var pop = true;
var phWin;
var VIEWED = false;
function popup(x)
{
	if(pop) {
		phWin = window.open("moon_phases.phtml","sphaseWin","width=770,height=450,toolbar=1,menubar=1,scrollbars=1,resizable=1,location=1");
		if(x)
			phWin.blur();
	}
}
function openFeatureWin(href)
{
	var win = window.open( href,'featureWin','width=750,height=450,menubar=1,scrollbars=1,resizable=1' );
	win.focus();
	return win;
}
function end()
{
	if(!VIEWED) {
		popup('u');
	}
}
function litePrompt()
{
	return confirm( "NOTE: QuickPhase Pro works on Windows systems only.\n\nIf you want a Macintosh version, click \"Cancel\"\nand then click the \"Macintosh Users\" link below." );
	// "NOTE: QuickPhase Pro works on Windows systems only.\n\nClick \"OK\" to proceed to the order form for QuickPhase Pro.\n\nIf you want a Macintosh version, click \"Cancel\"\nand then click the \"Macintosh Users\" link below."
}
function openTestimonialsWin()
{
	var win = window.open( 'testimonials.phtml','testimonialsWin','width=750,height=520,menubar=1,scrollbars=1,resizable=1' );
	win.focus();
	return win;
}
function expandImage(n,str)
{
	var a = 'lyr_'+n+'a';
	var b = 'lyr_'+n+'b';
	var objA = document.getElementById(a);
	var objB = document.getElementById(b);
	objA.style.display = "none";
	objB.style.display = "block";
	objB.innerHTML = str;
}
function collapseImage(n)
{
	var a = 'lyr_'+n+'a';
	var b = 'lyr_'+n+'b';
	var objA = document.getElementById(a);
	var objB = document.getElementById(b);
	objA.style.display = "block";
	objB.style.display = "none";
}