window.onload = function() {
	initLists();
	initImgs();
}

function initLists() {
	// active the menu rollovers
	
	
		objs = document.getElementsByTagName("input");
		
		for (i=0; i<objs.length; i++) {
			
			if(objs[i].type == 'submit'){
				objs[i].onmouseover=function() {
						this.className+= ' hover';
				}
				objs[i].onmouseout=function() {
					this.className=this.className.replace(" hover", "");
					
				}

			}
		}
}



function initImgs() {
	var post = document.getElementById("postMessageBody");
	if(post != null)
	{
		objs = post.getElementsByTagName("a");
		for (i=0; i<objs.length; i++) 
		{
			//alert(objs[i]);
			if(objs[i].firstChild.tagName == "IMG")
			{
			
				objs[i].setAttribute('target','_blank');
			}
		}
	}
}
