function notify(n){Stashy.Notify({title:n.title,content:n.message,titleSize:4,style:"error",contentType:"inline",animDuration:"fast",closeArea:"element"}).toast("right","top",!0)}function onRightArrowClick(){var n=jQuery(".pager-photo-item:visible");n.length>0&&n.first().hide();toogleArrows()}function onLeftArrowClick(){var n=jQuery(".pager-photo-item:hidden");n.length>0&&n.last().show();toogleArrows()}function toogleArrows(){var n;jQuery(".pager-photo-item:hidden").length>0?jQuery(".wide-photoviewer-arrow-left").show():jQuery(".wide-photoviewer-arrow-left").hide();var i=jQuery(".photo-pager").width(),t=0,r=jQuery(".pager-photo-item:visible");for(n=0;n<r.length;n++)t+=100;t<i?jQuery(".wide-photoviewer-arrow-right").hide():jQuery(".wide-photoviewer-arrow-right").show()}function selectItem(n){jQuery(".pager-photo-item").removeClass("selected");n.addClass("selected");var t=n.find("input[name$='FilePath']").val();jQuery(".property-photo-preview").css({"background-image":"url('"+t+"')"})}function displaySelected(){selectItem(jQuery(this))}function previewPhotos(n){var t,i,f;n.preventDefault();var r=jQuery(".pager-photo-item").find("input[name$='FilePath']"),e=jQuery(".photo-pager .selected").find("input[name$='FilePath']").val(),u=0;for(jQuery(".fullscreen-photo").empty(),t=0;t<r.length;t++)i=jQuery(r[t]).val(),i==e&&(u=t),f=jQuery('<a id="popup-photo-'+t+'" href="'+i+'" data-lightbox="example-set"><img src="'+i+'" alt=""/><\/a>'),jQuery(".fullscreen-photo").append(f);jQuery("#popup-photo-"+u).trigger("click")}jQuery.fn.serializeObject=function(){"use strict";var n={},t=function(t,i){var r=n[i.name];"undefined"!=typeof r&&r!==null?$.isArray(r)?r.push(i.value):n[i.name]=[r,i.value]:n[i.name]=i.value};return $.each(this.serializeArray(),t),n};jQuery("#flg-en").click(function(n){n.preventDefault();Cookies.set("lang","en",{path:"/"});window.location.reload()});jQuery("#flg-zn").click(function(n){n.preventDefault();Cookies.set("lang","zh-CHT",{path:"/"});window.location.reload()})