if(!window.daum) window.daum = {};
if(!window.daum.Life) daum.Life = {};
window.Life = daum.Life;
Life.Templates = {
	fuelWindow : "<div class=\"fuelWindow\"><h3>{if corpid}<span class=\"corp ${corpid}\">${corpname}</span>{/if}<a href=\"${placeurl}\" onclick=\"if(this.href != '#'){window.open(this.href, '_self');};return false;\" class=\"placename\">${placename}</a></h3><div class=\"price_info\"><table><tbody>{if hdgasoline_price}<tr><th>°í±ÞÈÖ¹ßÀ¯</th><td><em>${hdgasoline_price}</em>¿ø</td></tr>{/if}{if gasoline_price}<tr><th>ÀÏ¹ÝÈÖ¹ßÀ¯</th><td><em>${gasoline_price}</em>¿ø</td></tr>{/if}{if diesel_price}<tr><th>°æÀ¯</th><td><em>${diesel_price}</em>¿ø</td></tr>{/if}</tbody></table><span class=\"update\">&nbsp;</span></div></div>",
	placeCenterMark : "<div class=\"placeCenterMark\">    <div class=\"wrap\">        {if photourl != \"\"}<a href=\"${placeurl}\" class=\"place_img\" onclick=\"if(this.href != '#'){window.open(this.href, '_self');};return false;\"><img src=\"${photourl}\" width=\"80\" height=\"72\" alt=\"\" /></a>        {/if}    </div>    <div class=\"back\"></div></div>",
	//placeCenterMark : "<div class=\"placeCenterMark\"><div class=\"back\"></div></div>",
	placeNumberIcon : "<div class=\"placeNumberIcon\">${number}</div>",
	placeNumberIconOn : "<div class=\"placeNumberIconOn\">${number}</div>",
	placeWindow : "<div class=\"placeWindow\"><div class=\"wrap\"><dl class=\"place\"><dt><a href=\"${placeurl}\" onclick=\"if(this.href != '#'){window.open(this.href, '_self');};return false;\">${placename}</a></dt><dd class=\"phone\">${phone}</dd><dd class=\"score\"><span class=\"grade_star\"><span class=\"grade_star_bg\"><span class=\"grade_star_fill\" style=\"width:${score * 10}%\">&nbsp;</span></span><span class=\"access_area\">ÆòÁ¡ : </span>${score}</span><a href=\"${reviewurl}\" onclick=\"if(this.href != '#'){window.open(this.href, '_self');};return false;\" class=\"review\">¸®ºä <em>${reviewCnt}</em>°Ç</a></dd></dl><div class=\"button\"><a href=\"${placeurl}\" onclick=\"if(this.href != '#'){window.open(this.href, '_blank');};return false;\" target=\"_blank\" class=\"car_route\">ÀÚ¼¼È÷º¸±â</a><a href=\"${photourl}\" onclick=\"if(this.href != '#'){window.open(this.href, '_blank');};return false;\" target=\"_blank\" class=\"public_route\">Æ÷Åäº¸±â</a></div><button class=\"close\">´Ý±â</button></div><div class=\"back\"></div></div>",
	placeWindowDetail : "<div class=\"placeWindowDetail\"><div class=\"wrap\"><div class=\"place_wrap\">{if photourl != \"\"}<a href=\"${placeurl}\" class=\"place_img\" onclick=\"if(this.href != '#'){window.open(this.href, '_self');};return false;\"><img src=\"${photourl}\" width=\"76\" height=\"66\" alt=\"\" /></a>{/if}    <dl class=\"place\">    <dt><a href=\"${placeurl}\" onclick=\"if(this.href != '#'){window.open(this.href, '_self');};return false;\">${placename}</a></dt>    <dd class=\"summary\" title=\"${summary}\">${summaryshort}</dd>    <dd class=\"detail\"><span class=\"address\">${addrshort}</span><span class=\"phone\">${phonenum}</span></dd>    <dd class=\"score\">    <span class=\"grade_star\"><span class=\"grade_star_bg\"><span class=\"grade_star_fill\" style=\"width:${avgscore_float * 10}%\">&nbsp;</span></span><span class=\"access_area\">ÆòÁ¡ : </span>${avgscore}</span>    <a href=\"${reviewurl}\" onclick=\"if(this.href != '#'){window.open(this.href, '_self');};return false;\" class=\"review\">¸®ºä <em>${reviewCnt}</em>°Ç</a>    <a href=\"${photolisturl}\" onclick=\"if(this.href != '#'){window.open(this.href, '_self');};return false;\" class=\"photo\">Æ÷Åä <em>${photoCnt}</em>°Ç</a>    </dd>    </dl></div><div class=\"netizen_point\"><ul>{if comments.length > 0}{for item in comments}{if item.contents}<li><span class=\"score\"><span class=\"grade_star\"><span class=\"grade_star_bg\"><span class=\"grade_star_fill\" style=\"width:${(item.score || 0) * 10}%\">&nbsp;</span></span><span class=\"access_area\">ÆòÁ¡ : </span>${item.score}</span></span><span class=\"comment\">${item.contents}</span></li>{/if}{/for}{/if}</ul></div><div class=\"button\"><a href=\"${placeurl}\" onclick=\"if(this.href != '#'){window.open(this.href, '_self');};return false;\" target=\"_top\" class=\"detail\">ÀÚ¼¼È÷º¸±â</a><a href=\"${pointurl}\" onclick=\"if(this.href != '#'){window.open(this.href, '_self');};return false;\" target=\"_top\" class=\"netizen_point\">³×Æ¼Áð Æò°¡ ÀüÃ¼º¸±â</a></div><button class=\"close\">´Ý±â</button></div><div class=\"back\"></div></div>",
	placeWindowDetailNoComment : "<div class=\"placeWindowDetail\"><div class=\"nocomment\"><div class=\"wrap\"><div class=\"place_wrap\">{if photourl != \"\"}<a href=\"${placeurl}\" class=\"place_img\" onclick=\"if(this.href != '#'){window.open(this.href, '_self');};return false;\"><img src=\"${photourl}\" width=\"76\" height=\"66\" alt=\"\" /></a>{/if}    <dl class=\"place\">    <dt><a href=\"${placeurl}\" onclick=\"if(this.href != '#'){window.open(this.href, '_self');};return false;\">${placename}</a></dt>    <dd class=\"summary\" title=\"${summary}\">${summaryshort}</dd>    <dd class=\"detail\"><span class=\"address\">${addrshort}</span><span class=\"phone\">${phonenum}</span></dd>    <dd class=\"score\">    <span class=\"grade_star\"><span class=\"grade_star_bg\"><span class=\"grade_star_fill\" style=\"width:${avgscore_float * 10}%\">&nbsp;</span></span><span class=\"access_area\">ÆòÁ¡ : </span>${avgscore}</span>    <a href=\"${reviewurl}\" onclick=\"if(this.href != '#'){window.open(this.href, '_self');};return false;\" class=\"review\">¸®ºä <em>${reviewCnt}</em>°Ç</a>    <a href=\"${photolisturl}\" onclick=\"if(this.href != '#'){window.open(this.href, '_self');};return false;\" class=\"photo\">Æ÷Åä <em>${photoCnt}</em>°Ç</a>    </dd>    </dl></div><div class=\"button\"><a href=\"${placeurl}\" onclick=\"if(this.href != '#'){window.open(this.href, '_self');};return false;\" target=\"_top\" class=\"detail\">ÀÚ¼¼È÷º¸±â</a><a href=\"${pointurl}\" onclick=\"if(this.href != '#'){window.open(this.href, '_self');};return false;\" target=\"_top\" class=\"netizen_point\">³×Æ¼Áð Æò°¡ ÀüÃ¼º¸±â</a></div><button class=\"close\">´Ý±â</button></div><div class=\"back\"></div></div></div>",
	placeWindowPhoto : "<div class=\"placeWindowPhoto\">    <div class=\"wrap\">    <div class=\"place_wrap\">        {if photourl != \"\"}        <a href=\"${placeurl}\" class=\"place_img\" onclick=\"if(this.href != '#'){window.open(this.href, '_self');};return false;\"><img src=\"${photourl}\" width=\"76\" height=\"66\" alt=\"\" /></a>        {/if}        <dl class=\"place\">        <dt><a href=\"${placeurl}\" onclick=\"if(this.href != '#'){window.open(this.href, '_self');};return false;\">${placename}</a></dt>    <dd class=\"summary\" title=\"${summary}\">${summaryshort}</dd>        <dd class=\"phone\">${phone}</dd>        <dd class=\"score\">        <span class=\"grade_star\"><span class=\"grade_star_bg\"><span class=\"grade_star_fill\" style=\"width:${score * 10}%\">&nbsp;</span></span><span class=\"access_area\">ÆòÁ¡ : </span>${score}</span><a href=\"${photolisturl}\" onclick=\"if(this.href != '#'){window.open(this.href, '_self');};return false;\" class=\"photo\">Æ÷Åä <em>${photoCnt}</em>°Ç</a>        </dd>        </dl>    </div>    <div class=\"button\">    <a href=\"${placeurl}\" onclick=\"if(this.href != '#'){window.open(this.href, '_self');};return false;\" target=\"_top\" class=\"detail\">ÀÚ¼¼È÷º¸±â</a>    <a href=\"${pointurl}\" onclick=\"if(this.href != '#'){window.open(this.href, '_self');};return false;\" target=\"_top\" class=\"netizen_point\">³×Æ¼Áð Æò°¡ ÀüÃ¼º¸±â</a>    </div>    <button class=\"close\">´Ý±â</button>    </div>    <div class=\"back\"></div></div>",
	placeWindowSmall : "<div class=\"placeWindow\"><div class=\"wrap\"><dl class=\"place\"><dt><a href=\"${placeurl}\" onclick=\"if(this.href != '#'){window.open(this.href, '_self');};return false;\">${placename}</a></dt><dd class=\"phone\">${phone}</dd><dd class=\"score\"><span class=\"grade_star\"><span class=\"grade_star_bg\"><span class=\"grade_star_fill\" style=\"width:${score * 10}%\">&nbsp;</span></span><span class=\"access_area\">ÆòÁ¡ : </span>${score}</span><span class=\"review\">¸®ºä <em>${reviewCnt}</em>°Ç</span></dd></dl><div class=\"button\"><a href=\"http://local.daum.net/map/index.jsp?target=car&amp;eX=${point.x}&amp;eY=${point.y}&amp;eName=${enc_placename}\" onclick=\"if(this.href != '#'){window.open(this.href, '_blank');};return false;\" target=\"_blank\" class=\"car_route\">ÀÚµ¿Â÷ ±æÃ£±â</a><a href=\"http://local.daum.net/map/index.jsp?target=traffic&amp;eX=${point.x}&amp;eY=${point.y}&amp;eName=${enc_placename}\" onclick=\"if(this.href != '#'){window.open(this.href, '_blank');};return false;\" target=\"_blank\" class=\"public_route\">´ëÁß±³Åë ±æÃ£±â</a></div><button class=\"close\">´Ý±â</button></div><div class=\"back\"></div></div>",
	regionSelect : "<ul>{for item in resionlist}{if item.name3}<li><a href=\"#\">${item.name3}</a></li>{/if}{/for}</ul><button class=\"close\">´Ý±â</button>",
	blank : ""
};
