var today = new Date();

var filterNavList = $('<li id="no-filter"><a href="javascript:" class="enabled">All</a><span>All</span></li><li id="filter-running"><a href="javascript:" class="enabled">Ongoing / UpComing</a><span>Ongoing / UpComing</span></li><li id="full-open"><a href="javascript:" class="open">Expand all</a><a href="javascript:" class="close">Collapse all</a></li>');

var blog_json_url = 'http://ex-blog.panasonic.co.jp/exhibition/en/json.js.php';
var blog_read_more = 'Other blog entries';

var statusIconList = new Array(
	$('<img src="/exhibition/en/img/icn_status_01.gif" width="55" height="15" alt="(Finished)">'),
	$('<img src="/exhibition/en/img/icn_status_02.gif" width="55" height="15" alt="(Opening)">'),
	$('<img src="/exhibition/en/img/icn_status_03.gif" width="55" height="15" alt="(Upcoming)">')
);

var notFoundNotice = $('<p id="notFoundNotice">The exhibition information you searched for could not be found.</p>');

function getDate(_str){
	var result = Date.parse(_str);
	if(!result){
		result = Date.parse(_str + ' ' + '2000');
	}
	return new Date(result);
}

function formatDate(_date){
	return ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'][_date.getMonth()]
	+ ' ' + _date.getDate()
	+ '(' + ['Sun', 'Mon', 'Tue', 'Web', 'Thu', 'Fri', 'Sat'][_date.getDay()] + ')'
	+ ', ' + _date.getFullYear()
	+ ' '
	+ (_date.getHours() < 10 ? '0' : '')
	+ _date.getHours() + ':'
	+ (_date.getMinutes() < 10 ? '0' : '')
	+ _date.getMinutes() + ':'
	+ (_date.getSeconds() < 10 ? '0' : '')
	+ _date.getSeconds()
}

