function s_getStart(a,e)
{
	var bodyMarginTop=0;	// specify manually to get over bugs
	var bodyMarginLeft=0;	// in Opera 5/6, Konqueror<3.2 and IE5.x/Mac
	
	var o=e.currentTarget?e.currentTarget:e.srcElement?e.srcElement:e.target;
	if(!o)return a=="x"?-630:0;
	
	if(s_nS4)return a=="x"?o.x:o.y;
	var oP,oC,ieW;oP=o.offsetParent;oC=a=="x"?o.offsetLeft:o.offsetTop;
	ieW=s_iE&&!s_mC?1:0;
	while(oP){if(ieW&&oP.tagName&&oP.tagName.toLowerCase()=="table"&&oP.border&&oP.border>0)oC++;oC+=a=="x"?oP.offsetLeft:oP.offsetTop;oP=oP.offsetParent};
	return s_oP7m||s_kN31p&&!s_kN32p||s_iE5M?a=="x"?s_oP7m?oC:oC+bodyMarginLeft:oC+bodyMarginTop:oC
};


function s_getDim(name,a)
{
	var o=s_nS4?document.layers["s_m"+s_nr(name)]:s_getO("s_m"+s_nr(name));
	if(!o)
		return 0;
	if(s_nS4)
		return a=="h"?o.clip.height:o.clip.width;
	if(a=="h")
		return s_iE&&!s_mC?o.clientHeight:o.offsetHeight?o.offsetHeight:o.style.pixelHeight;
	return s_iE&&!s_mC?o.clientWidth:s_oP7m?o.style.w:o.offsetWidth;
}

function s_getPos(name,a)
{
	var o=s_nS4?document.layers["s_m"+s_nr(name)]:s_getO("s_m"+s_nr(name));
	if(!o)
		return 0;
	if(!s_nS4)
		o=o.style;
	return a=="l"?parseInt(o.left):parseInt(o.top);
}

function s_whilePageLoading()
{
	if(typeof s_ML=="undefined"){setTimeout("s_whilePageLoading()",1000);return};var px=s_oP7m||s_nS4?0:"px",os=null,x,y,i,S;for(i=0;i<s_P.length;i++){S=s_[s_P[i]][0];if(typeof(S.T)=="number"&&typeof(S.L)=="number")continue;os=s_nS4?document.layers["s_m"+s_P[i]]:s_getOS("s_m"+s_P[i]);os.left=eval(S.L)+px;os.top=eval(S.T)+px};if(typeof s_Bl=="undefined")setTimeout("s_whilePageLoading()",1000)};s_whilePageLoading();s_ol=window.onload?window.onload:function(){};window.onload=function(){setTimeout('s_Bl=1',3000);s_ol()
}

function s_centerHorizontalMenu()
{
	var windowWidth,menuWidth=0,scrollBarFix,i;
	scrollBarFix=s_nS&&!document.body.clientWidth?15:s_nS4&&innerWidth<document.width?16:0;
	windowWidth=s_iE?s_dE.clientWidth:s_nS&&document.body.clientWidth&&!s_sF?s_dE.clientWidth?s_dE.clientWidth:document.body.clientWidth:s_oP7?document.body.clientWidth:innerWidth-scrollBarFix;
	for(i=0;i<arguments.length;i++){
		menuWidth+=s_getDim(arguments[i],"w");
		menuWidth-=i<arguments.length-1?1:0; // substract border overlapping
	}
	return parseInt(windowWidth/2-menuWidth/2);
}

