/* put your custom js here */

function fliptime(time) {
	if (time == 'night') {
		$('time').innerHTML = '/ Night';
		$('postcontent').morph('background: #181818');
		$('postcontent').morph('color: #999999');
		$('flashcontent').morph('background: #181818');
		$('maincontentinner').morph('background: #181818');
		$('maincontent').morph('border-color: #181818');
		Element.hide('daycontainer');
		Element.hide('daytext');
		Element.show('nightcontainer');
		Element.show('nighttext');
		Element.addClassName('nightbutton', 'current');
		Element.removeClassName('daybutton', 'current');
	} else {
		$('time').innerHTML = '/ Day';
		$('postcontent').morph('background: #FFFFFF');
		$('postcontent').morph('color: #333333'); 
		$('maincontentinner').morph('background: #FFFFFF');
		$('maincontent').morph('border-color: #FFFFFF');
		Element.hide('nightcontainer');
		Element.show('daytext');
		Element.hide('nighttext');
		Element.show('daycontainer');
		Element.removeClassName('nightbutton', 'current');
		Element.addClassName('daybutton', 'current');
	}
}