function mail(name, domain, style) {
  document.write('<a h'+'ref="'+'mai'+ 'lto:'+name+'@'+domain+'" style="'+style+'">'+name+'@'+domain+'</a>');
}

$(document).ready(
	function(){ 
		$('.gallery a').lightBox({fixedNavigation:true});
		$('a.lightbox-monitor').lightBox({fixedNavigation:true});
	}
);

$(document).ready(function(){
	$('.hidden').hide();
	$('.master_close').hide();
	$('.master_open').click(function () { 
		if ($(this).next().is(":hidden")) {
			$(this).addClass('opened');
			$(this).next().fadeIn('400');
			$(this).next().next().show();
			}
		else {
			$(this).removeClass('opened');
			$(this).next().next().hide();
			$(this).next().fadeOut('400');
			}
	});
	$('.master_close').click(function () { 
			$(this).hide();
			$(this).prev().fadeOut('400');
			$(this).prev().prev().removeClass('opened');
	});
});