//---   globals   -----------
var up = "../../../../../".slice( (5-depth)*3 );
var incl = up + "include/";
//---   preload some images 
var aImg = new Array();
var names = new Array( "bg6b.jpg", "hum_globe3.gif", "computer2b.gif", "logohum.gif",
                                   "txt_icentrum_small.gif", "txt_humanitas_small.gif",
                                   "bttn068a.gif", "bttn068b.gif", "bttn136a.gif", "bttn136b.gif",
											  "bttn220a.gif", "bttn220b.gif", "bg2.gif" );
var len = aImg.length;
for ( i = len; i < ( names.length + len ); i++)
{
	aImg[ i ] = new Image();
	aImg[ i ].src = incl +names[ i ];
}

//---------------------------
function LogoTitle( logo, ttl )
{
	Logo( logo );
	Title( logo, ttl );
}
//---------------------------
function Logo( logo )
{
	var imgLogo;
	switch ( logo )
	{
		case 'hb_ic':
			imgLogo = '<img src="'+incl+'hum_globe3.gif" alt=" Start Internet Centrum & Humanitas Bergweg " width="150" height="165" border="0">';
		break;
		case 'hb':
			imgLogo = '<img src="'+incl+'logohum.gif" alt=" Start Internet Centrum & Humanitas Bergweg " width="174" height="131" border="0">';
		break;
		case 'ic':
			imgLogo = '<img src="'+incl+'computer2b.gif" alt="Het Internet Centrum, een internetcafe in Rotterdam" width="142" height="140" border="0">';
		break;
	}
	var code = '\
<div class="logo" style="z-index: 20;">\
<table border="0" cellspacing="0" cellpadding="0" align="center">\
<tr>\
<td width="16" height="16" background="'+incl+'fr31.gif"></td>\
<td background="'+incl+'fr32.gif"></td>\
<td width="16" background="'+incl+'fr33.gif"></td>\
</tr>\
<tr>\
<td background="'+incl+'fr34.gif"></td>\
<td width="180" height="180" align="center" background="'+incl+'bg2.gif"><a href="' + up + 'index.php">'+imgLogo+'</a></td>\
<td background="'+incl+'fr36.gif"></td>\
</tr>\
<tr>\
<td height="16" background="'+incl+'fr37.gif"></td>\
<td background="'+incl+'fr38.gif"></td>\
<td width="16" background="'+incl+'fr39.gif"></td>\
</tr>\
</table>\
</div>';
	document.write( code );
}
//---------------------------
// title2 is 'hb_ic', 'hb' or 'ic'
function Title( logo, ttl )
{
	var code = '<div class="logo201">' + ttl + '</div><div class="logo199">' + ttl + '</div><div class="logo200">' + ttl + '</div>';
	code += '<br><br><br>';
	switch( logo )
	{
		case 'hb_ic':
			code += '<img src="' + incl + '/txt_icentrum_small.gif" alt="" width="420" height="127" border="0" style="margin: -30px 0px 0px 80px;"><br>';
			code += '<img src="' + incl + '/txt_humanitas_small.gif" alt="" width="496" height="144" border="0" style="margin: -80px 0px 0px 80px;"><br>';
		break;
		case 'hb':
			code += '<br><br><br>';
			code += '<img src="' + incl + '/txt_humanitas_small.gif" alt="" width="496" height="144" border="0" style="margin: -65px 0px 0px 80px;"><br>';
		break;
		case 'ic':
			code += '<br><br><br>';
			code += '<img src="' + incl + '/txt_icentrum_small.gif" alt="Het Internet Centrum, een internetcafe in Rotterdam" width="420" height="127" border="0" style="margin: -30px 0px 0px 80px;"><br>';
		break;
	}	
	code += '<br><br><br>';
	document.write( code ); 
}
//---------------------------
function LogoTitle2( logo, ttl )
{
	Logo( logo );
	Title2( logo, ttl );
}
//---------------------------
// title2 is 'hb_ic', 'hb' or 'ic'
function Title2( logo, ttl )
{
	var code = '<div class="logo201">' + ttl + '</div><div class="logo199">' + ttl + '</div><div class="logo200">' + ttl + '</div>';
	code += '<br><br><br>';
	switch( logo )
	{
		case 'hb_ic':
			code += '<img src="' + incl + '/txt_icentrum_small.gif" alt="" width="420" height="127" border="0" style="margin: -30px 0px 0px 80px;"><br>';
			code += '<img src="' + incl + '/txt_humanitas_small.gif" alt="" width="496" height="144" border="0" style="margin: -80px 0px 0px 80px;"><br>';
		break;
		case 'hb':
			code += '<br><br><br>';
			code += '<img src="' + incl + '/title_humanitas_bergweg.gif" alt="" width="503" height="64" border="0" style="margin: -65px 0px 0px 80px;"><br>';
		break;
		case 'ic':
			code += '<br><br><br>';
			code += '<img src="' + incl + '/txt_icentrum_small.gif" alt="Het Internet Centrum, een internetcafe in Rotterdam" width="420" height="127" border="0" style="margin: -30px 0px 0px 80px;"><br>';
		break;
	}	
	code += '<br><br><br>';
	document.write( code ); 
}
//---------------------------
function Frame( img, tt, w, h )
{
	var code = '<table border="0" cellspacing="0" cellpadding="0">\
<tr>\
<td width="16" height="16" background="'+incl+'fr31.gif"></td>\
<td background="'+incl+'fr32.gif"></td>\
<td width="16" height="16" background="'+incl+'fr33.gif"></td>\
</tr>\
<tr>\
<td width="16" height="16" background="'+incl+'fr34.gif"></td>\
<td width="'+w+'" height="'+h+'"><img src="' + incl + img + '" alt="' + tt + '" width="' + w + '" height="' + h + '" border="0"></td>\
<td width="16" height="16" background="'+incl+'fr36.gif"></td>\
</tr>\
<tr>\
<td width="16" height="16" background="'+incl+'fr37.gif"></td>\
<td background="'+incl+'fr38.gif"></td>\
<td width="16" height="16" background="'+incl+'fr39.gif"></td>\
</tr>\
</table>';
	document.write( code );
}
//---------------------------
function LModified()
{
	var code = "<div align='right' style='color: #d5b97a; font-size: 80%; margin-right: 30px;'>";
	code += "<hr width='60%' size='1' color='#d5b97a'>";
	code += new Date( document.lastModified ).toLocaleString( )+"<br>";
	code += "&copy; team humanitas <a style='color:#d5b97a;' href='mailto:humanitas_1 at hotmail dot com?subject=site'>e-mail</a>";
	code += "</div>";
	document.write( code );
}
//---------------------------
function BttnTop()
{
	var c='<div class="pmenu" style="position: absolute; left: 24px; top: auto;">\
<table border="0" cellspacing="0" cellpadding="0" class="pmenu"><tr><td class="td1">\
<a href="#top" title="top"><img src="'+incl+'/arrow_up.gif" width="14" height="14" vspace="11" border="0"></a>\
</td></tr></table></div>';
	document.write( c );
}

