// JavaScript Document var id = 0; var count = 12; var obr = 1; var $_GET = []; var vars_area = location.search.substring(1); if(vars_area.length > 2) { var get_sets = vars_area.split('&'); for(i = 0, k = get_sets.length; i < k; i++) { var parts = get_sets[i].split('='); $_GET[unescape(parts[0])] = unescape(parts[1]); } } id = $_GET['uid']; function changeContent(type,pid,name,author,material,size,year) { if (document.getElementById || document.all) { var el = document.getElementById? document.getElementById('exponat_field'): document.all['exponat_field']; if (el && typeof el.innerHTML != "undefined") { if (type==1) { id = pid; obr = 1; el.innerHTML = getpic(id,name,author,material,size,year); } else if (type==0) { id = pid; el.innerHTML = getpic_still(id,name,author,material,size,year); } } } } function getpic_still(which,name,author,material,size,year) { return 'Náhľad exponátu: '+name+'

HiRes

'+author+':
'+name+'

materiál: '+material+'
rozmer: '+size+'
rok vzniku: '+year+'

'; } function getpic(which,name,author,material,size,year) { return 'Otoč doľavaOtoč dopravaInverzná panoráma objektu

InPano HiRes

'+author+':
'+name+'

materiál: '+material+'
rozmer: '+size+'
rok vzniku: '+year+'

'; } function rotate(where) { if (where=='left') { if (obr>1) { obr=obr-1; if (obr>9) document.images['exponat_view'].src = 'exponaty/depozit/'+id+'/'+id+'_'+obr+'.jpg'; else document.images['exponat_view'].src = 'exponaty/depozit/'+id+'/'+id+'_0'+obr+'.jpg'; } else { obr=count; document.images['exponat_view'].src = 'exponaty/depozit/'+id+'/'+id+'_'+obr+'.jpg'; } } if (where=='right') { if (obr9) document.images['exponat_view'].src = 'exponaty/depozit/'+id+'/'+id+'_'+obr+'.jpg'; else document.images['exponat_view'].src = 'exponaty/depozit/'+id+'/'+id+'_0'+obr+'.jpg'; } else { obr=1; document.images['exponat_view'].src = 'exponaty/depozit/'+id+'/'+id+'_0'+obr+'.jpg'; } } }