var sm,op=-2,c=-1,sp=0;
function gi(n){return document.getElementById(n)}
function up(){if(sp==0)return;sp+=28;gi('scroll').style.marginTop=sp+'px'}
function down(){var s=gi('scroll'),o=gi('films');if(sp+s.offsetHeight-28<o.offsetHeight)return;sp-=28;s.style.marginTop=sp+'px'}
function cls(){if(c==op){sm[op].style.display='none';op=-2}}
function shw(o,i,f){o.className=o.className;if(c==i)c=-1;if(op==i)return;if(op!=-2){c=op;cls();}while(op!=-2);sm[i].style.display='';op=i}
function hd(o,i,f){o.className=o.className;c=i;setTimeout(cls,500);}
function rshw(){c=-1;}
function hid(){c=op;setTimeout(cls,500);}
if(gi('smenu')){
sm=gi('smenu').getElementsByTagName('div');
for(var i=0;i<sm.length;i++)
{
	sm[i].className+=' ab'+sm[i].className.substr(1);
	sm[i].style.display='none';
	sm[i].style.position='absolute';
}
}
var w;
function opn(u){
if( w )w.close();
w = window.open('','show', 'resizable=yes,width=600,height=400,screenX=100,screenY=100,left=100,top=100');
w.document.open();
w.document.writeln('<html><head><script> function ri(){var w = document.getElementById(\'image\').width+15;var h = document.getElementById(\'image\').height+70;if (!(document.all)){ self.resizeTo(w,h) } else { self.resizeTo((w),(h))}self.moveTo(Math.round((screen.width - w)/2), Math.round((screen.height - h)/2))}</script></head><body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" bgcolor="White" onblur="window.close()"><center><img id="image" src="'+u+'" border=0 alt="" onload="ri();"></center></body></html>');		
w.document.close();
return false
}
