// JavaScript Document

	   var arrTemp=self.location.href.split('?'); 
	   var picUrl = (arrTemp.length > 0)?arrTemp[1]:''; 
	   var NS = (navigator.appName=="Netscape")?true:false; 
	 

     function FitPic() { 
       iWidth = (NS)?window.innerWidth:document.body.clientWidth; 
       iHeight = (NS)?window.innerHeight:document.body.clientHeight; 
       iWidth = document.images[0].width - iWidth; 
       iHeight = document.images[0].height - iHeight; 
       window.resizeBy(iWidth, iHeight); 
       self.focus(); 
     }

/* 
	Descirption: Otvaranje novog prozora
	File: *.asp
*/

	function PopupPic(sPicURL) { 
    	openWin('popup.htm?' + sPicURL,'previewImg','400','300','yes'); 
   } 

	function openWin(file,name,w,h,resizable,otherFeat){
		l=screen.width/2-w/2;
		t=screen.height/2-h/2;
		if(otherFeat) otherFeat= ',' + otherFeat
		return window.open(file,name,'width='+w+',height='+h+',scrollbars=no,resizable='+resizable+',top='+t+',left='+l+otherFeat);
	}
	