if(!jsFrontend) { var jsFrontend = new Object(); }

jsFrontend = {
	// datamembers
	debug: false,
	
	// init, something like a constructor
	init: function() {
		jsFrontend.images.init();
		jsFrontend.gallery.init();
	},
	
	// end
	_eoo: true
}	

jsFrontend.images = {
	// init, something like a constructor
	init: function() {
		// Fix the a/img problem
		$(".content img").each(function() {
			var parentTag = $(this).parent().get(0).tagName;
			if (parentTag == 'A') {
				$(this).parent().addClass('linkedImage');
			};
		});
	},

	// end
	_eoo: true	
}

jsFrontend.gallery = {
	// init, something like a constructor
	init: function() {
		if($('a[rel^="prettyPhoto"]').length > 0) { $('a[rel^="prettyPhoto"]').prettyPhoto(); }
	},
	
	// end
	_eoo: true	
}

$(document).ready(function() { jsFrontend.init(); });