//-- Home page
function viewSiren(id) {
	new Ajax.Updater('sirenArticle','/siren/read/' + id,{evalScripts:true});
	new Effect.SlideUp('sirenHeadings', { duration: 0.5 });
	new Effect.Fade('sirenHeadings', { duration: 0.6 });
	new Effect.Appear('sirenArticle', { duration: 1.0, delay: 0.6});
}

function closeSiren() {
	new Effect.Fade('sirenArticle', { duration: 0.5 });
	new Effect.SlideDown('sirenHeadings', { duration: 0.5, delay:0.6 });
	new Effect.Appear('sirenHeadings', { duration: 0.5, delay: 0.6});
}


//-- About us page
function showPerson(who) {
		if (showing == who) {
			hidePerson(who);
		} else {
			if (showing != '') {
				new Effect.Fade(showing + '_full', { duration: 0.5 });
			}
			new Effect.Appear(who + '_full', { duration: 1.5 });
			showing = who;
		}
	}

	function hidePerson(who) {
		new Effect.Fade(who + '_full', { duration: 0.5 });
		showing = '';
	}

	function moZoom(direction, who, id) {
		mo['direction'] = direction;
		mo['who'] = who;
		mo['id'] = id;
		if (direction == 'in') {
			mo['mouseover'] = 1;
			setTimeout('moZoomAction()', 100);
		}
		if (direction == 'out') {
			mo['mouseover'] = 0;
			moZoomAction();
		}

	}
	function moZoomAction() {

		direction = mo['direction'];
		who = mo['who'];
		id = mo['id'];
		if (direction == 'in') {
		if (mo['mouseover'] == 1) {
			for (var i = 1; i <= 4; i++) {
				if (id != i) {
					var elemid = who + '_w' + i;
					new Effect.Morph(elemid, {duration: 0.35, style: 'width:35px; height:35px; padding:35px 2px 35px 2px;' });
				}
			}
			elemid = who + '_w' + id;
			new Effect.Morph(elemid, {duration: 0.35, style: 'width:100px; height:100px; padding:10px 2px 10px 2px;' });
		}
		} else {
			for (var i = 1; i <= 4; i++) {
				var elemid = who + '_w' + i;
				new Effect.Morph(elemid, {duration: 0.35, style: 'width:60px; height:60px; padding:30px 2px 30px 2px;' });
			}
		}
	}