﻿SWContent = {

	init: function() {
		// Initialize top menubar item for the Staywell content		
		var oMenuBar = new YAHOO.widget.MenuBar("healthLibraryMenu", { 
													autosubmenudisplay: true, 
													hidedelay: 750,
													minscrollheight: 200,
													lazyload: true 
												});
		oMenuBar.render();
	},

	showHide: function (elemID, imgID) {
		switch (Dom.getStyle(elemID, 'display')) {
		case 'none':
			Dom.setStyle(elemID, 'display', '');
			Dom.setStyle(imgID, 'opacity', 0.4);
			break;
		default:
			Dom.setStyle(elemID, 'display', 'none');
			Dom.setStyle(imgID, 'opacity', 1);
		}
		return;
	}

}

YAHOO.util.Event.onContentReady("healthLibraryMenu", SWContent.init);

function popUp(url) {
	window.open(url,'Animation','width=700,height=500');
}

