function browser_window() 
{
	this.Width = 0;
	this.Height = 0;
	
	this.footer_set = footer_set;
	this.blank_area_set = blank_area_set;
	this.center_area_set = center_area_set;
}

function footer_set(id){
	this.Height = document.body.scrollHeight;
	var Fobj;
	var extra_h;
	var q_str = querySt("selected");
	if(q_str=="journeyInfo"){
		extra_h = 440;  //extra height vajadzigs dinamiskaas jautajumu formas atteloshanai (celjojumu kuratoriem).
						//citaas lapaas tas nav vajadziigs.
	}else{
		extra_h = 0;
	}
	Fobj = document.getElementById(id)
	Fobj.style.top = this.Height + extra_h + "px";
	Fobj.style.visibility = "visible";
}

function blank_area_set(id){
	this.Height = document.body.scrollHeight;
	var Bobj;
	Bobj = document.getElementById(id)
	if (Bobj!=null){
		Bobj.style.height = this.Height-441-75+"px";
	}
}

function center_area_set(id){
	this.Height = document.body.scrollHeight;
	var Bobj;
	Bobj = document.getElementById(id)
	if (Bobj!=null){
		Bobj.style.height = this.Height+"px";
	}
}

function querySt(ji) {
	hu = window.location.search.substring(1);
	gy = hu.split("&");
	for (i=0;i<gy.length;i++) {
		ft = gy[i].split("=");
		if (ft[0] == ji) {
			return ft[1];
		}
	}
}
var browser = new browser_window;
