function props(obj,objName){
  var result="";
  for (i in obj) {
    result +=  objName+ "." +i+ "=" +obj[i] /*+"\n"*/;
  }
  return result;
}

var butPrev;
Buttons=new Array();
var i;
for(i==1;i<9;i++){
	Buttons[i]=document.getElementById('b'+i);
}

function Act(but){
  with(but){
  	with(childNodes[0].style){
  		height="70px";
  		width="70px";
  		marginTop="-10px";
  	}
  	childNodes[1].style.display='none';
  	childNodes[4].style.display='inline-block';
  }
/*  with(but){
  	height="70px";
  	top="-10px";
  	left="-35px";
  	iOld=eval(but.id.charAt(1))+1;
  	alert(iOld);
  	alert(Buttons[iOld].style.left);
  	for(i==iOld;i<9;i++){
  		Buttons[i].style.left="-45px";
  	}
  }*/
  butPrev=but;
}

function ReAct(but){
  with(but){
  	with(childNodes[0].style){
  		height="";
  		width="";
  		marginTop="";
  	}
  	childNodes[1].style.display='';
  	childNodes[4].style.display='';
  }
/*  if(butPrev) with(butPrev.style){
  	height="";
  	top="";
  	left="";
  	for(i==iOld;i<9;i++){
  		Buttons[i].style.left="";
  	}
  }*/
}

function Hvr(obj, bOver) {
	if ((navigator.userAgent.indexOf('MSIE')) < 0) return;
	if(bOver) obj.className += "hover";
	else obj.className = obj.className.replace('hover', '');
	//with(obj.childNodes[3]) if(obj.childNodes[3].className=="sub1")
	//	childNodes[0].style.height=clientHeight;
}

function Show(pic){
  document.getElementById(pic).style.visibility='visible';
}
function Hide(pic){
  document.getElementById(pic).style.visibility='hidden';
}

var houseimg=document.getElementById('houseimg');
var housea=document.getElementById('housea');
function House(){
  with(housea.style){
  	color="#ffffff";
  	textDecoration="underline";
  }
  houseimg.src="/i/menu/houseL.gif"
}
function HouseOut(){
  with(housea.style){
  	color="";
  	textDecoration="";
  }
  houseimg.src="/i/menu/house.gif"
}
var Pic=document.getElementById("Pic");
var bigPic=document.getElementById("bigPic");
var subBox=document.getElementById("subBox");
var subPics=document.getElementById("subPics");
var opis=document.getElementById("opis");
var mask=document.getElementById("mask");
function View(arg,flag){
  //Ttl=arg.title;
  if(!flag) img=arg.src.split("_t.")[0]+".jpg";
  else img=arg.src.split("_t.")[0]+".gif";
  Pic.style.display="block";
  mask.style.display="block";
  bigPic.src=img;
  subPics.style.height=Math.floor((480-opis.scrollHeight)/80)*80+"px";
// @may subBox.style.height=Math.floor((480-opis.scrollHeight)/80)*80+"px";
  //alert(subPics.style.height);
  //Pic.scrollTo();
  Pic.focus();
}

function closePic(){
  Pic.style.display="";
  mask.style.display="";
}

var c=0;
var m=0;
//var point=document.getElementById("point").style;
function Start(evnt){
  c=evnt.clientY;
  m=1;
  //alert(c);
}
function Scroll(evnt){
  //alert(evnt.clientY);
  s=evnt.clientY-c;
  if(m)point.marginTop=s+5+"px";
  //alert(point.marginTop);
  subPics.firstChild.style.marginTop=-s+"px";
}
function End(evnt){
m=0;
  //alert(c-evnt.clientY);
  //point.marginTop="";
  //subPics.firstChild.style.marginTop=evnt.clientY-c+"px";
}


