function openPopup(url,width,height,name,scrollbars,resize) {
	var h;
	if(arguments.length < 4) {name = 'popup';}
	if(arguments.length < 5) {scrollbars = 'yes';}
	if(arguments.length < 6) {resize = 'yes';}
	if(h != null && !h.closed) {h.close();}
	h = window.open(url,name,'toolbar=no,location=no,directories=no,status=no,scrollbars='+scrollbars+',resizable='+resize+',width='+width+',height='+height);
	h.focus();
}

// top nav rollovers
function navOver(id) { Effect.Fade("nav"+id,{duration:0.7,to:0.01}); }
function navOut(id) { Effect.Appear("nav"+id,{duration: 0.7}); }

function slideTo(url,id,x,y,stretchId,stretchH,stretchW) {
	if(arguments.length == 7) {
		if(stretchH != '') $(stretchId).setStyle({height: stretchH });
		if(stretchW != '') $(stretchId).setStyle({width: stretchW });
	}
	new Effect.Move(id,{ x: x, y: y, duration: 1.0});
	setTimeout("goTo('"+url+"')",2000);
}
function goTo(url) {
	window.location = url;
}

// calendar functions
var currentMonth = 0;
function selectMonth(m) {
	if(currentMonth != 0) {
		$('monthname-'+currentMonth).hide();
		$('monthtext-'+currentMonth).hide();
	}
	$('monthname-'+m).show();
	$('monthtext-'+m).show();
	currentMonth = m;
}


