/* podpora zalozek do dialogu */ var dgZalozky = { zalozky : new Array(), bodies : new Array(), body : '', bodyHeight:0, pocet : 0, aktivni : 0, parent : 'Dialog' } dgZalozky.init = function() { this.pocet = this.zalozky[this.parent].length; this.body = '
'; for( i=0;i 
'; this.body += '
'; this.body += ''+this.zalozky[this.parent][i]+''; this.body += '
'; this.body += '
 
'; } this.body += ''; this.body += '
'; for( i=0;i'; this.body += this.bodies[this.parent][i]; this.body += '
'; } this.body += ''; } dgZalozky.HTML = function() { return this.body; } dgZalozky.Show = function(cId) { document.getElementById('dgZalozka-leva-'+cId).className = 'dgZalozka-leve-a'; document.getElementById('dgZalozka-prava-'+cId).className = 'dgZalozka-prava-a'; } dgZalozky.Hidden = function(cId) { if(cId != this.aktivni) { document.getElementById('dgZalozka-leva-'+cId).className = 'dgZalozka-leve'; document.getElementById('dgZalozka-prava-'+cId).className = 'dgZalozka-prava'; } } dgZalozky.open = function(z) { this.parent = DialoguesOpened[DialoguesOpened.length-1]; this.init(); this.aktivni = z; for( i=0;i