
d = new Date();
var month=new Array(12)
month[0]="January"
month[1]="February"
month[2]="March"
month[3]="April"
month[4]="May"
month[5]="June"
month[6]="July"
month[7]="August"
month[8]="September"
month[9]="October"
month[10]="November"
month[11]="December"
dd = d.getDate();
mm = month[d.getMonth()];
yy = d.getFullYear();

function writeDate() {
	document.write(dd + " " + mm + " " + yy); 
}


function toggleFlyout() {
	$('.footFly').SlideToggleDown(1000, function() {
		if($('.footFly').css('display')=='block') {
			$('#compSites').addClass('highlight');
			$('#privPolicy').addClass('highlightAdj');
			$('#footDiv').css('display', 'none');
		} else {
			$('#footDiv').css('display', 'block');
			$('#compSites').removeClass('highlight');
			$('#privPolicy').removeClass('highlightAdj');
		}
	});
}

$(function() {
	if (!document.getElementById && !document.getElementsByTagName) return false;
	
	// nav rollover states
	$('img.rollNav').mouseover(function() {
		var overState = $(this).attr('src').split('.jpg').shift() + '_roll.jpg';
		if (! $(this).attr('class').match('selected')) $(this).attr('src',overState);
	});
	
	$('img.rollNav').mouseout(function() {
		var outState = $(this).attr('src').split('_roll').shift() + '.jpg';
		if (! $(this).attr('class').match('selected')) $(this).attr('src',outState);
	});

});

