function adc_showDisclaimer(){arrayPageSize=getPageSize();adc_controlWindow(arrayPageSize[1]+'px','hidden');var disp="";adc_controlDisclaimer('block');};function adc_confirmDisclaimer(status,zatvori){if(status==1){if(zatvori!=1){adc_controlDisclaimer('block');}else{adc_controlDisclaimer('none');adc_controlWindow('auto','auto');refreshBackground();}}else{window.location="http://www.ujn.sr.gov.yu";}};function adc_controlDisclaimer(display,fluidSize){arrayPageSize=getPageSize();var oConfirm=document.getElementById('o_confirm');var oBackground=document.getElementById('o_background');oBackground.style.display=display;oConfirm.style.display=display;if(arguments.length==1){var windowLeft=arrayPageSize[0];var windowTop=arrayPageSize[1];var confirmWidth=oConfirm.offsetWidth;var confirmHeight=oConfirm.offsetHeight;if(confirmWidth>windowLeft){confirmWidth=windowLeft-100;oConfirm.style.width=confirmWidth+"px";}if(confirmHeight>windowTop){confirmHeight=windowTop-125;oConfirm.style.height=confirmHeight+"px";}var marginLeft=0;var marginTop=0;marginTop=50;marginLeft=(windowLeft/2)-(confirmWidth/2);if(marginTop<0)marginTop=0;if(marginLeft<0)marginLeft=0;oConfirm.style.top=marginTop+"px";oConfirm.style.left=marginLeft+"px";}};function adc_controlWindow(height,overflow){bod=document.getElementsByTagName('body')[0];bod.style.height=height;bod.style.overflow=overflow;htm=document.getElementsByTagName('html')[0];htm.style.height=height;htm.style.overflow=overflow;bodc=document.getElementById('adc-container');bodc.style.height=height;bodc.style.overflow=overflow;};function getPageSize(){var xScroll,yScroll;if(window.innerHeight&&window.scrollMaxY){xScroll=document.body.scrollWidth;yScroll=window.innerHeight+window.scrollMaxY;}else if(document.body.scrollHeight>document.body.offsetHeight){xScroll=document.body.scrollWidth;yScroll=document.body.scrollHeight;}else{xScroll=document.body.offsetWidth;yScroll=document.body.offsetHeight;}var windowWidth,windowHeight;if(self.innerHeight){windowWidth=self.innerWidth;windowHeight=self.innerHeight;}else if(document.documentElement&&document.documentElement.clientHeight){windowWidth=document.documentElement.clientWidth;windowHeight=document.documentElement.clientHeight;}else if(document.body){windowWidth=document.body.clientWidth;windowHeight=document.body.clientHeight;}if(yScroll<windowHeight){pageHeight=windowHeight;}else{pageHeight=yScroll;}if(xScroll<windowWidth){pageWidth=windowWidth;}else{pageWidth=xScroll;}arrayPageSize=new Array(pageWidth,pageHeight,windowWidth,windowHeight);return arrayPageSize;};function refreshBackground(){try{document.getElementById("o_confirm").style.display="none";document.getElementById("o_background").style.display="none";}catch(err){setTimeout("refreshBackground()",1000);}}