//popup prozorchicj sa opisom
function otvoriGa( winHeight, winWidth, slika, persona, tekst )
{
    newWin = window.open('', '', 'height='+ winHeight + ',width='+ winWidth + 'toolbars=no, scrollbars=no' );
    newWin.document.write("<head><title>"+ persona + "</title><style>.komentar { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; color: #FFFFFF; text-align: justify; }</style><meta http-equiv='Content-Type' content='text/html; charset=windows-1250'></head>");
    newWin.document.write("<body topmargin='0' leftmargin='0' bgcolor='#666666'><p align=center>");
    newWin.document.write("<img width='489' height='347' src=" + slika + " onclick='JavaScript:window.close()' border='1' vspace='1' style='cursor: crosshair; color: #ffffff'>");
    newWin.document.write("<br><font class=komentar><b>"+ tekst + "</b></font>");
}  

// postepeni fade efekat na slikama
doFadeObjects = new Object();
doFadeTimers = new Object();

function doFade(object, destOp, rate, delta){
if (!document.all)
return
    if (object != "[object]"){  
        setTimeout("doFade("+object+","+destOp+","+rate+","+delta+")",0);
        return;
    }
        
    clearTimeout(doFadeTimers[object.sourceIndex]);
    
    diff = destOp-object.filters.alpha.opacity;
    direction = 1;
    if (object.filters.alpha.opacity > destOp){
        direction = -1;
    }
    delta=Math.min(direction*diff,delta);
    object.filters.alpha.opacity+=direction*delta;

    if (object.filters.alpha.opacity != destOp){
        doFadeObjects[object.sourceIndex]=object;
        doFadeTimers[object.sourceIndex]=setTimeout("doFade(doFadeObjects["+object.sourceIndex+"],"+destOp+","+rate+","+delta+")",rate);
    }
}

// poruka u status polju
defaultStatus="ShortFilmFest :: Gallery"

// popup prozor - obican
function pop_up_window(url, name, width, height){	
	settings="toolbar=no,location=no,directories=no,";
	settings+="status=no,menubar=no,scrollbars=yes,alwaysRaised=yes,";
	settings+="resizable=no,width="+width+",height="+height;
	wnd = window.open(url,name,settings);
	wnd.focus();
	wnd.resizeTo(width,height);
	wnd.moveTo(170,237);
}





