/*! * http://www.zkea.net/ * Copyright 2016 ZKEASOFT * http://www.zkea.net/licenses */ function IsPC(){for(var r=navigator.userAgent,t=["Android","iPhone","SymbianOS","Windows Phone","iPad","iPod"],i=!0,n=0;n0){i=!1;break}return i}Array.prototype.ContainsValue=function(n){for(var i=-1,t=0;t0){if(c_start=document.cookie.indexOf(n+"="),c_start!=-1)return c_start=c_start+n.length+1,c_end=document.cookie.indexOf(";",c_start),c_end==-1&&(c_end=document.cookie.length),unescape(document.cookie.substring(c_start,c_end))}else return""}function i(t){n(t)&&(document.cookie=t+"=; expires=Thu, 01-Jan-70 00:00:01 GMT")}return{SetCookie:t,GetCookie:n,DeleteCookie:i}}();Easy.MousePosition=function(n){var t,i,r=n||window.event;return t=r.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,i=r.clientY+document.body.scrollTop+document.documentElement.scrollTop,{X:t,Y:i}};Easy.OpacityBackGround=function(){function i(i,r){typeof i!="number"&&(i=1);var u;n===0?(u=$("
<\/div>"),$("body").append(u),u.fadeTo(0,0),u.css("z-index",i)):u=$("div.OpacityBackGround");u.fadeTo(300,t,function(){r&&r.call()});n++}function r(t){if(n--,n<0&&(n=0),n===0){var i=$(".OpacityBackGround");i.fadeTo(300,0,function(){n===0&&$(this).remove();t&&t.call()})}else t&&t.call()}function u(n){t=n}var t=.5,n=0;return{Show:i,Close:r,SetOpacity:u}}();Easy.Block=function(){$(".easy-block").size()===0&&(Easy.OpacityBackGround.Show(),$(".OpacityBackGround").addClass("busy"),$("body").append("
"))};Easy.UnBlock=function(){$(".OpacityBackGround").removeClass("busy");Easy.OpacityBackGround.Close();$(".easy-block").remove()};Easy.ShowMessageBox=function(n,t,i,r,u){var f=$("
<\/div>
<\/div>
<\/div>
<\/div><\/div><\/div><\/div>"),e,o;f.find("#MessageBoxMsg").html(t);f.find("#MessageBoxTitle").html(n);f.css("position","fixed");typeof u!="number"&&(u=1);f.css("z-index",u);f.fadeTo(0,0);e=$("");f.find("#MessageBoxActions").append(e);e.click(function(){i&&i.call();Easy.OpacityBackGround.Close();f.animate({top:"45%",opacity:0},200,function(){$(this).remove()})});typeof r=="boolean"&&r&&(o=$(""),o.click(function(){Easy.OpacityBackGround.Close();f.animate({top:"45%",opacity:0},200,function(){$(this).remove()})}),f.find("#MessageBoxActions").append(o));Easy.OpacityBackGround.Show(u);$("body").append(f);f.animate({top:"50%",opacity:1},200,function(){f.find("#MessageBoxOkBtn").focus()})};Easy.MessageTip=function(){function t(t){var i=$(".MessageTip"),r;i.size()==0?(r=[],r.push("
"),r.push("<\/div>"),i=$(r.join("")),i.css("bottom",10),i.append("

"+t+"<\/p>"),$("body").append(i),i.css("right",0-i.width()),i.animate({right:-2},200,function(){n=setTimeout(function(){i.animate({right:0-i.width()},200,function(){$(this).remove()})},5e3)})):(i.append("

"+t+"<\/p>"),clearTimeout(n),n=setTimeout(function(){i.animate({right:0-i.width()},200,function(){$(this).remove()})},5e3))}var n=0;return{Show:t}}();Easy.ShowUrlWindow=function(n){var t=$("

<\/div>
<\/div>
<\/div><\/div><\/div>
<\/div>