// JavaScript Document

function tlacitkoon(active){

if(active=='home'){
document.getElementById('data').height='950';
homel.className='tlacitko on';
sluzby.className='tlacitko';
reference.className='tlacitko';
technologie.className='tlacitko';
kontakt.className='tlacitko';
}

if(active=='sluzby'){
document.getElementById('data').height='1070';
homel.className='tlacitko';
sluzby.className='tlacitko on';
reference.className='tlacitko';
technologie.className='tlacitko';
kontakt.className='tlacitko';
}

if(active=='reference'){
document.getElementById('data').height='1750';
homel.className='tlacitko';
sluzby.className='tlacitko';
reference.className='tlacitko on';
technologie.className='tlacitko';
kontakt.className='tlacitko';
}

if(active=='technologie'){
document.getElementById('data').height='940';
homel.className='tlacitko';
sluzby.className='tlacitko';
reference.className='tlacitko';
technologie.className='tlacitko on';
kontakt.className='tlacitko';
}

if(active=='kontakt'){
document.getElementById('data').height='400';
homel.className='tlacitko';
sluzby.className='tlacitko';
reference.className='tlacitko';
technologie.className='tlacitko';
kontakt.className='tlacitko on';
}


}

function wopen(){
var la= screen.width - '1000';
var l=la/2;

var ta= screen.availHeight - '574';
var t=ta/2;

window.open('mapa.html','mapa','width=1000,height=574,resizable=0,left='+l+',top='+t);
}



function View(x) {

if (document.getElementById(x).className=='hidden'){
document.getElementById(x).className='block';}
else {document.getElementById(x).className='hidden';}


var dheight=document.getElementById('heighter').scrollHeight;
window.top.document.getElementById('data').height=dheight+50;

}

function referimage(x,y){

document.getElementById('relay').src='../resources/images/'+x+'/large/'+y+'.jpg';

var la= screen.width - '640';
var l=la/2;

var ta= screen.availHeight - '480';
var t=ta/2;

window.open('image.html','reference','width=640,height=480,resizable=0,left='+l+',top='+t);

}

function refersrc(){

var a=window.opener.document.images['relay'].src;
document.images['big'].src=a;
var la= screen.width - '640';
var l=la/2;
var ta= screen.availHeight - '480';
var t=ta/2;

}
