/* Loop/Sortere Namespaces */
if (typeof Loop == 'undefined') { Loop = {}; }
if (typeof Loop.Sortere == 'undefined') { Loop.Sortere = {}; }
if (typeof Loop.Sortere.PluginTemplates == 'undefined') { Loop.Sortere.PluginTemplates = {}; }
Loop.Sortere.PluginTemplates.version = '1.31';

Loop.Sortere.PluginTemplates.searchTip  = "Hva vil du kildesortere?";
Loop.Sortere.PluginTemplates.kommuneTip = "postnr/kommune";

Loop.Sortere.PluginTemplates.master = "<div class='ls_plugin'><div id='#{loadingId}' style='display: none;'></div>#{mainHeadMarkup}#{mainBodyMarkup}#{mainTailMarkup}#{suggesterMarkup}</div>\n";

Loop.Sortere.PluginTemplates.mainHead         = "<div class='ls_main_head'><div class='ls_main_head_inner'><div id='ls_logo'></div>#{form}</div></div>\n";
Loop.Sortere.PluginTemplates.form             = "<div id='#{formId}' class='ls_form'><a id='#{buttonId}' href='javascript:void(0);'></a>#{kommuneField}<input type='text' id='#{searchFieldId}' value='#{query}' autocomplete='off' style='' /></div>\n";
Loop.Sortere.PluginTemplates.minimalForm      = "<div id='#{formId}' class='ls_form minimal'><a id='#{buttonId}' href='javascript:void(0);'></a><input type='text' id='#{searchFieldId}' value='#{query}' autocomplete='off'  style='width:#{inputWidth}px;' /></div><div id='#{blockedNotifierId}' style='display: none'>Klikk her for &aring; s&oslash;ke</div>\n";
Loop.Sortere.PluginTemplates.kommuneTextField = "<div id='#{kommuneId}'><input type='text' id='#{kommuneFieldId}' value='#{kommuneNavn}' autocomplete='off' /></div>";
Loop.Sortere.PluginTemplates.kommuneDropDown  = "<div id='#{kommuneId}'><select id='#{kommuneFieldId}'><option value=''>(velg kommune)</option>#{kommuneOptions}</select></div>";
Loop.Sortere.PluginTemplates.htmlOption       = "<option value='#{value}'#{selected}>#{text}</option>";

Loop.Sortere.PluginTemplates.mainBody   = "<div class='ls_main_body'><div class='ls_main_body_inner'>#{result}</div></div>\n";
Loop.Sortere.PluginTemplates.resultHead = "<div class='ls_result_head'><div class='ls_result_head_inner'><a id='#{closeHandleId}'>lukk</a>#{breadcrumbsMarkup}</div></div>\n";
Loop.Sortere.PluginTemplates.resultBody = "<div class='ls_result_body'><div class='ls_result_body_inner'>#{results}</div></div>\n";
Loop.Sortere.PluginTemplates.resultTail = "<div class='ls_result_tail'><div class='ls_result_tail_inner'>#{queryLink}<div style='clear: both;'></div></div></div>\n";
Loop.Sortere.PluginTemplates.resultList = "#{produkttypeMarkup}#{miljogiftMarkup}#{avfallstypeMarkup}";
Loop.Sortere.PluginTemplates.mainTail   = "<div class='ls_main_tail'><div class='ls_main_tail_inner'>Denne tjenesten er en del av <a href='http://sortere.no/'>sortere.no</a>, levert av <a href='http://loop.no/'>retursamarbeidet LOOP</a>.</div></div>\n";
Loop.Sortere.PluginTemplates.failure    = "<div class='ls_error'>Det oppstod en feil ifm. s&oslash;ket...</div>\n";
Loop.Sortere.PluginTemplates.errorMsg   = "<div class='ls_error'>Feilmelding fra serveren: '#{message}'</div>\n";
Loop.Sortere.PluginTemplates.flashError = "<div class='ls_error'>Du mangler <a href='http://get.adobe.com/flashplayer/'>Adobe Flash Player</a> eller har for gammel versjon. Siste versjon kan lastes ned fra <a href='http://get.adobe.com/flashplayer/'>denne siden</a>.</div>\n";
Loop.Sortere.PluginTemplates.queryLink  = "<a href='#{url}' target='_blank' class='ls_query_link' title='Vis tilsvarende s&oslash;k p&aring; sortere.no'></a>";
Loop.Sortere.PluginTemplates.mapLink    = "<a href='#{url}' target='_blank' class='ls_map_link' title='Vis gjenvinningsstasjoner og returpunkter i kart'></a>";

Loop.Sortere.PluginTemplates.breadcrumbs     = "<div class='ls_breadcrumb_box'>#{breadcrumbs}<div class='ls_breadcrumb_end'></div></div>";
Loop.Sortere.PluginTemplates.breadcrumbFirst = "<div class='ls_breadcrumb'><a class='first' href='#{link}'>#{crumbText} (#{hits} treff)</a></div>";
Loop.Sortere.PluginTemplates.breadcrumb      = "<div class='ls_breadcrumb'><a href='#{link}'>#{crumbText}</a></div>";

Loop.Sortere.PluginTemplates.preProdukttype  = "<div class='ls_produkttyper'><div class='ls_header'>Denne listen viser ting som du muligens st&aring;r med i h&aring;nden</div>\n";
Loop.Sortere.PluginTemplates.produkttype     = "<div class='ls_entity #{oddeven}'>#{bilde}<div class='ls_name'><a href='#{link}'>#{navn}</a></div><div class='ls_description'>#{beskrivelse}</div><div class='ls_pt_avfallstyper'>Sorteres som #{avfallstyper}</div><div style='clear: both;'></div></div>\n";
Loop.Sortere.PluginTemplates.ptImage         = "<div class='ls_image' style='background: url(\"#{bildeUrl}\") top center no-repeat;'><div class='ls_image_inner#{farlig}'></div></div>";
Loop.Sortere.PluginTemplates.postProdukttype = "</div>\n";
Loop.Sortere.PluginTemplates.preMiljogift    = "<div class='ls_miljogifter'><div class='ls_header'>Disse er en liste over milj&oslash;gifter som finnes i ulike produkter</div>\n";
Loop.Sortere.PluginTemplates.miljogift       = "<div class='ls_entity #{oddeven}'>#{bilde}<div class='ls_name'><a href='#{link}'>#{navn}</a></div><div class='ls_description'>#{beskrivelse}</div><div style='clear: both;'></div></div>\n";
Loop.Sortere.PluginTemplates.mgImage         = "<div class='ls_image' style='background: url(\"#{bildeUrl}\") top center no-repeat;'></div>";
Loop.Sortere.PluginTemplates.postMiljogift   = "</div>\n";
Loop.Sortere.PluginTemplates.preAvfallstype  = "<div class='ls_avfallstyper'><div class='ls_header'>Dette er en liste over kategorier som bransjen benytter</div>\n";
Loop.Sortere.PluginTemplates.avfallstype     = "<div class='ls_entity #{oddeven}'>#{bilde}<div class='ls_name'><a href='#{link}'>#{navn}</a></div><div class='ls_description'>#{beskrivelse}</div><div style='clear: both;'></div></div>\n";
Loop.Sortere.PluginTemplates.atImage         = "<div class='ls_image' style='background: url(\"#{bildeUrl}\") top center no-repeat;'></div>";
Loop.Sortere.PluginTemplates.postAvfallstype = "</div>\n";

Loop.Sortere.PluginTemplates.suggester   = "<div id='#{suggesterId}' style='display: none;'></div>\n";
Loop.Sortere.PluginTemplates.suggestHead = "<div class='ls_suggest_head'><div class='ls_suggest_head_inner'><b>#{hits}</b> forslag</div></div>\n";
Loop.Sortere.PluginTemplates.suggestBody = "<div class='ls_suggest_body'><div class='ls_suggest_body_inner'>#{suggestions}</div></div>\n";
Loop.Sortere.PluginTemplates.suggestTail = "<div class='ls_suggest_tail'><div class='ls_suggest_tail_inner'>&nbsp;</div></div>\n";
Loop.Sortere.PluginTemplates.suggestion  = "<div class='ls_suggestion #{oddeven} #{selectable}'>#{navn}</div>\n";

Loop.Sortere.PluginTemplates.resultProdukttype   = "<div class='ls_entity ls_entity_single ls_produkttype'><div class='ls_name'>#{navn}</div>#{bilde}<div class='ls_description'>#{beskrivelse}</div><div class='ls_pt_avfallstyper'>Sorteres som #{avfallstyper}</div>#{tipsBoks}<div style='clear: both;'></div></div><div class='ls_avfallstypelist'>#{avfallstypelist}</div>\n";
Loop.Sortere.PluginTemplates.resultMiljogift     = "<div class='ls_entity ls_entity_single ls_miljogift'><div class='ls_name'>#{navn}</div>#{bilde}<div class='ls_description'>#{beskrivelse}</div><div style='clear: both;'></div></div>\n";
Loop.Sortere.PluginTemplates.resultAvfallstype   = "<div class='ls_entity ls_entity_single ls_avfallstype'><div class='ls_name'>#{navn}</div>#{bilde}#{ordninger}<div class='ls_description'><div class='ls_header'>:: h&aring;ndtering</div>#{beskrivelse}</div>#{tipsBoks}<div style='clear: both;'></div></div>\n";
Loop.Sortere.PluginTemplates.atInProduktype      = "<div class='ls_entity ls_entity_single ls_avfallstype'><div class='ls_name'>#{navn}</div>#{bilde}#{ordninger}<div class='ls_description'><div class='ls_header'>:: h&aring;ndtering</div>#{beskrivelse}<div>Les mer om <a href='#{link}'>#{navn}</a>.</div></div><div style='clear: both;'></div></div>\n";
Loop.Sortere.PluginTemplates.atOverriddenByPt    = "<p>Den generelle h&aring;ndteringen av <i>#{navn}</i> er overstyrt av spesifikk informasjon om <i>#{overstyring}</i>.</p>";
Loop.Sortere.PluginTemplates.atOverriddenLocally = "<p>Den generelle h&aring;ndteringen av <i>#{navn}</i> er overstyrt av lokal informasjon i <i>#{overstyring}</i>, jf. beskrivelsen av avfallsordningene, over. For nasjonal informasjon (dvs. s&oslash;k uten kommune), <a href='#avfallstype=#{avfallsTypeId}'>trykk her</a>.</p>";
Loop.Sortere.PluginTemplates.resultKommune       = "<div class='ls_entity ls_entity_single ls_kommune'>#{bilde}<div class='ls_name'>#{navn}</div><div class='ls_description'>#{beskrivelse}</div>#{ordninger}<div style='clear: both;'></div></div>\n";

Loop.Sortere.PluginTemplates.ordninger           = "<div class='ls_ordninger'><div class='ls_header'>:: avfallsordninger</div>#{omrader}</div>\n";
Loop.Sortere.PluginTemplates.omrade              = "<div class='ls_omrade'><div class='ls_omrade_name'>#{navn}</div>#{henteordninger}#{kompostordninger}#{gjenvinningsstasjoner}#{punktordninger}</div>\n";
Loop.Sortere.PluginTemplates.henteordning        = "<div class='ls_ordning'><div class='ls_ordning_name'>#{navn}</div><div class='ls_ordning_description'>#{beskrivelse}</div><div class='ls_ordning_handtering'>#{handtering}</div><div class='ls_ordning_hjemmeside'>#{hjemmeside}</div></div>\n";
Loop.Sortere.PluginTemplates.kompostordning      = "<div class='ls_ordning'><div class='ls_ordning_name'>#{navn}</div><div class='ls_ordning_description'>#{beskrivelse}</div><div class='ls_ordning_handtering'>#{handtering}</div><div class='ls_ordning_hjemmeside'>#{hjemmeside}</div></div>\n";
Loop.Sortere.PluginTemplates.gjenvinningsstasjon = "<div class='ls_ordning'><div class='ls_ordning_name'>#{navn}</div>#{mapLink}<div class='ls_ordning_description'>#{beskrivelse}</div><div class='ls_ordning_handtering'>#{handtering}</div><div class='ls_ordning_hjemmeside'>#{hjemmeside}</div><div style='clear: both;'></div></div>\n";
Loop.Sortere.PluginTemplates.punktordning        = "<div class='ls_ordning'><div class='ls_ordning_name'>#{navn}</div>#{mapLink}<div class='ls_ordning_description'>#{beskrivelse}</div><div class='ls_ordning_handtering'>#{handtering}</div><div class='ls_ordning_hjemmeside'>#{hjemmeside}</div><div style='clear: both;'></div></div>\n";

Loop.Sortere.PluginTemplates.tipsBoks         = "<div class='ls_tips_box'><div class='ls_header'>:: tips</div>#{obsTips}#{vissteTips}#{hvaTips}#{lenkeTips}</div>";
Loop.Sortere.PluginTemplates.tips             = "<ul class='ls_tips #{tipsClass}'>#{tips}<div style='clear: both;'></div></ul>";
Loop.Sortere.PluginTemplates.tip              = "<li>#{body}</li>";
Loop.Sortere.PluginTemplates.obsTipsHeader    = "<div class='ls_tips_header'>OBS#{teller}</div>";
Loop.Sortere.PluginTemplates.vissteTipsHeader = "<div class='ls_tips_header'>Visste du at...#{teller}</div>";
Loop.Sortere.PluginTemplates.hvaTipsHeader    = "<div class='ls_tips_header'>Hva blir det til?#{teller}</div>";
Loop.Sortere.PluginTemplates.lenkeTipsHeader  = "<div class='ls_tips_header'>Aktuelle lenker#{teller}</div>";
Loop.Sortere.PluginTemplates.tipsTeller       = " (#{num} av #{maks})";
