// version Muba 19:39 13-3-2003

 var winheight=100
 var winwidth=100
 var cat=null
 step=8;
function FotWin(name,width,height,title)
{
 if (!document.layers&&!document.all&&!document.getElementById)
  {
   paramstp="height="+height+",width="+width+",top=6"+
   ",left=6,scrollbars=no,location=no"+
   ",directories=no,status=no,menubar=no,toolbar=no,resizable=no"
   fot=window.open("","fot",paramstp);
   oldstr="<html><title>"+title+"</title><body background="+name+"></b"+"ody></h"+"tml>";
   fot.document.write(oldstr);
   if (fot.focus){fot.focus();}
   return;
  }

 LeftPosition=(screen.width)?(screen.width-width)/2:100;
 TopPosition=(screen.height)?(screen.height-height)/2:100;

 if (document.layers)
  {paramstp="height="+height+",width="+width+",top="+TopPosition+
   ",left="+LeftPosition+",scrollbars=no,location=no"+
   ",directories=no,status=no,menubar=no,toolbar=no,resizable=no"}
 else
  {paramstp="height="+winheight+",width="+winwidth+",top="+TopPosition+
  ",left="+LeftPosition+",scrollbars=no,location=no"+
  ",directories=no,status=no,menubar=no,toolbar=no,resizable=no"}

 fot=window.open("","fot",paramstp);

 if (document.all)
  {
   string="<html><title>"+title+"</title><body topmargin=0 leftmargin=0 bgcolor=silver onMouseDown=\"javascript:window.Close()\">";
   string1="<div id=loadintxt style='position:absolute;width:100%;top:45%;text-align:center;visibility:visible;font-family:Tahoma;font-size:16px;font-weight:bold'>Loading...</div>";
   string2="<div id=errtxt style='position:absolute;width:100%;top:45%;text-align:center;font-family:Tahoma;font-size:16px;color:red;font-weight:bold;visibility:hidden'>ERROR!!! Please try again</div>";
   string3='<s'+'cript>'+'var animColorIndex=0;colorArray=["#FFFFFF","#CCCCCC","#999999","#666666","#333333","#000000","#333333","#666666","#999999","#CCCCCC"];';
   string4='function textLooping(){if(animColorIndex==10)animColorIndex=0;'+
   'loadintxt.style.color=colorArray[animColorIndex];animColorIndex++;}animInterval=setInterval("textLooping()",200);';
   string5="function erroccur(){clearInterval(animInterval);loadintxt.style.visibility='hidden';errtxt.style.visibility='visible';}";
   string6="</s"+"cript>";
   string7='<s'+'cript language="jav'+'ascript1.2">';
   string8='function init(){clearInterval(animInterval);'+
   "loadintxt.style.visibility='hidden';"+
   'fltr.filters.item(0).Apply();fltr.filters.item(0).Play();'+
   'fltr.style.visibility="visible";}'+'</s'+'cript>';
   string9='<img id="fltr" style="filter:BlendTrans(Duration=5);visibility:hidden" src="'+name+'" border=0'+
   ' width='+width+' height='+height+' onload="init()" onerror="erroccur()" onmousedown="window.close()" alt="Klik om te sluiten...">'+
   '</b'+'ody></h'+'tml>';
  }

 if (document.layers)
  {
   toppos=height/2-40;
   leftpos=width/2-40;
   string="<html><title>"+title+"</title><body bgcolor='silver' onMouseDown=\"javascript:window.Close()\"><div id=loadintxt style='position:absolute;top:"+toppos+"px;left:"+leftpos+"px;'></div>"
   string1='<s'+'cript>var animColorIndex=0;colorArray=["#FFFFFF","#CCCCCC","#999999","#666666","#333333","#000000","#333333","#666666","#999999","#CCCCCC"];'
   string2='function textLooping(){if(animColorIndex==10)animColorIndex=0;document.loadintxt.document.open();'
   string3='document.loadintxt.document.write("<center><font size=4 face=Tahoma color="+colorArray[animColorIndex]+"><b>Loading...</b></font></center>");document.loadintxt.document.close();'
   string4='animColorIndex++;};animInterval=setInterval("textLooping()",200);</s'+'cript>'
   string5='<s'+'cript language="jav'+'ascript1.2">'
   string6="function init(){document.fotpic.visibility='show';clearInterval(animInterval);document.loadintxt.visibility='hide';};"
   string7="function erroccur(){errstr='ERROR!!! Please try again';alert(errstr);}</s"+"cript>"
   string8="<div id=fotpic style='position:absolute;left:0px;top:0px;visibility:hidden'>"
   string9="<img src='"+name+"' width="+width+" height="+height+" border=0 onload='init()' onerror='erroccur()' onmousedown='window.close()' alt='Klik om te sluiten...'></div></b"+"ody></h"+"tml>";
  }

 if (document.getElementById&&!document.all)
  {
   toppos=height/2-40;
   leftpos=width/2-40;
   string="<html><title>"+title+"</title><body bgcolor='silver' onMouseDown=\"javascript:window.Close()\"><div id=loadintxt style='position:absolute;top:"+toppos+"px;left:"+leftpos+"px;'></div>"
   string1='<s'+'cript>var animColorIndex=0;colorArray=["#FFFFFF","#CCCCCC","#999999","#666666","#333333","#000000","#333333","#666666","#999999","#CCCCCC"];';
   string2='function textLooping(){if(animColorIndex==10)animColorIndex=0;ls="<font size=4 face=Tahoma color="+colorArray[animColorIndex]+"><b>Loading...</b></font>"';
   string3='document.getElementById("loadintxt").innerHTML=ls;'
   string4='animColorIndex++;};animInterval=setInterval("textLooping()",200);</s'+'cript>'
   string5='<s'+'cript language="jav'+'ascript1.2">'
   string6='function init(){document.getElementById("fotpic").style.visibility="visible";clearInterval(animInterval);document.getElementById("loadintxt").style.visibility="hide";}';
   string7="function erroccur(){errstr='ERROR!!! Please try again';alert(errstr);}</s"+"cript>"
   string8="<div id=fotpic style='position:absolute;left:0px;top:0px;visibility:hidden'>";
   string9="<img src='"+name+"' width="+width+" height="+height+" border=0 onload='init()' onerror='erroccur()' onmousedown='window.close()' alt='Klik om te sluiten...'></div></b"+"ody></h"+"tml>";

   x=y=step;
   while (x | y)
    {
     fot.resizeBy (x, y);
     if (fot.window.innerWidth >= width) x=0;
     if (fot.window.innerHeight >= height) y=0;
    }
  }

 fot.document.writeln(string);
 fot.document.writeln(string1);
 fot.document.writeln(string2);
 fot.document.writeln(string3);
 fot.document.writeln(string4);
 fot.document.writeln(string5);
 fot.document.writeln(string6);
 fot.document.writeln(string7);
 fot.document.writeln(string8);
 fot.document.writeln(string9);

 if (document.all)
  {
   x=y=step;
   while (x | y)
   {
    fot.resizeBy (x, y);
	 if (fot.document.body.clientWidth >= width) x=0;
	 if (fot.document.body.clientHeight >= height) y=0;
   }
  }

 if(fot.focus){fot.focus();}
 return;
}

function CloseFotWin()
 {if(fot!=null && fot.open)fot.close();}

window.onfocus=CloseFotWin;
