function HOffset()
{
   var window_width = window.innerWidth ? window.innerWidth : (document.body.clientWidth ? document.body.clientWidth : 0);
   return Math.max( 0, Math.floor( (window_width - 809) / 2 ) - 0 ).toString();
}

function VOffset()
{
   var window_height = window.innerHeight ? window.innerHeight : (document.body.clientHeight ? document.body.clientHeight : 0);
   return Math.max( 0, Math.floor( (window_height - 607) / 2 ) - 0 );
}

function DoReposition() {var o='IDAlignPage';if(is_dom2&&document.getElementById(o)){var e=document.getElementById(o);e.style.left=HOffset()+'px';e.style.top=VOffset()+'px';}else if(is_ie&&is_major>=4&&eval('document.all.'+o)){var e=eval('document.all.'+o);e.style.left=HOffset()+'px';e.style.top=VOffset()+'px';}else if(is_nav&&is_major>=4&&eval('document.'+o)){var e=eval('document.'+o);e.left=HOffset();e.top=VOffset();}}

function jsReplaceSrc( o, o2 ) 
{
	var s=o+'Img';
	if(is_dom2&&document.getElementById(s))
	{
		var e=document.getElementById(s);
		if(e.src&&o2&&o2.src)
		{
			e.src=o2.src;
		}
	}
	else if(is_nav&&is_major<5&&eval('document.'+o))
	     {
		var e=eval('document.'+o);
		if(e.document[s]&&e.document[s].src)
		{
			e.document[s].src=o2.src;
		}
	     }
	else if(eval('document.'+s))
	     {
		var e=eval('document.'+s);
		if(e.src&&o2&&o2.src)
		{
			e.src=o2.src;
		}
	     }
}


function jsHide( o ) {
	if(is_dom2&&document.getElementById(o))
	{
		document.getElementById(o).style.visibility='hidden';
	}
	else if(is_ie&&is_major>=4&&eval('document.all.'+o))
	{
		eval('document.all.'+o+'.style.visibility="hidden"');
	}
	else 		if(is_nav&&is_major>=4&&eval('document.'+o))
	{
		eval('document.'+o+'.visibility="hide"');
	}
}


function jsShow( o ) {if(is_dom2&&document.getElementById(o)){document.getElementById(o).style.visibility='visible';}else if(is_ie&&is_major>=4&&eval('document.all.'+o)){eval('document.all.'+o+'.style.visibility="visible"');}else if(is_nav&&is_major>=4&&eval('document.'+o)){eval('document.'+o+'.visibility="show"');}}


function HideAll() {
	javascript:jsHide('idBott01');
	javascript:jsHide('idBott02');
	javascript:jsHide('idBott03');
	javascript:jsHide('idBott04');
	javascript:jsHide('idBott05');
	javascript:jsHide('idBott06');
	javascript:jsHide('idBott07');
	javascript:jsHide('idBott08');
}

function ShowElem(o)
{
	HideAll();
	jsShow(o);
}
