function ht(){
var h = document.getElementById('index');
var bh = document.body.clientHeight;
index.style.marginTop = (bh-299)/2;
h.style.display='block';
}
function main()
{
	var bh=document.body.clientWidth;
if (bh>1280) {	
	document.getElementById('main_table').width = bh - 305;
	}
else
	{
	document.getElementById('main_table').width = 915;
		}
}

function logo()
{
var bh=document.body.clientWidth;
var logoimg=document.getElementById('logo');
if (bh>1280)
	{
	logoimg.width=152;
	logoimg.height=123;
	logoimg.style.marginLeft = (document.getElementById('main_table').width)/2-80;
	}
else if (bh<=1280 && bh>=955)
	{
	logoimg.width=152;
	logoimg.height=123;
	logoimg.style.marginLeft = (document.getElementById('main_table').width)/2-100;
	}
}


 
function showmyImg(url) {
var showImg; 
showImg=window.open ("", "showImg", "fullscreen=no, resizable=no"); 
showImg.document.open();
showImg.document.write("<html><head><title>Благотворительный фонд 'Слава Морская' :: Фотогалерея</title><script>function tocenter () {var sh = screen.height; var sw = screen.width; var cw = screen.width/2-document.body.clientWidth/2; var ch = screen.height/2-document.body.clientHeight/2; this.moveTo(cw,ch); }</script></head><body style='margin:0;padding:0; text-align:center' onload='tocenter()'><img src="+url+" align='center' border=0 onLoad='self.resizeTo(this.width+10,this.height+28), tocenter();' alt='Благотворительный фонд &quot;Слава Морская&quot; - Фотогалерея'></body></html>"); 
showImg.focus(); 
}

function invis(elem)
{
elem.style.cursor='hand';
elem.style.filter='alpha(opacity="70")';
}

function vis(elem)
{
elem.style.filter='alpha(opacity="100")';
}


function select (elem)
{
elem.style.backgroundColor='#E8EDF1'
}

function unselect (elem)
{
elem.style.backgroundColor='#ffffff'
}

function news(url) { 
window.open (url, 'news', 'width=450, height=300, toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1,copyhistory=0'); 

}
