function SingleLayerPopupAction_Open(iContentWidth, iContentHeight, sContentHTML) {
	var oBody = $('BODY').css('overflow', 'hidden');
	var oBlind = $('#layerpopupblind');
	var oContent = $('#layerpopupcontent');
	var oContentClose = $('#layerpopupcontentclose');
	var iBlindWidth = oBody.width();
	var iBlindHeight = oBody.height();
	var iContentLeft = ((iBlindWidth / 2) - (iContentWidth / 2));
	var iContentTop = ((iBlindHeight / 2) - (iContentHeight / 2));
	var iContentCloseLeft = (iContentLeft + iContentWidth);
	var iContentCloseTop = ((iContentTop - oContentClose.height()) + oContentClose.height());

	oBlind.css('width', iBlindWidth).css('height', (iBlindHeight * 2)).show();
	oContent.css('width', iContentWidth).css('height', iContentHeight).css('left', iContentLeft).css('top', iContentTop).html(sContentHTML).show();	
	oContentClose.css('left', iContentCloseLeft).css('top', iContentCloseTop).show();
}

function SingleLayerPopupAction_Close() {
	$('BODY').css('overflow', 'visible');
	$('#layerpopupcontentclose').hide();
	$('#layerpopupcontent').empty().hide();
	$('#layerpopupblind').hide();
}

function Display_IntroMovie(sTitle, sYouTube, sYouTubePlay) {
	var sResult = '';

	sResult += ('<div style="width:505px; height:343px; padding:4px 4px 0px 4px; background:url(/images/common/layerpopup_bg.jpg) no-repeat 0px 0px;">');
	sResult += ('	<embed src="' + sYouTubePlay + '" type="application/x-shockwave-flash" allowfullscreen="true" allowScriptAccess="always" width="497" height="306"></embed>');
	sResult += ('	<img src="/images/common/icon_facebook.gif" onclick="ShareFacebook(\'' + sYouTube + '\', \'' + sTitle + '\');" style="margin:3px; margin-top:7px; cursor:pointer;" />');
	sResult += ('	<img src="/images/common/icon_twitter.gif" onclick="ShareTwitter(\'' + sYouTube + '\', \'' + sTitle + '\');" style="margin:3px; margin-top:7px; cursor:pointer;" />');
	sResult += ('	<img src="/images/common/icon_me2day.gif" onclick="ShareMe2Day(\'' + sYouTube + '\', \'' + sTitle + '\');" style="margin:3px; margin-top:7px; cursor:pointer;" />');
	sResult += ('</div>');

	return sResult;
}

