
function initModule(module_id) {
	
}

function toggleModule(module_id) {
	var moduleBody = module_id + "_Body";
	var moduleToggle = module_id + "_Toggle";

	if(this.document.getElementById(moduleBody).style.display == 'none') {
		// Show Body
		this.document.getElementById(moduleBody).style.display = 'inline';

		// Set Cookie
		Set_Cookie(module_id + '_show', 'true', 30, '/', '', '');
		
		// Reset IMG Source
		document[moduleToggle].src = '/images/module/icon_collapse.gif';
	} else {
		// Hide Panel
		this.document.getElementById(moduleBody).style.display = 'none';

		// set Cookie
		Set_Cookie(module_id + '_show', 'false', 30, '/', '', '');
		
		// Reset IMG Source
		document[moduleToggle].src = '/images/module/icon_expand.gif';
	}
}

function toggleSubpanel(id, imageId, cookieId) {
	if(this.document.getElementById(id).style.display == 'none') {
		this.document.getElementById(id).style.display = 'inline';

		// Set Cookie
		Set_Cookie(cookieId, 'true', 30, '/', '', '');
		
		// Get Cookie
		var show = Get_Cookie(cookieId);
		
		// Reset IMG source
		document[imageId].src = '/styles/themes/Default/images/icon_subpanel_hide.gif';		
	} else {
		this.document.getElementById(id).style.display = 'none';

		// Set Cookie
		Set_Cookie(cookieId, 'false', 30, '/', '', '');
		
		// Reset IMG Source
		var show = Get_Cookie(cookieId);
		document[imageId].src = '/styles/themes/Default/images/icon_subpanel_show.gif';	
	}
}

function showSubMenu(id){
	if(this.document.getElementById(id).style.display == 'none') {
		tbButtonMouseOver('shortcutPanel_Handler', 122, '', 11);
	}
}

/**
 ** Toggle
 **    - toggle between different status (ON/OFF)
 **/
function toggle(id) {
	if(this.document.getElementById(id).style.display == 'none') {
		// Show Panel
		this.document.getElementById(id).style.display = 'inline';

		// Set Cookie
		Set_Cookie(id + '_show', 'true', 30, '/', '', '');
		
		// Reset IMG Source
//		var show = Get_Cookie(id + '_show');
//		document['shortcutPanel_Handler'].src = '/styles/themes/Default/images/icon_hide.gif';
	} else {
		// Hide Panel
		this.document.getElementById(id).style.display = 'none';

		// set Cookie
		Set_Cookie('showShortcutPanel', 'false', 30, '/', '', '');
		
		// Reset IMG Source
//		var show = Get_Cookie('showShortcutPanel');
//		document['shortcutPanel_Handler'].src = '/styles/themes/Default/images/icon_show.gif';
	}
}
