window.onload=set_pos_new;
//window.onresize=set_pos_new;

function set_pos_new(){
	setTimeout("do_bott()",300);
	}
function do_bott(){
	
	var minusas=0;//386;
	var minusas2=400;
	
	if(document.images && document.images.scr_h){
		document.images.scr_h.height=1;
		var agt = navigator.userAgent.toLowerCase();
		if(document.all){
			
			if(typeof((document.body.offsetHeight)=='undefined' || (agt.indexOf("msie")==-1) && agt.indexOf("gecko")!=-1) || (agt.indexOf("msie 7.0")>0) || (agt.indexOf("opera")>0)){
				hh=document.body.scrollHeight;
			}
			else {
				hh=document.body.offsetHeight+((agt.indexOf("msie") != -1 && (agt.indexOf("opera") == -1))?(-4):0);	
			}
		}
		else {
			
			if (agt.indexOf("mozilla")>=0) {//mozilai
				hh = window.innerHeight + window.scrollMaxY;
			}
			else hh=document.body.scrollHeight;
		}
		document.images.scr_h.height=(((hh-minusas)>0) ? (hh-minusas):1);
		document.images.scr_h2.height=(((hh-minusas2)>0) ? (hh-minusas2):1);
		/*
		if (document.getElementById('leftas')) {
			var aukstis=hh-minusas2;
			document.getElementById('leftas').style.height=aukstis+'px';
		}
		*/
	}
}
