
var cPage = function() {

	this.init = function() {
		$('a.lightbox').lightBox();
		if (HTMLinfo.page_name == 'index') {
			setTimeout(function(){
				PAGE.updateLocations();
			}, 10000);
		}
	};
	
	this.updateLocations = function() {
		$.post(ROOT + 'index.html', null, function(data, textStatus) {
			$('#locations').html($(data).find('#locations').html());
			setTimeout(function(){
				PAGE.updateLocations();
			}, 10000);
		});
	};

	this.pagePath = window.location.pathname;

	this.block = function() {
		$('#systemWorking').fadeIn();
	};
	this.unblock = function() {
		$('#systemWorking').fadeOut();
	};
	this.throbber = function(id) {
		$(id).html('<center style="padding-top: 50px;"><img src="' + ROOT + 'themes/images/cms/throbber.gif"/></center>');
	}
};
var PAGE = new cPage();

PAGE.init();

var gatrack = function(url) {
	if (typeof _gaq == 'undefined') {} else {_gaq.push(['_trackPageview', url]);}
	void(0);
};

