function changeStyles(that, newStyle) {
	var UA = window.navigator.userAgent;
	var midDiv;
	var topDiv;
	var bottomDiv;
	if(UA.indexOf("MSIE") >= 0) {
		//alert("BAH E IE");
		midDiv = that.parentNode.parentNode;
		topDiv = midDiv.previousSibling;
		bottomDiv = midDiv.nextSibling;
	}
	
	if((UA.indexOf("Gecko") >= 0) || (UA.indexOf("Opera") >= 0)) {
		//alert("BAH E FIREFOX");
		midDiv = that.parentNode.parentNode;
		topDiv = midDiv.previousSibling.previousSibling;
		bottomDiv = midDiv.nextSibling.nextSibling;
	}
	topDiv.className = newStyle + "Top";
	midDiv.className = newStyle + "Mid";
	bottomDiv.className = newStyle + "Bottom";
}

function changeStars(that, no, img_prefix, relative_path) {
	var UA = window.navigator.userAgent;
	var imgNo = parseInt(no);

	for (i = 1; i <= imgNo; i++) {
		document.getElementById("star" + i).src = relative_path+"images/" + img_prefix + "_star.jpg";
	}
}

function vote_old(imgNo) {
	var UA = window.navigator.userAgent;
	alert("UA = " + UA);
	var xmlHttp;
	try {    
        // Firefox, Opera 8.0+, Safari    
        xmlHttp = new XMLHttpRequest();
    } catch (e) {
        // Internet Explorer    
        try{
           xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");      
        } catch (e) {
            try {
                xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");        
           } catch (e) {
                alert("Your browser does not support AJAX!");        
                return false;        
            }      
        }
    }
	
	
}