﻿
   
    // Manually write style declarations using JScript     
    document.write("<style type=\"text/css\">");
    document.write(".moodPoint{color:orange;cursor:help;text-decoration:none;}");
    document.write(".SearchPanel {background-image:url(interface.jpg);padding:15px;position:absolute;left:50px;top:50px;height:179px;width:170px;border:solid 1px #dddddd;visibility:hidden;}");
    document.write(".skin0 {background-image:url(interface.jpg);color:black;cursor:default;position:absolute;text-align:left;font-family: Arial, Helvetica, sans-serif;font-size:1em;font-weight:normal;width:170px;height:179px;visibility:hidden;}");
    document.write(".menuitems {padding-left:15px;padding-right:10px;margin-top:15px;height:179;width:170px;}");
    document.write("sup {line-height:1.4em;color:white;margin-left:2px;margin-right:2px;}");
    document.write("</style>");

    document.write("<div id=\"SearchPanel\" class=\"skin0\">")
    document.write("<div class=\"menuitems\">This makes me feel...</div>")
    document.write("</div>")
    
    function initMoodPoints(elementNames,showMPInits,showMPToolTip) {

        var mpString = ""
        if (showMPInits == "1") ( mpString = "<sup style=\"font-size:0.75em;font-weight:bold;\">[mp]</sup>" )
        
        elements = elementNames.split(",")
        for (e=0;e<elements.length;e++) {
            if (document.getElementById(elements[e]) != null){
	            var x = document.getElementById(elements[e]).innerHTML;
				
	            if (x != null) {
	                for (m = 0; m < n.length; m++) {
	                  
	                        x = x.replace(n[m], "<a href=\"external.htm\" rel=\"facebox\" class=\"moodPoint\">" + o[m] + mpString + "</a>");
	                   

	                }
	                //document.getElementById(elements[e]).innerHTML = x;
	            }
			}
        }
    }

    
