jQuery.template("calendar-view",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<table class="calendar-items">   <thead>    <tr class="days">     '),typeof days!="undefined"&&days!=null&&$.each(typeof days=="function"?days.call($item):days,function(n,day){with(this)__.push("     <th>"),typeof day!="undefined"&&day!=null&&__.push($.encode(typeof day=="function"?day.call($item):day)),__.push("<\/th>     ")}),__.push("    <\/tr>   <\/thead>   <tbody>    "),typeof weeks!="undefined"&&weeks!=null&&$.each(typeof weeks=="function"?weeks.call($item):weeks,function(n,week){with(this)__.push("     "),!0&&(__=__.concat($item.nest("week-item",{weekdays:week}))),__.push("    ")}),__.push("   <\/tbody>  <\/table>");return __});jQuery.template("list-item",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div class="list-item '),typeof past!="undefined"&&past!=null&&(typeof past=="function"?past.call($item):past)&&__.push("past"),__.push('">  <div class="date">    <div>     <span class="day">'),typeof date!="undefined"&&date!=null&&__.push($.encode(typeof date=="function"?date.call($item):date)),__.push('<\/span>     <span class="day-of-week">'),typeof dayOfWeek!="undefined"&&dayOfWeek!=null&&__.push($.encode(typeof dayOfWeek=="function"?dayOfWeek.call($item):dayOfWeek)),__.push('<\/span>    <\/div>   <\/div>  <div class="events">  '),typeof events!="undefined"&&events!=null&&$.each(typeof events=="function"?events.call($item):events,function(n,event){with(this)__.push('   <a href="'),typeof event.ResourceUrl!="undefined"&&event.ResourceUrl!=null&&__.push($.encode(typeof event.ResourceUrl=="function"?event.ResourceUrl.call($item):event.ResourceUrl)),__.push('" target="_blank">'),typeof event.Name!="undefined"&&event.Name!=null&&__.push($.encode(typeof event.Name=="function"?event.Name.call($item):event.Name)),__.push("<\/a>  ")}),__.push("  <\/div> <\/div>");return __});jQuery.template("thumbnail-item",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div class="thumbnail-item">  <div class="info">   <a href="'),typeof ResourceUrl!="undefined"&&ResourceUrl!=null&&__.push($.encode(typeof ResourceUrl=="function"?ResourceUrl.call($item):ResourceUrl)),__.push('" title="'),typeof Name!="undefined"&&Name!=null&&__.push($.encode(typeof Name=="function"?Name.call($item):Name)),__.push('" class="img" target="_blank">    <div style="background: url('),typeof ThumbnailUrl!="undefined"&&ThumbnailUrl!=null&&__.push($.encode(typeof ThumbnailUrl=="function"?ThumbnailUrl.call($item):ThumbnailUrl)),__.push(') no-repeat center center"><\/div>   <\/a>   <a href="'),typeof ResourceUrl!="undefined"&&ResourceUrl!=null&&__.push($.encode(typeof ResourceUrl=="function"?ResourceUrl.call($item):ResourceUrl)),__.push('" target="_blank">'),typeof Name!="undefined"&&Name!=null&&__.push($.encode(typeof Name=="function"?Name.call($item):Name)),__.push("<\/a>   <span>    "),typeof Description!="undefined"&&Description!=null&&__.push($.encode(typeof Description=="function"?Description.call($item):Description)),__.push('   <\/span>  <\/div>  <div class="details">    <div class="tags">     <img src="/img/v2/shared/tags.png" alt=""/>     <ul>      '),typeof Tags!="undefined"&&Tags!=null&&$.each(typeof Tags=="function"?Tags.call($item):Tags,function(i,tag){with(this)__.push('       <li>        <a href="'),typeof tag.Url!="undefined"&&tag.Url!=null&&__.push($.encode(typeof tag.Url=="function"?tag.Url.call($item):tag.Url)),__.push('" target="_blank">'),typeof tag.Name!="undefined"&&tag.Name!=null&&__.push($.encode(typeof tag.Name=="function"?tag.Name.call($item):tag.Name)),__.push("<\/a>"),typeof(i<Tags.length-1)!="undefined"&&i<Tags.length-1!=null&&(typeof(i<Tags.length-1)=="function"?(i<Tags.length-1).call($item):i<Tags.length-1)&&__.push(","),__.push("       <\/li>      ")}),__.push('     <\/ul>    <\/div>    <div class="event-date">     '),typeof DateStr!="undefined"&&DateStr!=null&&__.push($.encode(typeof DateStr=="function"?DateStr.call($item):DateStr)),__.push("    <\/div>   <\/div> <\/div>");return __});jQuery.template("tooltip",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div id="tooltip">   <h2>'),typeof title!="undefined"&&title!=null&&__.push($.encode(typeof title=="function"?title.call($item):title)),__.push("<\/h2>   <p>"),typeof description!="undefined"&&description!=null&&__.push($.encode(typeof description=="function"?description.call($item):description)),__.push('<\/p>   <img src="'),typeof imageURL!="undefined"&&imageURL!=null&&__.push($.encode(typeof imageURL=="function"?imageURL.call($item):imageURL)),__.push('" alt="'),typeof title!="undefined"&&title!=null&&__.push($.encode(typeof title=="function"?title.call($item):title)),__.push('"/>  <\/div>');return __});jQuery.template("week-item",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<tr class="week">   '),typeof weekdays!="undefined"&&weekdays!=null&&$.each(typeof weekdays=="function"?weekdays.call($item):weekdays,function(n,data){with(this)__.push("   <td"),typeof data.current!="undefined"&&data.current!=null&&(typeof data.current=="function"?data.current.call($item):data.current)&&__.push(' class="current"'),__.push(""),typeof data.prev!="undefined"&&data.prev!=null&&(typeof data.prev=="function"?data.prev.call($item):data.prev)&&__.push(' class="prev-next-month"'),__.push('><span class="date">'),typeof data.date.getDate!="undefined"&&data.date.getDate!=null&&__.push($.encode(data.date.getDate())),__.push("<\/span>    "),typeof data.events!="undefined"&&data.events!=null&&$.each(typeof data.events=="function"?data.events.call($item):data.events,function(n,dataEvent){with(this)__.push('    <a href="'),typeof dataEvent.ResourceUrl!="undefined"&&dataEvent.ResourceUrl!=null&&__.push($.encode(typeof dataEvent.ResourceUrl=="function"?dataEvent.ResourceUrl.call($item):dataEvent.ResourceUrl)),__.push('" data-descr="'),typeof dataEvent.Description!="undefined"&&dataEvent.Description!=null&&__.push($.encode(typeof dataEvent.Description=="function"?dataEvent.Description.call($item):dataEvent.Description)),__.push('" data-img="'),typeof dataEvent.ThumbnailUrl!="undefined"&&dataEvent.ThumbnailUrl!=null&&__.push($.encode(typeof dataEvent.ThumbnailUrl=="function"?dataEvent.ThumbnailUrl.call($item):dataEvent.ThumbnailUrl)),__.push('">'),typeof dataEvent.Name!="undefined"&&dataEvent.Name!=null&&__.push($.encode(typeof dataEvent.Name=="function"?dataEvent.Name.call($item):dataEvent.Name)),__.push("<\/a>    ")}),__.push("   <\/td>   ")}),__.push("  <\/tr>");return __})