﻿function get_button_fields(object)	{	var button_table = object.childNodes[0];	if(button_table.childNodes.length == 1)		{		var tbody = button_table.childNodes[0];		}	else		{		var tbody = button_table.childNodes[1];		}	var table_row = tbody.childNodes[0];	var tr_num_objects = table_row.childNodes.length; 	var fields = new Array();	for(var i=0;i<tr_num_objects;i++)		{		if(table_row.childNodes[i].id)			{			fields.push(table_row.childNodes[i]);			}		}	return fields;	}function expand(menu_button)	{	fields = get_button_fields(menu_button);	fields[0].style.backgroundImage = "url(images/menu_system/popdown_mb_left.png)";	fields[1].style.backgroundImage = "url(images/menu_system/popdown_mb_body.png)";	fields[2].style.backgroundImage = "url(images/menu_system/popdown_mb_right.png)";	fields[1].firstChild.className = "menu_button_text_o";	menu_button.lastChild.className = "menu_popdown_e";	}function collapse(menu_button)	{	fields = get_button_fields(menu_button);	fields[0].style.backgroundImage = "none";	fields[1].style.backgroundImage = "none";	fields[2].style.backgroundImage = "none";	fields[1].firstChild.className = "menu_button_text";	menu_button.lastChild.className = "menu_popdown_c";	}function rollover(obj)			{			obj.backgroundImage = "url(images/menu_system/popdown_over.png)";			}function rollout(obj)			{			obj.backgroundImage = "url(images/menu_system/popdown_body.png)";			}			