Detail_link.html SVN differs from the normal 5.4.0 Detail_link.html, and your using the SVN ver. Rating system is in a table on the new SVN kosmos thats why it has a blue/purple background bgcolor="#D3D3D3".
Your detail_link should look like this bellow, delete this
PHP Code:
<div align="left">
<table cellpadding="0" cellspacing="0">
<tr>
<td>
<form action="rating.php" method="post">
<input type="hidden" name="id" value="<%$link_id%>" />
<table bgcolor="#D3D3D3" cellpadding="5">
<tr>
<td colspan="2">
<b>Average Visitor Rating: </b> <%$rating_img%>
<b><%$rating%></b> (out of 5)<br />
Number of ratings: <%$votes%> Votes
</td>
</tr>
<tr>
<td width="100">
<b>Visitor Rating</b>
</td>
<td>
<select name="rating">
<option value="">Select Your Rating</option>
<option value="5">Excellent!</option>
<option value="4">Very Good</option>
<option value="3">Good</option>
<option value="2">Fair</option>
<option value="1">Poor</option>
</select>
<input type="submit" value="Rate It!" />
</td>
</tr>
</table>
</form>
</td>
</tr>
</table>
</div>
and replace with
PHP Code:
<div style="float:left;"><b>Visitor Rating: </b></div>
<%if $enable_rating_ajax%>
<div style="float:left;">
<ul class="ajax-rating-indexu" style="width:74px;">
<li class="current" style="width:<%math equation="x * y" x=14.5 y=$rating%>px;"></li>
<li><a href="javascript:;;" class="star1" title="1"></a></li>
<li><a href="javascript:;;" class="star2" title="2"></a></li>
<li><a href="javascript:;;" class="star3" title="3"></a></li>
<li><a href="javascript:;;" class="star4" title="4"></a></li>
<li><a href="javascript:;;" class="star5" title="5"></a></li>
</ul>
</div>
<div style="float:left;" id="RatingRange"> <span><b><%$rating%></b> </span>out of 5 </div>
<%else%>
<div style="float:left;" id="RatingImage"><%$rating_img%></div>
<div style="float:left;" id="RatingRange"> <span><b><%$rating%></b> </span>out of 5 </div>
<%/if%>
<%*<div style="float:left;" id="RatingImage"><%$rating_img%></div>*%>
<div style="float:left;" id="RatingNumber"> Votes = <span><%$votes%></span></div>
<div style="clear: both"></div>