﻿<div id="divHistoryCookie">
   <%
    if (cookieVals.length > 0)
    {
    var counter;
    
  if (cookieVals.length > 10)
    counter = 10;
  else
    counter = cookieVals.length;
    
 for(var i=0; i<counter; i++){
    if(typeof(cookieVals[i].what) == 'undefined' && typeof(cookieVals[i].where) == 'undefined')
      continue;
      if(cookieVals[i].what == '' && cookieVals[i].where == '')
        continue;
      %>

      <a onclick="return(HistoryClick('<%=cookieVals[i].what %>','<%=cookieVals[i].where %>','<%=cookieVals[i].locale %>'));" title="<%=cookieVals[i].whatwhereTooltip %>" class="historyItem_wrapper" >
        <table class="historyAnchorWrapper">
          <tr>
            <td>
              <div class="historyItem_class">
                <%=cookieVals[i].whatwhere%>
              </div>
            </td>
            <td class="wrapperArrow">         
              <div class="arrowRight"></div>
            </td>
          </tr>
        </table>
      </a>        
      <% 
        } 
     }  
%>
 </div>
<%
    if (cookieVals.length > 0)
{
%>
<div onclick="(clearMobileHistory());" class="clearHistory"><%=clearText%></div>
  <%}%>