// JavaScript Document
var head="display:''"
function doit(header) {
	var head=header.style
	if (head.display=="none")
		head.display=""
	else
		head.display="none"
}
//-->

function do_for_noframes() {
	if (window.parent.length == 0)
		open_menu()
}

function show_main_link() {
	if (window.parent.length == 0) {
		var link_item = find_item('go_to_main')
		if (link_item != 0) {
			if (link_item.style.display == "none")
				link_item.style.display = ""
		}
	}
}

function find_item(label) {
	for (var i = 0; i < document.all.length; i ++) {
		if (document.all[i].id == label)
			return document.all[i]
	}
	return 0
}

function open_menu() {
	var	cur_item
	for (var i = 0; i < document.all.length; i ++) {
		cur_item = document.all[i]	
		if (cur_item.style.display=="none")
			cur_item.style.display=""
	}
}

function high(which2) {
	theobject=which2
	highlighting=setInterval("highlightit(theobject)",50)
}

function low(which2) {
	clearInterval(highlighting)
	which2.filters.alpha.opacity=50
}

function highlightit(cur2) {
	if (cur2.filters.alpha.opacity<100)
		cur2.filters.alpha.opacity+=4
	else if (window.highlighting)
		clearInterval(highlighting)
}

function MLocate(href) {
	if (window.parent.length == 0)
		window.self.location.href = href;
	else {
		window.parent.frames['mainFrame'].location.href = href;
	}
}

function e_MLocate(href) {
	if (window.parent.length == 0)
		window.self.location.href = href;
	else {
		window.parent.frames['e_mainFrame'].location.href = href;
	}
}

function FrameLocate(href_frame, href_info) {
	if (window.parent.length != 0) {
		top.location.href = href_frame;
	}
	MLocate(href_info);
}

function e_FrameLocate(href_frame, href_info) {
	if (window.parent.length != 0) {
		top.location.href = href_frame;
	}
	e_MLocate(href_info);
}

function HideMenu() {
//	window.parent.frames['menuFrame'].document.close();
}

