<% for (var n = 0; n < this.length; n++) {%>
<% if(n == 0) { %>
<% var classSel = 0 %>
<% for (var m = 0; m < this.length; m++) {%>
<% if($(this[m]).attr("class") == "tabHeading selected") { %>
<% classSel = 1 %>
<% } %>
<% }%>
<% if(n == 0 && classSel == 0) { %>
- <%= $(this[n]).html() %>
<% } else { %>
<% if($(this[n]).attr("class") == "tabHeading lnk") { %>
- <%= $(this[n]).html() %>
<% } else if($(this[n]).attr("class") == "tabHeading selected") { %>
- <%= $(this[n]).html() %>
<% } else { %>
- <%= $(this[n]).html() %>
<% } %>
<% } %>
<% } else { %>
<% if($(this[n]).attr("class") == "tabHeading lnk") { %>
- <%= $(this[n]).html() %>
<% } else if($(this[n]).attr("class") == "tabHeading selected") { %>
- <%= $(this[n]).html() %>
<% } else { %>
- <%= $(this[n]).html() %>
<% } %>
<% } %>
<% }%>