ie = document.all?1:0;


function art_hover(e, s) {
	if(s) e.style.backgroundColor = "#EFEFEF";
	else e.style.backgroundColor = "#FFFFFF";
}

function add_css_prop(obj, prop) {
	obj.className += obj.className ? " " + prop : prop;
}

function del_css_prop(obj, prop) {
	obj.className = obj.className ? obj.className.replace(" " + prop, "") : obj.className.replace(prop, "");
}

function ch_prop_id(id_name, p, v) {
	var s = "document.getElementById('" + id_name + "').style." + p +  "='" + v + "'";
	eval(s);
}

function open_window(u, n, w, h, p) {
	var winl = (screen.width-w)/2;
	var wint = (screen.height-h)/2;

	if (winl < 0) winl = 0;
	if (wint < 0) wint = 0;

	p = p ? 'status=no,toolbar=no,scrollbars=no,titlebar=no,menubar=no,resizable=no,directories=no,location=no' : p;


	windowprops =   "height=" + h +
			",width=" + w +
			",top=" + wint +
			",left=" + winl +
			"," + p;

	return window.open(u, n, windowprops);
}
