
var Research = {
    m_over : function(el) {
	if (el.className.indexOf(" over") == -1)
	    el.className += " over";
    },
 
    m_out: function (el) {
	el.className = el.className.replace(/ over/, "");
    },

    m_showpdf: function (id, f) {
	var s = "/x/research?id=" + encodeURIComponent(id);
	if (f != "") s += "&f=" + encodeURIComponent(f);
	var w = window.open(s);
	if (w) w.focus();
    },

    m_showtxt: function (id) {
	var w = window.open("/x/research-display.html?rid=" + encodeURIComponent(id));
	if (w) w.focus();
    },
    
    company_link: function(r,id) {
	location.href = "research-company.html?r="+ encodeURIComponent(r)+ "&cid=" + encodeURIComponent(id);
    }
}


