function set_col_height() {
	var cols = document.getElementsByTagName("div");
	var col_count = cols.length;
	var max_height = 0;
	var col_height, i;
	
	for (i=0; i<col_count; i++)
	{
		if (cols[i].className == "box_bot" || cols[i].className == "box_bot center")
		{
			col_height = cols[i].offsetHeight;
			max_height = Math.max(max_height,col_height);
		}
	}
	
	for (i=0; i<col_count; i++)
	{
		if (cols[i].className == "box_bot" || cols[i].className == "box_bot center")
			cols[i].style.height = max_height+"px";
	}
}

function preload_imgs()
{
	var loaded_img, img_count, i;
	var arr_imgs = new Array();
	
	arr_imgs[0] = "../images/site/top_nav_bg_ovr.jpg";
	arr_imgs[1] = "../images/site/page_img.jpg";
	arr_imgs[2] = "../images/site/box_top_bg_left.jpg";
	arr_imgs[3] = "../images/site/box_top_bg_right.jpg";
	arr_imgs[4] = "../images/site/box_bot_bg_left.jpg";
	arr_imgs[5] = "../images/site/box_bot_bg_right.jpg";
	arr_imgs[6] = "../images/site/box_top_bg_mid.jpg";
	arr_imgs[7] = "../images/site/box_bot_bg_mid.jpg";
	arr_imgs[8] = "../images/site/top_nav_bg.jpg";
	arr_imgs[9] = "../images/site/top_nav_bg_left.jpg";
	arr_imgs[10] = "../images/site/top_nav_bg_right.jpg";
	arr_imgs[11] = "../images/site/index_img.jpg";
	arr_imgs[12] = "../images/site/logo_sm.jpg";
	arr_imgs[13] = "../images/site/logo_lg.jpg";
	
	img_count = arr_imgs.length;
	
	for (i=0; i<img_count; i++)
	{
		loaded_img = new Image();
		loaded_img.src = arr_imgs[i];
	}
}

function show_hide_box(id)
{
	var box_bot = document.getElementById("bot"+id);
	var box_top = document.getElementById("top"+id);
	var arrow_image = document.getElementById("arrow_image"+id);
	var class_name = "site_admin_box_bot";
	var title = "Click to hide";
	var arrow_image_link = "../images/site/arrow_hide.gif";
	var id_field1 = document.getElementById("id_field1")
	var id_field2 = document.getElementById("id_field2")
	
	if (box_bot.className == "site_admin_box_bot")
	{
		class_name = "hidden";
		title = "Click to display";
		arrow_image_link = "../images/site/arrow_display.gif";
	}
	
	box_bot.className = class_name;
	box_top.title = title;
	arrow_image.src = arrow_image_link;
}