// 25-5-2009	ka	getfullyear


function test()
{
	document.write("<h1>" + toggle + "</h1>");
}


// ==================================================================================
// Space for common variables that need to be used throughout the code
// ==================================================================================
var toggle = 0;



//	display bottom line, standaard op elke pagina
function BottomLine2()
{
	var currentTime = new Date();
	var year = currentTime.getFullYear();
	document.write("<table width='100%' border='0'>");
	document.write("<tr><td colspan='2'><br><hr></td></tr>");
	document.write("<tr><td><form method='post' action='#top' target='_self'><input type='submit' value='back to top'></form></td>");
	document.write("<td class='bottomline'>&copy; 1995-" + year + ". Design and maintenance <a href=http://www.a-biz.nl target=_blank>A-biz Internet Solutions</a></td>");
	document.write("</tr></table>");
}

// display a picture with dropshadow
function shadowpic (picnaamsmall, w, h, border, shadow , center, picnaambig, w2, h2)
{
	target_page = "_blank";
	htm = picnaambig.indexOf(".htm");
	if (shadow == "" ) shadow = "10";
	if (border == "" ) border = "1";

	document.write("<td class='hand shadow" + shadow + "'>");
	if (center != "" )	document.write("<center>");

	plaatje = "<img class='shadow" + shadow + "' src='" + picnaamsmall + "'";
	if (w != "")	plaatje += " width='" + w + "'";
	if (h != "")	plaatje += " height='" + h + "'";
	plaatje += " border='" + border + "'";

	if (picnaambig != "")	
	{
		if ( htm > -1 )		
		{
			document.write("<a href='" + picnaambig + "' target='" + target_page + "'>"); 
			document.write(plaatje + "></a>");
		}
		else
		{
			document.write(plaatje);
			optie = " onClick='showBigPic(\"" + picnaambig + "\", " + w2 + ", " + h2 + ", event, 0 );'";
			document.write( optie + ">" );
		}
	}
	else
	{
		document.write(plaatje + ">");
	}

	if (center != "" ) document.write("</center>");
	document.write("</td>");
}

function showBigPic(picnaam, w, h, e, anim)
{
	cWidth  = document.body.clientWidth;
	cHeight = document.body.clientHeight;
	page_X_Offset = document.body.scrollLeft;
	page_Y_Offset = document.body.scrollTop;
	document.getElementById('bigpic').style.marginTop= 0;
	document.getElementById('bigpic').style.marginLeft= 0;
	document.getElementById('bigpic').innerHTML = '<img class="shadow5" id="bigpicimg" src="' + picnaam + '" border="1" alt="Click here to close">';
	if(w==0) w= document.getElementById('bigpicimg').width;
	if(h==0) h= document.getElementById('bigpicimg').height;
	if(w < 25) w=200;
	if(h < 25) h=200;
	zet_x = e.offsetX?(e.x):e.clientX;
	zet_y = e.offsetY?(e.y):e.clientY;
	zet_x += page_X_Offset;
	zet_y += page_Y_Offset;
	zet_x -= w/2;
	zet_y -= h/2;
	if( (zet_x + w) > (cWidth  + page_X_Offset)) zet_x = cWidth  + page_X_Offset - w - 15;
	if( (zet_y + h) > (cHeight + page_Y_Offset)) zet_y = cHeight + page_Y_Offset - h - 15;
	if (zet_x < page_X_Offset) zet_x = page_X_Offset;
	if (zet_y < page_Y_Offset) zet_y = page_Y_Offset;
	document.getElementById('bigpic').style.left= zet_x;
	document.getElementById('bigpic').style.top= zet_y;
	document.getElementById('bigpic').style.width= w;
	document.getElementById('bigpic').style.height= h;
	document.getElementById('bigpic').style.visibility= "visible";
}

// last_update
function last_update ()
{
	var maand = new Array(13);
	maand[1] = "January";
	maand[2] = "February";
	maand[3] = "March";
	maand[4] = "April";
	maand[5] = "May";
	maand[6] = "June";
	maand[7] = "July";
	maand[8] = "August";
	maand[9] = "September";
	maand[10] = "October";
	maand[11] = "November";
	maand[12] = "December";
	var dateObj = new Date(document.lastModified)
	var lmonth = maand[dateObj.getMonth() + 1]
	var date = dateObj.getDate()
	var fyear = dateObj.getFullYear()
	document.write( "<b>" + lmonth + " " + date + " " + fyear + "</b>" ) 
}

// rb_sampler
function rb_sampler (name, date, song, remark)
{
	if (date == "") date = "&nbsp;";
	if (remark == "") remark = "&nbsp;";
	document.write("<tr class='bg" + bg + "'>");
	document.write("	<td NOWRAP>" + date + "</td>");
	document.write("	<td>" + name.toUpperCase() + "</td>");
	document.write("	<td>" + song + "</td>");
	document.write("	<td>" + remark + "</td>");
	document.write("</tr>");
    bg++;
	if (bg > 2) bg=1;	// alleen kleur 1 en 2
}

// rb can also be heard on 
function rb_cabho (year, artist, title, label, song, remark)
{
	if (year == "") year = "&nbsp;";
	if (label == "") label = "&nbsp;";
	if (remark == "") remark = "&nbsp;";
	document.write("<tr class='bg" + bg + "'>");
	document.write("	<td>" + year + "</td>");
	document.write("	<td nowrap>" + artist.toUpperCase() + "</td>");
	document.write("	<td nowrap>" + title + "</td>");
	document.write("	<td nowrap>" + label + "</td>");
	document.write("	<td nowrap>" + song + "</td>");
	document.write("	<td>" + remark + "</td>");
	document.write("</tr>");
    bg++;
	if (bg > 2) bg=1;	// alleen kleur 1 en 2
}

