function initLavalamp()  {
	$(".lavaLampBottomStyle").lavaLamp({
		fx: "backout",
		speed: 700,
		click: function(event, menuItem) {
			return true;
		}
	});
}

$(function() {
	$('a[@rel*=lightbox]').lightBox({
		imageBtnPrev : "../pics/lightbox-btn-prev.gif",
		imageBtnNext : "../pics/lightbox-btn-next.gif",
		imageBtnClose : "../pics/lightbox-btn-close.gif",
		txtImage : "Image",
		txtOf : " / "
	});

	$('a[@rel*=lightbox] > img').each(function() {
		var title = $(this).attr("title");
		if (!title) {
			return;
		}
		var lastSl = title.lastIndexOf("/");
		if (title && lastSl > -1) {
			title = title.substring(0,lastSl);
			var nextSl = title.lastIndexOf("/");
			if (nextSl > -1) {
				title = title.substring(0,nextSl);
			 }
		}
		title+= " / click to enlarge image";
		$(this).attr("title",title);
	});

	window.setTimeout("initLavalamp()",250); /* hack, on first page load false width is reported for home element */

	$.fn.maphilight.defaults = { fill: false,stroke: true, strokeColor: 'FFFFFF',strokeOpacity: 1,strokeWidth: 2,fade: false,alwaysOn: false};
	$('#headImage').maphilight();
});