function rollover(thisLink) {
	img = thisLink.firstChild;
	var selected = img.src.search(/&type=selected/i);
	if (selected < 0) {
		var highlighted = img.src.search(/&type=highlighted/i);
		if (highlighted >= 0) img.src = img.src.substr(img.src, highlighted) + "";
		else img.src = img.src + "&type=highlighted";
	}
}

function showCalendar() {
	var params = 'width=480, height=420, location=no, fullscreen=no, menubar=no, resizable=yes';
	return window.open('/calendar.php', 'win1', params);
} // end showCalendar

var newWindow = function(url) {
	
	var params = 'width=480, height=420, location=yes, fullscreen=no, menubar=no, resizable=yes';

	return window.open(url, 'win1', params);
	
}
var $E=YAHOO.util.Event, $D=YAHOO.util.Dom;

$E.onDOMReady(function(){
					   
	$D.getElementsByClassName('newWin', 'a', null, function(el){
		$E.on(el, 'click', function(e){
			$E.stopEvent(e);
		   	newWindow(el.href);
		});
	});

});

var showReflection = function(reflection) {
	var params = 'width=800, height=600, location=no, fullscreen=no, menubar=no, resizable=yes';
	return window.open('/reflections.php?type=' + reflection, 'reflection', params);
} // end showCalendar

var popupWindow = function(popupID) {
	var params = 'width=400, height=200, left=200, top=100, location=no, fullscreen=no, menubar=no, resizable=yes';
	return window.open('/popup.php?id=' + popupID, 'information', params);
} // end showCalendar
