// JavaScript Document
var tid=null;
var current=-8;
var t,h;

	
function next()
{
    t=current;
	h=document.getElementById('images_list').offsetHeight;
	tid=setInterval("current=t;if(t+h<=320){clearInterval(tid);}else{t-=8;document.getElementById('images_list').style.top=t+'px';}",20);
		
	}
function prev()
{
	t=current;
	h=document.getElementById('images_list').offsetHeight;
	tid=setInterval("current=t;if(t>=-8){clearInterval(tid);}else{t+=8;document.getElementById('images_list').style.top=t+'px';}",20);
	}
function stop_move()
{
	clearInterval(tid);
	}	
	
function show_big_of(name)
{
   
	document.getElementById('big_image').src='../gallery/office/big/'+name+'.jpg';

}
function show_big_lit(name)
{

	
	document.getElementById('big_image').src='../gallery/magazunu/big/'+name+'.jpg';

}
function show_big_kyxni(name)
{

	document.getElementById('big_image').src='../../gallery/dim/kyxni/big/'+name+'.jpg';

}

function show_big_prux(name)
{

	document.getElementById('big_image').src='../../gallery/dim/prux/big/'+name+'.jpg';

}

function show_big_child(name)
{

	document.getElementById('big_image').src='../../gallery/dim/child/big/'+name+'.jpg';

}

function show_big_table(name)
{

	document.getElementById('big_image').src='../../gallery/dim/table/big/'+name+'.jpg';

}

function show_big_wafu(name)
{

	document.getElementById('big_image').src='../../gallery/dim/wafu/big/'+name+'.jpg';

}

function show_zreklama(name)
{

	document.getElementById('big_image').src='../gallery/zreklama/big/'+name+'.jpg';

}

function show_big_kamin(name)
{

	document.getElementById('big_image').src='../gallery/kamin/big/'+name+'.jpg';

}
function show_banks(name)
{

	document.getElementById('big_image').src='../gallery/banks/big/'+name+'.jpg';

}
function show_bar(name)
{

	document.getElementById('big_image').src='../gallery/bar/big/'+name+'.jpg';

}
//---------------------------------------------------------------------------


// JavaScript Document
var head_id1=null;
var cont_id1=null;
var sub_id1=null;
var head_id2=null;
var cont_id2=null;
var sub_id2=null;
var h1,h2;
var chot_h1, cont_h2;
var tid=tid1=tid2=null;
var step=4;




function show_cont(name)
{

		if(head_id1==name.id){return;}
		else
		{
			sub_id1=head_id1+"_sub";
			cont_id1=head_id1+"_cont";
			
			head_id2=name.id;
			sub_id2=head_id2+"_sub";
			cont_id2=head_id2+"_cont";
			
			h1=document.getElementById(sub_id1).offsetHeight;
			cont_h1=document.getElementById(cont_id1).offsetHeight;
			
			h2=document.getElementById(sub_id2).offsetHeight;
			cont_h2=document.getElementById(cont_id2).offsetHeight;
			
			hide_c(); 
			show_c();
			}
	
	
	}
function init(id)
{
	head_id1=id; cont_id1=head_id1+"_cont"; sub_id1=head_id1+"sub";
	document.getElementById(head_id1).className='head_hover';
	document.getElementById(cont_id1).className='panel_visible';
//	document.getElementById(submenu).className='sub_hover';
	}

function hide_c()
{
tid1=setInterval("if(cont_h1>30){cont_h1-=step;document.getElementById(cont_id1).style.height=cont_h1+'px';}else{document.getElementById(cont_id1).className='panel_hide';clearInterval(tid1);}",10);
	}
	
function show_c()
{
tid2=setInterval("if(cont_h2<h2+30){cont_h2+=step;document.getElementById(cont_id2).style.height=cont_h2+'px';}else{document.getElementById(cont_id2).className='panel_visible';clearInterval(tid2);head_id1=head_id2;}",10);
	}

