function footerMove(){
	max = 0;

	if(document.forms.IsMain.IsMainPage.value == "2")
	{
		max = document.getElementById("news").offsetHeight; 
		document.getElementById("main_text").style.width = "450px";  
		document.getElementById("main_text").style.left = "175px";  
	}
	else
	{
		document.getElementById("main_text").style.width = "720px"; 
		document.getElementById("main_text").style.left = "180px";  

	}

	
	if(max < document.getElementById("main_text").offsetHeight)
		max = document.getElementById("main_text").offsetHeight;
	
	if(max < document.getElementById("vmenu").offsetHeight)
		max = document.getElementById("vmenu").offsetHeight;
		

	postop = max + 250;

    document.getElementById("footer").style.top = postop + "px";

	
	

}






var bScrolling = true;
function OnScrollerMouseOver(){
    bScrolling = false;
}

function OnScrollerMouseOut(){
    bScrolling = true;
}

function OnTimer(){
    if(!bScrolling)
        return;
  oText.style.top = nPos.toString() + "px";

    if(--nPos < -nHeight)
        nPos = oContainer.offsetHeight;
}



var hide=true;

function movePic(set){ 

if (window.ActiveXObject) {
evt=window.event;
//Snd = 'block';
   } else {
//Snd = 'table-row-group';
evt=this;   
   }


//alert(window.event.clientY + ' ' + document.body.scrollTop);
_fh=document.getElementById('alt'+set).offsetHeight; 
_fw=document.getElementById('alt'+set).offsetWidth; 

_x=evt.clientX - _fw*2; 
_y=evt.clientY - _fh*2; 
_by=document.body.scrollTop; 
_bx=document.body.scrollLeft; 
//alert(_by + ' ' + _bx);
_dx=5; 
left=false;
right=false; 
document.getElementById('alt'+set).style.left=_bx + (_x + _fw) +'px'; 
document.getElementById('alt'+set).style.top= _by + (_y + _fh) +'px'; 

if(hide){ 
document.getElementById('alt'+set).style.visibility="visible";
 }
hide=false; 
//status='_x'+ _x +' _y '+ _y +' _bx '+ _bx +' _by '+ _by;
//window.status = _fh +'  '+_fw;

} 



function hidePic(set){ 
document.getElementById('alt'+set).style.visibility="hidden"; 
document.getElementById('alt'+set).style.top=0 + 'px'; 
document.getElementById('alt'+set).style.left=0 + 'px'; 
hide=true; 
}


function show_bar(ev) {

MouseX = window.event.clientX + document.body.scrollLeft;
MouseY = window.event.clientX + document.body.scrollTop;
obj = document.getElementById("win");

obj.style.top = MouseY + document.body.scrollTop;
obj.style.left = MouseX;
obj.style.visibility = "visible";

}

function hide_bar() {

document.getElementById("win").style.visibility="hidden"

}