
var initPage = function () {
	jQuery("#sbPressLink").removeClass("sidebarNav").addClass("sidebarNavCur");
	
	var pageURL = document.location.toString();
	
	if (pageURL.match("#")) {
		var anchorPoint = pageURL.split("#")[1];
		if(anchorPoint=='update'){
			jQuery('#headline .Bigbanner').children('img').attr('src','notes_headline.jpg');
			jQuery('#headline .Bigbanner').children('img').attr('alt','esobi Inc. - Release Notes');
			document.title = "esobi Inc. - Release Notes";
			jQuery('.press').not('.release_notes').hide();
			jQuery('.presses').hide();
		}
	}else{
		jQuery('#headline .Bigbanner').children('img').attr('src','press_headline.jpg');
		jQuery('#headline .Bigbanner').children('img').attr('alt','esobi Inc. - Press Release');
		document.title = "esobi Inc. - Press Release";
		jQuery('.press').show();
		jQuery('.presses').show();
	}
	

	jQuery("#pressList li").hover(function () {
		jQuery(this).css("cursor", "pointer");
		jQuery(this).css("background-color", "#e6f6ff");
		jQuery(this).find("a").bind("click", function (e) {
			window.location.href = jQuery(this).attr("href");
			return true;
		});
		jQuery(this).click(function () {
			var link = jQuery(this).find("a").attr("href");
			window.location.href = link;
			return true;
		});
	}, function () {
		jQuery(this).css("cursor", "default");
		jQuery(this).css("background-color", "#ffffff");
		jQuery(this).unbind("click");
	});
};

jQuery(document).ready(initPage);

