//Javascript
//Style for lastComments in sidebar
function initCmtList() {
	  if (document.getElementById) {
			var  listRoot = document.getElementById("lastComments");
	if (listRoot !=null)	{
			  for (i=0; i<listRoot.childNodes.length; i++) {
					  node = listRoot.childNodes[i];
			  if (node.nodeName=="BR"){
					  node = listRoot.childNodes[i-3];
							  node.className+="commenter";
					  }
			  }
	  }
	}
}

//for comments
function stripe(id) {
	var even = false;
	var evenColor = arguments[1] ? arguments[1] : "color1";
	var oddColor = arguments[2] ? arguments[2] : "color2";

	var cmtList = document.getElementById(id);
if (cmtList !=null)	{
	var lis = cmtList.getElementsByTagName("li");
			for (var j = 0; j < lis.length; j++) {
				var myli = lis[j];
					myli.className =even ? evenColor : oddColor;
				even = ! even;
			}
}
}


//function load ALL scripts
function loadus() {
	initCmtList();
	stripe('comments');
}

//RUN
if (window.addEventListener)
window.addEventListener("load", loadus, false);
else if (window.attachEvent)
window.attachEvent("onload", loadus);
else
window.onload=loadus


