Is it possible to convert this simple jQuery snippet to JavaScript?
<p>I have this simple jQuery snippet (very simple with jQuery) and I want to convert this to javascript which seems to be really hard. </p>

<p>For example, I have no idea what to do with the .each - function.</p>

<p>Hope you can help, give me a hint or solve the problem quickly.</p>

<pre><code> $("#rTab div[id^=tab]").each(function(){
     if( !$.trim( $(this).html() ).length ) {
         id = $(this).attr("id");
     //alert(id);
         $("#rTab li[rel="+id+"]").hide();
     } 
 });

$(".tabContent").hide();
$(".tabContent:first").show(); 

//click MUSS live
$("ul.tabs li").live('click',function() {
$("ul.tabs li").removeClass("active");
$(this).addClass("active");
$(".tabContent").hide();
//MUSS rel, weil href mit location.hash in product.php so nicht läuft
var activeTab = $(this).attr("rel"); 
$("#"+activeTab).fadeIn(); 
});
</code></pre>
