/********************************************************************/
// vars
/********************************************************************/

var sExpressInstall = "web/pix/expressInstall.swf";
var captionDiv = "captionDiv";


/********************************************************************/
// general functions
/********************************************************************/

// address flash movie for external interface in action script
function thisMovie( movieName )
{
    if ( navigator.appName.indexOf("Microsoft") != -1 )
    {
        return window[movieName];
    }
    else
    {
        return document[movieName];
    }
}


function openRecommendForm( scriptpage, webpage )
{
	var popup = window.open( scriptpage + '?page=' + webpage, 'recommendform', 'left=100, top=100, width=500, height=680, scrollbars=no, location=no, toolbar=no, status=yes' );
}

function hideSlideshow()
{
	//alert(document.getElementById("homeSlideshow").style.display);
	document.getElementById("homeSlideshow").style.display = "none";
	document.getElementById("homeText").style.display = "block";
	document.getElementById("homeImg").style.display = "block";
}


/********************************************************************/
// FAQ
/********************************************************************/
var activeFaq = null;

function showFaq ( layerId )
{
	if ( document.getElementById( layerId ) )
	{
		selectedFaq = document.getElementById( layerId );
		if ( selectedFaq.style.display == "block" )
		{
			selectedFaq.style.display = "none";
			activeFaq = null;
		}
		else if ( activeFaq != selectedFaq )
		{
			if ( activeFaq != null )
			{
				activeFaq.style.display = "none";
			}
			selectedFaq.style.display = "block";
			activeFaq = selectedFaq;
		}
	}
}
