function fo(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=fo(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function ani(obn){
	hh *= 1.2;
	obj.style.height = hh;
	if (hh<480){
		mv = setTimeout('ani()', 10);
	}
}
function sl(obn, txt) {
	if (txt){
		txt = "<img src='/poster/"+txt+"'>";
	}
	ld = new Date();
	if (Math.abs(lp-ld.getSeconds())<2)return;
	
  if ((obj=fo(obn))!=null) with (obj)
    if (document.layers) {document.write(unescape(txt)); document.close();}
    else innerHTML = unescape(txt);
	obj.style.height = ((txt)?480:0);
	//hh = 10;
	//mv = '';
	//if (txt)ani(obj);
}

function ini(){
	nd = new Date();
	lp = nd.getSeconds();
}

function sh(obn){
	if ((obj=fo(obn))!=null);
	obj.style.display=((obj.style.display=='block')? 'none' : 'block');
}

function flipPic(obn){
	if ((obj=fo(obn))!=null);
	var src=String(obj.src).split('/');
	if(src[src.length-1]=='pijl.gif'){
		obj.src=String(obj.src).split('pijl.gif').join('pijl_d.gif');
	}else{
		obj.src=String(obj.src).split('pijl_d.gif').join('pijl.gif');
	}
}
