var changrReady = false, CharCount, exceedHTML, exceedWarn, exHave, exChCnt, exPlural, exSpan;

function GoRightThere(selectMenu) {
	if (selectMenu.options[selectMenu.selectedIndex].value != "#")
		self.location.href = selectMenu.options[selectMenu.selectedIndex].value;
}

function hide(divId) { 
if (document.layers) document.layers[divId].display = 'none'; 
else if (document.all) document.all[divId].style.display = 'none'; 
else if (document.getElementById) document.getElementById(divId).style.display = 'none';
}

function show(divId) { 
if (document.layers) document.layers[divId].display = 'block'; 
else if (document.all) document.all[divId].style.display = 'block'; 
else if (document.getElementById) document.getElementById(divId).style.display = 'block';
}

function showComments() {
	hide("reveal");
	show("feedback");
//	new Effect.SlideDown('feedback',{duration:2});
}

function hideComments() {
	hide("feedback");
	show("reveal");
}

function flipDiv(concealThis, revealThis) {
	hide(concealThis);
	if (changrReady) {
		if (concealThis.indexOf("-reveal") != -1)
			deleteCookie(concealThis.substring(0,concealThis.indexOf("-reveal")), '/', '');
		else {
			var now = new Date();
			fixDate(now);
			now.setTime(now.getTime() + 365 * 24 * 60 * 60 * 1000);
			now = now.toGMTString();
			setCookie(revealThis.substring(0,revealThis.indexOf("-reveal")), '1', now, '/', '', '');
		}
	}
	show(revealThis);
}

function writeExceedLimit(c) {
	exHave = (c==0) ? " don't have " : " have ";
	exChCnt = (c==0) ? "any" : String(c);
	exPlural = (c!=1) ? "s" : "";
	exceedHTML = "You" + exHave + exChCnt + " more character" + exPlural + " available.";
	exSpan = document.createTextNode(exceedHTML);
	document.getElementById("exceed").replaceChild(exSpan, document.getElementById("exceed").childNodes[0]);
	document.getElementById("exceed").style.display = 'inline';
}

function imposeMaxLength(Object, MaxLen) {
	CharCount = MaxLen - Object.value.stripTags().length;
	if (CharCount <= 0) {
		CharCount = 0;
		Object.style.backgroundColor = '#FFFF00';
		Object.value = Object.value.substring(0,MaxLen-1);
		window.status = "No more characters available.";
		if (Object.id=="comment-text") writeExceedLimit(CharCount);
		new Effect.Shake(Object);
	}
	else {
		exceedWarn = (Object.id=="comment-text") ? 129 : 65;
		if (CharCount < exceedWarn) {
			Object.style.backgroundColor = '#FFFFAA';
			window.status = "Characters available: " + CharCount + "/" + MaxLen;
			if (Object.id=="comment-text") writeExceedLimit(CharCount);
		}
		else {
			Object.style.backgroundColor = '#FFFFFF';
			window.status = "";
			hide("exceed");
		}
	}
}

startList = function() {
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById("nav");
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") {
				node.onmouseover=function() {
					this.className+=" over";
				}
				node.onmouseout=function() {
					this.className=this.className.replace(" over", "");
				}
			}
		}
	}
	if (document.getElementById("picks")) {
		if (getCookie("hotblogs")) flipDiv('hotblogs','hotblogs-reveal');
		if (getCookie("altnews")) flipDiv('altnews','altnews-reveal');
		if (getCookie("majornews")) flipDiv('majornews','majornews-reveal');
		changrReady = true;
	}
	if (location.hash == "#comments") {
		hide("reveal");
		show("feedback");
		window.scrollTo(0,document.getElementById("comments").offsetTop+108);
//		window.scrollBy(0,100);
	}
	if (document.getElementById("feedback") && location.pathname.indexOf("mt-search.cgi")!=-1) show("feedback");
	if (!commenter_name) showDocumentElement('name-email');
}

window.onload=startList;

// Copyright (c) 1996-1997 Athenia Associates.
// http://www.webreference.com/js/
// License is granted if and only if this entire
// copyright notice is included. By Tomer Shiran.

function setCookie (name, value, expires, path, domain, secure) {
    var curCookie = name + "=" + escape(value) + (expires ? "; expires=" + expires : "") +
        (path ? "; path=" + path : "") + (domain ? "; domain=" + domain : "") + (secure ? "secure" : "");
    document.cookie = curCookie;
}

function getCookie (name) {
    var prefix = name + '=';
    var c = document.cookie;
    var nullstring = '';
    var cookieStartIndex = c.indexOf(prefix);
    if (cookieStartIndex == -1)
        return nullstring;
    var cookieEndIndex = c.indexOf(";", cookieStartIndex + prefix.length);
    if (cookieEndIndex == -1)
        cookieEndIndex = c.length;
    return unescape(c.substring(cookieStartIndex + prefix.length, cookieEndIndex));
}

function deleteCookie (name, path, domain) {
    if (getCookie(name))
        document.cookie = name + "=" + ((path) ? "; path=" + path : "") +
            ((domain) ? "; domain=" + domain : "") + "; expires=Thu, 01-Jan-70 00:00:01 GMT";
}

function fixDate (date) {
    var base = new Date(0);
    var skew = base.getTime();
    if (skew > 0)
        date.setTime(date.getTime() - skew);
}

function rememberMe (f) {
    var now = new Date();
    fixDate(now);
    now.setTime(now.getTime() + 365 * 24 * 60 * 60 * 1000);
    now = now.toGMTString();
    if (f.author != undefined)
       setCookie('mtcmtauth', f.author.value, now, '/', '', '');
    if (f.email != undefined)
       setCookie('mtcmtmail', f.email.value, now, '/', '', '');
    if (f.url != undefined)
       setCookie('mtcmthome', f.url.value, now, '/', '', '');
}

function forgetMe (f) {
    deleteCookie('mtcmtmail', '/', '');
    deleteCookie('mtcmthome', '/', '');
    deleteCookie('mtcmtauth', '/', '');
    f.email.value = '';
    f.author.value = '';
    f.url.value = '';
}

function hideDocumentElement(id) {
    var el = document.getElementById(id);
    if (el) el.style.display = 'none';
}

function showDocumentElement(id) {
    var el = document.getElementById(id);
    if (el) el.style.display = 'block';
}

var commenter_name;

function individualArchivesOnLoad(commenter_name) {
    hideDocumentElement('comments-open');

    hideDocumentElement('trackbacks-info');



    if (document.comments_form) {
        if (document.comments_form.email != undefined &&
            (mtcmtmail = getCookie("mtcmtmail")))
            document.comments_form.email.value = mtcmtmail;
        if (document.comments_form.author != undefined &&
            (mtcmtauth = getCookie("mtcmtauth")))
            document.comments_form.author.value = mtcmtauth;
        if (document.comments_form.url != undefined && 
            (mtcmthome = getCookie("mtcmthome")))
            document.comments_form.url.value = mtcmthome;
        if (mtcmtauth || mtcmthome) {
            document.comments_form.bakecookie.checked = true;
        } else {
            document.comments_form.bakecookie.checked = false;
        }
    }
}

function writeTypeKeyGreeting(commenter_name, entry_id) {

}



<!--[if gte IE 5.5000]> 
function correctPNG() {
	for(var i=0; i<document.images.length; i++) {
		var img = document.images[i]
		var imgName = img.src.toUpperCase()

		if (imgName.substring(imgName.length-3, imgName.length) == "PNG")  {
			var imgID = (img.id) ? "id='" + img.id + "' " : ""
			var imgClass = (img.className) ? "class='" + img.className + "' " : ""
			var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' "
			var imgStyle = "display:inline-block;" + img.style.cssText

			if (img.align == "left") imgStyle = "float:left;" + imgStyle
			if (img.align == "right") imgStyle = "float:right;" + imgStyle
			if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle

			var strNewHTML = "<span " + imgID + imgClass + imgTitle + " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";" + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader" + "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>"

			img.outerHTML = strNewHTML
			i = i-1
		}
	}
}
window.attachEvent("onload", correctPNG);
<!--[endif]>