/*
Name: over
Description: function takes in an object (obj) and optional variables state and cssClass  the type of tag is then detected and the appropriate event status is set based on state and or cssClass.  
Usage:  This function can be used to add rollover effects for images and anchor tags with images, as well as focus and blur states for text inputs.  All tags calling this function must have the id tag attribute set.  This value must be unique to the page HTML.  In the case of anchor tags with graphics as place holders the name attribute on the IMG tag must have the same value as the id attribute of the anchor tag.  State for anchor tag with images, image input tags and image rollovers, the state variable must be the name of the rollover graphic including the file extention.  All textboxes and text areas must call a css class.
*/
function over(obj,state,cssClass){
	if(obj.id){
		var objID = document.getElementById(obj.id)
		switch(obj.tagName){
		case 'INPUT':
			switch(obj.type){
			case 'image':
				objID.src = '/personality/images/' + state
			break
			default:
				objID.className = cssClass
			}//end switch obj.type
		break
		case 'IMG':
			if(state){
				objID.src = '/personality/images/' + state
			}
		break
		case 'A':
			if(state){
				document.images[objID.id].src = '/personality/images/' + state
			}
		break
		default:
			return false
		}//end switch obj.tagName
	}
}