jQuery(document).ready(function(){
	    jQuery("p[class=jv_linkset_top]").each(function (i) {						
			
			var hostJVSE = location.hostname ;
			var bufJVSE = jQuery(this).attr( 'id' ) ;
			var varsJVSE = bufJVSE.split("-") ;
			var idJVSE = varsJVSE[0] ;
			var numJVSE = varsJVSE[1] ;
			var sJVSE = varsJVSE[2] ;
			var eJVSE = 5 - sJVSE ;
			var iJVSE = 0 ;
			var chJVSE = 'f' ;
			
			var hJVSE = jQuery(this).html() ;			
			
			hJVSE += '<a href="/index.php?option=com_jvse&amp;Itemid=18&amp;controller=pages&amp;task=addbookmark&amp;lid=' + idJVSE ;			
			hJVSE += '" rel="nofollow" ><img  alt="" width="15" height="15" border="0" style="margin:2px 2px 2px 2px;"  src="/components/com_jvse/assets/images/add_bookmark.png" /></a>' ;			
			hJVSE += '<a href="/index.php?option=com_jvse&amp;Itemid=18&amp;controller=pages&amp;task=showrev&amp;view=showtestimonials&amp;lid=' + idJVSE ;
			hJVSE += '"><img  alt="" width="15" height="15" border="0" style="margin:2px 2px 2px 2px;"  src="/components/com_jvse/assets/images/show_reviews.png" /></a>';
			hJVSE += '<a href="/index.php?option=com_jvse&amp;Itemid=18&amp;controller=pages&amp;task=newreview&amp;view=newtestimonial&amp;lid=' + idJVSE ;
			hJVSE += '" rel="nofollow" ><img  alt="" width="15" height="15" border="0" style="margin:2px 2px 2px 2px;"  src="/components/com_jvse/assets/images/new_review.png" /></a>';
			hJVSE += '<a href="/index.php?option=com_jvse&amp;Itemid=18&amp;controller=pages&amp;task=reportbrokenlink&amp;view=reportbrokenlink&amp;lid=' + idJVSE ;
			hJVSE += '" rel="nofollow" ><img  alt="" width="15" height="15" border="0" style="margin:2px 2px 2px 2px;"  src="/components/com_jvse/assets/images/brokenlink.png" /></a>';
			hJVSE += '<a href="/index.php?option=com_jvse&amp;Itemid=18&amp;controller=pages&amp;task=claimlink&amp;view=claimlink&amp;lid=' + idJVSE ;
			hJVSE += '" rel="nofollow" ><img  alt="" width="15" height="15" border="0" style="margin:2px 2px 2px 2px;"  src="/components/com_jvse/assets/images/claimlink.png" /></a>';

			
			chJVSE =(iJVSE<sJVSE)?'f':'e' ;iJVSE++ ;
			hJVSE += '<a href="/index.php?option=com_jvse&amp;Itemid=25&amp;controller=pages&amp;task=ratelink&amp;jv_p=' + idJVSE ;
			hJVSE += '&amp;jv_v=1" title="" rel="nofollow" ><img style="margin:1px 1px 1px 1px;" width="12" height="12" alt="" border="0" name="img_' + numJVSE + '_1" src="/components/com_jvse/assets/images/'+chJVSE+'star.gif" onmouseover="javascript:m_over(\'http://' + hostJVSE + '/\', \'' + numJVSE + '\', \'1\');" onmouseout="javascript:m_nover(\'http://' + hostJVSE + '/\',  \'' + numJVSE + '\', \''+sJVSE+'\', \'0\', \''+eJVSE+'\');"/></a>';
			chJVSE =(iJVSE<sJVSE)?'f':'e' ;iJVSE++ ;			
			hJVSE += '<a href="/index.php?option=com_jvse&amp;Itemid=25&amp;controller=pages&amp;task=ratelink&amp;jv_p=' + idJVSE ;
			hJVSE += '&amp;jv_v=2" title="" rel="nofollow" ><img style="margin:1px 1px 1px 1px;" width="12" height="12" alt="" border="0" name="img_' + numJVSE + '_2" src="/components/com_jvse/assets/images/'+chJVSE+'star.gif" onmouseover="javascript:m_over(\'http://' + hostJVSE + '/\', \'' + numJVSE + '\', \'2\');" onmouseout="javascript:m_nover(\'http://' + hostJVSE + '/\',  \'' + numJVSE + '\', \''+sJVSE+'\', \'0\', \''+eJVSE+'\');"/></a>';
			chJVSE =(iJVSE<sJVSE)?'f':'e' ;iJVSE++ ;
			hJVSE += '<a href="/index.php?option=com_jvse&amp;Itemid=25&amp;controller=pages&amp;task=ratelink&amp;jv_p=' + idJVSE ;
			hJVSE += '&amp;jv_v=3" title="" rel="nofollow" ><img style="margin:1px 1px 1px 1px;" width="12" height="12" alt="" border="0" name="img_' + numJVSE + '_3" src="/components/com_jvse/assets/images/'+chJVSE+'star.gif" onmouseover="javascript:m_over(\'http://' + hostJVSE + '/\', \'' + numJVSE + '\', \'3\');" onmouseout="javascript:m_nover(\'http://' + hostJVSE + '/\',  \'' + numJVSE + '\', \''+sJVSE+'\', \'0\', \''+eJVSE+'\');"/></a>';
			chJVSE =(iJVSE<sJVSE)?'f':'e' ;iJVSE++ ;
			hJVSE += '<a href="/index.php?option=com_jvse&amp;Itemid=25&amp;controller=pages&amp;task=ratelink&amp;jv_p=' + idJVSE ;
			hJVSE += '&amp;jv_v=4" title="" rel="nofollow" ><img style="margin:1px 1px 1px 1px;" width="12" height="12" alt="" border="0" name="img_' + numJVSE + '_4" src="/components/com_jvse/assets/images/'+chJVSE+'star.gif" onmouseover="javascript:m_over(\'http://' + hostJVSE + '/\', \'' + numJVSE + '\', \'4\');" onmouseout="javascript:m_nover(\'http://' + hostJVSE + '/\',  \'' + numJVSE + '\', \''+sJVSE+'\', \'0\', \''+eJVSE+'\');"/></a>';
			chJVSE =(iJVSE<sJVSE)?'f':'e' ;iJVSE++ ;
			hJVSE += '<a href="/index.php?option=com_jvse&amp;Itemid=25&amp;controller=pages&amp;task=ratelink&amp;jv_p=' + idJVSE ;
			hJVSE += '&amp;jv_v=5" title="" rel="nofollow" ><img style="margin:1px 1px 1px 1px;" width="12" height="12" alt="" border="0" name="img_' + numJVSE + '_5" src="/components/com_jvse/assets/images/'+chJVSE+'star.gif" onmouseover="javascript:m_over(\'http://' + hostJVSE + '/\', \'' + numJVSE + '\', \'5\');" onmouseout="javascript:m_nover(\'http://' + hostJVSE + '/\',  \'' + numJVSE + '\', \''+sJVSE+'\', \'0\', \''+eJVSE+'\');"/></a>';
					
			jQuery(this).html(hJVSE);
		});
		
		jQuery("span[class=jv_links]").each(function (i) {			
			jQuery(this).replaceWith('<a href="'+ jQuery(this).attr( 'title' ) +'">' + jQuery(this).html() + '</a>');
		});
});