// Javascript

var tmr = 3000;
function showBlock(blk,yn)		// Show first block and hide the rest  'shoBlock(div1, div2,div3... etc)
{
	if (yn==0) {
		document.getElementById(blk).style.display = 'none'
	} else {
		document.getElementById(blk).style.display = 'block'
	 }
	
}
function menuHide(menu) {  // Hide menu after 5 seconds
	clearTimeout(tmr);
	tmr = setTimeout("hide('menu')",5000);
}
function eml(addr, sub)   // start user email client with address and subject
{						  // eml( Email address , Subject )
	var dom = 'abbeyphoto';
	var r = 'co.uk';
	parent.location="mailto:"+addr+"@"+dom+"."+r+"?subject="+sub;
}
function hide()
{
	showBlock('months',0);
}

function bringfront(blk) {
	document.getElementById(blk).style.zindex=1000;
	return true;
}
function bringback(blk) {
	document.getElementById(blk).style.zindex=1;
}
