function ShowStartPagePopup() {
	
	var objFloatFormAlphaBg = $('StartPageBlock');
	var objFloatForm = $('startpagewindow');
	
	if($type(objFloatForm)!="element" || $type(objFloatFormAlphaBg)!="element") return false;
		
	if(!objFloatForm.hasClass("visible")) {	
		
		var windowSize = window.getSize();
		var X = window.getScrollLeft() + Math.round(ff_clientWidth_Start()/2)-160;
		var Y = window.getScrollTop() + Math.round(ff_clientHeight_Start()/2)-120;
				
		objFloatForm.setStyle('left', X + 'px');
		objFloatForm.setStyle('top', Y + 'px');

		
		objFloatFormAlphaBg.setStyle('width', window.getScrollWidth() + 'px');
		objFloatFormAlphaBg.setStyle('height', window.getScrollHeight() + 'px');
  	
		ChangeLayerVisibility('StartPageBlock', true, false);
		objFloatForm.style.display ='block';
		showHideFlash(false);
		document.addEvent("keydown", closeStartPagePopupEscapeTop);
	}else {
		closeStartPagePopupTop();
	}
	return false;
}
/**
mainFloatFormTop
mainFloatFormAlphaBgTop

	Close float form action
*/
function closeStartPagePopupTop() {

	document.removeEvent("keydown", closeStartPagePopupEscapeTop);
	showHideFlash(true);
	ChangeLayerVisibility('startpagewindow', false, true);
	ChangeLayerVisibility('StartPageBlock', false, true);
}


/**
	Close float form on escape button event
*/

function closeStartPagePopupEscapeTop(event) {
	if (event.keyCode==Event.keys.esc) {
		
		document.removeEvent("keydown", closeStartPagePopupEscapeTop);
		closeStartPagePopupTop(event);
	}
	
	return true;
} 

function ff_clientWidth_Start() {
	return ff_filterResults_Start (
		window.innerWidth ? window.innerWidth : 0,
		document.documentElement ? document.documentElement.clientWidth : 0,
		document.body ? document.body.clientWidth : 0
	);
}
function ff_clientHeight_Start() {
	return ff_filterResults_Start (
		window.innerHeight ? window.innerHeight : 0,
		document.documentElement ? document.documentElement.clientHeight : 0,
		document.body ? document.body.clientHeight : 0
	);
}

function ff_filterResults_Start(n_win, n_docel, n_body) {
	var n_result = n_win ? n_win : 0;
	if (n_docel && (!n_result || (n_result > n_docel)))
		n_result = n_docel;
	return n_body && (!n_result || (n_result > n_body)) ? n_body : n_result;
}
