;/*! jQuery v1.10.2 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license //@ sourceMappingURL=jquery.min.map */ (function(e,t){var n,r,i=typeof t,o=e.location,a=e.document,s=a.documentElement,l=e.jQuery,u=e.$,c={},p=[],f="1.10.2",d=p.concat,h=p.push,g=p.slice,m=p.indexOf,y=c.toString,v=c.hasOwnProperty,b=f.trim,x=function(e,t){return new x.fn.init(e,t,r)},w=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,T=/\S+/g,C=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,N=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,k=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,E=/^[\],:{}\s]*$/,S=/(?:^|:|,)(?:\s*\[)+/g,A=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,j=/"[^"\\\r\n]*"|true|false|null|-?(?:\d+\.|)\d+(?:[eE][+-]?\d+|)/g,D=/^-ms-/,L=/-([\da-z])/gi,H=function(e,t){return t.toUpperCase()},q=function(e){(a.addEventListener||"load"===e.type||"complete"===a.readyState)&&(_(),x.ready())},_=function(){a.addEventListener?(a.removeEventListener("DOMContentLoaded",q,!1),e.removeEventListener("load",q,!1)):(a.detachEvent("onreadystatechange",q),e.detachEvent("onload",q))};x.fn=x.prototype={jquery:f,constructor:x,init:function(e,n,r){var i,o;if(!e)return this;if("string"==typeof e){if(i="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&e.length>=3?[null,e,null]:N.exec(e),!i||!i[1]&&n)return!n||n.jquery?(n||r).find(e):this.constructor(n).find(e);if(i[1]){if(n=n instanceof x?n[0]:n,x.merge(this,x.parseHTML(i[1],n&&n.nodeType?n.ownerDocument||n:a,!0)),k.test(i[1])&&x.isPlainObject(n))for(i in n)x.isFunction(this[i])?this[i](n[i]):this.attr(i,n[i]);return this}if(o=a.getElementById(i[2]),o&&o.parentNode){if(o.id!==i[2])return r.find(e);this.length=1,this[0]=o}return this.context=a,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):x.isFunction(e)?r.ready(e):(e.selector!==t&&(this.selector=e.selector,this.context=e.context),x.makeArray(e,this))},selector:"",length:0,toArray:function(){return g.call(this)},get:function(e){return null==e?this.toArray():0>e?this[this.length+e]:this[e]},pushStack:function(e){var t=x.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e,t){return x.each(this,e,t)},ready:function(e){return x.ready.promise().done(e),this},slice:function(){return this.pushStack(g.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(0>e?t:0);return this.pushStack(n>=0&&t>n?[this[n]]:[])},map:function(e){return this.pushStack(x.map(this,function(t,n){return e.call(t,n,t)}))},end:function(){return this.prevObject||this.constructor(null)},push:h,sort:[].sort,splice:[].splice},x.fn.init.prototype=x.fn,x.extend=x.fn.extend=function(){var e,n,r,i,o,a,s=arguments[0]||{},l=1,u=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[1]||{},l=2),"object"==typeof s||x.isFunction(s)||(s={}),u===l&&(s=this,--l);u>l;l++)if(null!=(o=arguments[l]))for(i in o)e=s[i],r=o[i],s!==r&&(c&&r&&(x.isPlainObject(r)||(n=x.isArray(r)))?(n?(n=!1,a=e&&x.isArray(e)?e:[]):a=e&&x.isPlainObject(e)?e:{},s[i]=x.extend(c,a,r)):r!==t&&(s[i]=r));return s},x.extend({expando:"jQuery"+(f+Math.random()).replace(/\D/g,""),noConflict:function(t){return e.$===x&&(e.$=u),t&&e.jQuery===x&&(e.jQuery=l),x},isReady:!1,readyWait:1,holdReady:function(e){e?x.readyWait++:x.ready(!0)},ready:function(e){if(e===!0?!--x.readyWait:!x.isReady){if(!a.body)return setTimeout(x.ready);x.isReady=!0,e!==!0&&--x.readyWait>0||(n.resolveWith(a,[x]),x.fn.trigger&&x(a).trigger("ready").off("ready"))}},isFunction:function(e){return"function"===x.type(e)},isArray:Array.isArray||function(e){return"array"===x.type(e)},isWindow:function(e){return null!=e&&e==e.window},isNumeric:function(e){return!isNaN(parseFloat(e))&&isFinite(e)},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?c[y.call(e)]||"object":typeof e},isPlainObject:function(e){var n;if(!e||"object"!==x.type(e)||e.nodeType||x.isWindow(e))return!1;try{if(e.constructor&&!v.call(e,"constructor")&&!v.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(r){return!1}if(x.support.ownLast)for(n in e)return v.call(e,n);for(n in e);return n===t||v.call(e,n)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},error:function(e){throw Error(e)},parseHTML:function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||a;var r=k.exec(e),i=!n&&[];return r?[t.createElement(r[1])]:(r=x.buildFragment([e],t,i),i&&x(i).remove(),x.merge([],r.childNodes))},parseJSON:function(n){return e.JSON&&e.JSON.parse?e.JSON.parse(n):null===n?n:"string"==typeof n&&(n=x.trim(n),n&&E.test(n.replace(A,"@").replace(j,"]").replace(S,"")))?Function("return "+n)():(x.error("Invalid JSON: "+n),t)},parseXML:function(n){var r,i;if(!n||"string"!=typeof n)return null;try{e.DOMParser?(i=new DOMParser,r=i.parseFromString(n,"text/xml")):(r=new ActiveXObject("Microsoft.XMLDOM"),r.async="false",r.loadXML(n))}catch(o){r=t}return r&&r.documentElement&&!r.getElementsByTagName("parsererror").length||x.error("Invalid XML: "+n),r},noop:function(){},globalEval:function(t){t&&x.trim(t)&&(e.execScript||function(t){e.eval.call(e,t)})(t)},camelCase:function(e){return e.replace(D,"ms-").replace(L,H)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t,n){var r,i=0,o=e.length,a=M(e);if(n){if(a){for(;o>i;i++)if(r=t.apply(e[i],n),r===!1)break}else for(i in e)if(r=t.apply(e[i],n),r===!1)break}else if(a){for(;o>i;i++)if(r=t.call(e[i],i,e[i]),r===!1)break}else for(i in e)if(r=t.call(e[i],i,e[i]),r===!1)break;return e},trim:b&&!b.call("\ufeff\u00a0")?function(e){return null==e?"":b.call(e)}:function(e){return null==e?"":(e+"").replace(C,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(M(Object(e))?x.merge(n,"string"==typeof e?[e]:e):h.call(n,e)),n},inArray:function(e,t,n){var r;if(t){if(m)return m.call(t,e,n);for(r=t.length,n=n?0>n?Math.max(0,r+n):n:0;r>n;n++)if(n in t&&t[n]===e)return n}return-1},merge:function(e,n){var r=n.length,i=e.length,o=0;if("number"==typeof r)for(;r>o;o++)e[i++]=n[o];else while(n[o]!==t)e[i++]=n[o++];return e.length=i,e},grep:function(e,t,n){var r,i=[],o=0,a=e.length;for(n=!!n;a>o;o++)r=!!t(e[o],o),n!==r&&i.push(e[o]);return i},map:function(e,t,n){var r,i=0,o=e.length,a=M(e),s=[];if(a)for(;o>i;i++)r=t(e[i],i,n),null!=r&&(s[s.length]=r);else for(i in e)r=t(e[i],i,n),null!=r&&(s[s.length]=r);return d.apply([],s)},guid:1,proxy:function(e,n){var r,i,o;return"string"==typeof n&&(o=e[n],n=e,e=o),x.isFunction(e)?(r=g.call(arguments,2),i=function(){return e.apply(n||this,r.concat(g.call(arguments)))},i.guid=e.guid=e.guid||x.guid++,i):t},access:function(e,n,r,i,o,a,s){var l=0,u=e.length,c=null==r;if("object"===x.type(r)){o=!0;for(l in r)x.access(e,n,l,r[l],!0,a,s)}else if(i!==t&&(o=!0,x.isFunction(i)||(s=!0),c&&(s?(n.call(e,i),n=null):(c=n,n=function(e,t,n){return c.call(x(e),n)})),n))for(;u>l;l++)n(e[l],r,s?i:i.call(e[l],l,n(e[l],r)));return o?e:c?n.call(e):u?n(e[0],r):a},now:function(){return(new Date).getTime()},swap:function(e,t,n,r){var i,o,a={};for(o in t)a[o]=e.style[o],e.style[o]=t[o];i=n.apply(e,r||[]);for(o in t)e.style[o]=a[o];return i}}),x.ready.promise=function(t){if(!n)if(n=x.Deferred(),"complete"===a.readyState)setTimeout(x.ready);else if(a.addEventListener)a.addEventListener("DOMContentLoaded",q,!1),e.addEventListener("load",q,!1);else{a.attachEvent("onreadystatechange",q),e.attachEvent("onload",q);var r=!1;try{r=null==e.frameElement&&a.documentElement}catch(i){}r&&r.doScroll&&function o(){if(!x.isReady){try{r.doScroll("left")}catch(e){return setTimeout(o,50)}_(),x.ready()}}()}return n.promise(t)},x.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(e,t){c["[object "+t+"]"]=t.toLowerCase()});function M(e){var t=e.length,n=x.type(e);return x.isWindow(e)?!1:1===e.nodeType&&t?!0:"array"===n||"function"!==n&&(0===t||"number"==typeof t&&t>0&&t-1 in e)}r=x(a),function(e,t){var n,r,i,o,a,s,l,u,c,p,f,d,h,g,m,y,v,b="sizzle"+-new Date,w=e.document,T=0,C=0,N=st(),k=st(),E=st(),S=!1,A=function(e,t){return e===t?(S=!0,0):0},j=typeof t,D=1<<31,L={}.hasOwnProperty,H=[],q=H.pop,_=H.push,M=H.push,O=H.slice,F=H.indexOf||function(e){var t=0,n=this.length;for(;n>t;t++)if(this[t]===e)return t;return-1},B="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",P="[\\x20\\t\\r\\n\\f]",R="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",W=R.replace("w","w#"),$="\\["+P+"*("+R+")"+P+"*(?:([*^$|!~]?=)"+P+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+W+")|)|)"+P+"*\\]",I=":("+R+")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|"+$.replace(3,8)+")*)|.*)\\)|)",z=RegExp("^"+P+"+|((?:^|[^\\\\])(?:\\\\.)*)"+P+"+$","g"),X=RegExp("^"+P+"*,"+P+"*"),U=RegExp("^"+P+"*([>+~]|"+P+")"+P+"*"),V=RegExp(P+"*[+~]"),Y=RegExp("="+P+"*([^\\]'\"]*)"+P+"*\\]","g"),J=RegExp(I),G=RegExp("^"+W+"$"),Q={ID:RegExp("^#("+R+")"),CLASS:RegExp("^\\.("+R+")"),TAG:RegExp("^("+R.replace("w","w*")+")"),ATTR:RegExp("^"+$),PSEUDO:RegExp("^"+I),CHILD:RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+P+"*(even|odd|(([+-]|)(\\d*)n|)"+P+"*(?:([+-]|)"+P+"*(\\d+)|))"+P+"*\\)|)","i"),bool:RegExp("^(?:"+B+")$","i"),needsContext:RegExp("^"+P+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+P+"*((?:-\\d)?\\d*)"+P+"*\\)|)(?=[^-]|$)","i")},K=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,et=/^(?:input|select|textarea|button)$/i,tt=/^h\d$/i,nt=/'|\\/g,rt=RegExp("\\\\([\\da-f]{1,6}"+P+"?|("+P+")|.)","ig"),it=function(e,t,n){var r="0x"+t-65536;return r!==r||n?t:0>r?String.fromCharCode(r+65536):String.fromCharCode(55296|r>>10,56320|1023&r)};try{M.apply(H=O.call(w.childNodes),w.childNodes),H[w.childNodes.length].nodeType}catch(ot){M={apply:H.length?function(e,t){_.apply(e,O.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}function at(e,t,n,i){var o,a,s,l,u,c,d,m,y,x;if((t?t.ownerDocument||t:w)!==f&&p(t),t=t||f,n=n||[],!e||"string"!=typeof e)return n;if(1!==(l=t.nodeType)&&9!==l)return[];if(h&&!i){if(o=Z.exec(e))if(s=o[1]){if(9===l){if(a=t.getElementById(s),!a||!a.parentNode)return n;if(a.id===s)return n.push(a),n}else if(t.ownerDocument&&(a=t.ownerDocument.getElementById(s))&&v(t,a)&&a.id===s)return n.push(a),n}else{if(o[2])return M.apply(n,t.getElementsByTagName(e)),n;if((s=o[3])&&r.getElementsByClassName&&t.getElementsByClassName)return M.apply(n,t.getElementsByClassName(s)),n}if(r.qsa&&(!g||!g.test(e))){if(m=d=b,y=t,x=9===l&&e,1===l&&"object"!==t.nodeName.toLowerCase()){c=mt(e),(d=t.getAttribute("id"))?m=d.replace(nt,"\\$&"):t.setAttribute("id",m),m="[id='"+m+"'] ",u=c.length;while(u--)c[u]=m+yt(c[u]);y=V.test(e)&&t.parentNode||t,x=c.join(",")}if(x)try{return M.apply(n,y.querySelectorAll(x)),n}catch(T){}finally{d||t.removeAttribute("id")}}}return kt(e.replace(z,"$1"),t,n,i)}function st(){var e=[];function t(n,r){return e.push(n+=" ")>o.cacheLength&&delete t[e.shift()],t[n]=r}return t}function lt(e){return e[b]=!0,e}function ut(e){var t=f.createElement("div");try{return!!e(t)}catch(n){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ct(e,t){var n=e.split("|"),r=e.length;while(r--)o.attrHandle[n[r]]=t}function pt(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||D)-(~e.sourceIndex||D);if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function ft(e){return function(t){var n=t.nodeName.toLowerCase();return"input"===n&&t.type===e}}function dt(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function ht(e){return lt(function(t){return t=+t,lt(function(n,r){var i,o=e([],n.length,t),a=o.length;while(a--)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))})})}s=at.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return t?"HTML"!==t.nodeName:!1},r=at.support={},p=at.setDocument=function(e){var n=e?e.ownerDocument||e:w,i=n.defaultView;return n!==f&&9===n.nodeType&&n.documentElement?(f=n,d=n.documentElement,h=!s(n),i&&i.attachEvent&&i!==i.top&&i.attachEvent("onbeforeunload",function(){p()}),r.attributes=ut(function(e){return e.className="i",!e.getAttribute("className")}),r.getElementsByTagName=ut(function(e){return e.appendChild(n.createComment("")),!e.getElementsByTagName("*").length}),r.getElementsByClassName=ut(function(e){return e.innerHTML="
",e.firstChild.className="i",2===e.getElementsByClassName("i").length}),r.getById=ut(function(e){return d.appendChild(e).id=b,!n.getElementsByName||!n.getElementsByName(b).length}),r.getById?(o.find.ID=function(e,t){if(typeof t.getElementById!==j&&h){var n=t.getElementById(e);return n&&n.parentNode?[n]:[]}},o.filter.ID=function(e){var t=e.replace(rt,it);return function(e){return e.getAttribute("id")===t}}):(delete o.find.ID,o.filter.ID=function(e){var t=e.replace(rt,it);return function(e){var n=typeof e.getAttributeNode!==j&&e.getAttributeNode("id");return n&&n.value===t}}),o.find.TAG=r.getElementsByTagName?function(e,n){return typeof n.getElementsByTagName!==j?n.getElementsByTagName(e):t}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){while(n=o[i++])1===n.nodeType&&r.push(n);return r}return o},o.find.CLASS=r.getElementsByClassName&&function(e,n){return typeof n.getElementsByClassName!==j&&h?n.getElementsByClassName(e):t},m=[],g=[],(r.qsa=K.test(n.querySelectorAll))&&(ut(function(e){e.innerHTML="",e.querySelectorAll("[selected]").length||g.push("\\["+P+"*(?:value|"+B+")"),e.querySelectorAll(":checked").length||g.push(":checked")}),ut(function(e){var t=n.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("t",""),e.querySelectorAll("[t^='']").length&&g.push("[*^$]="+P+"*(?:''|\"\")"),e.querySelectorAll(":enabled").length||g.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),g.push(",.*:")})),(r.matchesSelector=K.test(y=d.webkitMatchesSelector||d.mozMatchesSelector||d.oMatchesSelector||d.msMatchesSelector))&&ut(function(e){r.disconnectedMatch=y.call(e,"div"),y.call(e,"[s!='']:x"),m.push("!=",I)}),g=g.length&&RegExp(g.join("|")),m=m.length&&RegExp(m.join("|")),v=K.test(d.contains)||d.compareDocumentPosition?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},A=d.compareDocumentPosition?function(e,t){if(e===t)return S=!0,0;var i=t.compareDocumentPosition&&e.compareDocumentPosition&&e.compareDocumentPosition(t);return i?1&i||!r.sortDetached&&t.compareDocumentPosition(e)===i?e===n||v(w,e)?-1:t===n||v(w,t)?1:c?F.call(c,e)-F.call(c,t):0:4&i?-1:1:e.compareDocumentPosition?-1:1}:function(e,t){var r,i=0,o=e.parentNode,a=t.parentNode,s=[e],l=[t];if(e===t)return S=!0,0;if(!o||!a)return e===n?-1:t===n?1:o?-1:a?1:c?F.call(c,e)-F.call(c,t):0;if(o===a)return pt(e,t);r=e;while(r=r.parentNode)s.unshift(r);r=t;while(r=r.parentNode)l.unshift(r);while(s[i]===l[i])i++;return i?pt(s[i],l[i]):s[i]===w?-1:l[i]===w?1:0},n):f},at.matches=function(e,t){return at(e,null,null,t)},at.matchesSelector=function(e,t){if((e.ownerDocument||e)!==f&&p(e),t=t.replace(Y,"='$1']"),!(!r.matchesSelector||!h||m&&m.test(t)||g&&g.test(t)))try{var n=y.call(e,t);if(n||r.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(i){}return at(t,f,null,[e]).length>0},at.contains=function(e,t){return(e.ownerDocument||e)!==f&&p(e),v(e,t)},at.attr=function(e,n){(e.ownerDocument||e)!==f&&p(e);var i=o.attrHandle[n.toLowerCase()],a=i&&L.call(o.attrHandle,n.toLowerCase())?i(e,n,!h):t;return a===t?r.attributes||!h?e.getAttribute(n):(a=e.getAttributeNode(n))&&a.specified?a.value:null:a},at.error=function(e){throw Error("Syntax error, unrecognized expression: "+e)},at.uniqueSort=function(e){var t,n=[],i=0,o=0;if(S=!r.detectDuplicates,c=!r.sortStable&&e.slice(0),e.sort(A),S){while(t=e[o++])t===e[o]&&(i=n.push(o));while(i--)e.splice(n[i],1)}return e},a=at.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=a(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r];r++)n+=a(t);return n},o=at.selectors={cacheLength:50,createPseudo:lt,match:Q,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(rt,it),e[3]=(e[4]||e[5]||"").replace(rt,it),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||at.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&at.error(e[0]),e},PSEUDO:function(e){var n,r=!e[5]&&e[2];return Q.CHILD.test(e[0])?null:(e[3]&&e[4]!==t?e[2]=e[4]:r&&J.test(r)&&(n=mt(r,!0))&&(n=r.indexOf(")",r.length-n)-r.length)&&(e[0]=e[0].slice(0,n),e[2]=r.slice(0,n)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(rt,it).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=N[e+" "];return t||(t=RegExp("(^|"+P+")"+e+"("+P+"|$)"))&&N(e,function(e){return t.test("string"==typeof e.className&&e.className||typeof e.getAttribute!==j&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(r){var i=at.attr(r,e);return null==i?"!="===t:t?(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&i.indexOf(n)>-1:"$="===t?n&&i.slice(-n.length)===n:"~="===t?(" "+i+" ").indexOf(n)>-1:"|="===t?i===n||i.slice(0,n.length+1)===n+"-":!1):!0}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,l){var u,c,p,f,d,h,g=o!==a?"nextSibling":"previousSibling",m=t.parentNode,y=s&&t.nodeName.toLowerCase(),v=!l&&!s;if(m){if(o){while(g){p=t;while(p=p[g])if(s?p.nodeName.toLowerCase()===y:1===p.nodeType)return!1;h=g="only"===e&&!h&&"nextSibling"}return!0}if(h=[a?m.firstChild:m.lastChild],a&&v){c=m[b]||(m[b]={}),u=c[e]||[],d=u[0]===T&&u[1],f=u[0]===T&&u[2],p=d&&m.childNodes[d];while(p=++d&&p&&p[g]||(f=d=0)||h.pop())if(1===p.nodeType&&++f&&p===t){c[e]=[T,d,f];break}}else if(v&&(u=(t[b]||(t[b]={}))[e])&&u[0]===T)f=u[1];else while(p=++d&&p&&p[g]||(f=d=0)||h.pop())if((s?p.nodeName.toLowerCase()===y:1===p.nodeType)&&++f&&(v&&((p[b]||(p[b]={}))[e]=[T,f]),p===t))break;return f-=i,f===r||0===f%r&&f/r>=0}}},PSEUDO:function(e,t){var n,r=o.pseudos[e]||o.setFilters[e.toLowerCase()]||at.error("unsupported pseudo: "+e);return r[b]?r(t):r.length>1?(n=[e,e,"",t],o.setFilters.hasOwnProperty(e.toLowerCase())?lt(function(e,n){var i,o=r(e,t),a=o.length;while(a--)i=F.call(e,o[a]),e[i]=!(n[i]=o[a])}):function(e){return r(e,0,n)}):r}},pseudos:{not:lt(function(e){var t=[],n=[],r=l(e.replace(z,"$1"));return r[b]?lt(function(e,t,n,i){var o,a=r(e,null,i,[]),s=e.length;while(s--)(o=a[s])&&(e[s]=!(t[s]=o))}):function(e,i,o){return t[0]=e,r(t,null,o,n),!n.pop()}}),has:lt(function(e){return function(t){return at(e,t).length>0}}),contains:lt(function(e){return function(t){return(t.textContent||t.innerText||a(t)).indexOf(e)>-1}}),lang:lt(function(e){return G.test(e||"")||at.error("unsupported lang: "+e),e=e.replace(rt,it).toLowerCase(),function(t){var n;do if(n=h?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return n=n.toLowerCase(),n===e||0===n.indexOf(e+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===d},focus:function(e){return e===f.activeElement&&(!f.hasFocus||f.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return e.disabled===!1},disabled:function(e){return e.disabled===!0},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeName>"@"||3===e.nodeType||4===e.nodeType)return!1;return!0},parent:function(e){return!o.pseudos.empty(e)},header:function(e){return tt.test(e.nodeName)},input:function(e){return et.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||t.toLowerCase()===e.type)},first:ht(function(){return[0]}),last:ht(function(e,t){return[t-1]}),eq:ht(function(e,t,n){return[0>n?n+t:n]}),even:ht(function(e,t){var n=0;for(;t>n;n+=2)e.push(n);return e}),odd:ht(function(e,t){var n=1;for(;t>n;n+=2)e.push(n);return e}),lt:ht(function(e,t,n){var r=0>n?n+t:n;for(;--r>=0;)e.push(r);return e}),gt:ht(function(e,t,n){var r=0>n?n+t:n;for(;t>++r;)e.push(r);return e})}},o.pseudos.nth=o.pseudos.eq;for(n in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})o.pseudos[n]=ft(n);for(n in{submit:!0,reset:!0})o.pseudos[n]=dt(n);function gt(){}gt.prototype=o.filters=o.pseudos,o.setFilters=new gt;function mt(e,t){var n,r,i,a,s,l,u,c=k[e+" "];if(c)return t?0:c.slice(0);s=e,l=[],u=o.preFilter;while(s){(!n||(r=X.exec(s)))&&(r&&(s=s.slice(r[0].length)||s),l.push(i=[])),n=!1,(r=U.exec(s))&&(n=r.shift(),i.push({value:n,type:r[0].replace(z," ")}),s=s.slice(n.length));for(a in o.filter)!(r=Q[a].exec(s))||u[a]&&!(r=u[a](r))||(n=r.shift(),i.push({value:n,type:a,matches:r}),s=s.slice(n.length));if(!n)break}return t?s.length:s?at.error(e):k(e,l).slice(0)}function yt(e){var t=0,n=e.length,r="";for(;n>t;t++)r+=e[t].value;return r}function vt(e,t,n){var r=t.dir,o=n&&"parentNode"===r,a=C++;return t.first?function(t,n,i){while(t=t[r])if(1===t.nodeType||o)return e(t,n,i)}:function(t,n,s){var l,u,c,p=T+" "+a;if(s){while(t=t[r])if((1===t.nodeType||o)&&e(t,n,s))return!0}else while(t=t[r])if(1===t.nodeType||o)if(c=t[b]||(t[b]={}),(u=c[r])&&u[0]===p){if((l=u[1])===!0||l===i)return l===!0}else if(u=c[r]=[p],u[1]=e(t,n,s)||i,u[1]===!0)return!0}}function bt(e){return e.length>1?function(t,n,r){var i=e.length;while(i--)if(!e[i](t,n,r))return!1;return!0}:e[0]}function xt(e,t,n,r,i){var o,a=[],s=0,l=e.length,u=null!=t;for(;l>s;s++)(o=e[s])&&(!n||n(o,r,i))&&(a.push(o),u&&t.push(s));return a}function wt(e,t,n,r,i,o){return r&&!r[b]&&(r=wt(r)),i&&!i[b]&&(i=wt(i,o)),lt(function(o,a,s,l){var u,c,p,f=[],d=[],h=a.length,g=o||Nt(t||"*",s.nodeType?[s]:s,[]),m=!e||!o&&t?g:xt(g,f,e,s,l),y=n?i||(o?e:h||r)?[]:a:m;if(n&&n(m,y,s,l),r){u=xt(y,d),r(u,[],s,l),c=u.length;while(c--)(p=u[c])&&(y[d[c]]=!(m[d[c]]=p))}if(o){if(i||e){if(i){u=[],c=y.length;while(c--)(p=y[c])&&u.push(m[c]=p);i(null,y=[],u,l)}c=y.length;while(c--)(p=y[c])&&(u=i?F.call(o,p):f[c])>-1&&(o[u]=!(a[u]=p))}}else y=xt(y===a?y.splice(h,y.length):y),i?i(null,a,y,l):M.apply(a,y)})}function Tt(e){var t,n,r,i=e.length,a=o.relative[e[0].type],s=a||o.relative[" "],l=a?1:0,c=vt(function(e){return e===t},s,!0),p=vt(function(e){return F.call(t,e)>-1},s,!0),f=[function(e,n,r){return!a&&(r||n!==u)||((t=n).nodeType?c(e,n,r):p(e,n,r))}];for(;i>l;l++)if(n=o.relative[e[l].type])f=[vt(bt(f),n)];else{if(n=o.filter[e[l].type].apply(null,e[l].matches),n[b]){for(r=++l;i>r;r++)if(o.relative[e[r].type])break;return wt(l>1&&bt(f),l>1&&yt(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(z,"$1"),n,r>l&&Tt(e.slice(l,r)),i>r&&Tt(e=e.slice(r)),i>r&&yt(e))}f.push(n)}return bt(f)}function Ct(e,t){var n=0,r=t.length>0,a=e.length>0,s=function(s,l,c,p,d){var h,g,m,y=[],v=0,b="0",x=s&&[],w=null!=d,C=u,N=s||a&&o.find.TAG("*",d&&l.parentNode||l),k=T+=null==C?1:Math.random()||.1;for(w&&(u=l!==f&&l,i=n);null!=(h=N[b]);b++){if(a&&h){g=0;while(m=e[g++])if(m(h,l,c)){p.push(h);break}w&&(T=k,i=++n)}r&&((h=!m&&h)&&v--,s&&x.push(h))}if(v+=b,r&&b!==v){g=0;while(m=t[g++])m(x,y,l,c);if(s){if(v>0)while(b--)x[b]||y[b]||(y[b]=q.call(p));y=xt(y)}M.apply(p,y),w&&!s&&y.length>0&&v+t.length>1&&at.uniqueSort(p)}return w&&(T=k,u=C),x};return r?lt(s):s}l=at.compile=function(e,t){var n,r=[],i=[],o=E[e+" "];if(!o){t||(t=mt(e)),n=t.length;while(n--)o=Tt(t[n]),o[b]?r.push(o):i.push(o);o=E(e,Ct(i,r))}return o};function Nt(e,t,n){var r=0,i=t.length;for(;i>r;r++)at(e,t[r],n);return n}function kt(e,t,n,i){var a,s,u,c,p,f=mt(e);if(!i&&1===f.length){if(s=f[0]=f[0].slice(0),s.length>2&&"ID"===(u=s[0]).type&&r.getById&&9===t.nodeType&&h&&o.relative[s[1].type]){if(t=(o.find.ID(u.matches[0].replace(rt,it),t)||[])[0],!t)return n;e=e.slice(s.shift().value.length)}a=Q.needsContext.test(e)?0:s.length;while(a--){if(u=s[a],o.relative[c=u.type])break;if((p=o.find[c])&&(i=p(u.matches[0].replace(rt,it),V.test(s[0].type)&&t.parentNode||t))){if(s.splice(a,1),e=i.length&&yt(s),!e)return M.apply(n,i),n;break}}}return l(e,f)(i,t,!h,n,V.test(e)),n}r.sortStable=b.split("").sort(A).join("")===b,r.detectDuplicates=S,p(),r.sortDetached=ut(function(e){return 1&e.compareDocumentPosition(f.createElement("div"))}),ut(function(e){return e.innerHTML="","#"===e.firstChild.getAttribute("href")})||ct("type|href|height|width",function(e,n,r){return r?t:e.getAttribute(n,"type"===n.toLowerCase()?1:2)}),r.attributes&&ut(function(e){return e.innerHTML="",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||ct("value",function(e,n,r){return r||"input"!==e.nodeName.toLowerCase()?t:e.defaultValue}),ut(function(e){return null==e.getAttribute("disabled")})||ct(B,function(e,n,r){var i;return r?t:(i=e.getAttributeNode(n))&&i.specified?i.value:e[n]===!0?n.toLowerCase():null}),x.find=at,x.expr=at.selectors,x.expr[":"]=x.expr.pseudos,x.unique=at.uniqueSort,x.text=at.getText,x.isXMLDoc=at.isXML,x.contains=at.contains}(e);var O={};function F(e){var t=O[e]={};return x.each(e.match(T)||[],function(e,n){t[n]=!0}),t}x.Callbacks=function(e){e="string"==typeof e?O[e]||F(e):x.extend({},e);var n,r,i,o,a,s,l=[],u=!e.once&&[],c=function(t){for(r=e.memory&&t,i=!0,a=s||0,s=0,o=l.length,n=!0;l&&o>a;a++)if(l[a].apply(t[0],t[1])===!1&&e.stopOnFalse){r=!1;break}n=!1,l&&(u?u.length&&c(u.shift()):r?l=[]:p.disable())},p={add:function(){if(l){var t=l.length;(function i(t){x.each(t,function(t,n){var r=x.type(n);"function"===r?e.unique&&p.has(n)||l.push(n):n&&n.length&&"string"!==r&&i(n)})})(arguments),n?o=l.length:r&&(s=t,c(r))}return this},remove:function(){return l&&x.each(arguments,function(e,t){var r;while((r=x.inArray(t,l,r))>-1)l.splice(r,1),n&&(o>=r&&o--,a>=r&&a--)}),this},has:function(e){return e?x.inArray(e,l)>-1:!(!l||!l.length)},empty:function(){return l=[],o=0,this},disable:function(){return l=u=r=t,this},disabled:function(){return!l},lock:function(){return u=t,r||p.disable(),this},locked:function(){return!u},fireWith:function(e,t){return!l||i&&!u||(t=t||[],t=[e,t.slice?t.slice():t],n?u.push(t):c(t)),this},fire:function(){return p.fireWith(this,arguments),this},fired:function(){return!!i}};return p},x.extend({Deferred:function(e){var t=[["resolve","done",x.Callbacks("once memory"),"resolved"],["reject","fail",x.Callbacks("once memory"),"rejected"],["notify","progress",x.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var e=arguments;return x.Deferred(function(n){x.each(t,function(t,o){var a=o[0],s=x.isFunction(e[t])&&e[t];i[o[1]](function(){var e=s&&s.apply(this,arguments);e&&x.isFunction(e.promise)?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[a+"With"](this===r?n.promise():this,s?[e]:arguments)})}),e=null}).promise()},promise:function(e){return null!=e?x.extend(e,r):r}},i={};return r.pipe=r.then,x.each(t,function(e,o){var a=o[2],s=o[3];r[o[1]]=a.add,s&&a.add(function(){n=s},t[1^e][2].disable,t[2][2].lock),i[o[0]]=function(){return i[o[0]+"With"](this===i?r:this,arguments),this},i[o[0]+"With"]=a.fireWith}),r.promise(i),e&&e.call(i,i),i},when:function(e){var t=0,n=g.call(arguments),r=n.length,i=1!==r||e&&x.isFunction(e.promise)?r:0,o=1===i?e:x.Deferred(),a=function(e,t,n){return function(r){t[e]=this,n[e]=arguments.length>1?g.call(arguments):r,n===s?o.notifyWith(t,n):--i||o.resolveWith(t,n)}},s,l,u;if(r>1)for(s=Array(r),l=Array(r),u=Array(r);r>t;t++)n[t]&&x.isFunction(n[t].promise)?n[t].promise().done(a(t,u,n)).fail(o.reject).progress(a(t,l,s)):--i;return i||o.resolveWith(u,n),o.promise()}}),x.support=function(t){var n,r,o,s,l,u,c,p,f,d=a.createElement("div");if(d.setAttribute("className","t"),d.innerHTML="
a",n=d.getElementsByTagName("*")||[],r=d.getElementsByTagName("a")[0],!r||!r.style||!n.length)return t;s=a.createElement("select"),u=s.appendChild(a.createElement("option")),o=d.getElementsByTagName("input")[0],r.style.cssText="top:1px;float:left;opacity:.5",t.getSetAttribute="t"!==d.className,t.leadingWhitespace=3===d.firstChild.nodeType,t.tbody=!d.getElementsByTagName("tbody").length,t.htmlSerialize=!!d.getElementsByTagName("link").length,t.style=/top/.test(r.getAttribute("style")),t.hrefNormalized="/a"===r.getAttribute("href"),t.opacity=/^0.5/.test(r.style.opacity),t.cssFloat=!!r.style.cssFloat,t.checkOn=!!o.value,t.optSelected=u.selected,t.enctype=!!a.createElement("form").enctype,t.html5Clone="<:nav>"!==a.createElement("nav").cloneNode(!0).outerHTML,t.inlineBlockNeedsLayout=!1,t.shrinkWrapBlocks=!1,t.pixelPosition=!1,t.deleteExpando=!0,t.noCloneEvent=!0,t.reliableMarginRight=!0,t.boxSizingReliable=!0,o.checked=!0,t.noCloneChecked=o.cloneNode(!0).checked,s.disabled=!0,t.optDisabled=!u.disabled;try{delete d.test}catch(h){t.deleteExpando=!1}o=a.createElement("input"),o.setAttribute("value",""),t.input=""===o.getAttribute("value"),o.value="t",o.setAttribute("type","radio"),t.radioValue="t"===o.value,o.setAttribute("checked","t"),o.setAttribute("name","t"),l=a.createDocumentFragment(),l.appendChild(o),t.appendChecked=o.checked,t.checkClone=l.cloneNode(!0).cloneNode(!0).lastChild.checked,d.attachEvent&&(d.attachEvent("onclick",function(){t.noCloneEvent=!1}),d.cloneNode(!0).click());for(f in{submit:!0,change:!0,focusin:!0})d.setAttribute(c="on"+f,"t"),t[f+"Bubbles"]=c in e||d.attributes[c].expando===!1;d.style.backgroundClip="content-box",d.cloneNode(!0).style.backgroundClip="",t.clearCloneStyle="content-box"===d.style.backgroundClip;for(f in x(t))break;return t.ownLast="0"!==f,x(function(){var n,r,o,s="padding:0;margin:0;border:0;display:block;box-sizing:content-box;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;",l=a.getElementsByTagName("body")[0];l&&(n=a.createElement("div"),n.style.cssText="border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px",l.appendChild(n).appendChild(d),d.innerHTML="
t
",o=d.getElementsByTagName("td"),o[0].style.cssText="padding:0;margin:0;border:0;display:none",p=0===o[0].offsetHeight,o[0].style.display="",o[1].style.display="none",t.reliableHiddenOffsets=p&&0===o[0].offsetHeight,d.innerHTML="",d.style.cssText="box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;",x.swap(l,null!=l.style.zoom?{zoom:1}:{},function(){t.boxSizing=4===d.offsetWidth}),e.getComputedStyle&&(t.pixelPosition="1%"!==(e.getComputedStyle(d,null)||{}).top,t.boxSizingReliable="4px"===(e.getComputedStyle(d,null)||{width:"4px"}).width,r=d.appendChild(a.createElement("div")),r.style.cssText=d.style.cssText=s,r.style.marginRight=r.style.width="0",d.style.width="1px",t.reliableMarginRight=!parseFloat((e.getComputedStyle(r,null)||{}).marginRight)),typeof d.style.zoom!==i&&(d.innerHTML="",d.style.cssText=s+"width:1px;padding:1px;display:inline;zoom:1",t.inlineBlockNeedsLayout=3===d.offsetWidth,d.style.display="block",d.innerHTML="
",d.firstChild.style.width="5px",t.shrinkWrapBlocks=3!==d.offsetWidth,t.inlineBlockNeedsLayout&&(l.style.zoom=1)),l.removeChild(n),n=d=o=r=null)}),n=s=l=u=r=o=null,t }({});var B=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/,P=/([A-Z])/g;function R(e,n,r,i){if(x.acceptData(e)){var o,a,s=x.expando,l=e.nodeType,u=l?x.cache:e,c=l?e[s]:e[s]&&s;if(c&&u[c]&&(i||u[c].data)||r!==t||"string"!=typeof n)return c||(c=l?e[s]=p.pop()||x.guid++:s),u[c]||(u[c]=l?{}:{toJSON:x.noop}),("object"==typeof n||"function"==typeof n)&&(i?u[c]=x.extend(u[c],n):u[c].data=x.extend(u[c].data,n)),a=u[c],i||(a.data||(a.data={}),a=a.data),r!==t&&(a[x.camelCase(n)]=r),"string"==typeof n?(o=a[n],null==o&&(o=a[x.camelCase(n)])):o=a,o}}function W(e,t,n){if(x.acceptData(e)){var r,i,o=e.nodeType,a=o?x.cache:e,s=o?e[x.expando]:x.expando;if(a[s]){if(t&&(r=n?a[s]:a[s].data)){x.isArray(t)?t=t.concat(x.map(t,x.camelCase)):t in r?t=[t]:(t=x.camelCase(t),t=t in r?[t]:t.split(" ")),i=t.length;while(i--)delete r[t[i]];if(n?!I(r):!x.isEmptyObject(r))return}(n||(delete a[s].data,I(a[s])))&&(o?x.cleanData([e],!0):x.support.deleteExpando||a!=a.window?delete a[s]:a[s]=null)}}}x.extend({cache:{},noData:{applet:!0,embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(e){return e=e.nodeType?x.cache[e[x.expando]]:e[x.expando],!!e&&!I(e)},data:function(e,t,n){return R(e,t,n)},removeData:function(e,t){return W(e,t)},_data:function(e,t,n){return R(e,t,n,!0)},_removeData:function(e,t){return W(e,t,!0)},acceptData:function(e){if(e.nodeType&&1!==e.nodeType&&9!==e.nodeType)return!1;var t=e.nodeName&&x.noData[e.nodeName.toLowerCase()];return!t||t!==!0&&e.getAttribute("classid")===t}}),x.fn.extend({data:function(e,n){var r,i,o=null,a=0,s=this[0];if(e===t){if(this.length&&(o=x.data(s),1===s.nodeType&&!x._data(s,"parsedAttrs"))){for(r=s.attributes;r.length>a;a++)i=r[a].name,0===i.indexOf("data-")&&(i=x.camelCase(i.slice(5)),$(s,i,o[i]));x._data(s,"parsedAttrs",!0)}return o}return"object"==typeof e?this.each(function(){x.data(this,e)}):arguments.length>1?this.each(function(){x.data(this,e,n)}):s?$(s,e,x.data(s,e)):null},removeData:function(e){return this.each(function(){x.removeData(this,e)})}});function $(e,n,r){if(r===t&&1===e.nodeType){var i="data-"+n.replace(P,"-$1").toLowerCase();if(r=e.getAttribute(i),"string"==typeof r){try{r="true"===r?!0:"false"===r?!1:"null"===r?null:+r+""===r?+r:B.test(r)?x.parseJSON(r):r}catch(o){}x.data(e,n,r)}else r=t}return r}function I(e){var t;for(t in e)if(("data"!==t||!x.isEmptyObject(e[t]))&&"toJSON"!==t)return!1;return!0}x.extend({queue:function(e,n,r){var i;return e?(n=(n||"fx")+"queue",i=x._data(e,n),r&&(!i||x.isArray(r)?i=x._data(e,n,x.makeArray(r)):i.push(r)),i||[]):t},dequeue:function(e,t){t=t||"fx";var n=x.queue(e,t),r=n.length,i=n.shift(),o=x._queueHooks(e,t),a=function(){x.dequeue(e,t)};"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,a,o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return x._data(e,n)||x._data(e,n,{empty:x.Callbacks("once memory").add(function(){x._removeData(e,t+"queue"),x._removeData(e,n)})})}}),x.fn.extend({queue:function(e,n){var r=2;return"string"!=typeof e&&(n=e,e="fx",r--),r>arguments.length?x.queue(this[0],e):n===t?this:this.each(function(){var t=x.queue(this,e,n);x._queueHooks(this,e),"fx"===e&&"inprogress"!==t[0]&&x.dequeue(this,e)})},dequeue:function(e){return this.each(function(){x.dequeue(this,e)})},delay:function(e,t){return e=x.fx?x.fx.speeds[e]||e:e,t=t||"fx",this.queue(t,function(t,n){var r=setTimeout(t,e);n.stop=function(){clearTimeout(r)}})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,n){var r,i=1,o=x.Deferred(),a=this,s=this.length,l=function(){--i||o.resolveWith(a,[a])};"string"!=typeof e&&(n=e,e=t),e=e||"fx";while(s--)r=x._data(a[s],e+"queueHooks"),r&&r.empty&&(i++,r.empty.add(l));return l(),o.promise(n)}});var z,X,U=/[\t\r\n\f]/g,V=/\r/g,Y=/^(?:input|select|textarea|button|object)$/i,J=/^(?:a|area)$/i,G=/^(?:checked|selected)$/i,Q=x.support.getSetAttribute,K=x.support.input;x.fn.extend({attr:function(e,t){return x.access(this,x.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){x.removeAttr(this,e)})},prop:function(e,t){return x.access(this,x.prop,e,t,arguments.length>1)},removeProp:function(e){return e=x.propFix[e]||e,this.each(function(){try{this[e]=t,delete this[e]}catch(n){}})},addClass:function(e){var t,n,r,i,o,a=0,s=this.length,l="string"==typeof e&&e;if(x.isFunction(e))return this.each(function(t){x(this).addClass(e.call(this,t,this.className))});if(l)for(t=(e||"").match(T)||[];s>a;a++)if(n=this[a],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(U," "):" ")){o=0;while(i=t[o++])0>r.indexOf(" "+i+" ")&&(r+=i+" ");n.className=x.trim(r)}return this},removeClass:function(e){var t,n,r,i,o,a=0,s=this.length,l=0===arguments.length||"string"==typeof e&&e;if(x.isFunction(e))return this.each(function(t){x(this).removeClass(e.call(this,t,this.className))});if(l)for(t=(e||"").match(T)||[];s>a;a++)if(n=this[a],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(U," "):"")){o=0;while(i=t[o++])while(r.indexOf(" "+i+" ")>=0)r=r.replace(" "+i+" "," ");n.className=e?x.trim(r):""}return this},toggleClass:function(e,t){var n=typeof e;return"boolean"==typeof t&&"string"===n?t?this.addClass(e):this.removeClass(e):x.isFunction(e)?this.each(function(n){x(this).toggleClass(e.call(this,n,this.className,t),t)}):this.each(function(){if("string"===n){var t,r=0,o=x(this),a=e.match(T)||[];while(t=a[r++])o.hasClass(t)?o.removeClass(t):o.addClass(t)}else(n===i||"boolean"===n)&&(this.className&&x._data(this,"__className__",this.className),this.className=this.className||e===!1?"":x._data(this,"__className__")||"")})},hasClass:function(e){var t=" "+e+" ",n=0,r=this.length;for(;r>n;n++)if(1===this[n].nodeType&&(" "+this[n].className+" ").replace(U," ").indexOf(t)>=0)return!0;return!1},val:function(e){var n,r,i,o=this[0];{if(arguments.length)return i=x.isFunction(e),this.each(function(n){var o;1===this.nodeType&&(o=i?e.call(this,n,x(this).val()):e,null==o?o="":"number"==typeof o?o+="":x.isArray(o)&&(o=x.map(o,function(e){return null==e?"":e+""})),r=x.valHooks[this.type]||x.valHooks[this.nodeName.toLowerCase()],r&&"set"in r&&r.set(this,o,"value")!==t||(this.value=o))});if(o)return r=x.valHooks[o.type]||x.valHooks[o.nodeName.toLowerCase()],r&&"get"in r&&(n=r.get(o,"value"))!==t?n:(n=o.value,"string"==typeof n?n.replace(V,""):null==n?"":n)}}}),x.extend({valHooks:{option:{get:function(e){var t=x.find.attr(e,"value");return null!=t?t:e.text}},select:{get:function(e){var t,n,r=e.options,i=e.selectedIndex,o="select-one"===e.type||0>i,a=o?null:[],s=o?i+1:r.length,l=0>i?s:o?i:0;for(;s>l;l++)if(n=r[l],!(!n.selected&&l!==i||(x.support.optDisabled?n.disabled:null!==n.getAttribute("disabled"))||n.parentNode.disabled&&x.nodeName(n.parentNode,"optgroup"))){if(t=x(n).val(),o)return t;a.push(t)}return a},set:function(e,t){var n,r,i=e.options,o=x.makeArray(t),a=i.length;while(a--)r=i[a],(r.selected=x.inArray(x(r).val(),o)>=0)&&(n=!0);return n||(e.selectedIndex=-1),o}}},attr:function(e,n,r){var o,a,s=e.nodeType;if(e&&3!==s&&8!==s&&2!==s)return typeof e.getAttribute===i?x.prop(e,n,r):(1===s&&x.isXMLDoc(e)||(n=n.toLowerCase(),o=x.attrHooks[n]||(x.expr.match.bool.test(n)?X:z)),r===t?o&&"get"in o&&null!==(a=o.get(e,n))?a:(a=x.find.attr(e,n),null==a?t:a):null!==r?o&&"set"in o&&(a=o.set(e,r,n))!==t?a:(e.setAttribute(n,r+""),r):(x.removeAttr(e,n),t))},removeAttr:function(e,t){var n,r,i=0,o=t&&t.match(T);if(o&&1===e.nodeType)while(n=o[i++])r=x.propFix[n]||n,x.expr.match.bool.test(n)?K&&Q||!G.test(n)?e[r]=!1:e[x.camelCase("default-"+n)]=e[r]=!1:x.attr(e,n,""),e.removeAttribute(Q?n:r)},attrHooks:{type:{set:function(e,t){if(!x.support.radioValue&&"radio"===t&&x.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},propFix:{"for":"htmlFor","class":"className"},prop:function(e,n,r){var i,o,a,s=e.nodeType;if(e&&3!==s&&8!==s&&2!==s)return a=1!==s||!x.isXMLDoc(e),a&&(n=x.propFix[n]||n,o=x.propHooks[n]),r!==t?o&&"set"in o&&(i=o.set(e,r,n))!==t?i:e[n]=r:o&&"get"in o&&null!==(i=o.get(e,n))?i:e[n]},propHooks:{tabIndex:{get:function(e){var t=x.find.attr(e,"tabindex");return t?parseInt(t,10):Y.test(e.nodeName)||J.test(e.nodeName)&&e.href?0:-1}}}}),X={set:function(e,t,n){return t===!1?x.removeAttr(e,n):K&&Q||!G.test(n)?e.setAttribute(!Q&&x.propFix[n]||n,n):e[x.camelCase("default-"+n)]=e[n]=!0,n}},x.each(x.expr.match.bool.source.match(/\w+/g),function(e,n){var r=x.expr.attrHandle[n]||x.find.attr;x.expr.attrHandle[n]=K&&Q||!G.test(n)?function(e,n,i){var o=x.expr.attrHandle[n],a=i?t:(x.expr.attrHandle[n]=t)!=r(e,n,i)?n.toLowerCase():null;return x.expr.attrHandle[n]=o,a}:function(e,n,r){return r?t:e[x.camelCase("default-"+n)]?n.toLowerCase():null}}),K&&Q||(x.attrHooks.value={set:function(e,n,r){return x.nodeName(e,"input")?(e.defaultValue=n,t):z&&z.set(e,n,r)}}),Q||(z={set:function(e,n,r){var i=e.getAttributeNode(r);return i||e.setAttributeNode(i=e.ownerDocument.createAttribute(r)),i.value=n+="","value"===r||n===e.getAttribute(r)?n:t}},x.expr.attrHandle.id=x.expr.attrHandle.name=x.expr.attrHandle.coords=function(e,n,r){var i;return r?t:(i=e.getAttributeNode(n))&&""!==i.value?i.value:null},x.valHooks.button={get:function(e,n){var r=e.getAttributeNode(n);return r&&r.specified?r.value:t},set:z.set},x.attrHooks.contenteditable={set:function(e,t,n){z.set(e,""===t?!1:t,n)}},x.each(["width","height"],function(e,n){x.attrHooks[n]={set:function(e,r){return""===r?(e.setAttribute(n,"auto"),r):t}}})),x.support.hrefNormalized||x.each(["href","src"],function(e,t){x.propHooks[t]={get:function(e){return e.getAttribute(t,4)}}}),x.support.style||(x.attrHooks.style={get:function(e){return e.style.cssText||t},set:function(e,t){return e.style.cssText=t+""}}),x.support.optSelected||(x.propHooks.selected={get:function(e){var t=e.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null}}),x.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){x.propFix[this.toLowerCase()]=this}),x.support.enctype||(x.propFix.enctype="encoding"),x.each(["radio","checkbox"],function(){x.valHooks[this]={set:function(e,n){return x.isArray(n)?e.checked=x.inArray(x(e).val(),n)>=0:t}},x.support.checkOn||(x.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var Z=/^(?:input|select|textarea)$/i,et=/^key/,tt=/^(?:mouse|contextmenu)|click/,nt=/^(?:focusinfocus|focusoutblur)$/,rt=/^([^.]*)(?:\.(.+)|)$/;function it(){return!0}function ot(){return!1}function at(){try{return a.activeElement}catch(e){}}x.event={global:{},add:function(e,n,r,o,a){var s,l,u,c,p,f,d,h,g,m,y,v=x._data(e);if(v){r.handler&&(c=r,r=c.handler,a=c.selector),r.guid||(r.guid=x.guid++),(l=v.events)||(l=v.events={}),(f=v.handle)||(f=v.handle=function(e){return typeof x===i||e&&x.event.triggered===e.type?t:x.event.dispatch.apply(f.elem,arguments)},f.elem=e),n=(n||"").match(T)||[""],u=n.length;while(u--)s=rt.exec(n[u])||[],g=y=s[1],m=(s[2]||"").split(".").sort(),g&&(p=x.event.special[g]||{},g=(a?p.delegateType:p.bindType)||g,p=x.event.special[g]||{},d=x.extend({type:g,origType:y,data:o,handler:r,guid:r.guid,selector:a,needsContext:a&&x.expr.match.needsContext.test(a),namespace:m.join(".")},c),(h=l[g])||(h=l[g]=[],h.delegateCount=0,p.setup&&p.setup.call(e,o,m,f)!==!1||(e.addEventListener?e.addEventListener(g,f,!1):e.attachEvent&&e.attachEvent("on"+g,f))),p.add&&(p.add.call(e,d),d.handler.guid||(d.handler.guid=r.guid)),a?h.splice(h.delegateCount++,0,d):h.push(d),x.event.global[g]=!0);e=null}},remove:function(e,t,n,r,i){var o,a,s,l,u,c,p,f,d,h,g,m=x.hasData(e)&&x._data(e);if(m&&(c=m.events)){t=(t||"").match(T)||[""],u=t.length;while(u--)if(s=rt.exec(t[u])||[],d=g=s[1],h=(s[2]||"").split(".").sort(),d){p=x.event.special[d]||{},d=(r?p.delegateType:p.bindType)||d,f=c[d]||[],s=s[2]&&RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),l=o=f.length;while(o--)a=f[o],!i&&g!==a.origType||n&&n.guid!==a.guid||s&&!s.test(a.namespace)||r&&r!==a.selector&&("**"!==r||!a.selector)||(f.splice(o,1),a.selector&&f.delegateCount--,p.remove&&p.remove.call(e,a));l&&!f.length&&(p.teardown&&p.teardown.call(e,h,m.handle)!==!1||x.removeEvent(e,d,m.handle),delete c[d])}else for(d in c)x.event.remove(e,d+t[u],n,r,!0);x.isEmptyObject(c)&&(delete m.handle,x._removeData(e,"events"))}},trigger:function(n,r,i,o){var s,l,u,c,p,f,d,h=[i||a],g=v.call(n,"type")?n.type:n,m=v.call(n,"namespace")?n.namespace.split("."):[];if(u=f=i=i||a,3!==i.nodeType&&8!==i.nodeType&&!nt.test(g+x.event.triggered)&&(g.indexOf(".")>=0&&(m=g.split("."),g=m.shift(),m.sort()),l=0>g.indexOf(":")&&"on"+g,n=n[x.expando]?n:new x.Event(g,"object"==typeof n&&n),n.isTrigger=o?2:3,n.namespace=m.join("."),n.namespace_re=n.namespace?RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,n.result=t,n.target||(n.target=i),r=null==r?[n]:x.makeArray(r,[n]),p=x.event.special[g]||{},o||!p.trigger||p.trigger.apply(i,r)!==!1)){if(!o&&!p.noBubble&&!x.isWindow(i)){for(c=p.delegateType||g,nt.test(c+g)||(u=u.parentNode);u;u=u.parentNode)h.push(u),f=u;f===(i.ownerDocument||a)&&h.push(f.defaultView||f.parentWindow||e)}d=0;while((u=h[d++])&&!n.isPropagationStopped())n.type=d>1?c:p.bindType||g,s=(x._data(u,"events")||{})[n.type]&&x._data(u,"handle"),s&&s.apply(u,r),s=l&&u[l],s&&x.acceptData(u)&&s.apply&&s.apply(u,r)===!1&&n.preventDefault();if(n.type=g,!o&&!n.isDefaultPrevented()&&(!p._default||p._default.apply(h.pop(),r)===!1)&&x.acceptData(i)&&l&&i[g]&&!x.isWindow(i)){f=i[l],f&&(i[l]=null),x.event.triggered=g;try{i[g]()}catch(y){}x.event.triggered=t,f&&(i[l]=f)}return n.result}},dispatch:function(e){e=x.event.fix(e);var n,r,i,o,a,s=[],l=g.call(arguments),u=(x._data(this,"events")||{})[e.type]||[],c=x.event.special[e.type]||{};if(l[0]=e,e.delegateTarget=this,!c.preDispatch||c.preDispatch.call(this,e)!==!1){s=x.event.handlers.call(this,e,u),n=0;while((o=s[n++])&&!e.isPropagationStopped()){e.currentTarget=o.elem,a=0;while((i=o.handlers[a++])&&!e.isImmediatePropagationStopped())(!e.namespace_re||e.namespace_re.test(i.namespace))&&(e.handleObj=i,e.data=i.data,r=((x.event.special[i.origType]||{}).handle||i.handler).apply(o.elem,l),r!==t&&(e.result=r)===!1&&(e.preventDefault(),e.stopPropagation()))}return c.postDispatch&&c.postDispatch.call(this,e),e.result}},handlers:function(e,n){var r,i,o,a,s=[],l=n.delegateCount,u=e.target;if(l&&u.nodeType&&(!e.button||"click"!==e.type))for(;u!=this;u=u.parentNode||this)if(1===u.nodeType&&(u.disabled!==!0||"click"!==e.type)){for(o=[],a=0;l>a;a++)i=n[a],r=i.selector+" ",o[r]===t&&(o[r]=i.needsContext?x(r,this).index(u)>=0:x.find(r,this,null,[u]).length),o[r]&&o.push(i);o.length&&s.push({elem:u,handlers:o})}return n.length>l&&s.push({elem:this,handlers:n.slice(l)}),s},fix:function(e){if(e[x.expando])return e;var t,n,r,i=e.type,o=e,s=this.fixHooks[i];s||(this.fixHooks[i]=s=tt.test(i)?this.mouseHooks:et.test(i)?this.keyHooks:{}),r=s.props?this.props.concat(s.props):this.props,e=new x.Event(o),t=r.length;while(t--)n=r[t],e[n]=o[n];return e.target||(e.target=o.srcElement||a),3===e.target.nodeType&&(e.target=e.target.parentNode),e.metaKey=!!e.metaKey,s.filter?s.filter(e,o):e},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,n){var r,i,o,s=n.button,l=n.fromElement;return null==e.pageX&&null!=n.clientX&&(i=e.target.ownerDocument||a,o=i.documentElement,r=i.body,e.pageX=n.clientX+(o&&o.scrollLeft||r&&r.scrollLeft||0)-(o&&o.clientLeft||r&&r.clientLeft||0),e.pageY=n.clientY+(o&&o.scrollTop||r&&r.scrollTop||0)-(o&&o.clientTop||r&&r.clientTop||0)),!e.relatedTarget&&l&&(e.relatedTarget=l===e.target?n.toElement:l),e.which||s===t||(e.which=1&s?1:2&s?3:4&s?2:0),e}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==at()&&this.focus)try{return this.focus(),!1}catch(e){}},delegateType:"focusin"},blur:{trigger:function(){return this===at()&&this.blur?(this.blur(),!1):t},delegateType:"focusout"},click:{trigger:function(){return x.nodeName(this,"input")&&"checkbox"===this.type&&this.click?(this.click(),!1):t},_default:function(e){return x.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){e.result!==t&&(e.originalEvent.returnValue=e.result)}}},simulate:function(e,t,n,r){var i=x.extend(new x.Event,n,{type:e,isSimulated:!0,originalEvent:{}});r?x.event.trigger(i,null,t):x.event.dispatch.call(t,i),i.isDefaultPrevented()&&n.preventDefault()}},x.removeEvent=a.removeEventListener?function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n,!1)}:function(e,t,n){var r="on"+t;e.detachEvent&&(typeof e[r]===i&&(e[r]=null),e.detachEvent(r,n))},x.Event=function(e,n){return this instanceof x.Event?(e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||e.returnValue===!1||e.getPreventDefault&&e.getPreventDefault()?it:ot):this.type=e,n&&x.extend(this,n),this.timeStamp=e&&e.timeStamp||x.now(),this[x.expando]=!0,t):new x.Event(e,n)},x.Event.prototype={isDefaultPrevented:ot,isPropagationStopped:ot,isImmediatePropagationStopped:ot,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=it,e&&(e.preventDefault?e.preventDefault():e.returnValue=!1)},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=it,e&&(e.stopPropagation&&e.stopPropagation(),e.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=it,this.stopPropagation()}},x.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(e,t){x.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,o=e.handleObj;return(!i||i!==r&&!x.contains(r,i))&&(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}}),x.support.submitBubbles||(x.event.special.submit={setup:function(){return x.nodeName(this,"form")?!1:(x.event.add(this,"click._submit keypress._submit",function(e){var n=e.target,r=x.nodeName(n,"input")||x.nodeName(n,"button")?n.form:t;r&&!x._data(r,"submitBubbles")&&(x.event.add(r,"submit._submit",function(e){e._submit_bubble=!0}),x._data(r,"submitBubbles",!0))}),t)},postDispatch:function(e){e._submit_bubble&&(delete e._submit_bubble,this.parentNode&&!e.isTrigger&&x.event.simulate("submit",this.parentNode,e,!0))},teardown:function(){return x.nodeName(this,"form")?!1:(x.event.remove(this,"._submit"),t)}}),x.support.changeBubbles||(x.event.special.change={setup:function(){return Z.test(this.nodeName)?(("checkbox"===this.type||"radio"===this.type)&&(x.event.add(this,"propertychange._change",function(e){"checked"===e.originalEvent.propertyName&&(this._just_changed=!0)}),x.event.add(this,"click._change",function(e){this._just_changed&&!e.isTrigger&&(this._just_changed=!1),x.event.simulate("change",this,e,!0)})),!1):(x.event.add(this,"beforeactivate._change",function(e){var t=e.target;Z.test(t.nodeName)&&!x._data(t,"changeBubbles")&&(x.event.add(t,"change._change",function(e){!this.parentNode||e.isSimulated||e.isTrigger||x.event.simulate("change",this.parentNode,e,!0)}),x._data(t,"changeBubbles",!0))}),t)},handle:function(e){var n=e.target;return this!==n||e.isSimulated||e.isTrigger||"radio"!==n.type&&"checkbox"!==n.type?e.handleObj.handler.apply(this,arguments):t},teardown:function(){return x.event.remove(this,"._change"),!Z.test(this.nodeName)}}),x.support.focusinBubbles||x.each({focus:"focusin",blur:"focusout"},function(e,t){var n=0,r=function(e){x.event.simulate(t,e.target,x.event.fix(e),!0)};x.event.special[t]={setup:function(){0===n++&&a.addEventListener(e,r,!0)},teardown:function(){0===--n&&a.removeEventListener(e,r,!0)}}}),x.fn.extend({on:function(e,n,r,i,o){var a,s;if("object"==typeof e){"string"!=typeof n&&(r=r||n,n=t);for(a in e)this.on(a,n,r,e[a],o);return this}if(null==r&&null==i?(i=n,r=n=t):null==i&&("string"==typeof n?(i=r,r=t):(i=r,r=n,n=t)),i===!1)i=ot;else if(!i)return this;return 1===o&&(s=i,i=function(e){return x().off(e),s.apply(this,arguments)},i.guid=s.guid||(s.guid=x.guid++)),this.each(function(){x.event.add(this,e,i,r,n)})},one:function(e,t,n,r){return this.on(e,t,n,r,1)},off:function(e,n,r){var i,o;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,x(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof e){for(o in e)this.off(o,n,e[o]);return this}return(n===!1||"function"==typeof n)&&(r=n,n=t),r===!1&&(r=ot),this.each(function(){x.event.remove(this,e,r,n)})},trigger:function(e,t){return this.each(function(){x.event.trigger(e,t,this)})},triggerHandler:function(e,n){var r=this[0];return r?x.event.trigger(e,n,r,!0):t}});var st=/^.[^:#\[\.,]*$/,lt=/^(?:parents|prev(?:Until|All))/,ut=x.expr.match.needsContext,ct={children:!0,contents:!0,next:!0,prev:!0};x.fn.extend({find:function(e){var t,n=[],r=this,i=r.length;if("string"!=typeof e)return this.pushStack(x(e).filter(function(){for(t=0;i>t;t++)if(x.contains(r[t],this))return!0}));for(t=0;i>t;t++)x.find(e,r[t],n);return n=this.pushStack(i>1?x.unique(n):n),n.selector=this.selector?this.selector+" "+e:e,n},has:function(e){var t,n=x(e,this),r=n.length;return this.filter(function(){for(t=0;r>t;t++)if(x.contains(this,n[t]))return!0})},not:function(e){return this.pushStack(ft(this,e||[],!0))},filter:function(e){return this.pushStack(ft(this,e||[],!1))},is:function(e){return!!ft(this,"string"==typeof e&&ut.test(e)?x(e):e||[],!1).length},closest:function(e,t){var n,r=0,i=this.length,o=[],a=ut.test(e)||"string"!=typeof e?x(e,t||this.context):0;for(;i>r;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(11>n.nodeType&&(a?a.index(n)>-1:1===n.nodeType&&x.find.matchesSelector(n,e))){n=o.push(n);break}return this.pushStack(o.length>1?x.unique(o):o)},index:function(e){return e?"string"==typeof e?x.inArray(this[0],x(e)):x.inArray(e.jquery?e[0]:e,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){var n="string"==typeof e?x(e,t):x.makeArray(e&&e.nodeType?[e]:e),r=x.merge(this.get(),n);return this.pushStack(x.unique(r))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}});function pt(e,t){do e=e[t];while(e&&1!==e.nodeType);return e}x.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return x.dir(e,"parentNode")},parentsUntil:function(e,t,n){return x.dir(e,"parentNode",n)},next:function(e){return pt(e,"nextSibling")},prev:function(e){return pt(e,"previousSibling")},nextAll:function(e){return x.dir(e,"nextSibling")},prevAll:function(e){return x.dir(e,"previousSibling")},nextUntil:function(e,t,n){return x.dir(e,"nextSibling",n)},prevUntil:function(e,t,n){return x.dir(e,"previousSibling",n)},siblings:function(e){return x.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return x.sibling(e.firstChild)},contents:function(e){return x.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:x.merge([],e.childNodes)}},function(e,t){x.fn[e]=function(n,r){var i=x.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=x.filter(r,i)),this.length>1&&(ct[e]||(i=x.unique(i)),lt.test(e)&&(i=i.reverse())),this.pushStack(i)}}),x.extend({filter:function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?x.find.matchesSelector(r,e)?[r]:[]:x.find.matches(e,x.grep(t,function(e){return 1===e.nodeType}))},dir:function(e,n,r){var i=[],o=e[n];while(o&&9!==o.nodeType&&(r===t||1!==o.nodeType||!x(o).is(r)))1===o.nodeType&&i.push(o),o=o[n];return i},sibling:function(e,t){var n=[];for(;e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}});function ft(e,t,n){if(x.isFunction(t))return x.grep(e,function(e,r){return!!t.call(e,r,e)!==n});if(t.nodeType)return x.grep(e,function(e){return e===t!==n});if("string"==typeof t){if(st.test(t))return x.filter(t,e,n);t=x.filter(t,e)}return x.grep(e,function(e){return x.inArray(e,t)>=0!==n})}function dt(e){var t=ht.split("|"),n=e.createDocumentFragment();if(n.createElement)while(t.length)n.createElement(t.pop());return n}var ht="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",gt=/ jQuery\d+="(?:null|\d+)"/g,mt=RegExp("<(?:"+ht+")[\\s/>]","i"),yt=/^\s+/,vt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,bt=/<([\w:]+)/,xt=/\s*$/g,At={option:[1,""],legend:[1,"
","
"],area:[1,"",""],param:[1,"",""],thead:[1,"","
"],tr:[2,"","
"],col:[2,"","
"],td:[3,"","
"],_default:x.support.htmlSerialize?[0,"",""]:[1,"X
","
"]},jt=dt(a),Dt=jt.appendChild(a.createElement("div"));At.optgroup=At.option,At.tbody=At.tfoot=At.colgroup=At.caption=At.thead,At.th=At.td,x.fn.extend({text:function(e){return x.access(this,function(e){return e===t?x.text(this):this.empty().append((this[0]&&this[0].ownerDocument||a).createTextNode(e))},null,e,arguments.length)},append:function(){return this.domManip(arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Lt(this,e);t.appendChild(e)}})},prepend:function(){return this.domManip(arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Lt(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},remove:function(e,t){var n,r=e?x.filter(e,this):this,i=0;for(;null!=(n=r[i]);i++)t||1!==n.nodeType||x.cleanData(Ft(n)),n.parentNode&&(t&&x.contains(n.ownerDocument,n)&&_t(Ft(n,"script")),n.parentNode.removeChild(n));return this},empty:function(){var e,t=0;for(;null!=(e=this[t]);t++){1===e.nodeType&&x.cleanData(Ft(e,!1));while(e.firstChild)e.removeChild(e.firstChild);e.options&&x.nodeName(e,"select")&&(e.options.length=0)}return this},clone:function(e,t){return e=null==e?!1:e,t=null==t?e:t,this.map(function(){return x.clone(this,e,t)})},html:function(e){return x.access(this,function(e){var n=this[0]||{},r=0,i=this.length;if(e===t)return 1===n.nodeType?n.innerHTML.replace(gt,""):t;if(!("string"!=typeof e||Tt.test(e)||!x.support.htmlSerialize&&mt.test(e)||!x.support.leadingWhitespace&&yt.test(e)||At[(bt.exec(e)||["",""])[1].toLowerCase()])){e=e.replace(vt,"<$1>");try{for(;i>r;r++)n=this[r]||{},1===n.nodeType&&(x.cleanData(Ft(n,!1)),n.innerHTML=e);n=0}catch(o){}}n&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=x.map(this,function(e){return[e.nextSibling,e.parentNode]}),t=0;return this.domManip(arguments,function(n){var r=e[t++],i=e[t++];i&&(r&&r.parentNode!==i&&(r=this.nextSibling),x(this).remove(),i.insertBefore(n,r))},!0),t?this:this.remove()},detach:function(e){return this.remove(e,!0)},domManip:function(e,t,n){e=d.apply([],e);var r,i,o,a,s,l,u=0,c=this.length,p=this,f=c-1,h=e[0],g=x.isFunction(h);if(g||!(1>=c||"string"!=typeof h||x.support.checkClone)&&Nt.test(h))return this.each(function(r){var i=p.eq(r);g&&(e[0]=h.call(this,r,i.html())),i.domManip(e,t,n)});if(c&&(l=x.buildFragment(e,this[0].ownerDocument,!1,!n&&this),r=l.firstChild,1===l.childNodes.length&&(l=r),r)){for(a=x.map(Ft(l,"script"),Ht),o=a.length;c>u;u++)i=l,u!==f&&(i=x.clone(i,!0,!0),o&&x.merge(a,Ft(i,"script"))),t.call(this[u],i,u);if(o)for(s=a[a.length-1].ownerDocument,x.map(a,qt),u=0;o>u;u++)i=a[u],kt.test(i.type||"")&&!x._data(i,"globalEval")&&x.contains(s,i)&&(i.src?x._evalUrl(i.src):x.globalEval((i.text||i.textContent||i.innerHTML||"").replace(St,"")));l=r=null}return this}});function Lt(e,t){return x.nodeName(e,"table")&&x.nodeName(1===t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function Ht(e){return e.type=(null!==x.find.attr(e,"type"))+"/"+e.type,e}function qt(e){var t=Et.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function _t(e,t){var n,r=0;for(;null!=(n=e[r]);r++)x._data(n,"globalEval",!t||x._data(t[r],"globalEval"))}function Mt(e,t){if(1===t.nodeType&&x.hasData(e)){var n,r,i,o=x._data(e),a=x._data(t,o),s=o.events;if(s){delete a.handle,a.events={};for(n in s)for(r=0,i=s[n].length;i>r;r++)x.event.add(t,n,s[n][r])}a.data&&(a.data=x.extend({},a.data))}}function Ot(e,t){var n,r,i;if(1===t.nodeType){if(n=t.nodeName.toLowerCase(),!x.support.noCloneEvent&&t[x.expando]){i=x._data(t);for(r in i.events)x.removeEvent(t,r,i.handle);t.removeAttribute(x.expando)}"script"===n&&t.text!==e.text?(Ht(t).text=e.text,qt(t)):"object"===n?(t.parentNode&&(t.outerHTML=e.outerHTML),x.support.html5Clone&&e.innerHTML&&!x.trim(t.innerHTML)&&(t.innerHTML=e.innerHTML)):"input"===n&&Ct.test(e.type)?(t.defaultChecked=t.checked=e.checked,t.value!==e.value&&(t.value=e.value)):"option"===n?t.defaultSelected=t.selected=e.defaultSelected:("input"===n||"textarea"===n)&&(t.defaultValue=e.defaultValue)}}x.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){x.fn[e]=function(e){var n,r=0,i=[],o=x(e),a=o.length-1;for(;a>=r;r++)n=r===a?this:this.clone(!0),x(o[r])[t](n),h.apply(i,n.get());return this.pushStack(i)}});function Ft(e,n){var r,o,a=0,s=typeof e.getElementsByTagName!==i?e.getElementsByTagName(n||"*"):typeof e.querySelectorAll!==i?e.querySelectorAll(n||"*"):t;if(!s)for(s=[],r=e.childNodes||e;null!=(o=r[a]);a++)!n||x.nodeName(o,n)?s.push(o):x.merge(s,Ft(o,n));return n===t||n&&x.nodeName(e,n)?x.merge([e],s):s}function Bt(e){Ct.test(e.type)&&(e.defaultChecked=e.checked)}x.extend({clone:function(e,t,n){var r,i,o,a,s,l=x.contains(e.ownerDocument,e);if(x.support.html5Clone||x.isXMLDoc(e)||!mt.test("<"+e.nodeName+">")?o=e.cloneNode(!0):(Dt.innerHTML=e.outerHTML,Dt.removeChild(o=Dt.firstChild)),!(x.support.noCloneEvent&&x.support.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||x.isXMLDoc(e)))for(r=Ft(o),s=Ft(e),a=0;null!=(i=s[a]);++a)r[a]&&Ot(i,r[a]);if(t)if(n)for(s=s||Ft(e),r=r||Ft(o),a=0;null!=(i=s[a]);a++)Mt(i,r[a]);else Mt(e,o);return r=Ft(o,"script"),r.length>0&&_t(r,!l&&Ft(e,"script")),r=s=i=null,o},buildFragment:function(e,t,n,r){var i,o,a,s,l,u,c,p=e.length,f=dt(t),d=[],h=0;for(;p>h;h++)if(o=e[h],o||0===o)if("object"===x.type(o))x.merge(d,o.nodeType?[o]:o);else if(wt.test(o)){s=s||f.appendChild(t.createElement("div")),l=(bt.exec(o)||["",""])[1].toLowerCase(),c=At[l]||At._default,s.innerHTML=c[1]+o.replace(vt,"<$1>")+c[2],i=c[0];while(i--)s=s.lastChild;if(!x.support.leadingWhitespace&&yt.test(o)&&d.push(t.createTextNode(yt.exec(o)[0])),!x.support.tbody){o="table"!==l||xt.test(o)?""!==c[1]||xt.test(o)?0:s:s.firstChild,i=o&&o.childNodes.length;while(i--)x.nodeName(u=o.childNodes[i],"tbody")&&!u.childNodes.length&&o.removeChild(u)}x.merge(d,s.childNodes),s.textContent="";while(s.firstChild)s.removeChild(s.firstChild);s=f.lastChild}else d.push(t.createTextNode(o));s&&f.removeChild(s),x.support.appendChecked||x.grep(Ft(d,"input"),Bt),h=0;while(o=d[h++])if((!r||-1===x.inArray(o,r))&&(a=x.contains(o.ownerDocument,o),s=Ft(f.appendChild(o),"script"),a&&_t(s),n)){i=0;while(o=s[i++])kt.test(o.type||"")&&n.push(o)}return s=null,f},cleanData:function(e,t){var n,r,o,a,s=0,l=x.expando,u=x.cache,c=x.support.deleteExpando,f=x.event.special;for(;null!=(n=e[s]);s++)if((t||x.acceptData(n))&&(o=n[l],a=o&&u[o])){if(a.events)for(r in a.events)f[r]?x.event.remove(n,r):x.removeEvent(n,r,a.handle); u[o]&&(delete u[o],c?delete n[l]:typeof n.removeAttribute!==i?n.removeAttribute(l):n[l]=null,p.push(o))}},_evalUrl:function(e){return x.ajax({url:e,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})}}),x.fn.extend({wrapAll:function(e){if(x.isFunction(e))return this.each(function(t){x(this).wrapAll(e.call(this,t))});if(this[0]){var t=x(e,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){var e=this;while(e.firstChild&&1===e.firstChild.nodeType)e=e.firstChild;return e}).append(this)}return this},wrapInner:function(e){return x.isFunction(e)?this.each(function(t){x(this).wrapInner(e.call(this,t))}):this.each(function(){var t=x(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=x.isFunction(e);return this.each(function(n){x(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){x.nodeName(this,"body")||x(this).replaceWith(this.childNodes)}).end()}});var Pt,Rt,Wt,$t=/alpha\([^)]*\)/i,It=/opacity\s*=\s*([^)]*)/,zt=/^(top|right|bottom|left)$/,Xt=/^(none|table(?!-c[ea]).+)/,Ut=/^margin/,Vt=RegExp("^("+w+")(.*)$","i"),Yt=RegExp("^("+w+")(?!px)[a-z%]+$","i"),Jt=RegExp("^([+-])=("+w+")","i"),Gt={BODY:"block"},Qt={position:"absolute",visibility:"hidden",display:"block"},Kt={letterSpacing:0,fontWeight:400},Zt=["Top","Right","Bottom","Left"],en=["Webkit","O","Moz","ms"];function tn(e,t){if(t in e)return t;var n=t.charAt(0).toUpperCase()+t.slice(1),r=t,i=en.length;while(i--)if(t=en[i]+n,t in e)return t;return r}function nn(e,t){return e=t||e,"none"===x.css(e,"display")||!x.contains(e.ownerDocument,e)}function rn(e,t){var n,r,i,o=[],a=0,s=e.length;for(;s>a;a++)r=e[a],r.style&&(o[a]=x._data(r,"olddisplay"),n=r.style.display,t?(o[a]||"none"!==n||(r.style.display=""),""===r.style.display&&nn(r)&&(o[a]=x._data(r,"olddisplay",ln(r.nodeName)))):o[a]||(i=nn(r),(n&&"none"!==n||!i)&&x._data(r,"olddisplay",i?n:x.css(r,"display"))));for(a=0;s>a;a++)r=e[a],r.style&&(t&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=t?o[a]||"":"none"));return e}x.fn.extend({css:function(e,n){return x.access(this,function(e,n,r){var i,o,a={},s=0;if(x.isArray(n)){for(o=Rt(e),i=n.length;i>s;s++)a[n[s]]=x.css(e,n[s],!1,o);return a}return r!==t?x.style(e,n,r):x.css(e,n)},e,n,arguments.length>1)},show:function(){return rn(this,!0)},hide:function(){return rn(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){nn(this)?x(this).show():x(this).hide()})}}),x.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Wt(e,"opacity");return""===n?"1":n}}}},cssNumber:{columnCount:!0,fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":x.support.cssFloat?"cssFloat":"styleFloat"},style:function(e,n,r,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var o,a,s,l=x.camelCase(n),u=e.style;if(n=x.cssProps[l]||(x.cssProps[l]=tn(u,l)),s=x.cssHooks[n]||x.cssHooks[l],r===t)return s&&"get"in s&&(o=s.get(e,!1,i))!==t?o:u[n];if(a=typeof r,"string"===a&&(o=Jt.exec(r))&&(r=(o[1]+1)*o[2]+parseFloat(x.css(e,n)),a="number"),!(null==r||"number"===a&&isNaN(r)||("number"!==a||x.cssNumber[l]||(r+="px"),x.support.clearCloneStyle||""!==r||0!==n.indexOf("background")||(u[n]="inherit"),s&&"set"in s&&(r=s.set(e,r,i))===t)))try{u[n]=r}catch(c){}}},css:function(e,n,r,i){var o,a,s,l=x.camelCase(n);return n=x.cssProps[l]||(x.cssProps[l]=tn(e.style,l)),s=x.cssHooks[n]||x.cssHooks[l],s&&"get"in s&&(a=s.get(e,!0,r)),a===t&&(a=Wt(e,n,i)),"normal"===a&&n in Kt&&(a=Kt[n]),""===r||r?(o=parseFloat(a),r===!0||x.isNumeric(o)?o||0:a):a}}),e.getComputedStyle?(Rt=function(t){return e.getComputedStyle(t,null)},Wt=function(e,n,r){var i,o,a,s=r||Rt(e),l=s?s.getPropertyValue(n)||s[n]:t,u=e.style;return s&&(""!==l||x.contains(e.ownerDocument,e)||(l=x.style(e,n)),Yt.test(l)&&Ut.test(n)&&(i=u.width,o=u.minWidth,a=u.maxWidth,u.minWidth=u.maxWidth=u.width=l,l=s.width,u.width=i,u.minWidth=o,u.maxWidth=a)),l}):a.documentElement.currentStyle&&(Rt=function(e){return e.currentStyle},Wt=function(e,n,r){var i,o,a,s=r||Rt(e),l=s?s[n]:t,u=e.style;return null==l&&u&&u[n]&&(l=u[n]),Yt.test(l)&&!zt.test(n)&&(i=u.left,o=e.runtimeStyle,a=o&&o.left,a&&(o.left=e.currentStyle.left),u.left="fontSize"===n?"1em":l,l=u.pixelLeft+"px",u.left=i,a&&(o.left=a)),""===l?"auto":l});function on(e,t,n){var r=Vt.exec(t);return r?Math.max(0,r[1]-(n||0))+(r[2]||"px"):t}function an(e,t,n,r,i){var o=n===(r?"border":"content")?4:"width"===t?1:0,a=0;for(;4>o;o+=2)"margin"===n&&(a+=x.css(e,n+Zt[o],!0,i)),r?("content"===n&&(a-=x.css(e,"padding"+Zt[o],!0,i)),"margin"!==n&&(a-=x.css(e,"border"+Zt[o]+"Width",!0,i))):(a+=x.css(e,"padding"+Zt[o],!0,i),"padding"!==n&&(a+=x.css(e,"border"+Zt[o]+"Width",!0,i)));return a}function sn(e,t,n){var r=!0,i="width"===t?e.offsetWidth:e.offsetHeight,o=Rt(e),a=x.support.boxSizing&&"border-box"===x.css(e,"boxSizing",!1,o);if(0>=i||null==i){if(i=Wt(e,t,o),(0>i||null==i)&&(i=e.style[t]),Yt.test(i))return i;r=a&&(x.support.boxSizingReliable||i===e.style[t]),i=parseFloat(i)||0}return i+an(e,t,n||(a?"border":"content"),r,o)+"px"}function ln(e){var t=a,n=Gt[e];return n||(n=un(e,t),"none"!==n&&n||(Pt=(Pt||x("'; } if(o.autoclose && !o.button && o.msg){MsgBoxHtml+='
This window is in '+o.autoclose+' Automatically shut down in seconds.
';} MsgBoxHtml+='
'; if (o.button){ MsgBoxHtml+='
'; MsgBoxHtml+='
'; MsgBoxHtml+='
'; MsgBoxHtml+='
'; $(o.button).each(function(i){ MsgBoxHtml+=''; }) MsgBoxHtml+='
'; MsgBoxHtml+='
'; } if(o.autoclose && !o.button && o.msg){ MsgBoxHtml+='
'; MsgBoxHtml+='
'; MsgBoxHtml+='
'; MsgBoxHtml+='
'; MsgBoxHtml+=''; MsgBoxHtml+='
'; MsgBoxHtml+='
'; } MsgBoxHtml+=''; $("#"+o.id).remove(); $("body").append(MsgBoxHtml); var _this=$("#"+o.id); $(_this).css({"top":"-10000px"}); //如果要使用CSS3动画,就不能使用$.hide().否则,将失去动画效果,因此,这里将对话框移动到浏览器不可见处. var _this_load=$(_this).find("img,iframe").hide(); //处理图片和框架载入问题. if (_this_load.length>0){ $.Loading(true,false); var _this_tempnum=0; $(_this_load).error(function(e){ _this_tempnum++; if (_this_tempnum==_this_load.length){ $(_this).MsgBoxInit(o); console.log("Error loading"+_this_tempnum); } }) $(_this_load).load(function(e){ _this_tempnum++; if (_this_tempnum==_this_load.length){ $(_this).MsgBoxInit(o); //console.log("正常加载"+_this_tempnum); } }) //防止长久不加载. //window.setTimeout(function(){ // if (_this_tempnum!=_this_load.length){ // $(_this).MsgBoxInit(o); // _this_tempnum=_this_load.length+1; // console.log("延时加载"+_this_tempnum); // } //},3000*_this_load.length) }else{ $(_this).MsgBoxInit(o); } }, MsgTips:function (options){ //MsgTips插件的MsgTipsDefaults var MsgBoxDefaults = { id:"AlertTips_", title:"System prompt", autoclosetime:30 }; var o = $.extend(true,{}, MsgBoxDefaults, options); var Id=o.id+($(".MsgTips").size()+1); var Top='',Msg='',Button='',Music=''; Top=o.logo?'':'
'+o.title+'
'; Button=''+o.autoclosetime+'Automatically shut down in seconds close stop'; if (o.button){ $(o.button).each(function(i){ Button+=''+o.button[i].name+''; }) }; Msg='
'+o.msg+'
'; var MsgTips='
'+Top+Button+Msg+'
'; $("body").append(MsgTips); if (o.music){$.playVoice(o.music,"music");} var _this=$("#"+Id); //事件绑定 if (o.button){ $(o.button).each(function(i){ if ($.isFunction(o.button[i].fun)){ $(_this).find("[hx_jq=MsgTips_button]:eq("+i+")").click(function(){ o.button[i].fun(_this); }) } }) }; $(_this).animate({"bottom":"0px"},600); $(_this).find("#close").click(function(){ $(_this).animate({"bottom":"-200px"},600,function(){ $(_this).remove(); }); }); var Times=window.setInterval(function(){ o.autoclosetime--; $(_this).find("#times").html(o.autoclosetime); if (o.autoclosetime==0){ $(_this).find("#close").trigger("click"); clearInterval(Times); }; },1000); $(_this).find("#stop").click(function(){ clearInterval(Times); $(this).remove(); $(_this).find("#timesmsg").remove(); }); }, ck:function(name, value, options) { //cookies if (typeof value != 'undefined') { options = options || {}; if (value === null) {value = '';options.expires = -1;}; var expires = ''; if (options.expires && (typeof options.expires == 'number' || options.expires.toUTCString)) { var date; if (typeof options.expires == 'number') { date = new Date();date.setTime(date.getTime() + (options.expires * 24 * 60 * 60 * 1000)); } else { date = options.expires; }; expires = '; expires=' + date.toUTCString(); }; var path = options.path ? '; path=' + (options.path) : '; path=/',domain = options.domain ? '; domain=' + (options.domain) : '',secure = options.secure ? '; secure': ''; document.cookie = [name, '=', encodeURIComponent(value), expires, path, domain, secure].join(''); } else { var cookieValue = null; if (document.cookie && document.cookie != '') { var cookies = document.cookie.split(';'); for (var i = 0; i < cookies.length; i++) { var cookie = jQuery.trim(cookies[i]); if (cookie.substring(0, name.length + 1) == (name + '=')) { cookieValue = decodeURIComponent(cookie.substring(name.length + 1)); break; } } }; return cookieValue; } }, isEmail:function(str){ //检查是否为Email if((str.indexOf("@")==-1)||(str.indexOf(".")==-1)){ return false; }else{ return true; } }, e:function(str){ //简化编码 return escape(str); }, request:function(act){ //获取地址参数 //act=act.toLowerCase(); var url=location.search;//.toLowerCase() var str=false; if (url.indexOf("?")!=-1){ var strq=url.substr(1); var strs=strq.split("&"); for(var i=0;i"+callback+"",autoclose:false}); } } }, dataType:dataType, type:type } return $.ajax($.extend(true,{}, AjaxDefaults, options)); }, PJ:function(url,data1,callback,dataType,loadingmsg){ //alert(1); //Post Json if (!url){$.MsgBox({msg:"请求地址不能为空",autoclose:false});}; if (!dataType){dataType="json"}; var options={ url:url, data:data1, dataType:dataType, beforeSend:function(){$.Loading(true,loadingmsg);}, complete:function(XHR, TS){$.Loading(false,loadingmsg);}, success:function(data){ //alert(data); //调用一个AJAX全局处理函数.该函数在成功返回后触发.可做数据通用处理.例如:检查登陆状态. if (!$.AjaxApp(data)){ return; } if (!data){ //alert(data1.Action); $.MsgBox({msg:"未获取到任何可用信息!",autoclose:false}) }else{ if ($.isFunction(callback)){ //alert(3); callback(data); }else{ $.MsgBox({msg:"回调函数有误:"+callback+"",autoclose:false}); } } } } return $.ajax($.extend(true,{}, AjaxDefaults, options)); }, JQP:function(url,data,callback,dataType,loadingmsg){ //Post Json if (!url){$.MsgBox({msg:"请求地址不能为空",autoclose:false});}; if (!dataType){dataType="jsonp"}; var options={ async:false, url:url+"&callback=?", type: "GET", dataType:"jsonp", jsonp: 'jsoncallback', data:data, timeout: 5000, contentType: "application/jsonp; charset=utf-8", beforeSend:function(){$.Loading(true,loadingmsg);}, complete:function(XHR, TS){$.Loading(false,loadingmsg);}, success:function(data){ //alert(1); //调用一个AJAX全局处理函数.该函数在成功返回后触发.可做数据通用处理.例如:检查登陆状态. if (!$.AjaxApp(data)){ return; } if (!data){ $.MsgBox({msg:"未获取到任何可用信息!",autoclose:false}) }else{ if ($.isFunction(callback)){ //alert(data); callback(data); }else{ $.MsgBox({msg:"回调函数有误:"+callback+"",autoclose:false}); } } } } return $.ajax($.extend(true,{}, AjaxDefaults, options)); }, Ajax:function(options){ //重新定义AJAX $.ajax($.extend(true,{}, AjaxDefaults, options)); }, ToColor:function(options,str){ var color=""; switch(options){ case "0":color="#3a6dd8";break; //红色 case "1":color="#f87c25";break; //橘黄 case "2":color="#ff0000";break; //蓝色 case "3":color="#542fb0";break; //彩色 case "4":color="#5dd887";break; //绿色 case "5":color="#ffa60b";break; //橙色 case "6":color="#b459d4";break; //紫色 case "7":color="#a87242";break; //棕色 } return color==""?str:""+str+""; }, JsonToStr:function(json){ var JsonArr=new Array(); $(json).each(function(i){ var value=json[i]?json[i]:json; var arrtemp=new Array(); $.each(value,function(n,v){ if (isNaN(v)){ arrtemp.push('\"'+n+'\":\['+v+'\]'); }else{ arrtemp.push('\"'+n+'\":'+v+''); } }) JsonArr.push('{'+arrtemp.join(',')+'}') }) return '['+JsonArr.join(',')+']'; }, playVoice:function(src, domId){ var dom=$('#'+domId); if(!$.support.leadingWhitespace){ //IE678使用这个 if (dom.length){ dom[0].src=src }else{ $('',{src:src, id:domId}).appendTo('body'); } }else{ //否则使用HTML5 if (dom.length){ dom[0].src=src;dom[0].play(); }else{ $('
',head: ['','','','','','','','','','','','','','','','','','','','
'],space : '
',days: ['','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','',''],months: ['','','','','','','','','','','','','','','','','','','','']}, defaults = {flat: false,starts: 1,prev: '◀',next: '▶',lastSel: false,mode: 'single',view: 'days',calendars: 1,format: 'Y-m-d',position: 'bottom',eventName: 'click',onRender: function(){return {};},onChange: function(){return true;},onShow: function(){return true;},onBeforeShow: function(){return true;},onHide: function(){return true;},locale: {days: ["S", "1", "2", "3", "4", "5", "6", "S"],daysShort: ["S", "1", "2", "3", "4", "5", "6", "S"],daysMin: ["S", "1", "2", "3", "4", "5", "6", "S"],months: ["01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12"],monthsShort: ["01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12"],weekMin: 'W'}}, fill = function(el) {var options = $(el).data('datepicker');var cal = $(el);var currentCal = Math.floor(options.calendars/2), date, data, dow, month, cnt = 0, week, days, indic, indic2, html, tblCal;cal.find('td>table tbody').remove();for (var i = 0; i < options.calendars; i++) {date = new Date(options.current);date.addMonths(-currentCal + i);tblCal = cal.find('table').eq(i+1);switch (tblCal[0].className) {case 'datepickerViewDays':dow = formatDate(date, 'B, Y');break;case 'datepickerViewMonths':dow = date.getFullYear();break;case 'datepickerViewYears':dow = (date.getFullYear()-6) + ' - ' + (date.getFullYear()+5);break;};tblCal.find('thead tr:first th:eq(1) span').text(dow);dow = date.getFullYear()-6;data = {data: [],className: 'datepickerYears'};for ( var j = 0; j < 12; j++) {data.data.push(dow + j);};html = tmpl(tpl.months.join(''), data);date.setDate(1);data = {weeks:[], test: 10};month = date.getMonth();var dow = (date.getDay() - options.starts) % 7;date.addDays(-(dow + (dow < 0 ? 7 : 0)));week = -1;cnt = 0;while (cnt < 42) {indic = parseInt(cnt/7,10);indic2 = cnt%7;if (!data.weeks[indic]) {week = date.getWeekNumber();data.weeks[indic] = {week: week,days: []};};data.weeks[indic].days[indic2] = {text: date.getDate(),classname: []};if (month != date.getMonth()) {data.weeks[indic].days[indic2].classname.push('datepickerNotInMonth');};if (date.getDay() == 0) {data.weeks[indic].days[indic2].classname.push('datepickerSunday');};if (date.getDay() == 6) {data.weeks[indic].days[indic2].classname.push('datepickerSaturday');};var fromUser = options.onRender(date);var val = date.valueOf();if (fromUser.selected || options.date == val || $.inArray(val, options.date) > -1 || (options.mode == 'range' && val >= options.date[0] && val <= options.date[1])) {data.weeks[indic].days[indic2].classname.push('datepickerSelected');};if (fromUser.disabled) {data.weeks[indic].days[indic2].classname.push('datepickerDisabled');};if (fromUser.className) {data.weeks[indic].days[indic2].classname.push(fromUser.className);};data.weeks[indic].days[indic2].classname = data.weeks[indic].days[indic2].classname.join(' ');cnt++;date.addDays(1);};html = tmpl(tpl.days.join(''), data) + html;data = {data: options.locale.monthsShort,className: 'datepickerMonths'};html = tmpl(tpl.months.join(''), data) + html;tblCal.append(html);}}, parseDate = function (date, format) {if (date.constructor == Date) {return new Date(date);};var parts = date.split(/\W+/);var against = format.split(/\W+/), d, m, y, h, min, now = new Date();for (var i = 0; i < parts.length; i++) {switch (against[i]) {case 'd':case 'e':d = parseInt(parts[i],10);break;case 'm':m = parseInt(parts[i], 10)-1;break;case 'Y':case 'y':y = parseInt(parts[i], 10);y += y > 100 ? 0 : (y < 29 ? 2000 : 1900);break;case 'H':case 'I':case 'k':case 'l':h = parseInt(parts[i], 10);break;case 'P':case 'p':if (/pm/i.test(parts[i]) && h < 12) {h += 12;} else if (/am/i.test(parts[i]) && h >= 12) {h -= 12;};break;case 'M':min = parseInt(parts[i], 10);break;}};return new Date(y === undefined ? now.getFullYear() : y,m === undefined ? now.getMonth() : m,d === undefined ? now.getDate() : d,h === undefined ? now.getHours() : h,min === undefined ? now.getMinutes() : min,0);}, formatDate = function(date, format) {var m = date.getMonth();var d = date.getDate();var y = date.getFullYear();var wn = date.getWeekNumber();var w = date.getDay();var s = {};var hr = date.getHours();var pm = (hr >= 12);var ir = (pm) ? (hr - 12) : hr;var dy = date.getDayOfYear();if (ir == 0) {ir = 12;};var min = date.getMinutes();var sec = date.getSeconds();var parts = format.split(''), part;for ( var i = 0; i < parts.length; i++ ) {part = parts[i];switch (parts[i]) {case 'a':part = date.getDayName();break;case 'A':part = date.getDayName(true);break;case 'b':part = date.getMonthName();break;case 'B':part = date.getMonthName(true);break;case 'C':part = 1 + Math.floor(y / 100);break;case 'd':part = (d < 10) ? ("0" + d) : d;break;case 'e':part = d;break;case 'H':part = (hr < 10) ? ("0" + hr) : hr;break;case 'I':part = (ir < 10) ? ("0" + ir) : ir;break;case 'j':part = (dy < 100) ? ((dy < 10) ? ("00" + dy) : ("0" + dy)) : dy;break;case 'k':part = hr;break;case 'l':part = ir;break;case 'm':part = (m < 9) ? ("0" + (1+m)) : (1+m);break;case 'M':part = (min < 10) ? ("0" + min) : min;break;case 'p':case 'P':part = pm ? "PM" : "AM";break;case 's':part = Math.floor(date.getTime() / 1000);break;case 'S':part = (sec < 10) ? ("0" + sec) : sec;break;case 'u':part = w + 1;break;case 'w':part = w;break;case 'y':part = ('' + y).substr(2, 2);break;case 'Y':part = y;break;};parts[i] = part;};return parts.join('');}, extendDate = function(options) {if (Date.prototype.tempDate) {return;};Date.prototype.tempDate = null;Date.prototype.months = options.months;Date.prototype.monthsShort = options.monthsShort;Date.prototype.days = options.days;Date.prototype.daysShort = options.daysShort;Date.prototype.getMonthName = function(fullName) {return this[fullName ? 'months' : 'monthsShort'][this.getMonth()];};Date.prototype.getDayName = function(fullName) {return this[fullName ? 'days' : 'daysShort'][this.getDay()];};Date.prototype.addDays = function (n) {this.setDate(this.getDate() + n);this.tempDate = this.getDate();};Date.prototype.addMonths = function (n) {if (this.tempDate == null) {this.tempDate = this.getDate();};this.setDate(1);this.setMonth(this.getMonth() + n);this.setDate(Math.min(this.tempDate, this.getMaxDays()));};Date.prototype.addYears = function (n) {if (this.tempDate == null) {this.tempDate = this.getDate();};this.setDate(1);this.setFullYear(this.getFullYear() + n);this.setDate(Math.min(this.tempDate, this.getMaxDays()));};Date.prototype.getMaxDays = function() {var tmpDate = new Date(Date.parse(this)),d = 28, m;m = tmpDate.getMonth();d = 28;while (tmpDate.getMonth() == m) {d ++;tmpDate.setDate(d);};return d - 1;};Date.prototype.getFirstDay = function() {var tmpDate = new Date(Date.parse(this));tmpDate.setDate(1);return tmpDate.getDay();};Date.prototype.getWeekNumber = function() {var tempDate = new Date(this);tempDate.setDate(tempDate.getDate() - (tempDate.getDay() + 6) % 7 + 3);var dms = tempDate.valueOf();tempDate.setMonth(0);tempDate.setDate(4);return Math.round((dms - tempDate.valueOf()) / (604800000)) + 1;};Date.prototype.getDayOfYear = function() {var now = new Date(this.getFullYear(), this.getMonth(), this.getDate(), 0, 0, 0);var then = new Date(this.getFullYear(), 0, 0, 0, 0, 0);var time = now - then;return Math.floor(time / 24*60*60*1000);};}, layout = function (el) {var options = $(el).data('datepicker');var cal = $('#' + options.id);if (!options.extraHeight) {var divs = $(el).find('div');options.extraHeight = divs.get(0).offsetHeight + divs.get(1).offsetHeight;options.extraWidth = divs.get(2).offsetWidth + divs.get(3).offsetWidth;};var tbl = cal.find('table:first').get(0);var width = tbl.offsetWidth;var height = tbl.offsetHeight;cal.css({width: width + options.extraWidth + 'px',height: height + options.extraHeight + 'px'}).find('div.datepickerContainer').css({width: width + 'px',height: height + 'px'});}, click = function(ev) {if ($(ev.target).is('span')) {ev.target = ev.target.parentNode;};var el = $(ev.target);if (el.is('a')) {ev.target.blur();if (el.hasClass('datepickerDisabled')) {return false;};var options = $(this).data('datepicker');var parentEl = el.parent();var tblEl = parentEl.parent().parent().parent();var tblIndex = $('table', this).index(tblEl.get(0)) - 1;var tmp = new Date(options.current);var changed = false;var fillIt = false;if (parentEl.is('th')) {if (parentEl.hasClass('datepickerWeek') && options.mode == 'range' && !parentEl.next().hasClass('datepickerDisabled')) {var val = parseInt(parentEl.next().text(), 10);tmp.addMonths(tblIndex - Math.floor(options.calendars/2));if (parentEl.next().hasClass('datepickerNotInMonth')) {tmp.addMonths(val > 15 ? -1 : 1);};tmp.setDate(val);options.date[0] = (tmp.setHours(0,0,0,0)).valueOf();tmp.setHours(23,59,59,0);tmp.addDays(6);options.date[1] = tmp.valueOf();fillIt = true;changed = true;options.lastSel = false;} else if (parentEl.hasClass('datepickerMonth')) {tmp.addMonths(tblIndex - Math.floor(options.calendars/2));switch (tblEl.get(0).className) {case 'datepickerViewDays':tblEl.get(0).className = 'datepickerViewMonths';el.find('span').text(tmp.getFullYear());break;case 'datepickerViewMonths':tblEl.get(0).className = 'datepickerViewYears';el.find('span').text((tmp.getFullYear()-6) + ' - ' + (tmp.getFullYear()+5));break;case 'datepickerViewYears':tblEl.get(0).className = 'datepickerViewDays';el.find('span').text(formatDate(tmp, 'B, Y'));break;}} else if (parentEl.parent().parent().is('thead')) {switch (tblEl.get(0).className) {case 'datepickerViewDays':options.current.addMonths(parentEl.hasClass('datepickerGoPrev') ? -1 : 1);break;case 'datepickerViewMonths':options.current.addYears(parentEl.hasClass('datepickerGoPrev') ? -1 : 1);break;case 'datepickerViewYears':options.current.addYears(parentEl.hasClass('datepickerGoPrev') ? -12 : 12);break;};fillIt = true;}} else if (parentEl.is('td') && !parentEl.hasClass('datepickerDisabled')) {switch (tblEl.get(0).className) {case 'datepickerViewMonths':options.current.setMonth(tblEl.find('tbody.datepickerMonths td').index(parentEl));options.current.setFullYear(parseInt(tblEl.find('thead th.datepickerMonth span').text(), 10));options.current.addMonths(Math.floor(options.calendars/2) - tblIndex);tblEl.get(0).className = 'datepickerViewDays';break;case 'datepickerViewYears':options.current.setFullYear(parseInt(el.text(), 10));tblEl.get(0).className = 'datepickerViewMonths';break;default:var val = parseInt(el.text(), 10);tmp.addMonths(tblIndex - Math.floor(options.calendars/2));if (parentEl.hasClass('datepickerNotInMonth')) {tmp.addMonths(val > 15 ? -1 : 1);};tmp.setDate(val);switch (options.mode) {case 'multiple':val = (tmp.setHours(0,0,0,0)).valueOf();if ($.inArray(val, options.date) > -1) {$.each(options.date, function(nr, dat){if (dat == val) {options.date.splice(nr,1);return false;}});} else {options.date.push(val);};break;case 'range':if (!options.lastSel) {options.date[0] = (tmp.setHours(0,0,0,0)).valueOf();};val = (tmp.setHours(23,59,59,0)).valueOf();if (val < options.date[0]) {options.date[1] = options.date[0] + 86399000;options.date[0] = val - 86399000;} else {options.date[1] = val;};options.lastSel = !options.lastSel;break;default:options.date = tmp.valueOf();break;};break;};fillIt = true;changed = true;};if (fillIt) {fill(this);};if (changed) {options.onChange.apply(this, prepareDate(options));}}return false;}, prepareDate = function (options) {var tmp;if (options.mode == 'single') {tmp = new Date(options.date);return [formatDate(tmp, options.format), tmp, options.el];} else {tmp = [[],[], options.el];$.each(options.date, function(nr, val){var date = new Date(val);tmp[0].push(formatDate(date, options.format));tmp[1].push(date);});return tmp;}}, getViewport = function () {var m = document.compatMode == 'CSS1Compat';return {l : window.pageXOffset || (m ? document.documentElement.scrollLeft : document.body.scrollLeft),t : window.pageYOffset || (m ? document.documentElement.scrollTop : document.body.scrollTop),w : window.innerWidth || (m ? document.documentElement.clientWidth : document.body.clientWidth),h : window.innerHeight || (m ? document.documentElement.clientHeight : document.body.clientHeight)};}, isChildOf = function(parentEl, el, container) {if (parentEl == el) {return true;};if (parentEl.contains) {return parentEl.contains(el);};if ( parentEl.compareDocumentPosition ) {return !!(parentEl.compareDocumentPosition(el) & 16);};var prEl = el.parentNode;while(prEl && prEl != container) {if (prEl == parentEl)return true;prEl = prEl.parentNode;}return false;}, show = function (ev) {var cal = $('#' + $(this).data('datepickerId'));if (!cal.is(':visible')) {var calEl = cal.get(0);fill(calEl);var options = cal.data('datepicker');options.onBeforeShow.apply(this, [cal.get(0)]);var pos = $(this).offset();var viewPort = getViewport();var top = pos.top;var left = pos.left;cal.css({visibility: 'hidden',display: 'block'});layout(calEl);switch (options.position){case 'top':top -= calEl.offsetHeight;break;case 'left':left -= calEl.offsetWidth;break;case 'right':left += this.offsetWidth;break;case 'bottom':top += this.offsetHeight;break;};if (top + calEl.offsetHeight > viewPort.t + viewPort.h) {top = pos.top - calEl.offsetHeight;};if (top < viewPort.t) {top = pos.top + this.offsetHeight + calEl.offsetHeight;};if (left + calEl.offsetWidth > viewPort.l + viewPort.w) {left = pos.left - calEl.offsetWidth;};if (left < viewPort.l) {left = pos.left + this.offsetWidth};cal.css({visibility: 'visible',display: 'block',top: top + 'px',left: left + 'px'});if (options.onShow.apply(this, [cal.get(0)]) != false) {cal.show();};$(document).bind('mousedown', {cal: cal, trigger: this}, hide);}return false;}, hide = function (ev) {if (ev.target != ev.data.trigger && !isChildOf(ev.data.cal.get(0), ev.target, ev.data.cal.get(0))) {if (ev.data.cal.data('datepicker').onHide.apply(this, [ev.data.cal.get(0)]) != false) {ev.data.cal.hide();}$(document).unbind('mousedown', hide);}}; return { init: function(options){options = $.extend({}, defaults, options||{});extendDate(options.locale);options.calendars = Math.max(1, parseInt(options.calendars,10)||1);options.mode = /single|multiple|range/.test(options.mode) ? options.mode : 'single';return this.each(function(){if (!$(this).data('datepicker')) {options.el = this;if (options.date.constructor == String) {options.date = parseDate(options.date, options.format);options.date.setHours(0,0,0,0);};if (options.mode != 'single') {if (options.date.constructor != Array) {options.date = [options.date.valueOf()];if (options.mode == 'range') {options.date.push(((new Date(options.date[0])).setHours(23,59,59,0)).valueOf());}} else {for (var i = 0; i < options.date.length; i++) {options.date[i] = (parseDate(options.date[i], options.format).setHours(0,0,0,0)).valueOf();};if (options.mode == 'range') {options.date[1] = ((new Date(options.date[1])).setHours(23,59,59,0)).valueOf();}}} else {options.date = options.date.valueOf();};if (!options.current) {options.current = new Date();} else {options.current = parseDate(options.current, options.format);};options.current.setDate(1);options.current.setHours(0,0,0,0);var id = 'datepicker_' + parseInt(Math.random() * 1000), cnt;options.id = id;$(this).data('datepickerId', options.id);var cal = $(tpl.wrapper).attr('id', id).bind('click', click).data('datepicker', options);if (options.className) {cal.addClass(options.className);};var html = '';for (var i = 0; i < options.calendars; i++) {cnt = options.starts;if (i > 0) {html += tpl.space;};html += tmpl(tpl.head.join(''), {week: options.locale.weekMin,prev: options.prev,next: options.next,day1: options.locale.daysMin[(cnt++)%7],day2: options.locale.daysMin[(cnt++)%7],day3: options.locale.daysMin[(cnt++)%7],day4: options.locale.daysMin[(cnt++)%7],day5: options.locale.daysMin[(cnt++)%7],day6: options.locale.daysMin[(cnt++)%7],day7: options.locale.daysMin[(cnt++)%7]});};cal.find('tr:first').append(html).find('table').addClass(views[options.view]);fill(cal.get(0));if (options.flat) {cal.appendTo(this).show().css('position', 'relative');layout(cal.get(0));} else {cal.appendTo(document.body);$(this).bind(options.eventName, show);}}});}, showPicker: function() {return this.each( function () {if ($(this).data('datepickerId')) {show.apply(this);}});}, hidePicker: function() {return this.each( function () {if ($(this).data('datepickerId')) {$('#' + $(this).data('datepickerId')).hide();}});}, setDate: function(date, shiftTo){return this.each(function(){if ($(this).data('datepickerId')) {var cal = $('#' + $(this).data('datepickerId'));var options = cal.data('datepicker');options.date = date;if (options.date.constructor == String) {options.date = parseDate(options.date, options.format);options.date.setHours(0,0,0,0);};if (options.mode != 'single') {if (options.date.constructor != Array) {options.date = [options.date.valueOf()];if (options.mode == 'range') {options.date.push(((new Date(options.date[0])).setHours(23,59,59,0)).valueOf());}} else {for (var i = 0; i < options.date.length; i++) {options.date[i] = (parseDate(options.date[i], options.format).setHours(0,0,0,0)).valueOf();};if (options.mode == 'range') {options.date[1] = ((new Date(options.date[1])).setHours(23,59,59,0)).valueOf();}}} else {options.date = options.date.valueOf();};if (shiftTo) {options.current = new Date (options.mode != 'single' ? options.date[0] : options.date);};fill(cal.get(0));}});}, getDate: function(formated) {if (this.size() > 0) {return prepareDate($('#' + $(this).data('datepickerId')).data('datepicker'))[formated ? 0 : 1];}}, clear: function(){return this.each(function(){if ($(this).data('datepickerId')) {var cal = $('#' + $(this).data('datepickerId'));var options = cal.data('datepicker');if (options.mode != 'single') {options.date = [];fill(cal.get(0));}}});}, fixLayout: function(){return this.each(function(){if ($(this).data('datepickerId')) {var cal = $('#' + $(this).data('datepickerId'));var options = cal.data('datepicker');if (options.flat) {layout(cal.get(0));}}});} }; }(); $.fn.extend({DatePicker: DatePicker.init,DatePickerHide: DatePicker.hidePicker,DatePickerShow: DatePicker.showPicker,DatePickerSetDate: DatePicker.setDate,DatePickerGetDate: DatePicker.getDate,DatePickerClear: DatePicker.clear,DatePickerLayout: DatePicker.fixLayout}); })(jQuery); (function(){ var cache = {}; this.tmpl = function tmpl(str, data){ var fn = !/\W/.test(str) ?cache[str] = cache[str] ||tmpl(document.getElementById(str).innerHTML) : new Function("obj","var p=[],print=function(){p.push.apply(p,arguments);};" + "with(obj){p.push('" +str.replace(/[\r\t\n]/g, " ").split(")[^\t]*)'/g, "$1\r").replace(/\t=(.*?)hx>/g, "',$1,'").split("\t").join("');").split("hx>").join("p.push('").split("\r").join("\\'")+ "');};return p.join('');"); return data ? fn( data ) : fn; }; })(); //滑动条插件 // Title: tigra slider control // Description: See the demo at url // URL: http://www.softcomplex.com/products/tigra_slider_control/ // Version: 1.1 (commented source) // Date: 08/28/2012 // Tech. Support: http://www.softcomplex.com/forum/ // Notes: This script is free. Visit official site for further details. var f_sliderSaveTouch = function (e_event) { if (!e_event || !e_event.touches) return; e_event.preventDefault(); var e_touch = e_event.touches[0] || e_event.changedTouches[0]; window.n_mouseX = e_touch.pageX;window.n_mouseY = e_touch.pageY; } var f_sliderMouseDown = function (n_id, e_event) { window.n_activeSliderId = n_id;f_sliderSaveTouch(e_event); var o_slider = A_SLIDERS[n_id]; window.n_mouseOffset = o_slider.b_vertical ? window.n_mouseY - o_slider.n_sliderHeight / 2 - o_slider.f_getPos(1, 1) - parseInt(o_slider.e_slider.style.top) : window.n_mouseX - o_slider.n_sliderWidth / 2 - o_slider.f_getPos(0, 1) - parseInt(o_slider.e_slider.style.left);return false; } var f_sliderMouseUp = function (e_event, b_watching) {if (window.n_activeSliderId != null) {var o_slider = window.A_SLIDERS[window.n_activeSliderId];o_slider.f_setValue(o_slider.n_minValue + (o_slider.b_vertical ? (o_slider.n_pathLength - parseInt(o_slider.e_slider.style.top) + o_slider.n_pathTop) : (parseInt(o_slider.e_slider.style.left) - o_slider.n_pathLeft)) / o_slider.n_pix2value);if (b_watching){return};window.n_activeSliderId = null;window.n_mouseOffset = null;}if (window.f_savedMouseUp){return window.f_savedMouseUp(e_event);}} var f_sliderMouseMove = function (e_event) {if (!e_event && window.event) e_event = window.event;if (e_event) {window.n_mouseX = e_event.clientX;window.n_mouseY = e_event.clientY ;};if (window.n_activeSliderId != null) {f_sliderSaveTouch(e_event);var o_slider = window.A_SLIDERS[window.n_activeSliderId];var n_pxOffset;if (o_slider.b_vertical) {var n_sliderTop = window.n_mouseY - o_slider.n_sliderHeight / 2 - o_slider.f_getPos(1, 1) - window.n_mouseOffset;if (n_sliderTop < o_slider.n_pathTop){n_sliderTop = o_slider.n_pathTop;};var n_pxMax = o_slider.n_pathTop + o_slider.n_pathLength;if (n_sliderTop > n_pxMax){n_sliderTop = n_pxMax;};o_slider.e_slider.style.top = n_sliderTop + 'px';n_pxOffset = o_slider.n_pathLength - n_sliderTop + o_slider.n_pathTop;}else {var n_sliderLeft = window.n_mouseX - o_slider.n_sliderWidth / 2 - o_slider.f_getPos(0, 1) - window.n_mouseOffset;if (n_sliderLeft < o_slider.n_pathLeft){n_sliderLeft = o_slider.n_pathLeft;};var n_pxMax = o_slider.n_pathLeft + o_slider.n_pathLength;if (n_sliderLeft > n_pxMax){n_sliderLeft = n_pxMax;};o_slider.e_slider.style.left = n_sliderLeft + 'px';n_pxOffset = n_sliderLeft - o_slider.n_pathLeft;};if (o_slider.b_watch){f_sliderMouseUp(e_event, 1);};return false;}if (window.f_savedMouseMove){return window.f_savedMouseMove(e_event);};} var get_element = document.all ? function (s_id) { return document.all[s_id] }:function (s_id) { return document.getElementById(s_id) }; var slider = function (a_init, a_tpl) { this.f_setValue = function(n_value) { if (n_value == null){n_value = this.n_value == null ? this.n_minValue : this.n_value;}; if (isNaN(n_value)){return false;}; if (this.n_step){n_value = Math.round((n_value - this.n_minValue) / this.n_step) * this.n_step + this.n_minValue;}; if (n_value % 1){n_value = Math.round(n_value * 1e5) / 1e5;}; if (n_value < this.n_minValue){n_value = this.n_minValue;}; if (n_value > this.n_maxValue){n_value = this.n_maxValue;}; this.n_value = n_value; if (this.b_vertical){ this.e_slider.style.top = (this.n_pathTop + this.n_pathLength - Math.round((n_value - this.n_minValue) * this.n_pix2value)) + 'px'; }else{ this.e_slider.style.left = (this.n_pathLeft + Math.round((n_value - this.n_minValue) * this.n_pix2value)) + 'px'; }; var s_value_1=Number(n_value).toFixed(this.n_xs); var max=(this.n_maxValue-this.n_minValue)/this.n_step*this.n_rl; var min=(n_value-this.n_minValue)/this.n_step*this.n_rl; var s_value_2=(max-min).toFixed(2); if ($.isFunction(this.fun)){this.fun(s_value_1,Number(s_value_2).toFixed(2))} if (s_value_1>Number(this.maxbonusmode[this.tempmoneylocation])&&Number(this.maxbonusmode[this.tempmoneylocation])>0){ //限制最大投注模式 s_value_1=Number(this.maxbonusmode[this.tempmoneylocation]).toFixed(this.n_xs); var as=this.amountstep[this.tempmoneylocation].split("="); s_value_2=Number(this.n_maxValue-s_value_1)/Number(as[0])*Number(HX.Game.G_P_RebateStep); } $(this.s_value_1).html(s_value_1); if ((s_value_20) || (s_value_2>Number(HX.Game.G_P_MaximumBonusRebate)&&Number(HX.Game.G_P_MaximumBonusRebate)>0)){ }else{ $(this.s_value_2).html(Number(s_value_2).toFixed(2)+"%"); HX.User_R_2=Number(s_value_2).toFixed(2); HX.RebateValue=Number(s_value_2).toFixed(2); HX.n_value=Number(n_value).toFixed(2); //根据,当前返点计算奖金

实得奖金

var html=''; var _this=this; $(_this.money).each(function(i){ var names=_this.amountstep[i].split("="); if (names.length==2){ var bonus=Number(_this.money[i]); var amountstep=Number(names[0]); var name=names[1]; var money=CalculatingBonuses({bonus:bonus,amountstep:amountstep}) html+='

'+name+'='+money+'

'; }else{ //if(!amountstep) amountstep=this.n_maxValue; //alert(amountstep); var money=CalculatingBonuses({bonus:_this.money[i],amountstep:_this.amountstep[i]}) html+='

奖金='+money+'

'; } }) $(this.s_value_1).attr("title",html).poshytip("update", html); } }; this.f_getPos = function f_sliderGetPos (b_vertical, b_base) {var n_pos = 0,s_coord = (b_vertical ? 'Top' : 'Left');var o_elem = o_elem2 = b_base ? this.e_base : this.e_slider;while (o_elem) {n_pos += o_elem["offset" + s_coord];o_elem = o_elem.offsetParent;};o_elem = o_elem2;var n_offset;while (o_elem.tagName != "BODY") {n_offset = o_elem["scroll" + s_coord];if (n_offset){n_pos -= o_elem["scroll" + s_coord];};o_elem = o_elem.parentNode;};return n_pos;}; if (!window.A_SLIDERS){window.A_SLIDERS = [];}; var n_id = this.n_id = window.A_SLIDERS.length; window.A_SLIDERS[n_id] = this; var s_key; if (a_tpl){for (s_key in a_tpl){this[s_key] = a_tpl[s_key];}}; for (s_key in a_init){this[s_key] = a_init[s_key];}; this.n_pix2value = this.n_pathLength / (this.n_maxValue - this.n_minValue); if (this.n_value == null){this.n_value = this.n_minValue;}; if (a_init.off){ $(this.s_obj).html('
'); }else{ $(this.s_obj).html('
').find('#sl' + this.n_id + 'slider').click(function(){$.MsgBox({msg:"对不起,该玩法不允许调节"})}) } this.e_base = get_element('sl' + n_id + 'base'); this.e_slider = get_element('sl' + n_id + 'slider'); if (document.addEventListener) {this.e_slider.addEventListener("touchstart", function (e_event) { f_sliderMouseDown(n_id, e_event) }, false);document.addEventListener("touchmove", f_sliderMouseMove, false);document.addEventListener("touchend", f_sliderMouseUp, false);}; if (!window.f_savedMouseMove && document.onmousemove != f_sliderMouseMove) {window.f_savedMouseMove = document.onmousemove;document.onmousemove = f_sliderMouseMove;}; if (!window.f_savedMouseUp && document.onmouseup != f_sliderMouseUp) {window.f_savedMouseUp = document.onmouseup;document.onmouseup = f_sliderMouseUp;}; this.f_setValue(null); this.e_slider.style.visibility = 'visible'; var obj=this; $(this.s_obj).find(".l").click(function(){obj.f_setValue(eval(HX.n_value-obj.n_step));}); $(this.s_obj).find(".r").click(function(){obj.f_setValue(eval(HX.n_value+obj.n_step));}); $(this.s_value_1).poshytip('destroy').poshytip({ showTimeout:0, className: 'tip-twitter', alignTo: 'target', alignX: 'center', alignY: 'top', offsetY:10 }); } function CalculatingBonuses(opt){ var $bonus=Number(opt.bonus); //基础奖金 var $rebatestep=Number(HX.Game.G_P_RebateStep); //返点步值 var $amountstep=opt.amountstep; //奖金步值 var $n_b1=(HX.UserInfo.U_RebateA); //取用户返点 var $n_b2=Number(HX.RebateValue); //当前返点 var $maxmoney=$bonus+($n_b1/$rebatestep*$amountstep); //最大奖金 var $bonus=Number($maxmoney-($n_b2/$rebatestep*$amountstep)); //当前奖金 if ($bonus>Number(HX.Game.G_P_MaxBonusMode)&&Number(HX.Game.G_P_MaxBonusMode)>0){$bonus=Number(HX.Game.G_P_MaxBonusMode);} //限制最大奖金模式 return Number($bonus).toFixed(2); } /** * SWFObject v1.5: Flash Player detection and embed - http://blog.deconcept.com/swfobject/ * * SWFObject is (c) 2007 Geoff Stearns and is released under the MIT License: * http://www.opensource.org/licenses/mit-license.php * */ if(typeof deconcept=="undefined"){var deconcept=new Object();}if(typeof deconcept.util=="undefined"){deconcept.util=new Object();}if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object();}deconcept.SWFObject=function(_1,id,w,h,_5,c,_7,_8,_9,_a){if(!document.getElementById){return;}this.DETECT_KEY=_a?_a:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(_1){this.setAttribute("swf",_1);}if(id){this.setAttribute("id",id);}if(w){this.setAttribute("width",w);}if(h){this.setAttribute("height",h);}if(_5){this.setAttribute("version",new deconcept.PlayerVersion(_5.toString().split(".")));}this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){deconcept.SWFObject.doPrepUnload=true;}if(c){this.addParam("bgcolor",c);}var q=_7?_7:"high";this.addParam("quality",q);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var _c=(_8)?_8:window.location;this.setAttribute("xiRedirectUrl",_c);this.setAttribute("redirectUrl","");if(_9){this.setAttribute("redirectUrl",_9);}};deconcept.SWFObject.prototype={useExpressInstall:function(_d){this.xiSWFPath=!_d?"expressinstall.swf":_d;this.setAttribute("useExpressInstall",true);},setAttribute:function(_e,_f){this.attributes[_e]=_f;},getAttribute:function(_10){return this.attributes[_10];},addParam:function(_11,_12){this.params[_11]=_12;},getParams:function(){return this.params;},addVariable:function(_13,_14){this.variables[_13]=_14;},getVariable:function(_15){return this.variables[_15];},getVariables:function(){return this.variables;},getVariablePairs:function(){var _16=new Array();var key;var _18=this.getVariables();for(key in _18){_16[_16.length]=key+"="+_18[key];}return _16;},getSWFHTML:function(){var _19="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath);}_19="0){_19+="flashvars=\""+_1c+"\"";}_19+="/>";}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath);}_19="";_19+="";var _1d=this.getParams();for(var key in _1d){_19+="";}var _1f=this.getVariablePairs().join("&");if(_1f.length>0){_19+="";}_19+="";}return _19;},write:function(_20){if(this.getAttribute("useExpressInstall")){var _21=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(_21)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title);}}if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){var n=(typeof _20=="string")?document.getElementById(_20):_20;n.innerHTML=this.getSWFHTML();return true;}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"));}}return false;}};deconcept.SWFObjectUtil.getPlayerVersion=function(){var _23=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var x=navigator.plugins["Shockwave Flash"];if(x&&x.description){_23=new deconcept.PlayerVersion(x.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."));}}else{if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){var axo=1;var _26=3;while(axo){try{_26++;axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+_26);_23=new deconcept.PlayerVersion([_26,0,0]);}catch(e){axo=null;}}}else{try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");}catch(e){try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");_23=new deconcept.PlayerVersion([6,0,21]);axo.AllowScriptAccess="always";}catch(e){if(_23.major==6){return _23;}}try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");}catch(e){}}if(axo!=null){_23=new deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));}}}return _23;};deconcept.PlayerVersion=function(_29){this.major=_29[0]!=null?parseInt(_29[0]):0;this.minor=_29[1]!=null?parseInt(_29[1]):0;this.rev=_29[2]!=null?parseInt(_29[2]):0;};deconcept.PlayerVersion.prototype.versionIsValid=function(fv){if(this.majorfv.major){return true;}if(this.minorfv.minor){return true;}if(this.rev=0;i--){_2f[i].style.display="none";for(var x in _2f[i]){if(typeof _2f[i][x]=="function"){_2f[i][x]=function(){};}}}};if(deconcept.SWFObject.doPrepUnload){if(!deconcept.unloadSet){deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",deconcept.SWFObjectUtil.cleanupSWFs);};window.attachEvent("onbeforeunload",deconcept.SWFObjectUtil.prepUnload);deconcept.unloadSet=true;}}if(!document.getElementById&&document.all){document.getElementById=function(id){return document.all[id];};}var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject; var version = deconcept.SWFObjectUtil.getPlayerVersion(); if (document.getElementById && version["major"] > 0) { //if(version['major']>9 ){ // alert('恭喜您,您的flashPlayer没有问题!'); //}else if((version['major']<9) || (version['major'] == 9 && version['minor']==0 && version['rev']<124) ){ // alert("你的flash播放器版本 "+ version['major'] +"."+ version['minor'] +"."+ version['rev'] +"."); //} }else{ //$.MsgBox({msg:"对不起,你没有安装flashplayer或flashplayer已损坏,请重新安装.",button:[{name:"重新下载",fun:function (p){window.open("/DownLoad/flashplayerPlugin.zip");$(p).RemoveMsgBox();}}]}); } $(document).keydown(function(e){ var key = e.keyCode?e.keyCode:e.charCode; if (key==116){ e.stopPropagation(); e.preventDefault(); e.cancelBubble=true; e.returnValue=false; location.href=location.href; } }) ;$.AjaxApp=function(data){ if (data&&data.error&&data.error=="login"){ if ($("#login").length==0){ $.MsgBox({ id:"login", msg:data.msg, close:false, zoom:false, button:[ { name:"confirm",fun:function(p,t){$(p).RemoveMsgBox();} } ] }) } return false } return true } var HX={ bgarr:[ {tiny:"/UpLoadFile/background/1-x.jpg",big:"/UpLoadFile/background/1.jpg"}, {tiny:"/UpLoadFile/background/2-x.jpg",big:"/UpLoadFile/background/2.jpg"}, {tiny:"/UpLoadFile/background/3-x.jpg",big:"/UpLoadFile/background/3.jpg"}, {tiny:"/UpLoadFile/background/4-x.jpg",big:"/UpLoadFile/background/4.jpg"}, {tiny:"/UpLoadFile/background/5-x.jpg",big:"/UpLoadFile/background/5.jpg"}, {tiny:"/UpLoadFile/background/6-x.jpg",big:"/UpLoadFile/background/6.jpg"}, {tiny:"/UpLoadFile/background/7-x.jpg",big:"/UpLoadFile/background/7.jpg"}, {tiny:"/UpLoadFile/background/8-x.jpg",big:"/UpLoadFile/background/8.jpg"}, {tiny:"/UpLoadFile/background/9-x.jpg",big:"/UpLoadFile/background/9.jpg"}, {tiny:"/UpLoadFile/background/10-x.jpg",big:"/UpLoadFile/background/10.jpg"}, {tiny:"/UpLoadFile/background/11-x.jpg",big:"/UpLoadFile/background/11.jpg"}, {tiny:"/UpLoadFile/background/12-x.jpg",big:"/UpLoadFile/background/12.jpg"}, {tiny:"/UpLoadFile/background/13-x.jpg",big:"/UpLoadFile/background/13.jpg"}, {tiny:"/UpLoadFile/background/14-x.jpg",big:"/UpLoadFile/background/14.jpg"}, {tiny:"/UpLoadFile/background/15-x.jpg",big:"/UpLoadFile/background/15.jpg"}, {tiny:"/UpLoadFile/background/16-x.jpg",big:"/UpLoadFile/background/16.jpg"} ], IsInitOK:false, Action:null, W_H:null, W_W:null, M_W:962, L_W:246, R_W:null, ContType:null, AU:"?", GC:null, System:null, UserInfo:null, Bank:null, User_R_1:null, User_R_2:null, UserName:null, UserId:null, UserType:null, IsCG:null, GPN:null, GPR:null, ClassList:null, Rules:null, Code:null, BuyCodeData:[], ChaseArr:[], ThenIssue:null, Rebate:0, PageNum:10, SetClassListOption:null, UpCheckUserLogin:null, ChatBetuptime:"", WebMsg:null, RegId:null, BuyLog:null, Rebate:null, IsChaseCode:0, Domain:window.location.port==""?document.domain:document.domain+":"+window.location.port, Then_Status:0, Then_Issue:"", Last_Issue:"", Is_Win:false, isMusic:true, ActPage:"HomeBox", U_MusicTips:"1", BuyStatus:0, AmountMode:$.ck("AmountMode")?$.ck("AmountMode"):1, AmountModeList:[1,0.1,0.01], Multiple:$.ck("Multiple")&&$.ck("Multiple")>0?$.ck("Multiple"):1, IsInitUserInfo:false, Init:function(){ HX.IsInitOK=false; //window.onerror=function(){return true;} //window.ClearEvent=function(){event.cancelBubble=false;var sSrcTagName=event.srcElement.tagName;return (sSrcTagName=="TEXTAREA" || sSrcTagName=="INPUT" || sSrcTagName=="SELECT");}//.toLowerCase() //window.ClearKey=function(){event.cancelBubble=false;var iKeyCode=event.keyCode;return !(iKeyCode==78 && event.ctrlKey);} //with (window.document){oncontextmenu=onselectstart=ondragstart=window.ClearEvent;onkeydown=window.ClearKey;} //加载系统配置 //alert("1"); $.PJ(HX.AU,{Model:"System",Action:"GetSystemConfig"},function(g){ //alert(33); //-------------------------------------------------------------------------------------------------------------------------------------------------------------------------- HX.HX_Game_Name=HX.GC.HX_Game_Name;//游戏名称 var HX_Game_Name_Arr=new Array; $(HX.HX_Game_Name).each(function(i){HX_Game_Name_Arr[i]=HX.HX_Game_Name[i].G_N_Title+"="+HX.HX_Game_Name[i].G_N_Id;}); HX.Game_Name_List=HX_Game_Name_Arr.join("|")//创建游戏名称列表 //-------------------------------------------------------------------------------------------------------------------------------------------------------------------------- HX.HX_Game_Type=HX.GC.HX_Game_Type;//游戏分类 var HX_Game_Type_Arr=new Array; $(HX.HX_Game_Type).each(function(i){HX_Game_Type_Arr[i]=HX.HX_Game_Type[i].G_T_Title+"="+HX.HX_Game_Type[i].G_T_Id;}); HX.Game_Type_List=HX_Game_Type_Arr.join("|")//创建游戏分类列表 //-------------------------------------------------------------------------------------------------------------------------------------------------------------------------- HX.HX_Game_Play=HX.GC.HX_Game_Play;//游戏玩法 HX.HX_Game_Image=HX.GC.HX_Game_Image;//游戏玩法 HX.HX_Game_Rules=HX.GC.HX_Game_Rules;//游戏规则 HX.Hx_Game_Codeinfo=HX.GC.Hx_Game_Codeinfo;//号码分类 HX.HX_System_Config=HX.GC.HX_System_Config[0];//系统配置 //-------------------------------------------------------------------------------------------------------------------------------------------------------------------------- HX.HX_Bank=HX.GC.HX_Bank;//银行配置 var HX_Bank_Arr=new Array; $(HX.HX_Bank).each(function(i){HX_Bank_Arr[i]=HX.HX_Bank[i].B_Name+"="+HX.HX_Bank[i].B_Id;}); HX.Bank_List=HX_Bank_Arr.join("|")//创建银行列表 //-------------------------------------------------------------------------------------------------------------------------------------------------------------------------- HX.HX_Bank_Config=HX.GC.HX_Bank_Config;//银行配置 var HX_Bank_Config_Arr=new Array; $(HX.HX_Bank_Config).each(function(i){HX_Bank_Config_Arr[i]=HX.HX_Bank_Config[i].B_C_Name+"="+HX.HX_Bank_Config[i].B_C_Id;}); HX.Bank_Config_List=HX_Bank_Config_Arr.join("|")//创建银行列表 //-------------------------------------------------------------------------------------------------------------------------------------------------------------------------- HX.HX_Recharge=HX.GC.HX_Recharge;//充值银行配置 var HX_Recharge_Arr=new Array; $(HX.HX_Recharge).each(function(i){HX_Recharge_Arr[i]=HX.GetBankName(HX.HX_Recharge[i].R_B_BankId)+"="+HX.HX_Recharge[i].R_B_BankId;}); HX.Recharge_List=HX_Recharge_Arr.join("|")//创建充值银行列表 //-------------------------------------------------------------------------------------------------------------------------------------------------------------------------- HX.HX_Withdrawals=HX.GC.HX_Withdrawals;//取款银行配置 var HX_Withdrawals_Arr=new Array; $(HX.HX_Withdrawals).each(function(i){HX_Withdrawals_Arr[i]=HX.GetBankName(HX.HX_Withdrawals[i].W_B_BankId)+"="+HX.HX_Withdrawals[i].W_B_BankId;}); HX.Withdrawals_List=HX_Withdrawals_Arr.join("|")//创建取款银行列表 //-------------------------------------------------------------------------------------------------------------------------------------------------------------------------- HX.HX_ThirdParty=HX.GC.HX_ThirdParty;//第三方支付平台数据 var HX_ThirdParty_Arr=new Array; $(HX.HX_ThirdParty).each(function(i){HX_ThirdParty_Arr[i]=HX.HX_ThirdParty[i].T_P_Name+"="+HX.HX_ThirdParty[i].T_P_Id;}); HX.ThirdParty_List=HX_ThirdParty_Arr.join("|")//创建第三方支付平台数据 //-------------------------------------------------------------------------------------------------------------------------------------------------------------------------- HX.HX_Member_Benefits=HX.GC.HX_Member_Benefits;//会员特权 var HX_Member_Benefits_Arr=new Array; $(HX.HX_Member_Benefits).each(function(i){HX_Member_Benefits_Arr[i]=HX.GetBankName(HX.HX_Member_Benefits[i].W_B_BankId)+"="+HX.HX_Member_Benefits[i].W_B_BankId;}); HX.Member_Benefits_List=HX_Member_Benefits_Arr.join("|")//会员特权 //-------------------------------------------------------------------------------------------------------------------------------------------------------------------------- HX.HX_Web_Msg=HX.GC.HX_Web_Msg;//网站公告 HX.HX_DefUser=HX.GC.HX_DefUser;//默认用户 HX.Click(); if($(".Announcement").length > 0){ //alert(123); $(HX.HX_Web_Msg).each(function(i){$(".down_box_notice_content ul").append("
  • "+HX.HX_Web_Msg[i].W_M_Title+""+HX.HX_Web_Msg[i].W_M_AddTime+"
  • ")}) //$("[hx_jq=Announcement]").Scroll({line:1,speed:500,timer:1000*10}); $(HX.HX_Web_Msg).each(function(i){$(".Announcement ul").append("
  • "+HX.HX_Web_Msg[i].W_M_AddTime+"

    "+HX.HX_Web_Msg[i].W_M_Title+"

    "+HX.HX_Web_Msg[i].W_M_Content+"

  • ")}) } if($("#scroll_div").length>0) { if(HX.scroll_MyMar == null) { var speed=30; var scroll_begin = document.getElementById("scroll_begin"); var scroll_end = document.getElementById("scroll_end"); var scroll_div = document.getElementById("scroll_div"); scroll_end.innerHTML=scroll_begin.innerHTML; function scroll_Marquee(){ if(scroll_end.offsetWidth-scroll_div.scrollLeft<=0) scroll_div.scrollLeft-=scroll_begin.offsetWidth; else scroll_div.scrollLeft++; } HX.scroll_MyMar=setInterval(scroll_Marquee,speed); scroll_div.onmouseover=function() {clearInterval(HX.scroll_MyMar);} scroll_div.onmouseout=function() {HX.scroll_MyMar=setInterval(scroll_Marquee,speed);} } } if($(".notice_webmsg").length > 0){ $(HX.HX_Web_Msg).each(function(i){$(".notice_webmsg ul").append("
  • "+HX.HX_Web_Msg[i].W_M_AddTime+"

    "+HX.HX_Web_Msg[i].W_M_Title+"

    "+HX.HX_Web_Msg[i].W_M_Content+"

  • ")}) if($(".notice_webmsg_hot").length>0 && $(".notice_webmsg ul li").length > 0) { $(".notice_webmsg_hot").html($(".notice_webmsg ul li:first").html()); $("#gonggaopop").show(); } } //-------------------------------------------------------------------------------------------------------------------------------------------------------------------------- HX.HX_Web_Memo=HX.GC.HX_Web_Memo;//玩法说明 if($(".notice_webmemo").length > 0){ $(HX.HX_Web_Memo).each(function(i){$(".notice_webmemo ul").append("
  • "+HX.HX_Web_Memo[i].W_M_AddTime+"

    "+HX.HX_Web_Memo[i].W_M_Title+"

    "+HX.HX_Web_Memo[i].W_M_Content+"

  • ")}) } //-------------------------------------------------------------------------------------------------------------------------------------------------------------------------- window.document.title=HX.HX_System_Config.S_C_Title;//平台标题 if(HX.HX_System_Config.S_C_OnlineServiceUrl!="") { //$("#Onlinelinks").attr("href", "http://wpa.qq.com/msgrd?V=3&uin="+HX.HX_System_Config.S_C_OnlineServiceUrl+"&Site=1&Menu=yes"); $("#Onlinelinks").attr("target", "_blank"); } if($("[hx_jq='SkinRhome_game']").length>0) { var html=''; $(HX.HX_Game_Name).each(function(i){//初始化游戏玩法 if(i==99)//只显示11笔 { return false; } html+='
    '+ '
    '+ ' '+ '
    '+ ' '+ ' '+HX.HX_Game_Name[i].G_N_GameInterval+''+ '
    '; }) $("[hx_jq='SkinRhome_game']").html(html); } if($("[hx_jq='SkinR_game']").length>0) { var MastGameTID = ""; if($("[MastGameTID]").length>0) { MastGameTID = $("[MastGameTID]").attr("MastGameTID"); } var html=''; $(HX.HX_Game_Name).each(function(i){//初始化游戏玩法 if(MastGameTID == "" || HX.HX_Game_Name[i].G_N_Id==MastGameTID) { html+='
    '+ ' '+ '
    '+HX.HX_Game_Name[i].G_N_Title+'
    '+ ' '+ '
    '; } else { html+='
    '+ ' '+ ' '+ ' '+ '
    '; } }) $("[hx_jq='SkinR_game']").html(html); } if($("[hx_jq='WebNewsHome']").length>0) { $.PJ(HX.AU,{Model:"User",Action:"WebNews_List"},function(s){ var html='
      '; $(s.msg).each(function(i){ var data=s.msg[i]; html+='
    • '; html+=' 【 '+(data.W_M_Type=="1"?"技巧":"新闻")+' 】'; html+=' '+data.W_M_Title+''; html+='
    • '; }) html+='
    '; $("[hx_jq='WebNewsHome']").html(html); }); } if($("[hx_jq='WebMsgHome']").length>0){ var html='
      '; $(HX.HX_Web_Msg).each(function(i){ var data=HX.HX_Web_Msg[i]; html+='
    • '; html+='['+HX.HX_Web_Msg[i].W_M_AddTime+'] '; html+=''+HX.HX_Web_Msg[i].W_M_Title+''; html+=''; html+='
    • '; }) html+='
    '; $("[hx_jq='WebMsgHome']").html(html); } //事件绑定 HX.GetUserInfo(); //倍数 $("[hx_jq=Multiple]").val(HX.Multiple); //元角分模式 if(HX.HX_System_Config.S_C_AmountModeOFF==0){ $("[hx_jq=AmountMode]").hide(); } else{ $("[hx_jq=AmountMode]").show(); } //$(".slide").yxMobileSlider({during:3000}); if($(".content").length>0) indexdata(); //------------------------------------------------------------------------------------------------------------------------------------------------------------------------- },"script","Loading runtime environment, please wait"); }, GetMemberMemu:function(){//获取会员中心菜单 var usercenter = ""; usercenter += '
    '; usercenter += '
    '; usercenter += '
    '; usercenter += '

    Member Center

    '; usercenter += '
      '; usercenter += '
    • '; usercenter += ' '; usercenter += ' personal data'; usercenter += '
    • '; usercenter += '
    • '; usercenter += ' '; usercenter += ' Password'; usercenter += '
    • '; usercenter += '
    • '; usercenter += ' '; usercenter += ' Bank setup'; usercenter += '
    • '; usercenter += '
    • '; usercenter += ' '; usercenter += ' Betting Log'; usercenter += '
    • '; usercenter += '
    • '; usercenter += ' '; usercenter += ' Withdrawal Log'; usercenter += '
    • '; usercenter += '
    • '; usercenter += ' '; usercenter += ' Capital details'; usercenter += '
    • '; usercenter += '
    • '; usercenter += ' '; usercenter += ' Profit statistics'; usercenter += '
    • '; usercenter += '
    • '; usercenter += ' '; usercenter += ' system log'; usercenter += '
    • '; usercenter += '
    • '; usercenter += ' '; usercenter += ' Personality settings'; usercenter += '
    • '; usercenter += '
    '; usercenter += '
    '; usercenter += '
    '; usercenter += '
    '; usercenter += '
    '; return usercenter; }, GetMyTeamNemu:function(){//获取代理中心菜单 var usercenter = ""; usercenter += '
    '; usercenter += '
    '; usercenter += '
    '; usercenter += '

    代理中心

    '; usercenter += '
      '; usercenter += '
    • '; usercenter += ' '; usercenter += ' 我的团队'; usercenter += '
    • '; usercenter += '
    • '; usercenter += ' '; usercenter += ' 推广地址'; usercenter += '
    • '; usercenter += '
    • '; usercenter += ' '; usercenter += ' 团队投注'; usercenter += '
    • '; usercenter += '
    • '; usercenter += ' '; usercenter += ' 团队报表'; usercenter += '
    • '; usercenter += '
    • '; usercenter += ' '; usercenter += ' 推荐团队报表'; usercenter += '
    • '; usercenter += '
    • '; usercenter += ' '; usercenter += ' 即时注单'; usercenter += '
    • '; usercenter += '
    • '; usercenter += ' '; usercenter += ' 团队充值记录'; usercenter += '
    • '; usercenter += '
    • '; usercenter += ' '; usercenter += ' 团队提现记录'; usercenter += '
    • '; usercenter += '
    '; usercenter += '
    '; usercenter += '
    '; usercenter += '
    '; usercenter += '
    '; return usercenter; }, GetCodeInfoSX:function(c){// 获取号码的生肖属性 var rsx="无"; $(HX.Hx_Game_Codeinfo).each(function(i){ if(HX.Hx_Game_Codeinfo[i].G_C_Codeclass=="生肖"){ var codesArr=new Array(); codesArr=HX.Hx_Game_Codeinfo[i].G_C_Codes.split(","); for (n=0;n=0)){index=0;} $("body .background").fadeOut(1000,function(){$(this).remove();}); $("body").prepend("").find(".background").fadeIn(1000); $.ck("BackgroundSwitch",index); }, GetUserLevelPic:function(l){ var pic=""; var level=l?l:HX.UserInfo.U_Level; $(HX.HX_Member_Benefits).each(function(i){ if (level==HX.HX_Member_Benefits[i].M_B_Level){ pic=''+HX.HX_Member_Benefits[i].M_B_LevelName; return ; } }) return pic; }, GetGameInfo:function(gid){ var name=""; $(HX.HX_Game_Play).each(function(i){ if (gid==HX.HX_Game_Play[i].G_P_Id){ $(HX.HX_Game_Name).each(function(j){ if (HX.HX_Game_Play[i].G_P_NameId==HX.HX_Game_Name[j].G_N_Id){ name+=HX.HX_Game_Name[j].G_N_Title+" - "; } }) $(HX.HX_Game_Type).each(function(j){ if (HX.HX_Game_Play[i].G_P_TypeId==HX.HX_Game_Type[j].G_T_Id){ name+=HX.HX_Game_Type[j].G_T_Title+" - "; } }) name+=HX.HX_Game_Play[i].G_P_Name; } }) return name; }, GetGameId:function(gid){ var GameId=""; $(HX.HX_Game_Play).each(function(i){ if (gid==HX.HX_Game_Play[i].G_P_Id){ GameId = HX.HX_Game_Play[i].G_P_NameId; } }) return GameId; }, GetGameShort:function(gid){ var name=""; $(HX.HX_Game_Play).each(function(i){ if (gid==HX.HX_Game_Play[i].G_P_Id){ $(HX.HX_Game_Name).each(function(j){ if (HX.HX_Game_Play[i].G_P_NameId==HX.HX_Game_Name[j].G_N_Id){ name+=HX.HX_Game_Name[j].G_N_Title; } }) } }) return name; }, GetGameShortInfo:function(gid){ var name=""; $(HX.HX_Game_Play).each(function(i){ if (gid==HX.HX_Game_Play[i].G_P_Id){ $(HX.HX_Game_Type).each(function(j){ if (HX.HX_Game_Play[i].G_P_TypeId==HX.HX_Game_Type[j].G_T_Id){ name+=HX.HX_Game_Type[j].G_T_Title+" - "; } }) name+=HX.HX_Game_Play[i].G_P_Name; } }) return name; }, GetBankName:function(Bid){ var name=""; $(HX.HX_Bank_Config).each(function(i){ if (Bid==HX.HX_Bank_Config[i].B_C_Id){ name=HX.HX_Bank_Config[i].B_C_Name; return ; } }) return name; }, GetThirdPartyName:function(id){ var name=""; $(HX.HX_ThirdParty).each(function(i){ if (id==HX.HX_ThirdParty[i].T_P_Id){ name=HX.HX_ThirdParty[i].T_P_Name; return; } }) return name; }, GetBankInfo:function(Bid){ var info=""; $(HX.HX_Bank_Config).each(function(i){ if (Bid==HX.HX_Bank_Config[i].B_C_Id){ info=HX.HX_Bank_Config[i]; return ; } }) return info; }, GetOrderInfo:function(opt){ var T_D=opt.v $.PJ(HX.AU,{Model:"Game",Action:"GetOrderInfo",Oid:T_D["B_L_Order"],Uid:T_D["B_L_UserId"]},function(res){ var msg=''; var B_L_State var SplitSingle=''; var s=T_D["B_L_State"] B_L_State=s==1?"not been opened yet":s==2?"Win":s==3?"lost":s==4?"Opening":s==5?"Cancelled order":s==6?"Stopped":"unknown"; var yk=Number(T_D.B_L_WinMoney-T_D.B_L_Money).toFixed(2); if (yk>=0){ yk="$ "+yk+" $ (win)"; }else{ yk="$ "+yk+" $ (loss)"; } if (s==1||s==4||s==5||s==6|s==7){yk="$ 0.00 $"} msg+=''; msg+=''; msg+=''; msg+=''; msg+=''; msg+=''; msg+=''; msg+=''; msg+=''; msg+=''; msg+=''; msg+=''; msg+=''; msg+=''; msg+='
    '+yk+'
    '; $.MsgBox({ title:"Betting details - "+HX.GetGameInfo(T_D["B_L_Type"]), msg:msg, autoclose:false }) },"json","Please do not refresh the page. You are getting the lottery number......"); }, GetUserInfo:function(){ window.clearTimeout(HX.UpCheckUserLogin); $.PJ(HX.AU,{Model:"User",Action:"UserHasLoing"},function(s){ HX.U_MusicTips = 1; HX.ActPage = s.ActPage; //alert(HX.ActPage); if($("[hx_jq='Buy_Log_Online']").length>0) { var buy_log_online_html =""; buy_log_online_html += "
      " $(s.Buy_Log_Online).each(function(i){ var str=s.Buy_Log_Online[i]; buy_log_online_html += '
    • '+ ' Congratulations'+str.B_L_UserName+'
      at'+HX.GetGameInfo(str.B_L_Type)+'No'+str.B_L_Issue+',Win a prize'+str.B_L_WinMoney+'$.'+ '
    • '; }) buy_log_online_html += "
    " $("[hx_jq=Buy_Log_Online]").html(buy_log_online_html); if(HX.Buy_Log_timerID) { window.clearInterval(HX.Buy_Log_timerID); } if(s.Buy_Log_Online.length>10){ HX.Buy_Log_timerID = $("[hx_jq=Buy_Log_Online]").Scroll({speed:3000,timer:4000,line:1}); } } if (s.error == "unlogin"){ HX.UserInfo=HX.HX_DefUser; if($("#loginbox").length>0) { $("#loginbox").css('display','block'); $("#logined").css('display','none'); } if($("#landbox").length>0) { $("#landbox").css('display','flex'); $("#landed").css('display','none'); } } if (!s.error){ if($("#loginbox").length>0) { $("#loginbox").css('display','none'); $("#logined").css('display','block'); } if($("#landbox").length>0) { $("#landbox").css('display','none'); $("#landed").css('display','block'); } HX.UserInfo=s.userinfo; $("[hx_jq=nickname]").html(HX.UserInfo.U_Nickname); $("[hx_jq=username]").html(HX.UserInfo.U_UserName); $("[hx_jq=usermoney]").html("$"+HX.UserInfo.U_Money+" "); var adduser=HX.UserInfo.U_Type==2?"VIP":HX.UserInfo.U_Type==5?"总代理":HX.UserInfo.U_Type==4?"高级代理":"代理"; switch(HX.UserInfo.U_RebateA){ case "5.60": case "5.50":adduser+=" 特权";break; case "5.40":adduser+=" 主管";break; case "5.30":adduser+=" 线长";break; case "5.20":adduser+=" 总代";break; default :break; } $("[hx_jq=adduser]").html(adduser +" "+HX.UserInfo.U_RebateA+""); $("[hx_jq=viplevel]").html(HX.GetUserLevelPic()); $("[hx_jq=integral]").html(HX.UserInfo.U_Integral+" "); $("[hx_jq=exp]").html(HX.UserInfo.U_Exp+" "); $("[hx_jq=SuperiorAgent]").html(HX.UserInfo.U_Agent==0?"VIP":HX.UserInfo.U_Agent); $("[hx_jq=FreezingOfFunds]").html("$:"+HX.UserInfo.FreezingOfFunds+" "); $("[hx_jq=ToDayConsumer]").html("$:"+HX.UserInfo.ToDayConsumer+" "); var yk=Number(HX.UserInfo.ToDayGainsAndLosses).toFixed(2); yk=yk>=0?"$ "+yk+" (win)":"$ "+yk+" ()"; $("[hx_jq=ToDayGainsAndLosses]").html(yk); $("[hx_jq=LastLoginIp]").html(HX.UserInfo.LastLoginIp); $("[hx_jq=LastLoginTime]").html(HX.UserInfo.LastLoginTime); $("[hx_jq=online_number]").html(HX.UserInfo.online_number); $(s.Online_Msg).each(function(i){ var str=s.Online_Msg[i]; $.MsgTips({ title:str.O_M_Title, msg:str.O_M_Content, music:"/Template/SkinR/Music/MsgTips.mp3" }) }) $(s.Buy_Log).each(function(i){ var str=s.Buy_Log[i]; $.MsgTips({ title:"中奖通知", msg:"恭喜您在 第"+str.B_L_Issue+" 期 中奖.
    单号为:"+str.B_L_Order+"
    获得奖金:"+str.B_L_WinMoney+" 中奖注数:"+str.B_L_WinNum+"", music:"/Template/SkinR/Music/MsgTips.mp3" }) }) HX.UpCheckUserLogin=window.setTimeout(function(){ HX.GetUserInfo();},1000*20*1) //刷新时间调整为20秒 HX.IsInitOK=true; } if (!HX.IsInitUserInfo){ HX.IsInitUserInfo=true; if($("#HomeBox").length >0) { if(!$.ck("InitAction")) { $.ck("InitAction","HomeBox"); } if($.ck("InitAction")!='GameBox' && $.ck("InitAction")!='HomeBox') { if($.ck("MastAction")) { $("[action='"+$.ck("MastAction")+"']").click(); } else { $("[action="+$.ck("InitAction")+"]").click(); } } else { $("#HomeBox").show(); } } else { if($("[MastGameTID]").length>0) { var MastGameTID = $("[MastGameTID]").attr("MastGameTID"); if(MastGameTID!="" && !isNaN(MastGameTID)) { $("[action='game'][tid='"+MastGameTID+"']:eq(0)").click(); } else { $("[action='game']:eq(0)").click(); } } } } },"json",false); }, StartGameWinInfo:function(){ HX.Is_Win=false; HX.firstStart = true; HX.StopGameWinInfo(); $.Timer.start(function(times){ var hours=times.day*24+times.hour; $("[hx_jq='time']:eq(0)").text(hours<10?"0"+hours:hours); $("[hx_jq='time']:eq(1)").text(times.minute<10?"0"+times.minute:times.minute); $("[hx_jq='time']:eq(2)").text(times.second<10?"0"+times.second:times.second); if (HX.BuyStatus=="1" && times.time<=5){ if (times.time % 2 == 0){ $("[hx_jq=time]").css({"color":"#ffffff"}); }else{ $("[hx_jq=time]").css({"color":"#096ce6"}); } if (times.time==5 && HX.isMusic && HX.U_MusicTips==1){ $.playVoice("/Template/SkinR/Music/stop-time.mp3","music"); } } }); $.Timer.stop=function(obj){ $.post(HX.AU,{Model:"Game",Action:"GetTheIssueAndTime",Id:HX.Game_Id_1},function(s){ //alert(JSON.stringify(s)); obj.time=s.overtime;//设置时间 var t=new Date();//你已知的时间 var t_s=t.getTime();//转化为时间戳毫秒数 var nt=new Date();//定义一个新时间 nt.setTime(t_s+1000*s.overtime);//设置新时间比旧时间多一分钟 obj.endtime=nt; obj.start();//再次启动 HX.BuyStatus=s.status; switch(s.status){ case "0": $("[hx_jq='Then_Status']").text("Not started").css({"color":"#000"}); $("[hx_jq='AddBuy']").text("Not started").attr("disabled",true); $("[CodeBuy]").text("Not started").attr("disabled",true); break; case "1": $("[hx_jq='Then_Status']").text("Betting").css({"color":"#000"}); $("[hx_jq='AddBuy']").text("Betting").attr("disabled",false); $("[CodeBuy]").text("Betting").attr("disabled",false); break; case "2": $("[hx_jq='Then_Status']").text("Sealing time").css({"color":"#096ce6"}); $("[hx_jq='AddBuy']").text("Sealing time").attr("disabled",true); $("[CodeBuy]").text("Sealing time").attr("disabled",true); if ($("[hx_jq='buy-list'] dl").length>0){ $.MsgBox({ msg:"Please note that the current bet "+s.Then_Issue+" The period has expired. < br > if you continue to bet, the system will move to the next period for you.", button:[{ name:"Clear bet", fun:function(p,t){ $(p).RemoveMsgBox(); $("[hx_jq='DelAll']").click(); }},{ name:"Keep betting", fun:function(p,t){ $(p).RemoveMsgBox(); } } ] }) } break; } HX.Then_Issue=s.Then_Issue; $("[hx_jq='Then_Issue']").text(s.Then_Issue); $("[hx_jq='Last_Issue']").data("Issue",s.Last_Issue); if ((HX.Last_Issue!=s.Last_Issue && !HX.Is_Win) || $("[hx_jq='Last_Issue']").data("id")!=HX.Game_Id_1){ //显示正在开奖 var html=''; if(HX.Game_Id_1==9){ for (i=0;i'; } $("[hx_jq='Win_Code_SkinR']").html(html); } else{ for (i=0;i'; } $("[hx_jq='Win_Code_SkinR']").html(html); } //显示正在开奖 HX.Is_Win=true; HX.Last_Issue=s.Last_Issue; $("[hx_jq='Last_Issue']").text(s.Last_Issue).data("id",HX.Game_Id_1); //获取开奖号码 HX.GetWinCode(); } },"json") } }, StopGameWinInfo:function(){ HX.isMusic=false; $.Timer.time=0; $.Timer.endtime=new Date(); $.Timer.exit(); }, GetWinCode:function(){ //注销之前的请求 if(HX.currentAjax){HX.currentAjax.abort();} HX.currentAjax=$.post(HX.AU,{Model:"Game",Action:"GetLastWinCode",Id:HX.Game_Id_1,Issue:$("[hx_jq=Last_Issue]").data("Issue"),Sleep:10},function(w){ //alert(w.win_code); if (w.win_code){ var CodeName=""; $(HX.HX_Game_Name).each(function(i){ if (HX.Game_Id_1==Number(HX.HX_Game_Name[i].G_N_Id)){ CodeName=HX.HX_Game_Name[i].G_N_CodeName; } }); var CodeNameArr=new Array(); CodeNameArr=CodeName.split(","); var win_code_arr=w.win_code.split(","); //alert(win_code_arr.length); var html=''; var n=0; $(win_code_arr).each(function(i){ if(HX.Game_Id_1==9){ html+='
    '; html+='
    '+CodeNameArr[i]+'
    '; html+='
    '; } else if(HX.Game_Id_1==12){ html+='
    '; html+='
    '+win_code_arr[i]+'
    '+CodeNameArr[i]+'
    '; html+='
    '; } else if(HX.Game_Id_1==18 || HX.Game_Id_1==22 || (HX.Game_Id_1>=36 && HX.Game_Id_1<=43)){ html+='
    '; if(n==3) html+='
    '+win_code_arr[i]+'
    '+CodeNameArr[i]+'
    '; else html+='
    '+win_code_arr[i]+'
    '+CodeNameArr[i]+'
    '; if(n<2) html+='+'; if(n==2) html+='='; n++; } else if(HX.Game_Id_1==13 || HX.Game_Id_1==19 || HX.Game_Id_1==23 || HX.Game_Id_1==69 || HX.Game_Id_1==73){ html+='
    '; html+='
    '+CodeNameArr[i]+'
    '; html+='
    '; } else if(HX.Game_Id_1==66 || HX.Game_Id_1==67){ var sxname=HX.GetCodeInfoSX(win_code_arr[i]); if(i<6){ html+='
    '; html+='
    '+win_code_arr[i]+'
    '+sxname+'
    '; html+='
    '; } else{ html+='
    '; html+='
    +
    '; html+='
    '; html+='
    '; html+='
    '+win_code_arr[i]+'
    '+sxname+'
    '; html+='
    '; } } else if(win_code_arr.length==5){ html+='
    '; html+='
    '+win_code_arr[i]+'
    '+CodeNameArr[i]+'
    '; html+='
    '; } else if(HX.Game_Id_1==71){ var tzds="单"; if(win_code_arr[i].indexOf("S")!=-1)tzds="双"; html+='
    '; html+='
    '+tzds+'
    '; html+='
    '; } else{ html+='
    '; html+='
    '+win_code_arr[i]+'
    '+CodeNameArr[i]+'
    '; html+='
    '; } }) $("[hx_jq=Win_Code_SkinR]").html(html); HX.GetHistoryWinCode();//显示历史开奖号码 HX.GetHistoryBuy();//更新历吏购买记录 HX.Is_Win=false; HX.isMusic=true; }else{ HX.GetWinCode(); } },"json"); }, GetHistoryWinCode:function(){ //历史开奖记录 And Top10 $.PJ(HX.AU,{Model:"Game",Action:"GetHistoryWinCode",Id:HX.Game_Id_1,Num:30},function(s){ var html=''; $(s).each(function(i){ html+='
    '; html+=' NO'+s[i].W_Issue+''; if(HX.Game_Id_1==71){ $("[hx_jq='HistoryWinCode']").css("line-height","40px"); var tzds="单"; if(s[i].W_Code.indexOf("S")!=-1)tzds="双"; html+='
    '+tzds+'
    '; html+='
    '; } else{ $("[hx_jq='HistoryWinCode']").css("line-height","20px"); var win_code_arr=s[i].W_Code.split(","); $(win_code_arr).each(function(n){ html+='
    '+win_code_arr[n]+'
    '; }) html+=''; } //if(i==5)return false; }) $("[hx_jq='HistoryWinCode']").html(html); },"json",false) }, GetHistoryBuy:function(){ //历史购买记录 $.PJ(HX.AU,{Model:"User",Action:"GetHistoryBuy",Num:10},function(s){ HX.GetHistoryBuyDate=s; var html=''; $(s).each(function(i){ var v=s[i].B_L_State; var color=""; switch(v){ case "0":color="#3a6dd8";break; //红色 case "1":color="#f87c25";break; //橘黄 case "2":color="#ff0000";break; //蓝色 case "3":color="#542fb0";break; //彩色 case "4":color="#5dd887";break; //绿色 case "5":color="#ffa60b";break; //橙色 case "6":color="#b459d4";break; //紫色 case "7":color="#a87242";break; //棕色 } v=v==1?"not been opened yet":v==2?"Win":v==3?"lost":v==4?"Opening":v==5?"Split order":v==6?"Stopped":"unknown";// var v1=HX.GetGameInfo(s[i].B_L_Type); html+='
    '; html+='
    '+s[i].B_L_Issue+'
    '+v1+'
    '; html+='
    '+s[i].B_L_Code+'
    '; html+='
    '+s[i].B_L_Money+'
    '; html+='
    '+s[i].B_L_WinMoney+'
    '; html+='
    '+v+'
    '; html+='
    '; html+=' details'; html+='
    '; html+='
    '; }) $("[hx_jq=HistoryBuy]").html(html); },"json",false) }, ControlModule:function(){ $("[hx_jq=Box]").hide(); $("#"+HX.Module).show().parents("[hx_jq=Box]").show(); if($("#HomeBox").length>0) { if(HX.Module == "HomeBox") { $("#IndexBox").hide(); $("#HomeBox").show(); if($("#wrap-sort-all").length>0) $("#wrap-sort-all").show(); } else { $("#HomeBox").hide(); $("#IndexBox").show(); if($("#wrap-sort-all").length>0) $("#wrap-sort-all").hide(); } } $('html, body').animate({scrollTop:0}, 'slow'); }, AddCode:function(){//添加注单 $("[hx_jq=Multiple]").trigger("change"); HX.Code=new Array; HX.CountLine=new Array; var AllCodesM=0; //用于单号金额计算总注数 ErrorMsg=''; //判断是否有号码位选择 if (!isNaN(HX.S_G_P_N_N[0])){ if (HX.S_G_P_N_N[0]!=$(".checkbox-row .icon-checkbox-check").length){ $.MsgBox({msg:"对不起,请先选择 "+HX.S_G_P_N_N[0]+" 位要投注的号码位."}); return false; } } //复式 if (HX.S_G_P_N_N[1]!=""){ if(HX.S_G_P_N_N[4]!=0){//&& HX.S_G_P_N_N[3]!=1 $("[hx_jq=code-list] .select-row").each(function(i){ var obj=$(this).find(".active[v]").removeClass("active") var varr=new Array; $(obj).each(function(z){varr[z]=$(this).attr("v");}) HX.Code[i]=varr; //得取每一行的个数,存在这个数组中 HX.CountLine[i]=$(obj).length; }).parent().find(".active[v]").removeClass("active") } else{//每个号码单独填写号码模式 $("[hx_jq=Multiple]").val(1); $("[hx_jq=code-list] .select-row").each(function(i){ var varr=new Array; var n=0; $(this).find("input").each(function(ii){ if($(this).val()!="" && parseInt($(this).val())>0){ varr[n]=$(this).attr("vnum")+"$"+parseInt($(this).val()); AllCodesM+=parseInt($(this).val()); n++; } }); HX.Code[i]=varr; //得取每一行的个数,存在这个数组中 HX.CountLine[i]=varr.length; $(this).find("input").val(""); }).parent().find(".active[v]").removeClass("active"); } } //普通单式 or 任选单式 if (HX.S_G_P_N_N[1]==""){ var Code=$("[hx_jq=CodeText]").val(); Code = Code.replace( /\n|\t|\s{2,}/g,' '); Code = Code.replace( /[,|;|,|;|、| | ]/g,' '); Code = Code.replace( /\n/g,' '); Code = Code.replace( / /g,' '); Code = Code.replace( / /g,' '); Code = Code.replace( / /g,' '); Code = Code.split(' '); var ii=0; for (i=0;i'; } } } $("[hx_jq=CodeText]").val(''); } //开始验证,号码正确性 $(HX.HX_Game_Rules).each(function(i){ if(HX.Game.G_P_Rules==HX.HX_Game_Rules[i].G_R_Id){ var NumberBit='',html='',c,m,IsError=true,TheNumberOfBets=HX.HX_Game_Rules[i].G_R_JsCode(); //调用规则后,返回,当前购投注数量 if (!isNaN(HX.S_G_P_N_N[0])){ if(HX.Game_Id_1==66 || HX.Game_Id_1==67){ NumberBit+=$(".checkbox-row [checkbox-v] .iconfont:eq(0)").hasClass("icon-checkbox-check")?"柒":""; NumberBit+=$(".checkbox-row [checkbox-v] .iconfont:eq(1)").hasClass("icon-checkbox-check")?"陆":""; NumberBit+=$(".checkbox-row [checkbox-v] .iconfont:eq(2)").hasClass("icon-checkbox-check")?"万":""; NumberBit+=$(".checkbox-row [checkbox-v] .iconfont:eq(3)").hasClass("icon-checkbox-check")?"千":""; NumberBit+=$(".checkbox-row [checkbox-v] .iconfont:eq(4)").hasClass("icon-checkbox-check")?"百":""; NumberBit+=$(".checkbox-row [checkbox-v] .iconfont:eq(5)").hasClass("icon-checkbox-check")?"十":""; NumberBit=NumberBit+":"; } else{ NumberBit+=$(".checkbox-row [checkbox-v] .iconfont:eq(0)").hasClass("icon-checkbox-check")?"万":""; NumberBit+=$(".checkbox-row [checkbox-v] .iconfont:eq(1)").hasClass("icon-checkbox-check")?"千":""; NumberBit+=$(".checkbox-row [checkbox-v] .iconfont:eq(2)").hasClass("icon-checkbox-check")?"百":""; NumberBit+=$(".checkbox-row [checkbox-v] .iconfont:eq(3)").hasClass("icon-checkbox-check")?"十":""; NumberBit+=$(".checkbox-row [checkbox-v] .iconfont:eq(4)").hasClass("icon-checkbox-check")?"个":""; NumberBit=NumberBit+":"; } } if (HX.S_G_P_N_N[1]!=""){ //复式 if (TheNumberOfBets>parseInt(HX.Game.G_P_Maximum) && parseInt(HX.Game.G_P_Maximum)>0){$.MsgBox({msg:"Sorry, the maximum number of notes per play is:" +HX.Game.G_P_Maximum+ " notes,当前:"+TheNumberOfBets+"notes",autoclose:false});return false;} //判断投注金额 && HX.S_G_P_N_N[3]!=1 if(HX.S_G_P_N_N[4]!=0){ if (Number(TheNumberOfBets*HX.Game.G_P_OneAmount*HX.Multiple*HX.AmountMode)0){$.MsgBox({msg:"Sorry, the minimum amount of single bet is:" +HX.Game.G_P_MinBetsMoney+ " $",autoclose:false});return false;} if (Number(TheNumberOfBets*HX.Game.G_P_OneAmount*HX.Multiple*HX.AmountMode)>HX.Game.G_P_MaxBetsMoney&&HX.Game.G_P_MaxBetsMoney>0){$.MsgBox({msg:"Sorry, the maximum amount of single bet is:" +HX.Game.G_P_MaxBetsMoney+ " $",autoclose:false});return false;} } else{ if (Number(AllCodesM*HX.Game.G_P_OneAmount*HX.Multiple*HX.AmountMode)0){$.MsgBox({msg:"Sorry, the minimum amount of single bet is:" +HX.Game.G_P_MinBetsMoney+ " $",autoclose:false});return false;} if (Number(AllCodesM*HX.Game.G_P_OneAmount*HX.Multiple*HX.AmountMode)>HX.Game.G_P_MaxBetsMoney&&HX.Game.G_P_MaxBetsMoney>0){$.MsgBox({msg:"Sorry, the maximum amount of single bet is:" +HX.Game.G_P_MaxBetsMoney+ " $",autoclose:false});return false;} } if(TheNumberOfBets>0){ c=NumberBit+HX.Code.join("|"); if(HX.S_G_P_N_N[4]!=0)// && HX.S_G_P_N_N[3]!=1 m=Number(TheNumberOfBets*HX.Game.G_P_OneAmount*HX.Multiple*HX.AmountMode).toFixed(2); else m=Number(AllCodesM*HX.Game.G_P_OneAmount*HX.Multiple*HX.AmountMode).toFixed(2); //html='
    '+HX.Game.G_P_Name+'
    '+c+'
    '+TheNumberOfBets+'注
    $:'+m+'
    '; html+='
    '; html+='
    '; html+='
    '+HX.Game.G_P_Name+'
    '; html+='
    '; html+='
    '; html+='
    '+c+'
    '; html+='
    '; html+='
    '+TheNumberOfBets+'
    '; html+='
    '+m+'
    '; html+='
    '; html+=' '; html+='
    '; html+='
    '; IsError=false; } } if (HX.S_G_P_N_N[1]==""){ //普通单式 or 任选单式 if (TheNumberOfBets.length>parseInt(HX.Game.G_P_Maximum) && parseInt(HX.Game.G_P_Maximum)>0){$.MsgBox({msg:"Sorry, the maximum number of notes per play is:" +HX.Game.G_P_Maximum+ " Note, current:"+TheNumberOfBets.length+"注",autoclose:false});return false;} if (Number(TheNumberOfBets.length*HX.Game.G_P_OneAmount*HX.Multiple*HX.AmountMode)0){$.MsgBox({msg:"Sorry, the minimum amount of single bet is:" +HX.Game.G_P_MinBetsMoney+ " $",autoclose:false});return false;} if (Number(TheNumberOfBets.length*HX.Game.G_P_OneAmount*HX.Multiple*HX.AmountMode)>HX.Game.G_P_MaxBetsMoney&&HX.Game.G_P_MaxBetsMoney>0){$.MsgBox({msg:"Sorry, the maximum amount of single bet is:" +HX.Game.G_P_MaxBetsMoney+ " $",autoclose:false});return false;} if(TheNumberOfBets.length>0){ //重新组合号码 $(TheNumberOfBets).each(function(n){var tempcodearr=new Array;for (x=0;x
    '+HX.Game.G_P_Name+'
    '+c+'
    '+TheNumberOfBets.length+'注
    $:'+m+'
    '; html+='
    '; html+='
    '; html+='
    '+HX.Game.G_P_Name+'
    '; html+='
    '; html+='
    '; html+='
    '+c+'
    '; html+='
    '; html+='
    '+TheNumberOfBets.length+'
    '; html+='
    '+m+'
    '; html+='
    '; html+=' '; html+='
    '; html+='
    '; IsError=false; } } if (IsError){ $.MsgBox({ title:"Operation error", msg:"The number you selected is incorrect. The correct bet rule is:
    "+HX.Game.G_P_Text, width:"400px", autoclose:false }) }else if(ErrorMsg!=""){ $.MsgBox({ title:"Operation error", msg:"The following betting number is incorrect and has been removed:"+ErrorMsg, width:"400px", autoclose:false }) } $("[hx_jq=buy-list]").prepend(html) } }) $("[hx_jq=Multiple]").trigger("change"); //$("[hx_jq=Multiple]").val(1);//复位倍投 //HX.Multiple=1; }, AddBuy:function(){//提交注单 //取投注号码列表 HX.BuyCodeData=[]; $("[hx_jq=buy-list] .tb-row").each(function(i){ var g=$(this).attr("gid"); var c=$(this).attr("c"); var z=$(this).attr("z"); HX.BuyCodeData[i]=g+"+"+c+"+"+z; }) if (HX.BuyCodeData.length>0){ var ChaseArr=[], BuyChase=''; $(HX.ChaseArr).each(function(i){ ChaseArr[i]=HX.ChaseArr[i].issue+"+"+HX.ChaseArr[i].multiple*HX.AmountMode }) var act={ Model:"Game", Action:"AddBuy", Id:HX.Game_Id_1, TypeId:HX.Game_Id_2, Issue:HX.Then_Issue, BuyCode:HX.BuyCodeData.join("#"), BuyChase:ChaseArr.join("#"), IsChaseCode:HX.IsChaseCode, Multiple:HX.Multiple*HX.AmountMode, Rebate:HX.RebateValue, TheTotalAmount:$("#TheAmountTotaling").text(), } $.MsgBox({ title:"Confirm bet", form:{ list:[ {tags:'Betting period number',input:'',tips:"The issue number of the current bet."}, {tags:'games play',input:'',tips:"How to play the current bet."}, {tags:'Number of bets',input:'',tips:""}, {tags:'Amount required',input:'',tips:""}, {tags:'Multiple of bets',input:'',tips:""}, {tags:'Number of issue tracking',input:'',tips:""}, {tags:'Total number tracing',input:'',tips:""}, {tags:'Total amount required',input:'',tips:""}, {tags:'Bonus rebate',input:'',tips:""}, ], tips:'Warm tip: please confirm bet information and click OK. Canceling the bet will clear the selected number.' }, button:[ { name:"Confirm bet", fun:function(p,t){ $.PJ(HX.AU,act,function(s){ if(s.error){ $(p).ErrorTips(s.msg); }else{ HX.GetUserInfo(); HX.GetHistoryBuy();//更新历吏购买记录 buy-list HX.ChaseArr=[]; $("[hx_jq=buy-list] .tb-row").slideUp(function(){$(this).remove();$("[hx_jq=Multiple]").trigger("change");}); $.MsgBox({ msg:"Successful bet!", button:[ { name:"confirm",fun:function(p,t){$(p).RemoveMsgBox();} } ] }) } $("[hx_jq=Multiple]").val(1);//复位倍投 }) } } ] }) }else{ $.MsgBox({msg:"Please select the number you want to bet before you bet."}) } }, Click:function(){ //各种事件的绑定 // $(document).on("click",".zs_close",function(){ $(".zs_box").hide(); }); $(document).on("click",".zs_top",function(){ $('body,html').animate({scrollTop:0},500); }); //显示最近5期开奖 $(document).on("click","[issue_show]",function(){ var issue_show=$(this).attr("issue_show"); if(issue_show == "one_issue"){ $("#one_issue").show(); $("#five_issue").hide(); $("[issue_show='five_issue']").removeClass("active"); }else{ $("#one_issue").hide(); $("#five_issue").show(); $("[issue_show='one_issue']").removeClass("active"); } $(this).addClass("active"); }) //显示指定帮助中心文章 $(document).on("click","[data_help_id]",function(){ var data_help_id=$(this).attr("data_help_id"); $("[data_help_id='"+data_help_id+"'] .item_content").show(); }) //显示彩种下拉菜单 $(document).on("mouseover","#more-sort",function(){ if(HX.ActPage != "HomeBox" && $("#HomeBox").is(':hidden')) $("#wrap-sort-all").show(); }); //隐藏彩种下拉菜单 $(document).on("mouseout","#more-sort",function(){ if(HX.ActPage != "HomeBox" && $("#HomeBox").is(':hidden')) { $("#wrap-sort-all").hide(); } }); //显示彩种下拉菜单 $(document).on("mouseover","#wrap-sort-all",function(){ if(HX.ActPage != "HomeBox" && $("#HomeBox").is(':hidden')) $("#wrap-sort-all").show(); }); //隐藏彩种下拉菜单 $(document).on("mouseout","#wrap-sort-all",function(){ if(HX.ActPage != "HomeBox" && $("#HomeBox").is(':hidden')) $("#wrap-sort-all").hide(); }); $(document).on("keyup","[hx_jq=notstr]",function(){ $(this).val($(this).val().replace(/[^\w@\/]/ig,'')) }) //查看详情 $(document).on("click",".operating",function(){ var opt={v:HX.GetHistoryBuyDate[$(this).parent().index()]} HX.GetOrderInfo(opt) }) //辅助选号 $(document).on("click","[hx_jq=code-list] [c]",function(){ var c=$(this).attr("c"); $(this).parents(".select-row").find("[v]").removeClass("active"); var isqo=$(this).parents(".select-row").find("[v]:eq(0)").text(); if (!isNaN(isqo)){isqo=isqo=="0"?true:false;} switch(c){ case "0"://反 $(this).parents(".select-row").find("[v]").addClass("active") break; case "1"://大 var ii=parseInt($(this).parents(".select-row").find("[v]").length/2); for (i=ii;i<$(this).parents(".select-row").find("[v]").length;i++){$(this).parents(".select-row").find("[v]:eq("+i+")").addClass("active")} break; case "2"://小 var ii=parseInt($(this).parents(".select-row").find("[v]").length/2); for (i=0;i1){ $.MsgBox({ msg:"胆码最多只能选择二个号码." }) return; } if ($(this).parents(".select-row").index()==0 && HX.GPId==285 && $(this).parents(".select-row").find("[v][class=active]").length>0){ $.MsgBox({ msg:"胆码最多只能选择一个号码." }) return; } var i_1=$(this).parents(".select-row").index()==0?1:0; var i_2=$(this).index()-1; $(this).parents(".select-row:eq("+i_1+")").find("[v]:eq("+i_2+")").removeClass("curr"); } $(this).toggleClass("active"); }) //处理投注金额模式 $(document).on("click","[hx_jq=AmountMode]",function(){ //转换为元模式 //var Multiple=$("[hx_jq=Multiple]").val()/HX.AmountMode; HX.AmountMode=HX.AmountModeList[$(this).index()]; $("[hx_jq=AmountMode]").removeClass("unit_activity"); $(this).addClass("unit_activity"); $("[hx_jq=Multiple]").trigger("change"); //.val(Multiple*HX.AmountMode) $.ck("AmountMode",HX.AmountMode); }) //倍投按钮 $(document).on("click","[hx_jq=MultipleBtn]",function(){ //转换为元模式 var MultipleBtn=$(this).text(); var Multiple=$("[hx_jq=Multiple]").val(); if(MultipleBtn!="清" && MultipleBtn!="C") { if(HX.S_G_P_N_N[4]!=0){ if(MultipleBtn!=1 && Multiple==1) $("[hx_jq=Multiple]").val(parseInt(MultipleBtn)); else $("[hx_jq=Multiple]").val(parseInt(Multiple)+parseInt(MultipleBtn)); } else{ $("[hx_jq=Multiple]").val(1); $("[hx_jq=code-list] .select-row").each(function(i){ var obj=$(this).find(".active[v]"); var varr=new Array; $(obj).each(function(z){varr[z]=$(this).attr("v");}) for(n=0;n1) { $("[hx_jq=Multiple]").val(Number(Multiple)-Number(1)); } else { $("[hx_jq=Multiple]").val(1); } }) //倍投按钮 +- $(document).on("click","[hx_jq=Multipleab] a",function(){ var MultipleBtn=$(this).text(); var Multiple=$("[hx_jq=Multiple]").val(); if(MultipleBtn=="+"){ $("[hx_jq=Multiple]").val(Number(Multiple)+Number(1)); } else{ if(Multiple>1) { $("[hx_jq=Multiple]").val(Number(Multiple)-Number(1)); } else { $("[hx_jq=Multiple]").val(1); } } }) //处理投注倍数即金额 $(document).on("change","[hx_jq=Multiple]",function(){ var _this=$(this); var _value=1; var S_G_P_N_N=new Array; if (!isNaN($(_this).val())){ _value=Math.abs($(_this).val()); if (_value/HX.AmountMode>HX.HX_System_Config.S_C_MaxMultiple/HX.AmountMode){_value=HX.HX_System_Config.S_C_MaxMultiple/HX.AmountMode;} } _value=Number(_value).toFixed(0) if (_value<=0){_value=1;} HX.Multiple=_value; $.ck("Multiple",HX.Multiple); $(_this).val(_value); //处理投注列表投注金额 var OneAmount=0; var zz=0; var AllMoney=0; $("[hx_jq=buy-list] .tb-row").each(function(i){ var z=Number($(this).attr("z")); var gid=Number($(this).attr("gid")); var m=Number($(this).attr("m")); var c=$(this).attr("c"); //获取游戏单价 $(HX.HX_Game_Play).each(function(g){ if (HX.HX_Game_Play[g].G_P_Id==gid){ OneAmount=HX.HX_Game_Play[g].G_P_OneAmount; S_G_P_N_N = HX.Game.G_P_NumberName.split("|"); } }) if(S_G_P_N_N[4]!=0 && S_G_P_N_N[3]!=1){ $(this).attr("m",Number(z*_value*HX.AmountMode).toFixed(2)); //$(this).find("dd:eq(2)").text("$:"+Number(z*_value*OneAmount*HX.AmountMode).toFixed(2)+"元"); } else{ var cc=new Array; cc=c.split(","); m=0; for(n=0;nNumber(HX.HX_System_Config.S_C_MaxMultiple)){val=Number(HX.HX_System_Config.S_C_MaxMultiple)} $(this).parent().find("input").val(Number(val).toFixed(0)); $(this).parent().find("font").text(Number(val*CountZhu*HX.Game.G_P_OneAmount*HX.AmountMode).toFixed(2)); }else{ $(this).parent().find("input").val("0") $(this).parent().find("font").text("0.00") } }) //重写追号记录 HX.ChaseArr=[]; var zzbs=0; $(obj).find(".chase td.curr").each(function(i){ HX.ChaseArr[i]={ issue:$(this).parent().attr("chase"), multiple:$(this).parent().find("input").val() } zzbs+=Number($(this).parent().find("input").val()); }) //统计当前信息 $("[hx_jq=ChasePeriods]").val(HX.ChaseArr.length); $("[hx_jq=zzbs]").val(Number(zzbs).toFixed(0)); $("[hx_jq=TheTotalNumberChase]").val(Number(zzbs*CountZhu*HX.Game.G_P_OneAmount*HX.AmountMode).toFixed(2)); //统计投注信息 $("[hx_jq=Multiple]").trigger("change"); } var List=''; List+=''; $(s.list).each(function(i){ List+=''; ChaseCodeNumVal+='|'+(i+1)+'期='+(i+1); }) List+='
    期号倍数(小数为角、分)所需金额截止时间
    '+s.list[i].G_T_Issue+' 倍0.00 元'+s.list[i].G_T_EndTime+'
    '; var msg=''; msg+=''; msg+=''; msg+=''; msg+=''; msg+=''; msg+=''; msg+=''; msg+=''; msg+=''; msg+=''; msg+='
    '+List+'
    '; $.MsgBox({ title:"设置追号", msg:msg, width:755, size:false, exit:false, button:[ { name:"确定追号", fun:function(t_obj,c_obj){ SetChaseFun(t_obj) $(t_obj).RemoveMsgBox(); } } ], rfun:function(obj){ $("[hx_jq=Multiple]").trigger("change"); //反向选择 $(obj).find(".chase th.checkbox").click(function(){ $(this).toggleClass("curr") $(obj).find(".chase td.checkbox").toggleClass(function(){ if ($(this).is('.curr')) { $(this).removeClass("curr"); return ''; }else { return 'curr'; } }); SetChaseFun(obj) }) //单选 $(obj).find(".chase td.checkbox").click(function(){ $(this).toggleClass(function(){ if ($(this).is('.curr')) { $(this).removeClass("curr"); return ''; }else { return 'curr'; } }); SetChaseFun(obj) }) //input $(obj).find(".chase td input").change(function(){ SetChaseFun(obj) }) //自动选择 $("[hx_jq=IsChaseCode]").attr("select","停止追号=0|继续追号=1").Select(function(_this,val){ HX.IsChaseCode=val; }) $("[hx_jq=ChaseCodeNum]").attr("select","选择追号期数=0"+ChaseCodeNumVal).Select(function(_this,val){ $(obj).find(".chase td.checkbox").removeClass("curr"); for (i=0;iHX.HX_System_Config.S_C_MaxMultiple/HX.AmountMode){ Multiple_value=HX.HX_System_Config.S_C_MaxMultiple/HX.AmountMode; } } Multiple_value=Number(Multiple_value).toFixed(0) if (Multiple_value<=0){Multiple_value=1;} HX.Multiple=Multiple_value; $.ck("Multiple",HX.Multiple); $("[multiple='"+CodeBuyID+"']").val(Multiple_value); //取得游戏玩法配置 HX.Game=[]; $(HX.HX_Game_Play).each(function(i){ if (CodeBuyID==HX.HX_Game_Play[i].G_P_Id){ HX.Game = HX.HX_Game_Play[i]; } }) HX.S_G_P_N_N = HX.Game.G_P_NumberName.split("|"); //取得号码位 HX.CodeLength = HX.S_G_P_N_N[3]; HX.Code=new Array; HX.CountLine=new Array; ErrorMsg=''; //判断是否有号码位选择 if (!isNaN(HX.S_G_P_N_N[0])){if (HX.S_G_P_N_N[0]!=$("[NumberBit='"+CodeBuyID+"'] input[type=checkbox]:checked").length){$.MsgBox({msg:"对不起,请先选择 "+HX.S_G_P_N_N[0]+" 位要投注的号码位."});return false;}} //复式 if (HX.S_G_P_N_N[1]!=""){ $("[CodeBuyID='"+CodeBuyID+"'] li .L").each(function(i){ var obj=$(this).find("i[class=curr]").removeClass("curr") var varr=new Array; $(obj).each(function(z){varr[z]=$(this).attr("v");}) HX.Code[i]=varr; //得取每一行的个数,存在这个数组中 HX.CountLine[i]=$(obj).length; }).parent().find(".R i[class=curr]").removeClass("curr") } //普通单式 or 任选单式 if (HX.S_G_P_N_N[1]==""){ var Code=$("[CodeText='"+CodeBuyID+"']").val(); Code = Code.replace( /\n|\t|\s{2,}/g,' '); Code = Code.replace( /[,|;|,|;|、| | ]/g,' '); Code = Code.replace( /\n/g,' '); Code = Code.replace( / /g,' '); Code = Code.replace( / /g,' '); Code = Code.replace( / /g,' '); Code = Code.split(' '); var ii=0; for (i=0;i'; } } } $("[CodeText='"+CodeBuyID+"']").val(''); } //处理投注列表投注金额 var zz=0; HX.BuyCodeData=[]; var buynumber = 0; //开始验证,号码正确性 $(HX.HX_Game_Rules).each(function(i){ if(HX.Game.G_P_Rules==HX.HX_Game_Rules[i].G_R_Id){ var NumberBit='',html='',c,m,IsError=true,TheNumberOfBets=HX.HX_Game_Rules[i].G_R_JsCode(); //调用规则后,返回,当前购投注数量 if (!isNaN(HX.S_G_P_N_N[0])){NumberBit+=$("[NumberBit='"+CodeBuyID+"'] input[type=checkbox]:eq(0)").is(':checked')?"万":"";NumberBit+=$("[NumberBit='"+CodeBuyID+"'] input[type=checkbox]:eq(1)").is(':checked')?"千":"";NumberBit+=$("[NumberBit='"+CodeBuyID+"'] input[type=checkbox]:eq(2)").is(':checked')?"百":"";NumberBit+=$("[NumberBit='"+CodeBuyID+"'] input[type=checkbox]:eq(3)").is(':checked')?"十":"";NumberBit+=$("[NumberBit='"+CodeBuyID+"'] input[type=checkbox]:eq(4)").is(':checked')?"个":"";NumberBit=NumberBit+":";} if (HX.S_G_P_N_N[1]!=""){ //复式 if (TheNumberOfBets>parseInt(HX.Game.G_P_Maximum) && parseInt(HX.Game.G_P_Maximum)>0){$.MsgBox({msg:"Sorry, the maximum number of notes per play is:" +HX.Game.G_P_Maximum+ " Note, current:"+TheNumberOfBets+"notes",autoclose:false});return false;} //判断投注金额 if (Number(TheNumberOfBets*HX.Game.G_P_OneAmount*HX.Multiple*HX.AmountMode)0){$.MsgBox({msg:"Sorry, the minimum amount of single bet is:" +HX.Game.G_P_MinBetsMoney+ " $",autoclose:false});return false;} if (Number(TheNumberOfBets*HX.Game.G_P_OneAmount*HX.Multiple*HX.AmountMode)>HX.Game.G_P_MaxBetsMoney&&HX.Game.G_P_MaxBetsMoney>0){$.MsgBox({msg:"Sorry, the maximum amount of single bet is:" +HX.Game.G_P_MaxBetsMoney+ " $",autoclose:false});return false;} if(TheNumberOfBets>0){ c=NumberBit+HX.Code.join("|"); m=Number(TheNumberOfBets*HX.Game.G_P_OneAmount*HX.Multiple*HX.AmountMode).toFixed(2); HX.BuyCodeData[buynumber++]=HX.Game.G_P_Id+"+"+c+"+"+TheNumberOfBets; zz+=TheNumberOfBets; IsError=false; } } if (HX.S_G_P_N_N[1]==""){ //普通单式 or 任选单式 if (TheNumberOfBets.length>parseInt(HX.Game.G_P_Maximum) && parseInt(HX.Game.G_P_Maximum)>0){$.MsgBox({msg:"Sorry, the maximum number of notes per play is:" +HX.Game.G_P_Maximum+ " notes,current:"+TheNumberOfBets.length+"notes",autoclose:false});return false;} if (Number(TheNumberOfBets.length*HX.Game.G_P_OneAmount*HX.Multiple*HX.AmountMode)0){$.MsgBox({msg:"Sorry, the minimum amount of single bet is:" +HX.Game.G_P_MinBetsMoney+ " $",autoclose:false});return false;} if (Number(TheNumberOfBets.length*HX.Game.G_P_OneAmount*HX.Multiple*HX.AmountMode)>HX.Game.G_P_MaxBetsMoney&&HX.Game.G_P_MaxBetsMoney>0){$.MsgBox({msg:"Sorry, the maximum amount of single bet is:" +HX.Game.G_P_MaxBetsMoney+ " $",autoclose:false});return false;} if(TheNumberOfBets.length>0){ //重新组合号码 $(TheNumberOfBets).each(function(n){var tempcodearr=new Array;for (x=0;x"+HX.Game.G_P_Text, width:"400px", autoclose:false }) return; }else if(ErrorMsg!=""){ $.MsgBox({ title:"Operation error", msg:"以下投注号码不正确,已移除该号码:"+ErrorMsg, width:"400px", autoclose:false }) return; } } }) if (HX.BuyCodeData.length>0){ //投注数 HX.CountZhu=zz; //投注金额 HX.CountMoney=Number(zz*HX.Multiple*HX.Game.G_P_OneAmount*HX.AmountMode).toFixed(2); //追号金额 var zzbs=0; $(HX.ChaseArr).each(function(i){zzbs+=Number(HX.ChaseArr[i].multiple);}) HX.TheTotalNumberChase=Number(zzbs*zz*HX.Game.G_P_OneAmount*HX.AmountMode).toFixed(2); //追号期数 HX.ChasePeriods=HX.ChaseArr.length; //总投金额 HX.TheAmountTotaling=Number(((zzbs*zz*HX.Game.G_P_OneAmount)+(zz*HX.Multiple*HX.Game.G_P_OneAmount))*HX.AmountMode).toFixed(2); HX.RebateValue = 0; var ChaseArr=[], BuyChase=''; $(HX.ChaseArr).each(function(i){ ChaseArr[i]=HX.ChaseArr[i].issue+"+"+HX.ChaseArr[i].multiple*HX.AmountMode }) //alert(JSON.stringify(HX.BuyCodeData)) var act={ Model:"Game", Action:"AddBuy", Id:HX.Game_Id_1, TypeId:HX.Game_Id_2, Issue:HX.Then_Issue, BuyCode:HX.BuyCodeData.join("#"), BuyChase:ChaseArr.join("#"), IsChaseCode:HX.IsChaseCode, Multiple:HX.Multiple*HX.AmountMode, Rebate:0,//HX.RebateValue, TheTotalAmount:HX.TheAmountTotaling, } $.MsgBox({ title:"Confirm bet", form:{ list:[ {tags:'Betting period number',input:'',tips:"The issue number of the current bet."}, {tags:'games play',input:'',tips:"How to play the current bet."}, {tags:'Number of bets',input:'',tips:"notes"}, {tags:'Amount required',input:'',tips:"元"}, {tags:'Multiple of bets',input:'',tips:"元(小数为:角、分)"}, {tags:'Number of issue tracking',input:'',tips:"期"}, {tags:'Total number tracing',input:'',tips:"元"}, {tags:'Total amount required',input:'',tips:"元"}, {tags:'Bonus rebate',input:'',tips:"元"}, ], tips:'Warm tip: please confirm bet information and click OK. Canceling the bet will clear the selected number.' }, button:[ { name:"Confirm bet", fun:function(p,t){ $.PJ(HX.AU,act,function(s){ //console.log(JSON.stringify(s)); if(s.error){ $(p).ErrorTips(s.msg); }else{ HX.GetUserInfo(); //刷新消息 HX.GetChatBetup(); $(p).RemoveMsgBox(); if($(".betbg").length>0){ $(".betbg:eq(0)").click(); } } $("[hx_jq='Multiple']").val(1);//复位倍投 }) } } ] }) } }) //显示公告 $(document).on("click","[ hx_jq=showgonggaopop]",function(){ $("#gonggaopop").show(); }) $(document).on("click","[hx_jq=refreshmoney]",function(){ HX.GetUserInfo(); $.MsgBox({msg:"Refresh succeeded!"}) }) //返回模块 $(document).on("click","[InitAction]",function(){ $.ck("MastInitAction", "Mast"); $.ck("InitAction", $(this).attr("InitAction")); location="/"; return false; }) $(document).on("click","#login_button",function(){ var username=$("#username").val(); var password=$("#password").val(); var verification=$("#login_code_input").val(); if (username==""){ $("#username").focus(); $.MsgBox({msg:"Please input login account"}); return false; } if(password==""){ $("#password").focus(); $.MsgBox({msg:"Please input the login password"}); return false; } if(verification==""){ $("#login_code_input").focus(); $.MsgBox({msg:"Please enter the verification code"}); return false; } $.PJ(HX.AU,{Model:"User",Action:"CheckUserLogin",username:username,password:password,userskin:"SkinR",verification:verification},function(s){ if (s.error){ $.MsgBox({msg:s.msg}); }else{ location.reload(true); } },"json","Landing in progress...") }); //安全退出 $(document).on("click","[hx_jq=SafetyExit]",function(){ $.MsgBox({ title:"Safe exit", msg:"Are you sure you want to quit?", button:[ { name:"confirm", fun:function(obj){ $.PJ(HX.AU,{Model:"User",Action:"SafetyExit"},function(s){ $.ck("MastAction",""); $.ck("InitAction",""); location.reload(true); }) } } ] }) }) //各种操作 $(document).on("click","[action]",function(e){ var _this=$(this); HX.Action=$(_this).attr("action"); HX.Module="GameBox"; $.ck("MastAction",""); var html=''; $("#shouji").hide(); switch(HX.Action){ case "BackHomeBox": HX.Module="HomeBox"; HX.ActPage = "HomeBox"; $.ck("InitAction", "HomeBox"); $.PJ(HX.AU,{Model:"User",Action:"SetPageStatic",ActPage:"HomeBox"},function(s){ //$.MsgBox({msg:s.msg}) .destroy(); }) //location="/"; return false; case "AppDownload": HX.Module="shouji"; break; case "MastHomeBack": HX.Module="HomeBox"; HX.ActPage = "HomeBox"; $.ck("InitAction", "HomeBox"); $.PJ(HX.AU,{Model:"User",Action:"SetPageStatic",ActPage:"HomeBox"},function(s){ //$.MsgBox({msg:s.msg}) .destroy(); }) location="/"; return false; /*--------------------------------------游戏主体导航--------------------------------------*/ case "game_def": HX.Module="GameBox"; var Game_Id_1 = $.ck("Game_Id_1"); var Game_Id_2 = $.ck("Game_Id_2"); var Game_Id_3 = $.ck("Game_Id_3"); if(!isNaN(Game_Id_1) && $("[action='game'][tid="+Game_Id_1+"]").length > 0) { $("[action='game'][tid="+Game_Id_1+"]:eq(0)").attr("game_nav_1",Game_Id_2).attr("game_nav_2",Game_Id_3).click(); } else { $("[action='game']").eq(0).click(); } return false; case "game": var find=false,G_N_Title = ""; $(HX.HX_Game_Name).each(function(i){ if (Number($(_this).attr("tid"))==Number(HX.HX_Game_Name[i].G_N_Id)){ G_N_Title = HX.HX_Game_Name[i].G_N_Title; find=true; } }); if(!find){ $.MsgBox({msg:"该玩法尚未开放...."}); return false; } HX.Module="GameBox"; $(HX.HX_Game_Type).each(function(i){if (Number($(_this).attr("tid"))==Number(HX.HX_Game_Type[i].G_T_NameId)){ html+='
    '+HX.HX_Game_Type[i].G_T_Title+'
    '; }}) if (html!=""){ HX.Game_Id_1=$(_this).attr("tid"); $.ck("Game_Id_1", HX.Game_Id_1); HX.Then_Name=G_N_Title; $("[hx_jq=Then_Name]").html(HX.Then_Name); $("[hx_jq=Then_Images]").attr("src","/UpLoadFile/games/tid"+HX.Game_Id_1+".png"); $("[hx_jq=Lot_link]").attr("href","/?Model=LotCodes&Action=LotIndex&page=index&gid="+HX.Game_Id_1); var game_nav_1 = $(_this).attr("game_nav_1");//推荐编号 var game_nav_2 = $(_this).attr("game_nav_2");//推荐编号 $("[hx_jq=game-nav-1]").html(html); if(!isNaN(game_nav_1) && $("[hx_jq=game-nav-1]").find("[tid="+game_nav_1+"]").length > 0) { $("[hx_jq=game-nav-1]").find("[tid="+game_nav_1+"]:eq(0)").attr("game_nav_2",game_nav_2).click(); } else { $("[hx_jq=game-nav-1]").find("[tid]:eq(0)").click(); } //加载游戏开奖信息 HX.StartGameWinInfo(); HX.GetHistoryWinCode(); if ($("[hx_jq=AmountMode] [class=curr]").length==0){$(HX.AmountModeList).each(function(i){if (HX.AmountModeList[i]==HX.AmountMode){$("[hx_jq=AmountMode]").find("a:eq("+i+")").click()}})}//初始化倍数 }else{ $.MsgBox({msg:"该玩法正在开发中...."}) return false; } $("[hx_jq=DelAll]").click(); break; /*--------------------------------------游戏一级导航--------------------------------------*/ case "game-nav-1": HX.Module="GameBox"; $(HX.HX_Game_Play).each(function(i){if (Number($(_this).attr("tid"))==Number(HX.HX_Game_Play[i].G_P_TypeId)){ html+='
    '+HX.HX_Game_Play[i].G_P_Name+'
    '; }}) if (html!=""){ $(_this).parent().find("[action='game-nav-1']").removeClass("play-activity"); $(_this).addClass("play-activity"); HX.Game_Id_2=$(_this).attr("tid"); $.ck("Game_Id_2", HX.Game_Id_2); var game_nav_2 = $(_this).attr("game_nav_2");//推荐编号 $("[hx_jq=game-nav-2]").html(html); if(!isNaN(game_nav_2) && $("[hx_jq=game-nav-2]").find("[tid="+game_nav_2+"]").length > 0) { $("[hx_jq=game-nav-2]").find("[tid="+game_nav_2+"]:eq(0)").click(); } else { $("[hx_jq=game-nav-2]").find("[tid]:eq(0)").click(); } }else{ $.MsgBox({msg:"游戏规则出错...."+HX.HX_Game_Play[i].G_P_TypeId}) } return false; /*--------------------------------------游戏二级导航--------------------------------------*/ case "game-nav-2": HX.Module="GameBox"; $(_this).parent().find("[action='game-nav-2']").removeClass().addClass("radio-group"); $(_this).addClass("group-label"); HX.Game_Id_3=$(_this).attr("tid"); $.ck("Game_Id_3", HX.Game_Id_3); //创建游戏购买区 //开奖号码格式|号码格式|自助选号|前台星级|后台星级 //万千百十个|万=0,1,2,3,4,5,6,7,8,9#千=0,1,2,3,4,5,6,7,8,9#百=0,1,2,3,4,5,6,7,8,9#十=0,1,2,3,4,5,6,7,8,9#个=0,1,2,3,4,5,6,7,8,9|1|5|5 $(HX.HX_Game_Play).each(function(i){ if(!HX.UserInfo) HX.UserInfo=HX.HX_DefUser; if (HX.HX_Game_Play[i].G_P_Id==HX.Game_Id_3){ var info =''; //info +='游戏规则:'; info += HX.HX_Game_Play[i].G_P_Text $("[hx_jq=dq_rule]").html(info); //取得游戏玩法配置 HX.Game=HX.HX_Game_Play[i]; HX.S_G_P_N_N=HX.Game.G_P_NumberName.split("|"); //取得号码位 HX.CodeLength=HX.S_G_P_N_N[3]; //号码位选择区块 suncodes if (!isNaN(HX.S_G_P_N_N[0])){ if(HX.Game_Id_1==66 || HX.Game_Id_1==67){ html+='
    '; html+='
    '; html+='
    位置
    '; html+='
    '; html+='
    正一
    '; html+='
    正二
    '; html+='
    正三
    '; html+='
    正四
    '; html+='
    正五
    '; html+='
    正六
    '; html+='
    特码
    '; html+='
    '; html+='
    '; html+='
    '; } else{ html+='
    '; html+='
    '; html+='
    位置
    '; html+='
    '; html+='
    万位
    '; html+='
    千位
    '; html+='
    百位
    '; html+='
    十位
    '; html+='
    个位
    '; html+='
    '; html+='
    '; html+='
    '; } } //复式 if (HX.S_G_P_N_N[1]!=""){ var H=HX.S_G_P_N_N[1].split("#"); html+='
    '; $(H).each(function(ii){ var Title=H[ii].split("=")[0]; var Code=""; if(H[ii].split("=")[1]=="subcodes") Code=HX.GetCodeInSubClass(HX.Game_Id_1,Title).split(","); else Code=H[ii].split("=")[1].split(","); var sytle=HX.S_G_P_N_N[2]==0?'style="width:100%"':''; var titleRL = ($("[hx_jq=code-list]").attr("titleRL")=="R" && HX.S_G_P_N_N[2]==1); html+='
    '; html+='
    '; if(!titleRL) html+='
    '+Title+'
    '; if(Code.length>=14 && HX.S_G_P_N_N[4]!=0) html+='
    '; else html+='
    '; if(HX.S_G_P_N_N[4]==0){ for(iii=0;iii'+Code[iii]+'
    '; } } else{ for(iii=0;iii'+Code[iii]+'
    '; } } html+='
    '; if (HX.S_G_P_N_N[2]==1){ html+='
    ABSOEC
    '; } html+='
    '; html+='
    '; }) html+=''; } //普通单式 or 任选单式 if (HX.S_G_P_N_N[1]==""){ html+='
    '; html+=''; html+='
    '; } $("[hx_jq=code-list]").html(html); if($("#slider").length>0) { var tempmoney=HX.Game.G_P_Bonus.split(","); var maxwinmoney=0; var tempmoneylocation=0; $(tempmoney).each(function(x){ if (Number(tempmoney[x])>maxwinmoney){ maxwinmoney=Number(tempmoney[x]); tempmoneylocation=x; //alert(x); } }); var tempamountstep=HX.Game.G_P_AmountStep.split(","); var maxamountstep=0; var MaximumBonusRebate=HX.Game.G_P_MaximumBonusRebate; if(MaximumBonusRebate==0) MaximumBonusRebate=10; $(tempamountstep).each(function(x){ var tempms=Number(tempamountstep[x].split("=")[0]); if (tempms>maxamountstep){ maxamountstep=tempms; } }) var r_off=Number(HX.Game.G_P_ReturnOff); //返点开关 var n_step=Number(maxamountstep); //奖金步值 var n_xs=Number(HX.Game.G_P_Decimal); //小数位数 var u_r_1=8; //默认返点 var u_r_2=0; //当前返点; //alert(HX.UserInfo.U_RebateA); if(HX.UserInfo){ u_r_1=HX.UserInfo.U_RebateA; //默认返点 u_r_2=HX.UserInfo.U_RebateB; //当前返点 } var u_r=r_off==1?u_r_2:u_r_1; //判断是否可返点 var n_maxValue=Number(Number(maxwinmoney)+(u_r_1/HX.Game.G_P_RebateStep*n_step)).toFixed(n_xs) //最大奖金 var n_thenValue=Number(Number(n_maxValue)-(u_r/HX.Game.G_P_RebateStep*n_step)).toFixed(n_xs) //当前奖金 var n_minValue=Number(n_maxValue)-(MaximumBonusRebate/HX.Game.G_P_RebateStep*n_step) //最小奖金 var n_value=Number(n_maxValue-(u_r_1/HX.Game.G_P_RebateStep*n_step)).toFixed(n_xs) //当前奖金 //echo(n_value); //滑动条绑定 //创建返点G_P_MaximumBonusRebate 5.0/0.5 //alert(HX.Game.G_P_MaximumBonusRebate); slider ( { 'tempmoneylocation':tempmoneylocation, 'maxbonusmode':HX.Game.G_P_MaxBonusMode.split(","), 'money':tempmoney, //奖金array 'amountstep':tempamountstep, //奖金步值array 'n_minValue':n_minValue, //最小值 'n_maxValue':n_maxValue, //最大值 'n_value' : n_thenValue, //初始值 'n_b':u_r, //当前返点 'n_xs':n_xs, //小数位数 'n_step':n_step, //每次移动量 'n_rl':HX.Game.G_P_RebateStep, //返点级别 's_obj':$("#slider"), //输出内容到该ID 's_value_1':$(".control-slider-bonus"), //模式 's_value_2':$(".control-slider-percentage"), //百分比 'off':r_off==1?true:false //是否允许调节 }, { 'b_vertical' : false, 'b_watch': true, 'n_controlWidth': 100, 'n_controlHeight': 20, 'n_sliderWidth': 20, 'n_sliderHeight': 20, 'n_pathLeft' : 0, 'n_pathTop' : 0, 'n_pathLength' : 100, //滑块范围长度 'n_zIndex': 1 } ); } } }) return false; /*--------------------------------------资金明细列表--------------------------------------*/ case "DetailsOfFunding": HX.Module="OtherBox"; $.ck("MastAction", "BasicInformation"); var usercenter = HX.GetMemberMemu(); $("#"+HX.Module).html(usercenter).find("#usercenterContent").Content({ list:{ url:HX.AU, checkbox:false, act:{Model:"User",Action:HX.Action+"_List"}, thname:{M_L_Order:"NO",M_L_Type:{name:"Transaction type",fun:function(v){return v==1?"deposit":v==2?"withdraw money":v==3?"Purchasing agent":v==4?"Pie Award":v==5?"Rebate":v==6?"other":"unknown";}},M_L_Money:"Operating amount",M_L_AfterMoney:"Amount after operation",M_L_beforMoney:"Amount before operation",M_L_State:{name:"Operation status",fun:function(v){return v==1?"success":v==2?"normal":"fail";}},M_L_AddTime:"Add time"}, operating:[ { name:"explain", fun:function(opt){ $.MsgBox({title:"NO:"+opt.v["M_L_Order"],msg:opt.v["M_L_Content"],autoclose:false}); } } ], search:{ form:[ {tags:'Search content',input:''}, {tags:'Content type',input:''}, {tags:'Transaction type',input:''}, {tags:'start time',input:''}, {tags:'End time',input:''} ], button:[ { name:"search", fun:function(opt){ //参数说明:v:搜索列表对像,o:参数列表,p:父对象,t:按钮自己 var key=$(opt.v[0]).val(); var type1=$(opt.v[1]).val(); var type2=$(opt.v[2]).val(); var strat_date=$(opt.v[3]).val(); var end_date=$(opt.v[4]).val(); opt.o.list.ispage=true; opt.o.list.act.showpagenum=1; opt.o.list.act.key=key; opt.o.list.act.type1=type1; opt.o.list.act.type2=type2; opt.o.list.act.strat_date=strat_date; opt.o.list.act.end_date=end_date; opt.o.list.act.del="no"; if (strat_date>end_date && strat_date!="" && end_date!=""){$.MsgBox({title:"Condition error!",msg:"Start time, cannot be greater than end time!"});return} $(opt.p).Content(opt.o) } } ] } } }) break; /*--------------------------------------投notes记录列表--------------------------------------*/ case "BettingRecords": HX.Module="OtherBox"; $.ck("MastAction", "BasicInformation"); var usercenter = HX.GetMemberMemu(); $("#"+HX.Module).html(usercenter).find("#usercenterContent").Content({ list:{ url:HX.AU, checkbox:false, act:{Model:"User",Action:HX.Action+"_List"},//B_L_IsChaseCode:{name:"类型",fun:function(v){return v==1?"追号":"代购";}}, thname:{B_L_Order:"NO",B_L_Issue:"Issue number",B_L_AddTime:"Wager time",B_L_Code:"Bets",B_L_Type:{name:"Game name",fun:function(v){return HX.GetGameInfo(v);}},B_L_Money:"Purchase amount",B_L_State:{name:"state",fun:function(v){return v==1?"not been opened yet":v==2?"Win":v==3?"lost":v==4?"Opening":v==5?"Split order":v==6?"Stopped":"unknown";}},B_L_Multiple:"multiple",B_L_Rebate:"Rebate",B_L_WinMoney:"bonus",B_L_WinNum:"Note number",B_L_ReturnMoney:"Rebate"}, operating:[ { name:"details", fun:function(opt){ HX.GetOrderInfo(opt); } }, { name:function(opt){ return opt.v["B_L_State"]==1?"cancel the order":""; }, fun:function(opt){ $.MsgBox({ title:"cancel the order - number:"+opt.v["B_L_Order"], msg:"
    Are you sure you want to cancel the order? The purchase number is:
    Note: the purchase amount will be directly returned to your account, please check.
    ", button:[ { name:"confirm", fun:function (p,t){ $.PJ(HX.AU,{Model:"Game",Action:"Withdrawals",B_L_Order:opt.v["B_L_Order"]},function(s){ $.MsgBox({msg:s.msg}) HX.GetUserInfo(); opt.o.list.ispage=true; opt.o.list.act.showpagenum=1; opt.o.list.act.del="no"; $(opt.p).Content(opt.o) }) } } ] }) } } ], search:{ form:[ {tags:'Search content',input:''}, {tags:'Content type',input:''}, {tags:'play lottery',input:''}, {tags:'start time',input:''}, {tags:'End time',input:''} ], button:[ { name:"search", fun:function(opt){ //参数说明:v:搜索列表对像,o:参数列表,p:父对象,t:按钮自己 var key=$(opt.v[0]).val(); var type1=$(opt.v[1]).val(); var type2=$(opt.v[2]).val(); var strat_date=$(opt.v[3]).val(); var end_date=$(opt.v[4]).val(); opt.o.list.ispage=true; opt.o.list.act.showpagenum=1; opt.o.list.act.key=key; opt.o.list.act.type1=type1; opt.o.list.act.type2=type2; opt.o.list.act.strat_date=strat_date; opt.o.list.act.end_date=end_date; opt.o.list.act.del="no"; if (strat_date>end_date && strat_date!="" && end_date!=""){$.MsgBox({title:"Condition error!",msg:"Start time, cannot be greater than end time!"});return} $(opt.p).Content(opt.o) } } ] } } }) break; /*--------------------------------------盈亏记录列表--------------------------------------*/ case "ProfitAndLossStatistics": HX.Module="OtherBox"; $.ck("MastAction", "BasicInformation"); var usercenter = HX.GetMemberMemu(); $("#"+HX.Module).html(usercenter).find("#usercenterContent").Content({ list:{ url:HX.AU, checkbox:false, act:{Model:"User",Action:HX.Action+"_List"}, thname:{str0:"Statistical date",str1:"deposit",str2:"withdraw",str3:"buy",str4:"Pie Award",str5:"Rebate",str6:"other",str8:"Profit and loss",}, search:{ form:[ {tags:'start time',input:''}, {tags:'End time',input:''} ], button:[ { name:"search", fun:function(opt){ //参数说明:v:搜索列表对像,o:参数列表,p:父对象,t:按钮自己 var key=$(opt.v[0]).val(); var type1=$(opt.v[1]).val(); var type2=$(opt.v[2]).val(); var strat_date=$(opt.v[3]).val(); var end_date=$(opt.v[4]).val(); opt.o.list.ispage=true; opt.o.list.act.showpagenum=1; opt.o.list.act.strat_date=strat_date; opt.o.list.act.end_date=end_date; opt.o.list.act.del="no"; if (strat_date>end_date && strat_date!="" && end_date!=""){$.MsgBox({title:"Condition error!",msg:"start time,Cannot be greater than End time!"});return} $(opt.p).Content(opt.o) } } ] } } }) break; /*--------------------------------------账户充值表单--------------------------------------*/ case "AccountRecharge": HX.Module="OtherBox"; var step=1; var bankinfo=[]; var R_B_Presentations=""; var usercenter = HX.GetMemberMemu(); $("#"+HX.Module).html(usercenter).find("#usercenterContent").Content({ form:{ content:[ { tit:"Account Recharge", box:[ {tags:'Platform logo',input:' ',tips:""}, {tags:'payment platform',input:'',tips:"Choose a payment platform"}, {tags:'Bank Logo',input:' ',tips:""}, {tags:'Select bank',input:'',tips:"Please select a bank to recharge."}, {tags:'Recharge amount',input:'',tips:"Please enter a recharge amount."}, {tags:'Name of payee',input:'',tips:"Click to copy the collection name."}, {tags:'Collection account No',input:'',tips:"Click to copy the collection account number."}, {tags:'Payment card number',input:'',tips:"Enter your payment card number."}, {tags:'Account name',input:'',tips:"Please enter your account name."}, {tags:'Payment bank',input:'',tips:"Please enter the name of the paying bank."}, {tags:'Remarks',input:'',tips:"Please fill in the postscript."} ], tips:" ", button:[ { name:"next step", fun:function(opt){ var act={ Action:HX.Action+"_Pay", Step:step, Data:$(opt.p).find("form").serialize() } if (step==1){ //第一步 $.PJ(HX.AU,act,function(e){ if(e.error){ $.MsgBox({msg:e.msg}) }else{ step=2; if (HX.HX_System_Config.S_C_RechargeMode==3){ if(e.pay=="urlpay") { $.MsgBox({ msg:e.msg, button:[ { name:"Go to recharge", fun:function(p){ window.open(e.url); $(p).RemoveMsgBox(); } } ] }) } if(e.pay=="bankpay") { $.MsgBox({ title:"Payment information", msg:""+e.msg+"Amount to be paid:"+$("[name='B_Money']").val()+"$

    Remarks / postscript:"+HX.UserInfo.U_UserName+"

    Time of receipt: the bank's actual receipt shall prevail

    Please fill in the remittance notes / postscript in strict accordance with the requirements:
    ID:"+HX.UserInfo.U_UserName+" order number:"+e.msg_orderid+",     

    Otherwise, it can't get to the account correctly! If you have any questions, please contact customer service.

    ", button:[ { name:"Recharge", fun:function(p){ $(p).RemoveMsgBox(); $("[Action="+HX.Action+"]").click(); } } ] }) } if(e.pay=="imgpay") { if(e.msg_rUrl!="") { $.MsgBox({ msg:(e.msg=="")?"":""+e.msg+"订单号:"+e.msg_orderid+"
    ", button:[ { name:"Recharge", fun:function(p){ $(p).RemoveMsgBox(); $("[Action="+HX.Action+"]").click(); } }/*, { name:"前往充值", fun:function(p){ window.open(e.msg_rUrl); $(p).RemoveMsgBox(); } }*/ ] }) } else { $.MsgBox({ msg:(e.msg=="")?"":""+e.msg+"订单号:"+e.msg_orderid+"
    ", button:[ /*{ name:"保存二维码", fun:function(p){ window.open(e.msg_imgUrl); $(p).RemoveMsgBox(); } },*/ { name:"Recharge", fun:function(p){ $(p).RemoveMsgBox(); $("[Action="+HX.Action+"]").click(); } } ] }) } } if(e.pay=="jsonpay") { $.MsgBox({ msg:"请耐心等待生成二纬码,通常需要5-8秒。", button:[ { name:"confirm", type:1, fun:function (p){ $(p).RemoveMsgBox(); } } ] }) $.JQP(e.msg_jsonpUrl,{},function(josnp_data){ $.MsgBox({ msg:(e.msg=="")?"":e.msg+"", button:[ { name:"Recharge", fun:function(p){ $(p).RemoveMsgBox(); $("[Action="+HX.Action+"]").click(); } } ] }); }) } }else{ $(opt.p).find("[name=SelectBank]").parent().hide(); $(opt.p).find("[name=B_Money]").val(e.money).next().text("点击复制 注意:充值必须与该金额一至,否则导致不能到账.").css({"color":"red"}); $(opt.p).find("[name=B_UserName],[name=B_Cardnumber],[name=B_OrderId]").parent().show(); $(opt.t).parent().parent().hide(); $.MsgBox({ msg:e.msg, button:[ { name:"查看演示", fun:function(p){ $.MsgBox({title:"充值演示",id:"Presentations",msg:R_B_Presentations,autoclose:false}); } }, { name:"前往充值", fun:function(p){ window.open(bankinfo.B_C_Url); $(p).RemoveMsgBox(); } } ] }) //复制 $(opt.p).find("input:visible").zclip({ copy:function(){ return $(this).val(); }, path:"/Template/SkinR/Images/ZeroClipboard.swf", afterCopy:function(){ $(this).next().text("Copy succeeded").css({"color":"red"}); } }); } } }) } if (step==2){ $.MsgBox({ msg:"You have created an order, please complete the current order first.", button:[ { name:"Recharge", fun:function(p){ $(p).RemoveMsgBox(); $("[Action="+HX.Action+"]").click(); } } ] }) } } } ] } ], rfun:function(opt){ //alert(111); if (HX.HX_System_Config.S_C_RechargeMode==3){ $(opt).find(".Box:eq(0)>li:eq(5)").hide(); $(opt).find(".Box:eq(0)>li:eq(6)").hide(); $(opt).find(".Box:eq(0)>li:eq(7)").hide(); $(opt).find(".Box:eq(0)>li:eq(8)").hide(); $(opt).find(".Box:eq(0)>li:eq(9)").hide(); $(opt).find(".Box:eq(0)>li:eq(10)").hide(); if($('input[type=radio][name=banktype]').length==0){ $(opt).find(".Box:eq(0)>li:eq(0)").html(""); var numtmp=1; $(HX.HX_ThirdParty).each(function(i){ var tmpHtml='
    '; $(opt).find(".Box:eq(0)>li:eq(0)").html($(opt).find(".Box:eq(0)>li:eq(0)").html()+tmpHtml); if(numtmp%3==0) $(opt).find(".Box:eq(0)>li:eq(0)").html($(opt).find(".Box:eq(0)>li:eq(0)").html()+'
    '); numtmp++; }); }; $(opt).find("[name=ThirdParty]").attr("select",HX.ThirdParty_List).Select(function(_this,val){ $(HX.HX_ThirdParty).each(function(i){ if (val==HX.HX_ThirdParty[i].T_P_Id){ $('input[type=radio][value='+HX.HX_ThirdParty[i].T_P_Id+']').prop("checked",true); if(HX.HX_ThirdParty[i].T_P_PayType=="bankpay"){ //$(opt).find(".Box:eq(0)>li:eq(7)").show(); $(opt).find(".Box:eq(0)>li:eq(8)").show(); $(opt).find(".Box:eq(0)>li:eq(9)").show(); $(opt).find(".Box:eq(0)>li:eq(10)").show(); } else if(HX.HX_ThirdParty[i].T_P_PayType=="imgpay"){ $(opt).find(".Box:eq(0)>li:eq(8)").show(); $(opt).find(".Box:eq(0)>li:eq(9)").hide(); $(opt).find(".Box:eq(0)>li:eq(10)").show(); } else{ $(opt).find(".Box:eq(0)>li:eq(7)").hide(); $(opt).find(".Box:eq(0)>li:eq(8)").hide(); $(opt).find(".Box:eq(0)>li:eq(9)").hide(); if(HX.HX_ThirdParty[i].T_P_PayType!="imgpay") $(opt).find(".Box:eq(0)>li:eq(10)").hide(); else $(opt).find(".Box:eq(0)>li:eq(10)").show(); } $(opt).find(".Box:eq(0)>li:eq(2)").hide(); $(opt).find(".Box:eq(0)>li:eq(3)").hide(); $(opt).find(".Box:eq(0)>li:eq(4)").html('
  • Please enter a recharge amount.
  • '); if (HX.HX_ThirdParty[i].T_P_BList!=""){ var banklist=JSON.parse(HX.HX_ThirdParty[i].T_P_BList) if(banklist.length>0) { $(opt).find(".Box:eq(0)>li:eq(2)").show(); $(opt).find(".Box:eq(0)>li:eq(3)").show(); var arr=new Array; $(banklist).each(function(j){arr.push(banklist[j].name+'='+banklist[j].id);}) //银行改变 $(opt).find("[name=SelectBank]").val("").attr("select",arr.join("|")).Select(function(t,v) { $(banklist).each(function(k) { if (v==banklist[k].id) { if(banklist[k].num){ $(opt).find("input[type=text][name=B_Money]").attr("select",banklist[k].num).Select(function(t,v){}); } else{ $(opt).find(".Box:eq(0)>li:eq(4)").html('
  • Please enter a recharge amount.
  • '); } $(opt).find(".Box:eq(0)>li:eq(2)").html(""); } }) },true) } } } }) },true); $('input[type=radio][name=banktype]').change(function() { var tmpval=this.value; var tmptext=this.title; $(HX.HX_ThirdParty).each(function(i){ if (tmpval==HX.HX_ThirdParty[i].T_P_Id){ $('input[type=text][name=ThirdParty]').val(tmpval); $(opt).find(".Box:eq(0)>li:eq(1) div div").html(tmptext) if(HX.HX_ThirdParty[i].T_P_PayType=="bankpay"){ //$(opt).find(".Box:eq(0)>li:eq(7)").show(); $(opt).find(".Box:eq(0)>li:eq(8)").show(); $(opt).find(".Box:eq(0)>li:eq(9)").show(); $(opt).find(".Box:eq(0)>li:eq(10)").show(); } else if(HX.HX_ThirdParty[i].T_P_PayType=="imgpay"){ $(opt).find(".Box:eq(0)>li:eq(8)").show(); $(opt).find(".Box:eq(0)>li:eq(9)").hide(); $(opt).find(".Box:eq(0)>li:eq(10)").show(); } else{ $(opt).find(".Box:eq(0)>li:eq(7)").hide(); $(opt).find(".Box:eq(0)>li:eq(8)").hide(); $(opt).find(".Box:eq(0)>li:eq(9)").hide(); if(HX.HX_ThirdParty[i].T_P_PayType!="imgpay") $(opt).find(".Box:eq(0)>li:eq(10)").hide(); else $(opt).find(".Box:eq(0)>li:eq(10)").show(); } $(opt).find(".Box:eq(0)>li:eq(2)").hide(); $(opt).find(".Box:eq(0)>li:eq(3)").hide(); $(opt).find(".Box:eq(0)>li:eq(4)").html('
  • Please enter a recharge amount.
  • '); if (HX.HX_ThirdParty[i].T_P_BList!=""){ var banklist=JSON.parse(HX.HX_ThirdParty[i].T_P_BList) if(banklist.length>0) { $(opt).find(".Box:eq(0)>li:eq(2)").show(); $(opt).find(".Box:eq(0)>li:eq(3)").show(); var arr=new Array; $(banklist).each(function(j){arr.push(banklist[j].name+'='+banklist[j].id);}) $(opt).find("[name=SelectBank]").val("").attr("select",arr.join("|")).Select(function(t,v) { $(banklist).each(function(k) { if (v==banklist[k].id) { if(banklist[k].num){ $(opt).find("input[type=text][name=B_Money]").attr("select",banklist[k].num).Select(function(t,v){}); } else{ $(opt).find(".Box:eq(0)>li:eq(4)").html('
  • Please enter a recharge amount.
  • '); } $(opt).find(".Box:eq(0)>li:eq(2)").html(""); } }) },true) } } } }) }); }else{ $(opt).find(".Box:eq(0)>li:eq(0)").hide(); $(opt).find(".Box:eq(0)>li:eq(1)").hide(); $(opt).find("[name=B_UserName],[name=B_Cardnumber],[name=B_OrderId]").parent().hide(); //$(opt).find(".Box:eq(0)>li:eq(4)").html('
  • Please enter a recharge amount.
  • '); $(opt).find("[name=SelectBank]").attr("select",HX.Recharge_List).Select(function(_this,val){ bankinfo=HX.GetBankInfo(val); //显示当前银行信息 $(opt).find(".Box:eq(0)>li:eq(2)").html(""); //处理MY18充值特殊银行 if (HX.HX_System_Config.S_C_RechargeMode==2){ val==6 || val==7?$(opt).find("[name=D_AccountNumber],[name=D_AccountName]").parent().show():$(opt).find("[name=D_AccountNumber],[name=D_AccountName]").parent().hide(); }else{ $(opt).find("[name=D_AccountNumber],[name=D_AccountName]").parent().hide(); } $(HX.HX_Recharge).each(function(k){ if (HX.HX_Recharge[k].R_B_BankId==val){ var tips="温馨提示:"; tips+="

        尊敬的 "+HX.GetUserLevelPic()+" 账户会员您好.

    " tips+="

        您当前该银行的充值时间为: "+HX.HX_Recharge[k].R_B_StartTime+" - "+HX.HX_Recharge[k].R_B_EndTime+" .

    " tips+="

        您当前该银行的充值金额为:$:"+HX.HX_Recharge[k].R_B_MinMoney+"元 - $:"+HX.HX_Recharge[k].R_B_MaxMoney+"元.

    " tips+="

        请您在:"+HX.HX_Recharge[k].R_B_EffectiveTime+"分内完成充值,如过期,请勿继续充值.

    " tips+="

    "+HX.HX_Recharge[k].R_B_Explain.replace(/\n/g,"
    ")+"

    " R_B_Presentations=HX.HX_Recharge[k].R_B_Presentations; $(opt).find("[name=B_Money]").val(HX.HX_Recharge[k].R_B_MinMoney); $(opt).find("[name=B_UserName]").val(HX.HX_Recharge[k].R_B_AccountNumber); $(opt).find("[name=B_Cardnumber]").val(HX.HX_Recharge[k].R_B_AccountName); $(opt).find(".Tips").html(tips); } }) },true) } $.PJ(HX.AU,{Model:"User",Action:"AccountRecharge_tips"},function(s){ $(opt).find(".Tips").html(''+s.tips+""); },"json",false); } } }); break; /*--------------------------------------申请提款表单--------------------------------------*/ case "ApplicationWithdrawal": HX.Module="OtherBox"; $.PJ(HX.AU,{Action:HX.Action+"_GetBankList"},function(s){ //计算当前银行列表 if(s.list.length>0){ var usercenter = HX.GetMemberMemu(); $("#"+HX.Module).html(usercenter).find("#usercenterContent").Content({ form:{ content:[ { tit:"Withdrawal application", box:[ {tags:'Current balance',input:'',tips:"Your current balance"}, {tags:'Acceptable amount',input:'',tips:"The amount you can withdraw"}, {tags:'Select bank',input:'',tips:"Please select a withdrawal bank."}, {tags:'Withdrawal amount',input:'',tips:"Enter a withdrawal amount."}, {tags:'Bank card number',input:'',tips:"Input bank card number."}, /*{tags:'联系手机',input:'',tips:"用于客服确认提款信息。"},*/ {tags:'Security password',input:'',tips:"Please enter your security password. (the default security password is the same as the login password)"} ], tips:" ", button:[ { name:"Confirm withdrawal", fun:function(opt){ var act={ Action:HX.Action+"_Add", Data:$(opt.p).find("form").serialize() } $.PJ(HX.AU,act,function(s){ if(s.error){ if (s.error==10){ $.MsgBox({ msg:s.msg, button:[ { name:"confirm", fun:function(p,t){ $("[action=MemberBenefits]").click(); $(p).RemoveMsgBox(); } } ] }) }else{ $.MsgBox({msg:s.msg}) } }else{ $.MsgTips({ title:"Withdrawal notice", msg:s.msg, music:"/Template/SkinR/Music/MsgTips.mp3" }) $(opt.t).closest(".Content").find("[name=T_PassWord]").val(''); } }) } } ] } ], rfun:function(opt){ var temparr=new Array(); $(s.list).each(function(h){temparr.push(HX.GetBankName(s.list[h].U_B_BankId)+' - '+s.list[h].U_B_AccountName+' - '+s.list[h].U_B_Cardnumber.substring(s.list[h].U_B_Cardnumber.length-4)+'****' + ' '+s.list[h].U_B_BankName+'='+s.list[h].U_B_Id);}) $(opt).find("[name=T_Bank]").attr("select",temparr.join("|")).Select(function(_this,val){ //取得当前银行ID $(s.list).each(function(j){ if (s.list[j].U_B_Id==val){ //取得当前取款银行信息 $(HX.HX_Withdrawals).each(function(k){ if (HX.HX_Withdrawals[k].W_B_BankId==s.list[j].U_B_BankId){ var tips="reminder:"; //tips+="

        honorific "+HX.GetUserLevelPic()+" Hello, account member, you can withdraw money every day "+s.num2+" Times, each withdrawal "+s.amt2+" $,Withdrawal made today "+s.num1+" Time left "+(s.num2-s.num1)+" Time.

    " tips+="

        Your current withdrawal time of this bank is: "+HX.HX_Withdrawals[k].W_B_StartTime+" - "+HX.HX_Withdrawals[k].W_B_EndTime+" .

    " tips+="

        Your current withdrawal amount of this bank is:$:"+HX.HX_Withdrawals[k].W_B_MinMoney+"$ - $:"+HX.HX_Withdrawals[k].W_B_MaxMoney+"$.

    " //tips+="

        Your current withdrawal rate of this bank is:"+HX.HX_Withdrawals[k].W_B_Rate+"% Minimum service charge $:"+HX.HX_Withdrawals[k].W_B_RateMinMoney+"$ Maximum service charge $:"+HX.HX_Withdrawals[k].W_B_RateMaxMoney+"$.

    " tips+="

    "+HX.HX_Withdrawals[k].W_B_Explain.replace(/\n/g,"
    ")+"

    " $(opt).find("input:eq(3)").val(HX.HX_Withdrawals[k].W_B_MinMoney); $.PJ(HX.AU,{Model:"User",Action:"AccountRecharge_tips"},function(s){ if(s.tips!=""){ tips=''+s.tips+"
    "+tips; $(opt).find(".Tips").html(tips); } },"json",false); $(opt).find(".Tips").html(tips); return false; } }) return false; } }) },true) } } }); }else{ $.MsgBox({ msg:"Sorry, you have not set the bank information, please set the bank information first.", button:[ { name:"confirm", type:1, fun:function (p){ $(p).RemoveMsgBox(); $("[Action=BanksSet]").trigger("click"); } } ] }) return false; } }) break; /*--------------------------------------基本资料表单--------------------------------------*/ case "BasicInformation": HX.Module="OtherBox"; $.ck("MastAction", "BasicInformation"); var readonly=HX.UserInfo.U_Email==""?"":"readonly"; var emailtips=HX.UserInfo.U_Email==""?"It is used to confirm the user's identity in case of emergency.":"The email has been bound and cannot be modified temporarily. Please contact customer service for modification."; var usercenter = HX.GetMemberMemu(); $("#"+HX.Module).html(usercenter).find("#usercenterContent").Content({ form:{ content:[ { tit:"Basic Information", box:[ {tags:'your nickname',input:'',tips:"Please fill in your nickname."}, {tags:'Secure email',input:'',tips:emailtips}, {tags:'Contact line',input:'',tips:"Contact line.If not, do not fill in."}, {tags:'phone No',input:'',tips:"Optional, convenient for emergency contact."}, {tags:'retain info',input:'',tips:"Prevent fake platform, check when landing."} ], tips:"reminder:
        1. The secure email is used to confirm the user's identity in case of emergency.
        2. If the login password is not modified, please do not fill in.
        3. It is recommended to add a line account.
        4. If you encounter problems during operation, please contact customer service!", button:[ { name:"save", fun:function(opt){ $.PJ(HX.AU,{Action:HX.Action+"_Edit",Data:$(opt.p).find("form").serialize()},function(s){ if(s.error){ $(opt.p).ErrorTips(s.msg) }else{ if (s.othrermsg){ HX.GetUserInfo(); $(opt.p).ErrorTips(s.msg); }else{ HX.GetUserInfo(); $(opt.p).ErrorTips(s.msg); } } }) } } ] } ] } }); break; /*--------------------------------------密码管理表单--------------------------------------*/ case "LoginPWD": HX.Module="OtherBox"; $.ck("MastAction", "BasicInformation"); var usercenter = HX.GetMemberMemu(); $("#"+HX.Module).html(usercenter).find("#usercenterContent").Content({ form:{ content:[ { tit:"Login password", box:[ {tags:'Original login password',input:'',tips:"Original login password."}, {tags:'New login password',input:'',tips:"New login password."}, {tags:'Confirm new password',input:'',tips:"To confirm the new login password, you must go with the above one."} ], tips:"reminder:
        1、Please note that if you reset the password, please remember the new password, and it is recommended to update the password regularly to ensure the security of members!.
        2、Please do not fill in the security password if it is not modified.
        3、 If you forget the password, please contact the customer to reset the password for you.
        4、If you encounter problems during operation, please contact customer service!", button:[ { name:"save", fun:function(opt){ var p=$(opt.p).find("[name=U_PassWord1]").val(); if (p.length<5 || p.length>16){$(opt.p).ErrorTips("The length of the password should be 6-16 bits, please try to set a more complex password.");return false;} $.PJ(HX.AU,{Action:HX.Action+"_Edit",Data:$(opt.p).find("form").serialize()},function(s){$(opt.p).ErrorTips(s.msg);}) } } ] }, { tit:"Security password", box:[ {tags:'Original password',input:'',tips:"Original password.(The default is login password)"}, {tags:'New password',input:'',tips:"A new security password. It will not be changed if it is not entered."}, {tags:'Confirm new password',input:'',tips:"To confirm the new security password, it must be the same as the above one."} ], tips:"reminder:
        1. Please note that if you reset the password, please remember the new password, and it is recommended to update the password regularly to ensure the security of members! . < br > & nbsp; & nbsp; & nbsp; & nbsp; 2. Please do not fill in the security password if it is not modified. < br > & nbsp; & nbsp; & nbsp; & nbsp; 3. If you forget the password, please contact the customer to reset the password for you. < br > & nbsp; & nbsp; & nbsp; & nbsp; 4. If you encounter problems during operation, please contact customer service!", button:[ { name:"save", fun:function(opt){ var p=$(opt.p).find("[name=U_PassWord1]").val(); if (p!=""&&p.length<5 || p.length>16){$(opt.p).ErrorTips("The length of the password should be 6-16 bits, please try to set a more complex password.");return false;} $.PJ(HX.AU,{Action:"BankPWD_Edit",Data:$(opt.p).find("form#content_form1").serialize()},function(s){HX.GetUserInfo();$(opt.p).ErrorTips(s.msg);}) } } ] }, { //tips:"reminder:
        1、Please note that if you reset the password, please remember the new password, and it is recommended to update the password regularly to ensure the security of members!.
        2、Please do not fill in the security password if it is not modified.
        3、 If you forget the password, please contact the customer to reset the password for you.
        4、If you encounter problems during operation, please contact customer service!" } ] } }); break; /*--------------------------------------银行管理表单--------------------------------------*/ case "BankPWD": HX.Module="OtherBox"; $("#"+HX.Module).Content({ form:{ content:[ { tit:"安全密码", box:[ {tags:'原安全密码',input:'',tips:"原安全密码.(默认为登入密码)"}, {tags:'新安全密码',input:'',tips:"一个新的安全密码,不输入则不修改."}, {tags:'确认新密码',input:'',tips:"确认新安全密码,必须和上面一至."} ], tips:"温馨提示:
        1、请注意,如重新设置密码后,请一定牢记新的密码,并建议定期更新密码以保证会员的安全性!.
        2、安全密码如不修改,请勿填写.
        3、如忘记密码,请联系客户为您重置密码.
        4、如果操作过程中遇到问题,请与客服联系!", button:[ { name:"save", fun:function(opt){ var p=$(opt.p).find("[name=U_PassWord1]").val(); if (p!=""&&p.length<5 || p.length>16){$(opt.p).ErrorTips("密码长度应为6-16位,请尽量设置复杂一些的密码.");return false;} $.PJ(HX.AU,{Action:HX.Action+"_Edit",Data:$(opt.p).find("form").serialize()},function(s){HX.GetUserInfo();$(opt.p).ErrorTips(s.msg);}) } } ] } ] } }); break; /*--------------------------------------银行设置列表--------------------------------------*/ case "BanksSet": HX.Module="OtherBox"; $.ck("MastAction", "BasicInformation"); var usercenter = HX.GetMemberMemu(); $("#"+HX.Module).html(usercenter).find("#usercenterContent").Content({ list:{ url:HX.AU, checkbox:false, act:{Model:"User",Action:HX.Action+"_List"}, thname:{U_B_Id:"No",U_B_UserName:"Account",U_B_BankId:{name:"Bank name",fun:function(v){return HX.GetBankName(v);}},U_B_Cardnumber:"Bank no",U_B_AccountName:"name",U_B_Address:"address",U_B_Default:{name:"is defore",fun:function(v){return v==1?"YES":"NO";}},U_B_AddTime:"add time"}, search:{ button:[ { name:HX.UserInfo.U_IsLock==0?"Lock":"", fun:function(opt){ $.MsgBox({ title:"Lock Bank Info", form:{ list:[ {tags:'Security password',input:'',tips:"Please enter security password. (default is login password)"} ], tips:"Note: once locked, you will not be able to add bank card information. If you have not added bank card information, please add it first. < br > to unlock, please contact online customer service." }, button:[ { name:"lock", fun:function(p,t){ $.PJ(HX.AU,{Action:HX.Action+"_BankLock",Data:$(p).find("form").serialize()},function(e){if(e.error){$(p).ErrorTips(e.msg)}else{HX.UserInfo.U_IsLock=1;$(opt.p).Content(opt.o);$(p).RemoveMsgBox();window.setTimeout(function(){$("[action=BanksSet]").click();},0)}}) } } ] }) } }, { name:"Add bank", fun:function(opt){ if(HX.UserInfo.U_IsLock==1){ $.MsgBox({ title:"System prompt", msg:"Sorry, the bank information is locked. Please contact customer service if you need to modify it.", width:310, button:[ { name:"confirm", type:1, fun:function (p){ $(p).RemoveMsgBox(); //var _obj=$.OnlineService_Client; //if (!_obj.IsShow){$(_obj._parent).find(".Title").click();} //$(_obj._parent).find(".Tab li:eq(0)").click(); } } ] }) return false; } $.MsgBox({ title:"Add member bank", form:{ list:[ {tags:'bank or Wallet name',input:'',tips:"It will be used to withdraw money."}, {tags:'bank or Wallet name info',input:'',tips:"input the bank information or Wallet App name."}, {tags:'Is default',input:'',tips:"By default, the account will be withdrawn. Other default will be cancelled."}, {tags:'Account or Address',input:'',tips:"Input the Bank Account Or Wallet Address."}, {tags:'Account name',input:'',tips:"Account name."}, {tags:'Account opening address',input:'',tips:"Not required."}, {tags:'Security password',input:'',tips:"Verify security password. (default is login password)"}, {tags:'phone number',input:'',tips:"Contact mobile phone."} ], tips:"Note: once added, it cannot be modified. If you need to modify, please contact customer service, please fill in carefully." }, button:[ { name:"add", fun:function(p,t){ $.PJ(HX.AU,{Action:HX.Action+"_Add",Data:$(p).find("form").serialize()},function(e){if(e.error){$(p).ErrorTips(e.msg)}else{$(opt.p).Content(opt.o);$(p).RemoveMsgBox();}}) } } ] }) } } ] } } }) break; /*--------------------------------------个性设置表单--------------------------------------*/ case "PersonalizedSettings": HX.Module="OtherBox"; var usercenter = HX.GetMemberMemu(); $("#"+HX.Module).html(usercenter).find("#usercenterContent").Content({ form:{ content:[ { tit:"Personality settings", box:[ {tags:'Open voice',input:'',tips:"The sound of opening and sealing."}, {tags:'Win notice',input:'',tips:"If the prize amount is greater than this amount, the system will send a system message to inform you."}, {tags:'Withdrawal notice',input:'',tips:"When the withdrawal is successful, the system will send an email to inform you of the security mailbox bound."}, {tags:'Display number',input:'',tips:"This setting is, data list page, display the number of records, recommend the best display of 10."}, {tags:'Special effect',input:'',tips:"Here you can set up various special effects to facilitate users with poor configuration."} ], button:[ { name:"save", fun:function(opt){ var p=$(opt.p).find("[name=U_PrizewinnerTips]").val(); if (isNaN(p)){$(opt.p).ErrorTips("The winning notice amount must be a number greater than or equal to 0.");return false;} $.PJ(HX.AU,{Action:HX.Action+"_Edit",Data:$(opt.p).find("form").serialize()},function(s){HX.GetUserInfo();$(opt.p).ErrorTips(s.msg);}) } } ] } ] } }); break; /*--------------------------------------系统日志列表--------------------------------------*/ case "SystemLog": HX.Module="OtherBox"; var usercenter = HX.GetMemberMemu(); $("#"+HX.Module).html(usercenter).find("#usercenterContent").Content({ list:{ url:HX.AU, checkbox:false, act:{Model:"User",Action:HX.Action+"_List"}, thname:{S_L_Title:"Log title",S_L_Content:"Log content",S_L_AddTime:"Add time"}, search:{ form:[ {tags:'Search content',input:''}, {tags:'Content type',input:''}, {tags:'start time',input:''}, {tags:'End time',input:''} ], button:[ { name:"search", fun:function(opt){ //参数说明:v:搜索列表对像,o:参数列表,p:父对象,t:按钮自己 var key=$(opt.v[0]).val(); var type=$(opt.v[1]).val(); var strat_date=$(opt.v[2]).val(); var end_date=$(opt.v[3]).val(); opt.o.list.ispage=true; opt.o.list.act.showpagenum=1; opt.o.list.act.key=key; opt.o.list.act.type=type; opt.o.list.act.strat_date=strat_date; opt.o.list.act.end_date=end_date; opt.o.list.act.del="no"; if (strat_date>end_date && strat_date!="" && end_date!=""){$.MsgBox({title:"Condition error!",msg:"Start time, cannot be greater than end time!"});return} $(opt.p).Content(opt.o) } } ] } } }) break; /*--------------------------------------取款记录列表--------------------------------------*/ case "TellerLog": HX.Module="OtherBox"; var usercenter = HX.GetMemberMemu(); $("#"+HX.Module).html(usercenter).find("#usercenterContent").Content({ list:{ url:HX.AU, checkbox:false, act:{Model:"User",Action:HX.Action+"_List"}, thname:{T_L_OrderId:"NO",T_L_Money:"money",T_L_Bank:{name:"Withdrawal bank",fun:function(v){return HX.GetBankName(v);}},T_L_Cardnumber:"card number",T_L_Cardnumber1:"Confirm card number",T_L_State:{name:"state",fun:function(v){return v==1?"Paid":v==2?"Unpaid":v==3?"Rejected":"unknown";}},T_L_AddTime:"Withdrawal time"}, operating:[ { name:"detailed", fun:function(opt){ $.MsgBox({title:"NO:"+opt.v["T_L_OrderId"],msg:opt.v["T_L_Content"],autoclose:false}); } } ], search:{ form:[ {tags:'start time',input:''}, {tags:'End time',input:''} ], button:[ { name:"search", fun:function(opt){ //参数说明:v:搜索列表对像,o:参数列表,p:父对象,t:按钮自己 var strat_date=$(opt.v[2]).val(); var end_date=$(opt.v[3]).val(); opt.o.list.ispage=true; opt.o.list.act.showpagenum=1; opt.o.list.act.strat_date=strat_date; opt.o.list.act.end_date=end_date; opt.o.list.act.del="no"; if (strat_date>end_date && strat_date!="" && end_date!=""){$.MsgBox({title:"Condition error!",msg:"Start time, cannot be greater than end time!"});return} $(opt.p).Content(opt.o) } } ] } } }) break; /*--------------------------------------登陆日志列表--------------------------------------*/ case "LoginLog": HX.Module="OtherBox"; $("#"+HX.Module).Content({ list:{ url:HX.AU, checkbox:false, act:{Model:"User",Action:HX.Action+"_List"}, thname:{L_L_IP:"Login IP",L_L_Address:"Landing address",L_L_System:"System version",L_L_Browser:"Browser version",L_L_AddTime:"Landing time"}, search:{ form:[ {tags:'start time',input:''}, {tags:'End time',input:''} ], button:[ { name:"search", fun:function(opt){ //参数说明:v:搜索列表对像,o:参数列表,p:父对象,t:按钮自己 var strat_date=$(opt.v[0]).val(); var end_date=$(opt.v[1]).val(); opt.o.list.ispage=true; opt.o.list.act.showpagenum=1; opt.o.list.act.strat_date=strat_date; opt.o.list.act.end_date=end_date; opt.o.list.act.del="no"; if (strat_date>end_date && strat_date!="" && end_date!=""){$.MsgBox({title:"Condition error!",msg:"Start time, cannot be greater than end time!"});return} $(opt.p).Content(opt.o) } } ] } } }) break; /*--------------------------------------我的团队列表--------------------------------------*/ case "MyTeam": HX.Module="OtherBox"; var UserId=HX.UserInfo.U_Id; $.ck("MastAction", "MyTeam"); var usercenter = HX.GetMyTeamNemu(); $("#"+HX.Module).html(usercenter).find("#usercenterContent").Content({ list:{ url:HX.AU, checkbox:false, act:{Model:"User",Action:HX.Action+"_List",UserId:UserId}, thname:{U_Id:"编号",U_Type:{name:"类型",fun:function(v){return v==1?"代理账户":v==4?"总代理":v==5?"高级代理":"普通账户";}},U_UserName:"账号",U_Money:"余额",U_Level:{name:"等级",fun:function(v){return "";}},U_RebateA:"级别",U_RegTime:"注册时间",U_OnlineTime:{name:"在线状态",fun:function(v){return $.DateDiff(v,$.GetDate())<60?"在线":"离线";}},U_AddUser:{name:"权限",fun:function(v){return v==0?"禁止添加账户":v==1?"添加代理和会员":v==2?"添加代理":v==3?"添加会员":"";}}}, operating:[ { name:function(opt){ return opt.v["U_Agent"]!=HX.UserInfo.U_Id?"上级":""; }, fun:function(opt){ var act="Action="+HX.Action+"_getUp_Agent&Uid="+opt.v["U_Agent"]; $.PJ(HX.AU,act,function(s){ opt.o.list.ispage=true; opt.o.list.act.showpagenum=1; opt.o.list.act.key=""; opt.o.list.act.type1=0; opt.o.list.act.type2=0; opt.o.list.act.minmoney=""; opt.o.list.act.maxmoney=""; opt.o.list.act.UserId=s.id; opt.o.list.act.del="no"; $(opt.p).Content(opt.o); }) } }, { name:function(opt){ return opt.v["U_Agent"]==HX.UserInfo.U_Id?"留言":""; }, fun:function(opt){ var _obj=$.OnlineService_Client; if (!_obj.IsShow){$(_obj._parent).find(".Title").click();} $(_obj._parent).find(".Tab li:eq(2)").click(); _obj.ShowMsgLogBox($(_obj._parent).find("[tuser="+opt.v["U_UserName"]+"]")); } }, { name:function(opt){ return (HX.UserInfo.U_ToUserMoney>0)&&opt.v["U_Agent"]==HX.UserInfo.U_Id?"转账":""; }, fun:function(opt){ $.MsgBox({ title:"下级转账", width:600, form:{ list:[ {tags:'转入账户',input:'',tips:'转入会员账户,不可编辑.'}, {tags:'转账金额',input:'',tips:'请输入要转入的金额.'}, {tags:'安全密码',input:'',tips:'请输入您你安全密码.(默认为登入密码)'} ], tips:'温馨提示:
        1、转账后不可恢复,请认真考虑.
        2、转账成功后立即到账,禁止转账到小号,如发现立即删除.' }, button:[ { name:"confirm", fun:function(p,t){ $.PJ(HX.AU,{Action:HX.Action+"_Transfer",Data:$(p).find("form").serialize()},function(e){if(e.error){$(p).ErrorTips(e.msg)}else{$(p).RemoveMsgBox();$.MsgBox({msg:e.msg});}}) } } ] }) } }, { name:function(opt){ return opt.v["U_Agent"]==HX.UserInfo.U_Id && Number(HX.UserInfo.U_RebateA)>(Number(opt.v["U_RebateA"])+Number(HX.HX_System_Config.S_C_Rebate))?"返点":""; }, fun:function(opt){ var act="Action="+HX.Action+"_getDown_RebateA&Uid="+opt.v["U_Id"]; $.PJ(HX.AU,act,function(s){ var temparr=new Array(); for (i=HX.UserInfo["U_RebateA"]-HX.HX_System_Config.S_C_Rebate;i>s.U_RebateA;i-=HX.HX_System_Config.S_C_Rebate){ if (i<=s.U_RebateA || i<=opt.v["U_RebateA"] || i',tips:'设置一个返点的级别.'} ], tips:'温馨提示:
        1、返点级别不能大于等于自己并且不能小于当前会员下级返点级别.
        2、请合理调整返点级别.
        3、如不清楚,请勿做调整,以免影响会员级别平衡性.
        4、请认真考虑返点级别,如有不清楚的地方请咨询客服.' }, button:[ { name:"保存", fun:function(p,t){ $.PJ(HX.AU,{Action:HX.Action+"_Edit",Uid:opt.v["U_Id"],Rebate:$(p).find("[name=U_RebateA]").val()},function(e){if(e.error){$(p).ErrorTips(e.msg)}else{$(p).RemoveMsgBox();$.MsgBox({msg:e.msg});}}) } } ] }) }) } }, { name:function(opt){ return (opt.v["countuid"]>0) ?"查看":""; }, fun:function(opt){ UserId=opt.v["U_Id"]; opt.o.list.ispage=true; opt.o.list.act.showpagenum=1; opt.o.list.act.key=""; opt.o.list.act.type1=0; opt.o.list.act.type2=0; opt.o.list.act.minmoney=""; opt.o.list.act.maxmoney=""; opt.o.list.act.UserId=UserId; opt.o.list.act.del="no"; $(opt.p).Content(opt.o); } } ], search:{ form:[ {tags:'搜索内容',input:''}, {tags:'账户类型',input:''}, {tags:'在线状态',input:''}, {tags:'余额小于',input:''}, {tags:'余额大于',input:''} ], button:[ { name:"search", fun:function(opt){ //参数说明:v:搜索列表对像,o:参数列表,p:父对象,t:按钮自己 var key=$(opt.v[0]).val(); var type1=$(opt.v[1]).val(); var type2=$(opt.v[2]).val(); var minmoney=$(opt.v[3]).val(); var maxmoney=$(opt.v[4]).val(); if (isNaN(minmoney)){$.MsgBox({title:"Condition error!",msg:"最小余额不正确!",width:200});return} if (isNaN(maxmoney)){$.MsgBox({title:"Condition error!",msg:"最大余额不正确!",width:200});return} if (minmoney',tips:'请选择下级返点.'}, {tags:'账户类型',input:'',tips:"请选择账户类型."}, {tags:'账户权限',input:'',tips:"请选择账户权限."}, {tags:'登陆账号',input:'',tips:"允许中文、英文字母、数字、下划线,长度5-10个!"}, {tags:'登陆密码',input:'',tips:"登陆密码.初始设置,登陆密码与安全密码一致."} ], tips:'温馨提示:
        1、安全密码默认与登陆密码一至.
        2、请妥善保管好你的账户和密码.
        3、官方不会以任何方式索要您的账户和密码.' }, button:[ { name:"添加", fun:function(p,t){ var U_RebateA=$(p).find("[name=U_Rebate]").val(); var U_Type=$(p).find("[name=U_Type]").val(); var U_AddUser=$(p).find("[name=U_AddUser]").val(); var U_UserName=$(p).find("[name=U_UserName]").val(); var U_UserPass=$(p).find("[name=U_UserPass]").val(); if (U_RebateA=="" || isNaN(U_RebateA)){$(p).ErrorTips("请设置账户返点级别.");return false;} if (U_Type=="" || isNaN(U_Type)){$(p).ErrorTips("请设置账户类型.");return false;} if (U_AddUser=="" || isNaN(U_AddUser)){$(p).ErrorTips("请设置账户权限.");return false;} if (!U_UserName.match(/^[\u4E00-\u9FA5a-zA-Z0-9_]{0,}$/)) {$(p).ErrorTips("登陆账号只允许英文字母、数字、下划线,长度6-10个!");return false;} if (U_UserPass.length<6){$(p).ErrorTips("密码长度至少大于等于6位.");return false;} $.PJ(HX.AU,{Action:HX.Action+"_Add",U_Type:U_Type,U_UserName:U_UserName,U_UserPass:U_UserPass,U_AddUser:U_AddUser,U_RebateA:U_RebateA},function(e){ if(e.error){ $(p).ErrorTips(e.msg) }else{ $(p).RemoveMsgBox(); $("[action="+HX.Action+"]").click(); } }) } } ], rfun:function(obj){ if((HX.UserInfo.U_Type==1 || HX.UserInfo.U_Type==4 || HX.UserInfo.U_Type==5) && HX.UserInfo.U_RebateA-HX.HX_System_Config.S_C_Rebate>0){ //代理账户 if(HX.UserInfo.U_AddUser==1){ U_Type='代理账户=1|普通账户=2';//3客服 U_AddUser='添加代理和会员=1|允许添加代理=2|允许添加会员=3|禁止开户=0'; }else if(HX.UserInfo.U_AddUser==2){ U_Type='代理账户=1'; U_AddUser='允许添加代理=2|禁止开户=0'; }else{ U_Type='普通账户=2'; U_AddUser='允许添加会员=3|禁止开户=0'; } }else{ U_Type='普通账户=2'; U_AddUser='允许添加会员=3|禁止开户=0'; } $(obj).find("[name=U_AddUser]").attr("select",U_AddUser).Select(); $(obj).find("[name=U_Type]").attr("select",U_Type).Select(function(_this,val){ if((HX.UserInfo.U_Type==1 || HX.UserInfo.U_Type==4 || HX.UserInfo.U_Type==5) && HX.UserInfo.U_RebateA-HX.HX_System_Config.S_C_Rebate>0){ //代理账户 if(val==1){ U_AddUser='添加代理和会员=1|允许添加代理=2|允许添加会员=3|禁止开户=0'; }else if(HX.UserInfo.U_AddUser==2){ U_AddUser='允许添加代理=2|禁止开户=0|禁止开户=0'; }else{ U_AddUser='允许添加会员=3|禁止开户=0'; } }else{ U_AddUser='允许添加会员=3|禁止开户=0'; } $(obj).find("[name=U_AddUser]").attr("select",U_AddUser).Select(); }) } }) } } } ] } } }) break; /*--------------------------------------推广地址列表--------------------------------------*/ case "PromotionAddress": HX.Module="OtherBox"; var ishttps = 'https:' == document.location.protocol ? true : false; var httpherd="http:\/\/"; if(ishttps) httpherd="https:\/\/"; $.ck("MastAction", "MyTeam"); var usercenter = HX.GetMyTeamNemu(); $("#"+HX.Module).html(usercenter).find("#usercenterContent").Content({ list:{ url:HX.AU, checkbox:false, act:{Model:"User",Action:HX.Action+"_List"}, thname:{S_Id:"编号",S_Type:{name:"类型",fun:function(v){return v==1?"代理账户":"普通账户";}},S_Title:"说明",S_Rebate:"级别",S_State:{name:"状态",fun:function(v){return v==1?"有效":"无效";}},S_Count:"注册次数",S_AddTime:"添加时间"}, operating:[ { name:function(opt){return "
    复制
    ";}, fun:function(opt){ $.MsgBox({msg:"复制成功,您现在可以把链接发到各种渠道中进行推广."}) } }, { name:"打开", fun:function(opt){ window.open(httpherd+HX.Domain+"\/?Model=User&Action=Reg&Id="+opt.v["S_Id"],"newwindow") } }, { name:"二维码", fun:function(opt){ window.open(httpherd+HX.Domain+"\/qcode.php?url="+httpherd+HX.Domain+"\/?Model=User&Action=Reg&Id="+opt.v["S_Id"],"newwindow") } }, { name:"微信二维码", fun:function(opt){ window.open("http:\/\/"+HX.Domain+"\/qcode.php?url="+HX.HX_System_Config.S_C_WxVerification+"\/API\/weixin\/login.php?id="+opt.v["S_Id"],"newwindow") } }, { name:"删除", fun:function(opt){ $.MsgBox({ title:"删除地址", msg:"您确定要删除吗?", button:[ { name:"确定删除", fun:function(p,t){ $.PJ(HX.AU,{Action:HX.Action+"_Del",Id:opt.v["S_Id"]},function(e){ $.MsgBox({ title:"操作成功!", msg:e.msg, button:[ { name:"重新加载", fun:function(p,t){ $(p).RemoveMsgBox(); $("[action="+HX.Action+"]").click(); } } ], width:300 }); }) } } ], width:300 }); } } ], search:{ button:[ { name:"添加地址", fun:function(opt){ //参数说明:v:搜索列表对像,o:参数列表,p:父对象,t:按钮自己 if (HX.UserInfo.U_AddUser==0){ $.MsgBox({msg:"对不起,您当前没有添加的权限!",width:300}) }else{ var S_Rebate='',S_Type=''; if(!(HX.UserInfo.U_AddUser==3 && HX.UserInfo.U_Type==2)){ var Rebate=HX.UserInfo.U_RebateA var temparr=new Array(); var t_tmp=Number(Rebate); temparr.push(t_tmp+'='+t_tmp); for (i=0;i<=Rebate/HX.HX_System_Config.S_C_Rebate-1;i++){ var t_r=Number(Rebate-HX.HX_System_Config.S_C_Rebate*(i+1)).toFixed(1); if (t_r',tips:'请选择一个返点级别.'}, {tags:'账户类型',input:'',tips:'请选择账户类型.'}, {tags:'是否有效',input:'',tips:'设置为无效后,该地址将不能自助注册.'}, {tags:'备注说明',input:'',tips:'这里可以写一些关系该推广地址的说明.'} ], tips:"友情提示:请合理的设置返点级别,添加后不能修改和删除,如需修改或删除请联系客服." }, button:[ { name:"add", fun:function(p,t){ var S_Rebate=$(p).find("[name=S_Rebate]").val(); var S_Type=$(p).find("[name=S_Type]").val(); var S_State=$(p).find("[name=S_State]").val(); var S_Title=$(p).find("[name=S_Title]").val(); if (S_Title!=''&&!S_Title.match(/^[\u4E00-\u9FA5a-zA-Z0-9_]{0,}$/)) {$(p).ErrorTips("备注说明只允许汉字、英文字母、数字、下划线,长度6-10个!");return false;} $.PJ(HX.AU,{Action:HX.Action+"_Add",S_Rebate:S_Rebate,S_Type:S_Type,S_State:S_State,S_Title:S_Title},function(s){ if(s.error){ $(p).ErrorTips(s.msg) }else{ $(p).RemoveMsgBox(); $("[action="+HX.Action+"]").click(); } }) } } ] }) } } } ] } } }) break; /*--------------------------------------团队投注列表--------------------------------------*/ case "TelimBettingLog": $("#LeftBox").hide(); $("#RightBox").css("width",1182); HX.Module="OtherBox"; $.ck("MastAction", "MyTeam"); var usercenter = HX.GetMyTeamNemu(); $("#"+HX.Module).html(usercenter).find("#usercenterContent").Content({ list:{ url:HX.AU, checkbox:false, act:{Model:"User",Action:HX.Action+"_List"}, thname:{B_L_UserName:"所属会员",HX_U_Money:"余额",B_L_Issue:"期号",B_L_AddTime:"下注时间",B_L_Code:"下注内容",B_L_IsChaseCode:{name:"类型",fun:function(v){return v==1?"追号":"代购";}},B_L_Type:{name:"游戏玩法",fun:function(v){return HX.GetGameInfo(v);}},B_L_Money:"购买金额",B_L_State:{name:"状态",fun:function(v){return v==1?"未开奖":v==2?"已中奖":v==3?"未中奖":v==4?"开奖中":v==5?"已拆单":v==6?"已停止":"未知";}},B_L_Multiple:"倍数",B_L_Rebate:"返点",B_L_WinMoney:"奖金",B_L_WinNum:"注数",B_L_ReturnMoney:"返点"}, operating:[ { name:"详情", fun:function(opt){ HX.GetOrderInfo(opt); } } ], search:{ form:[ {tags:'搜索内容',input:''}, {tags:'内容类型',input:''}, {tags:'玩法彩种',input:''}, {tags:'开始时间',input:''}, {tags:'结束时间',input:''} ], button:[ { name:"search", fun:function(opt){ //参数说明:v:搜索列表对像,o:参数列表,p:父对象,t:按钮自己 var key=$(opt.v[0]).val(); var type1=$(opt.v[1]).val(); var type2=$(opt.v[2]).val(); var strat_date=$(opt.v[3]).val(); var end_date=$(opt.v[4]).val(); opt.o.list.ispage=true; opt.o.list.act.showpagenum=1; opt.o.list.act.key=key; opt.o.list.act.type1=type1; opt.o.list.act.type2=type2; opt.o.list.act.strat_date=strat_date; opt.o.list.act.end_date=end_date; opt.o.list.act.del="no"; if (strat_date>end_date && strat_date!="" && end_date!=""){$.MsgBox({title:"Condition error!",msg:"Start time, cannot be greater than end time!"});return} $(opt.p).Content(opt.o) } } ] } } }) break; /*--------------------------------------团队即时注单--------------------------------------*/ case "BLCodeDetailsLog": $("#LeftBox").hide(); $("#RightBox").css("width",1182); HX.Module="OtherBox"; $.ck("MastAction", "MyTeam"); var usercenter = HX.GetMyTeamNemu(); $("#"+HX.Module).html(usercenter).find("#usercenterContent").Content({ list:{ url:HX.AU, checkbox:false, act:{Model:"User",Action:HX.Action+"_List"}, thname:{B_L_UserName:"所属会员",HX_U_Money:"余额",B_L_Issue:"期号",B_L_AddTime:"下注时间",B_L_Code:"下注内容",B_L_Type:{name:"游戏玩法",fun:function(v){return HX.GetGameInfo(v);}},B_L_Money:"购买金额",B_L_Multiple:"倍数"}, operating:[ { name:"详情", fun:function(opt){ HX.GetOrderInfo(opt); } } ], search:{ form:[ {tags:'搜索内容',input:''}, {tags:'内容类型',input:''}, {tags:'玩法彩种',input:''}, {tags:'开始时间',input:''}, {tags:'结束时间',input:''} ], button:[ { name:"search", fun:function(opt){ //参数说明:v:搜索列表对像,o:参数列表,p:父对象,t:按钮自己 var key=$(opt.v[0]).val(); var type1=$(opt.v[1]).val(); var type2=$(opt.v[2]).val(); var strat_date=$(opt.v[3]).val(); var end_date=$(opt.v[4]).val(); opt.o.list.ispage=true; opt.o.list.act.showpagenum=1; opt.o.list.act.key=key; opt.o.list.act.type1=type1; opt.o.list.act.type2=type2; opt.o.list.act.strat_date=strat_date; opt.o.list.act.end_date=end_date; opt.o.list.act.del="no"; if (strat_date>end_date && strat_date!="" && end_date!=""){$.MsgBox({title:"Condition error!",msg:"Start time, cannot be greater than end time!"});return} $(opt.p).Content(opt.o) } } ] } } }) break; /*--------------------------------------团队冲值提现--------------------------------------*/ case "MyTeamRechargeRecord": //$("#LeftBox").hide(); //$("#RightBox").css("width",1182); HX.Module="OtherBox"; var usercenter = HX.GetMyTeamNemu(); $("#"+HX.Module).html(usercenter).find("#usercenterContent").Content({ list:{ url:HX.AU, checkbox:false, act:{Model:"User",Action:HX.Action+"_List"}, thname:{R_R_OrderId:"订单编号",R_R_UserName:"所属会员",R_R_Bank:{name:"所属银行",fun:function(v,t){return t["B_R_Type"]==1?HX.GetBankName(v):HX.GetThirdPartyName(v);}},R_R_Money:"Recharge amount",R_R_ReallyMoney:"实充金额",R_R_State:{name:"状态",fun:function(v){return v==1?"成功":v==2?"正常":v==9?"忽略":"失败";}},R_R_AddTime:"操作日期",R_R_AgentList:"上级会员"}, search:{ form:[ {tags:'用户账号',input:''}, {tags:'订单状态',input:''}, {tags:'开始时间',input:''}, {tags:'结束时间',input:''} ], button:[ { name:"search", fun:function(opt){ //参数说明:v:搜索列表对像,o:参数列表,p:父对象,t:按钮自己 var key=$(opt.v[0]).val(); var type1=$(opt.v[1]).val(); var type2=$(opt.v[2]).val(); var strat_date=$(opt.v[3]).val(); var end_date=$(opt.v[4]).val(); opt.o.list.ispage=true; opt.o.list.act.showpagenum=1; opt.o.list.act.key=key; opt.o.list.act.type1=type1; opt.o.list.act.type2=type2; opt.o.list.act.strat_date=strat_date; opt.o.list.act.end_date=end_date; opt.o.list.act.del="no"; if (strat_date>end_date && strat_date!="" && end_date!=""){$.MsgBox({title:"Condition error!",msg:"Start time, cannot be greater than end time!"});return} $(opt.p).Content(opt.o) } } ] } } }) break; case "MyTeamWithdrawRequest": HX.Module="OtherBox"; var usercenter = HX.GetMyTeamNemu(); $("#"+HX.Module).html(usercenter).find("#usercenterContent").Content({ list:{ url:HX.AU, checkbox:false, act:{Model:"User",Action:HX.Action+"_List"}, thname:{T_L_OrderId:"订单编号",T_L_UserName:"用户",T_L_Tel:"联系电话",T_L_Bank:{name:"取款银行",fun:function(v){return HX.GetBankName(v);}},T_L_Cardnumber:"账号",T_L_AccountName:"户名",T_L_Money:"取款金额",T_L_Servicefee:"服务费",T_L_State:{name:"状态",fun:function(v){return v==1?"已支付":v==2?"未支付":v==3?"已拒绝":"未知";}},R_Shopping:"当日消费",T_L_AddTime:"操作日期",T_L_Agent:"上级用户"}, search:{ form:[ {tags:'用户账号',input:''}, {tags:'订单状态',input:''}, {tags:'开始时间',input:''}, {tags:'结束时间',input:''} ], button:[ { name:"search", fun:function(opt){ //参数说明:v:搜索列表对像,o:参数列表,p:父对象,t:按钮自己 var key=$(opt.v[0]).val(); var type1=$(opt.v[1]).val(); var type2=$(opt.v[2]).val(); var strat_date=$(opt.v[3]).val(); var end_date=$(opt.v[4]).val(); opt.o.list.ispage=true; opt.o.list.act.showpagenum=1; opt.o.list.act.key=key; opt.o.list.act.type1=type1; opt.o.list.act.type2=type2; opt.o.list.act.strat_date=strat_date; opt.o.list.act.end_date=end_date; opt.o.list.act.del="no"; if (strat_date>end_date && strat_date!="" && end_date!=""){$.MsgBox({title:"Condition error!",msg:"Start time, cannot be greater than end time!"});return} $(opt.p).Content(opt.o) } } ] } } }) break; /*--------------------------------------团队报表列表--------------------------------------*/ case "TeamReport": $("#LeftBox").hide(); $("#RightBox").css("width",1182); HX.Module="OtherBox"; var userid=HX.UserInfo.U_Id; $.ck("MastAction", "MyTeam"); var usercenter = HX.GetMyTeamNemu(); $("#"+HX.Module).html(usercenter).find("#usercenterContent").Content({ list:{ url:HX.AU, checkbox:false, act:{Model:"User",Action:HX.Action+"_List",userid:userid,pagenum:10}, thname:{S_0:"会员账号",S_1:"存款",S_2:"取款",S_3:"代购",S_4:"派奖",S_5:"返点",S_6:"其它",S_8:"盈亏"}, operating:[ { name:function(opt){ return (opt.v["countuid"]>0)&&opt.v["uid"]!=userid ?"查看":""; }, fun:function(opt){ userid=opt.v["uid"]; opt.o.list.ispage=true; opt.o.list.act.showpagenum=1; opt.o.list.act.userid=userid; opt.o.list.act.del="no"; $(opt.p).Content(opt.o); } }, { name:function(opt){ return opt.v["agent"]>0&&Number(HX.UserInfo.U_Id)<=Number(opt.v["agent"])?"上级":""; }, fun:function(opt){ userid=opt.v["agent"]; opt.o.list.ispage=true; opt.o.list.act.showpagenum=1; opt.o.list.act.userid=userid; opt.o.list.act.del="no"; $(opt.p).Content(opt.o); } } ], search:{ form:[ {tags:'开始时间',input:''}, {tags:'结束时间',input:''}, {tags:'会员账户',input:''} ], button:[ { name:"search", fun:function(opt){ //参数说明:v:搜索列表对像,o:参数列表,p:父对象,t:按钮自己 var strat_date=$(opt.v[0]).val(); var end_date=$(opt.v[1]).val(); var ukey=$(opt.v[2]).val(); if (strat_date>end_date && strat_date!="" && end_date!=""){$.MsgBox({title:"Condition error!",msg:"Start time, cannot be greater than end time!"});return} opt.o.list.ispage=true; opt.o.list.act.showpagenum=1; opt.o.list.act.userid=userid; opt.o.list.act.strat_date=strat_date; opt.o.list.act.end_date=end_date; opt.o.list.act.del="no"; opt.o.list.act.key=ukey; $(opt.p).Content(opt.o); } } ] } } }) break; /*--------------------------------------推荐团队报表--------------------------------------*/ case "Agent_TeamReport": HX.Module="OtherBox"; var userid=HX.UserInfo.U_Id; $.ck("MastAction", "MyTeam"); var usercenter = HX.GetMyTeamNemu(); $("#"+HX.Module).html(usercenter).find("#usercenterContent").Content({ list:{ url:HX.AU, checkbox:false, act:{Model:"User",Action:HX.Action+"_List",userid:userid,pagenum:10}, thname:{S_0:"会员账号",S_1:"存款",S_2:"取款",S_3:"代购",S_4:"派奖",S_5:"返点",S_6:"其它",S_8:"盈亏"}, operating:[ { name:function(opt){ return (opt.v["countuid"]>0)&&opt.v["uid"]!=userid ?"查看":""; }, fun:function(opt){ userid=opt.v["uid"]; opt.o.list.ispage=true; opt.o.list.act.showpagenum=1; opt.o.list.act.Action="TeamReport_List"; opt.o.list.act.userid=userid; opt.o.list.act.del="no"; $(opt.p).Content(opt.o); } }, { name:function(opt){ return opt.v["agent"]>0&&Number(HX.UserInfo.U_Id)<=Number(opt.v["agent"])?"上级":""; }, fun:function(opt){ userid=opt.v["agent"]; opt.o.list.ispage=true; opt.o.list.act.showpagenum=1; opt.o.list.act.userid=userid; opt.o.list.act.del="no"; $(opt.p).Content(opt.o); } } ], search:{ form:[ {tags:'开始时间',input:''}, {tags:'结束时间',input:''}, {tags:'会员账户',input:''} ], button:[ { name:"search", fun:function(opt){ //参数说明:v:搜索列表对像,o:参数列表,p:父对象,t:按钮自己 var strat_date=$(opt.v[0]).val(); var end_date=$(opt.v[1]).val(); var ukey=$(opt.v[2]).val(); if (strat_date>end_date && strat_date!="" && end_date!=""){$.MsgBox({title:"Condition error!",msg:"Start time, cannot be greater than end time!"});return} opt.o.list.ispage=true; opt.o.list.act.showpagenum=1; opt.o.list.act.userid=userid; opt.o.list.act.strat_date=strat_date; opt.o.list.act.end_date=end_date; opt.o.list.act.del="no"; opt.o.list.act.key=ukey; $(opt.p).Content(opt.o); } } ] } } }) break; /*--------------------------------------平台公告--------------------------------------*/ case "showgonggaopop": $("#gonggaopop").show(); break; /*--------------------------------------最新活动列表--------------------------------------*/ case "LatestEvents": HX.Module="OtherBox"; $("#"+HX.Module).Content({ list:{ checkbox:false, url:HX.AU, act:{Model:"User",Action:HX.Action+"_List",pagenum:5}, msg:function(data){ //alert(111); var html=''; html+='
    '; html+='

    Latest Activity

    '; html+='
    '; $(data).each(function(i){ var a=data[i]; html+='
    '; html+='
    '; html+='
    '; html+='
    '; html+=' '; html+='
    '; html+='
    '; html+='

    '+a["A_L_Title"]+'

    '; html+='

    '; html+=' '; html+=' '; html+=' Activity time:'+a["A_L_StartTime"]+'-'+a["A_L_EndTime"]; html+=' '; html+=' '; html+='
    '; html+='

    '; html+='

    '; html+=' '; html+=' '; html+=' Introduction to the Activity:'+a["A_L_Content"].replace(/\n/g,"
    "); html+='
    '; html+='
    '; html+='

    '; html+='

    Get involved now

    '; html+='
    '; html+='
    '; html+='
    '; html+='
    '; }); html+='
    '; html+='
    '; return html; }, rfun:function(opt){ $(opt.p).find(".Content").css({"border":"0px"}); $(opt.p).find("[hx_jq=Events]").click(function(){ var data=null; var tid=$(this).attr("tid"); $(opt.d).each(function(i){ if (opt.d[i].A_L_Id==tid){ data=opt.d[i]; return ; } }) switch(tid){ case "3": //积分兑换 var a=$.parseJSON(data.A_L_RewardValue) var m=Math.floor(HX.UserInfo.U_Integral/a) $.MsgBox({ title:"Points exchange", form:{ list:[ {tags:'Exchange amount',input:'',tips:"$"} ], tips:a+"Points can be exchanged for 1 yuan. You can exchange them at present: "+m+" $!
    The way to get points is: every consumption "+HX.HX_System_Config.S_C_BuyIntegral+" One integral can be obtained!" }, button:[ { name:"confirm", type:1, fun:function (p,t){ var money=$(p).find("[name=money]").val(); if (isNaN(money) || money=="" || money<=0){ $(p).ErrorTips("The exchange amount can only be a positive integer");return; } money=Math.floor(money); if (money>m){ $(p).ErrorTips("Sorry, you can exchange at most at present:"+m+"$");return; } $.PJ(HX.AU,{Model:"Events",Action:"ExecuteEvents",Id:tid,money:money},function(s){$.MsgBox({msg:s.msg,button:[{name:"confirm",fun:function(p,t){$(p).RemoveMsgBox();HX.GetUserInfo();}}]})}) } } ] }); break; default : $.PJ(HX.AU,{Model:"Events",Action:"ExecuteEvents",Id:tid},function(s){$.MsgBox({msg:s.msg,button:[{name:"confirm",fun:function(p,t){$(p).RemoveMsgBox();HX.GetUserInfo();}}]})}) break; } }) } } }) break; /*--------------------------------------往期活动列表--------------------------------------*/ case "PastEvents": HX.Module="OtherBox"; $("#"+HX.Module).Content({ list:{ checkbox:false, url:HX.AU, act:{Model:"User",Action:HX.Action+"_List",pagenum:3}, msg:function(data){ var html='
    '; html+='

    往期活动

    '; $(data).each(function(i){ var a=data[i]; html+='
    '; html+='
    '; html+='
    '; html+='
    '; html+='
      '; html+='
    • 活动名称:'+a["A_L_Title"]+'
    • '; html+='
    • 活动时间:'+a["A_L_Time"]+'
    • '; html+='
    • 活动介绍:

      '+a["A_L_Content"].replace(/\n/g,"
      ")+'

    • '; html+='
    '; html+='
    '; html+='
    '; html+='
    '; }) html+='
    '; return html; }, rfun:function(t){ $(t).find(".Content").css({"border":"0px"}); } } }) break; /*--------------------------------------信息反馈操作--------------------------------------*/ case "Feedback": //window.open("http://www6.53kf.com/webCompany.php?arg=10032075","_blank") //var _obj=$.OnlineService_Client; //if (!_obj.IsShow){$(_obj._parent).find(".Title").click();} //$(_obj._parent).find(".Tab li:eq(0)").click(); return false; /*--------------------------------------在线客服操作--------------------------------------*/ case "OnlineService": //window.open("http://www6.53kf.com/webCompany.php?arg=10032075","_blank") //var _obj=$.OnlineService_Client; //if (!_obj.IsShow){$(_obj._parent).find(".Title").click();} //$(_obj._parent).find(".Tab li:eq(0)").click(); return false; /*--------------------------------------绑定手机下载--------------------------------------*/ case "android": case "iphone": case "windowsphone7": $.MsgBox({ msg:"正在开发中,敬请期待!" }) return false; case "windowpc": window.open("/download/百乐彩.rar") return false; /*--------------------------------------会员特权说明--------------------------------------*/ case "WinLog": HX.Module="OtherBox"; $("#"+HX.Module).Content({ list:{ checkbox:false, url:HX.AU, act:{Model:"User",Action:HX.Action+"_List",type:HX.Game_Id_1}, thname:{W_Issue:"期号",W_Type:{name:"所属彩种",fun:function(v){var HX_Game_Name='';$(HX.HX_Game_Name).each(function(n){if (v==HX.HX_Game_Name[n]["G_N_Id"]){HX_Game_Name=HX.HX_Game_Name[n]["G_N_Title"];}});return HX_Game_Name;}},W_Code:"开始号码",W_IsWin:{name:"是否派奖",fun:function(v){return v==1?"是":"否";}},W_WinTime:"开奖时间"}, search:{ form:[ {tags:'开奖期号',input:''}, {tags:'玩法彩种',input:''} ], button:[ { name:"search", fun:function(opt){ var key=$(opt.v[0]).val(); var type=$(opt.v[1]).val(); opt.o.list.ispage=true; opt.o.list.act.showpagenum=1; opt.o.list.act.key=key; opt.o.list.act.type=type; opt.o.list.act.del="no"; $(opt.p).Content(opt.o) } } ] } } }) break; /*--------------------------------------会员特权说明--------------------------------------*/ case "MemberBenefits": HX.Module="OtherBox"; $("#"+HX.Module).Content({ list:{ checkbox:false, page:false, url:HX.AU, act:{Model:"User",Action:HX.Action+"_List",pagenum:10}, thname:{M_B_Level:{name:"会员等级",fun:function(v){return HX.GetUserLevelPic(v);}},M_B_UpgradeExp:"升级经验(>=)",M_B_Fee:"取款手续费",M_B_ToDayWithdrawalFrequency:"提现次数",M_B_BankNumber:"银行个数",M_B_LowerNumber:"代理个数"} } }) break; case "WebMsg": HX.Module="OtherBox"; var html='
    '; html+='
    '; html+='
    公告消息
    '; html+='
      '; $(HX.HX_Web_Msg).each(function(i){ html+="
    • "+HX.HX_Web_Msg[i].W_M_AddTime+"

      "+HX.HX_Web_Msg[i].W_M_Title+"

      "+HX.HX_Web_Msg[i].W_M_Content+"

    • "; }) html+='
    '; html+='
    '; html+='
    '; $("#"+HX.Module).html(html); break; case "WebMsgContent": var web_msg_content = $(this).find(".content").html(); $.MsgBox({ title:"Notice Content", width:400, msg: "

    "+web_msg_content+"

    ", button:[ { name:"confirm",fun:function(p,t){$(p).RemoveMsgBox();} } ] }) //alert(web_msg_content); return false; /*--------------------------------------最新活动列表--------------------------------------*/ case "WebNews": HX.Module="OtherBox"; $("#"+HX.Module).Content({ list:{ checkbox:false, url:HX.AU, act:{Model:"User",Action:HX.Action+"_List",pagenum:5}, msg:function(data){ var html=''; html+='
    '; html+=''; html+='
      '; $(data).each(function(i){ var a=data[i]; html+='
    • '; html+=' 【 '+(a["W_M_Type"]=="1"?"技巧":"新闻")+' 】'; html+=' '+a["W_M_Title"]+''; html+=' '+a["W_M_AddTime"]+''; html+='
    • '; }); html+='
    '; html+='
    '; html+='
    '; return html; }, rfun:function(opt){ $(opt.p).find("[hx_jq=WebNewsList]").click(function(){ var data=null; var news_Id=$(this).attr("news_Id"); $(opt.d).each(function(i){ if (opt.d[i].W_M_Id==news_Id){ data=opt.d[i]; return false; } }) var html=''; html+='
    '; html+=''; html+='
    '; html+='

    '+data.W_M_Title+'

    来源:网络
    '; html+='
    摘要:'+data.W_M_Content+'
    '; html+='
    '+data.W_M_Content+'
    '; $("#"+HX.Module).html(html); }) var action_news_Id = $(_this).attr("action_news_Id"); if(action_news_Id) { $(opt.p).find("[hx_jq='WebNewsList'][news_Id='"+action_news_Id+"']:eq(0)").click(); } } } }) break; case "WebMemo": HX.Module="OtherBox"; $("#"+HX.Module).Content({ list:{ checkbox:false, page:false, url:HX.AU, act:{Model:"User",Action:HX.Action+"_List",pagenum:5}, msg:function(data){ var html=''; html+='
    '; html+=''; html+='
    '; html+='
    '; html+='
    '; html+=' 所有彩票 '; html+='
    '; $(data).each(function(i){ var a=data[i]; html+='
    '; html+=' '+a["W_M_Title"]+' '; html+='
    '; }); html+='
    '; html+='
    '; html+='
    '; html+='
    '; html+='
    '; return html; }, rfun:function(opt){ $(opt.p).find("[hx_jq=WebMemoDetail]").click(function(){ $(this).parents(".wanfa_sub_left").find(".sub_item").removeClass("hover"); $(this).parents(".sub_item").addClass("hover"); var data=null; var tid=$(this).attr("tid"); $(opt.d).each(function(i){ if (opt.d[i].W_M_Id==tid){ data=opt.d[i]; return false; } }) var html=''; html+='
     '+data.W_M_Title+'
    '; html+='
    '+data.W_M_Content+'
    '; $("[hx_jq=WebMemo_Content]").html(html); }).eq(0).click(); } } }) break; case "WebHelp": HX.Module="OtherBox"; $("#"+HX.Module).Content({ list:{ checkbox:false, page:false, url:HX.AU, act:{Model:"User",Action:HX.Action+"_List"}, msg:function(data){ var html=''; html+='
    '; html+=''; html+='
    '; html+='
    '; html+='
    '; html+=' '; html+='
    '; html+='
    '; html+=' '; html+='
    '; html+='
    '; html+=' '; html+='
    '; html+='
    '; html+=' '; html+='
    '; html+='
    '; html+=' '; html+='
    '; html+='
    '; html+='
    '; html+='
    '; html+='
    '; html+='
    '; html+='
      '; html+='
    • '; html+=' register '; html+='
    • '; html+='
    • '; html+=' Recharge '; html+='
    • '; html+='
    • '; html+=' Betting '; html+='
    • '; html+='
    • '; html+=' prize '; html+='
    • '; html+='
    • '; html+=' drawing '; html+='
    • '; html+='
    '; html+='
    '; html+='
    '; html+=' '; html+='
    '; html+='
    '; html+='
    '; html+='
    '; html+='

    common problem

    '; html+='
      '; $(data).each(function(i){ data_each=data[i]; if (data_each.W_M_Type=="1"){ html+='
    • ·'+data_each.W_M_Title+'
    • '; } }) html+='
    '; html+='
    '; html+='
    '; html+='

    Personal account number

    '; html+='
      '; $(data).each(function(i){ data_each=data[i]; if (data_each.W_M_Type=="2"){ html+='
    • ·'+data_each.W_M_Title+'
    • '; } }) html+='
    '; html+='
    '; html+='
    '; html+='

    Top up withdrawal

    '; html+='
      '; $(data).each(function(i){ data_each=data[i]; if (data_each.W_M_Type=="3"){ html+='
    • ·'+data_each.W_M_Title+'
    • '; } }) html+='
    '; html+='
    '; html+='
    '; html+='

    Rule description

    '; html+='
      '; $(data).each(function(i){ data_each=data[i]; if (data_each.W_M_Type=="4"){ html+='
    • ·'+data_each.W_M_Title+'
    • '; } }) html+='
    '; html+='
    '; html+='
    '; html+='
    '; html+='
    '; html+='
    '; html+='
    '; return html; }, rfun:function(opt){ $(opt.p).find("[WebHelpList_type]").click(function(){ var data=null; var data_help_type=$(this).attr("WebHelpList_type"); var html='
    '; $(opt.d).each(function(i){ if (opt.d[i].W_M_Type==data_help_type){ data=opt.d[i]; html+='
    '; html+='
    '; html+='
    '; html+=' '+(i+1)+'、'+data.W_M_Title; html+='
    '; html+='
    '; html+=' '; html+='
    '; } }) html+='
    '; $("[hx_jq='WebHelpContent']").html(html); var data_help_id = $(this).attr("WebHelpList_id"); if(data_help_id) { $("[hx_jq='WebHelpContent']").find("[data_help_id='help_"+data_help_id+"']:eq(0)").click(); } }); var action_help_type = $(_this).attr("action_help_type"); var action_help_id = $(_this).attr("action_help_id"); if(action_help_type) { if(action_help_id) { $(opt.p).find("[WebHelpList_type='"+action_help_type+"']:eq(0)").attr("WebHelpList_id",action_help_id).click(); } else { $(opt.p).find("[WebHelpList_type='"+action_help_type+"']:eq(0)").click(); } } } } }) break; /*--------------------------------------基本资料表单--------------------------------------*/ case "UserReg": HX.Module="OtherBox"; location.href = "#firstAnchor"; $("#"+HX.Module).Content({ form:{ content:[ { tit:"基本资料", box:[ {tags:'您的昵称',input:'',tips:"请填写您的您的昵称."}, {tags:'安全邮箱',input:'',tips:emailtips}, {tags:'联系QQ',input:'',tips:"可选,腾讯QQ.如没有可不填写."}, {tags:'联系电话',input:'',tips:"可选,方便紧急联系."}, {tags:'预留信息',input:'',tips:"为防止假冒平台,登陆时核对的信息.长度请不要超过50个字符."} ], tips:"温馨提示:
        1、输入安全邮箱后,系统将发送一条验证码到您所填写的邮箱中,填写正确的验证码后,绑定成功.如未填写将不作更改.
        2、登陆密码如不修改,请勿填写.
        3、建议填写联系QQ和联系电话,方便紧急联系.
        4、如果操作过程中遇到问题,请与客服联系!", button:[ { name:"save", fun:function(opt){ $.PJ(HX.AU,{Action:HX.Action+"_Edit",Data:$(opt.p).find("form").serialize()},function(s){ if(s.error){ $(opt.p).ErrorTips(s.msg) }else{ if (s.othrermsg){ $.MsgBox({ title:"安全邮箱绑定", form:{ list:[ {tags:'验证码',input:'',tips:s.othrermsg} ] }, button:[ { name:"confirm", fun:function(p,t){ $.PJ(HX.AU,{Action:HX.Action+"_SafeEmail",Data:$(p).find("form").serialize()},function(m){ if (m.error){ $(p).ErrorTips(m.msg) }else{ $(p).RemoveMsgBox(); } }) } } ] }) }else{ HX.GetUserInfo(); $(opt.p).ErrorTips(s.msg); } } }) } } ] } ] } }); break; } if(HX.ActPage == "HomeBox") { HX.ActPage = "IndexBox"; $.PJ(HX.AU,{Model:"User",Action:"SetPageStatic",ActPage:"IndexBox"},function(s){ //$.MsgBox({msg:s.msg}).unbind('scroll'); }) } if(HX.Module=="OtherBox") { $.ck("InitAction", HX.Action); } else { $.ck("InitAction", HX.Module); } HX.ControlModule(); }) } } //阶梯 function factorial(n){ var vl=1; for(var i=1;i<=n;i++){ vl*=i; } return vl; } ;/* * zClip :: jQuery ZeroClipboard v1.1.1 * http://steamdev.com/zclip * * Copyright 2011, SteamDev * Released under the MIT license. * http://www.opensource.org/licenses/mit-license.php * * Date: Wed Jun 01, 2011 */ (function ($) { $.fn.zclip = function (params) { if (typeof params == "object" && !params.length) { var settings = $.extend({ path: 'ZeroClipboard.swf', copy: null, beforeCopy: null, afterCopy: null, clickAfter: true, setHandCursor: true, setCSSEffects: true }, params); return this.each(function () { var o = $(this); if (o.is(':visible') && (typeof settings.copy == 'string' || $.isFunction(settings.copy))) { ZeroClipboard.setMoviePath(settings.path); var clip = new ZeroClipboard.Client(); if($.isFunction(settings.copy)){ o.bind('zClip_copy',settings.copy); } if($.isFunction(settings.beforeCopy)){ o.bind('zClip_beforeCopy',settings.beforeCopy); } if($.isFunction(settings.afterCopy)){ o.bind('zClip_afterCopy',settings.afterCopy); } clip.setHandCursor(settings.setHandCursor); clip.setCSSEffects(settings.setCSSEffects); clip.addEventListener('mouseOver', function (client) { o.trigger('mouseenter'); }); clip.addEventListener('mouseOut', function (client) { o.trigger('mouseleave'); }); clip.addEventListener('mouseDown', function (client) { o.trigger('mousedown'); if(!$.isFunction(settings.copy)){ clip.setText(settings.copy); } else { clip.setText(o.triggerHandler('zClip_copy')); } if ($.isFunction(settings.beforeCopy)) { o.trigger('zClip_beforeCopy'); } }); clip.addEventListener('complete', function (client, text) { if ($.isFunction(settings.afterCopy)) { o.trigger('zClip_afterCopy'); } else { if (text.length > 500) { text = text.substr(0, 500) + "...\n\n(" + (text.length - 500) + " characters not shown)"; } o.removeClass('hover'); } if (settings.clickAfter) { o.trigger('click'); } }); clip.glue(o[0], o.parent()[0]); $(window).bind('load resize',function(){clip.reposition();}); } }); } else if (typeof params == "string") { return this.each(function () { var o = $(this); params = params.toLowerCase(); var zclipId = o.data('zclipId'); var clipElm = $('#' + zclipId + '.zclip'); if (params == "remove") { clipElm.remove(); o.removeClass('active hover'); } else if (params == "hide") { clipElm.hide(); o.removeClass('active hover'); } else if (params == "show") { clipElm.show(); } }); } } })(jQuery); // ZeroClipboard // Simple Set Clipboard System // Author: Joseph Huckaby var ZeroClipboard = { version: "1.0.7", clients: {}, // registered upload clients on page, indexed by id moviePath: 'ZeroClipboard.swf', // URL to movie nextId: 1, // ID of next movie $: function (thingy) { // simple DOM lookup utility function if (typeof(thingy) == 'string') thingy = document.getElementById(thingy); if (!thingy.addClass) { // extend element with a few useful methods thingy.hide = function () { this.style.display = 'none'; }; thingy.show = function () { this.style.display = ''; }; thingy.addClass = function (name) { this.removeClass(name); this.className += ' ' + name; }; thingy.removeClass = function (name) { var classes = this.className.split(/\s+/); var idx = -1; for (var k = 0; k < classes.length; k++) { if (classes[k] == name) { idx = k; k = classes.length; } } if (idx > -1) { classes.splice(idx, 1); this.className = classes.join(' '); } return this; }; thingy.hasClass = function (name) { return !!this.className.match(new RegExp("\\s*" + name + "\\s*")); }; } return thingy; }, setMoviePath: function (path) { // set path to ZeroClipboard.swf this.moviePath = path; }, dispatch: function (id, eventName, args) { // receive event from flash movie, send to client var client = this.clients[id]; if (client) { client.receiveEvent(eventName, args); } }, register: function (id, client) { // register new client to receive events this.clients[id] = client; }, getDOMObjectPosition: function (obj, stopObj) { // get absolute coordinates for dom element var info = { left: 0, top: 0, width: obj.width ? obj.width : obj.offsetWidth, height: obj.height ? obj.height : obj.offsetHeight }; if (obj && (obj != stopObj)) { info.left += obj.offsetLeft; info.top += obj.offsetTop; } return info; }, Client: function (elem) { // constructor for new simple upload client this.handlers = {}; // unique ID this.id = ZeroClipboard.nextId++; this.movieId = 'ZeroClipboardMovie_' + this.id; // register client with singleton to receive flash events ZeroClipboard.register(this.id, this); // create movie if (elem) this.glue(elem); } }; ZeroClipboard.Client.prototype = { id: 0, // unique ID for us ready: false, // whether movie is ready to receive events or not movie: null, // reference to movie object clipText: '', // text to copy to clipboard handCursorEnabled: true, // whether to show hand cursor, or default pointer cursor cssEffects: true, // enable CSS mouse effects on dom container handlers: null, // user event handlers glue: function (elem, appendElem, stylesToAdd) { // glue to DOM element // elem can be ID or actual DOM element object this.domElement = ZeroClipboard.$(elem); // float just above object, or zIndex 99 if dom element isn't set var zIndex = 99; if (this.domElement.style.zIndex) { zIndex = parseInt(this.domElement.style.zIndex, 10) + 1; } if (typeof(appendElem) == 'string') { appendElem = ZeroClipboard.$(appendElem); } else if (typeof(appendElem) == 'undefined') { appendElem = document.getElementsByTagName('body')[0]; } // find X/Y position of domElement var box = ZeroClipboard.getDOMObjectPosition(this.domElement, appendElem); // create floating DIV above element this.div = document.createElement('div'); this.div.className = "zclip"; this.div.id = "zclip-" + this.movieId; $(this.domElement).data('zclipId', 'zclip-' + this.movieId); var style = this.div.style; style.position = 'absolute'; style.left = '' + box.left + 'px'; style.top = '' + box.top + 'px'; style.width = '' + box.width + 'px'; style.height = '' + box.height + 'px'; style.zIndex = zIndex; if (typeof(stylesToAdd) == 'object') { for (addedStyle in stylesToAdd) { style[addedStyle] = stylesToAdd[addedStyle]; } } // style.backgroundColor = '#f00'; // debug appendElem.appendChild(this.div); this.div.innerHTML = this.getHTML(box.width, box.height); }, getHTML: function (width, height) { // return HTML for movie var html = ''; var flashvars = 'id=' + this.id + '&width=' + width + '&height=' + height; if (navigator.userAgent.match(/MSIE/)) { // IE gets an OBJECT tag var protocol = location.href.match(/^https/i) ? 'https://' : 'http://'; html += ''; } else { // all other browsers get an EMBED tag html += ''; } return html; }, hide: function () { // temporarily hide floater offscreen if (this.div) { this.div.style.left = '-2000px'; } }, show: function () { // show ourselves after a call to hide() this.reposition(); }, destroy: function () { // destroy control and floater if (this.domElement && this.div) { this.hide(); this.div.innerHTML = ''; var body = document.getElementsByTagName('body')[0]; try { body.removeChild(this.div); } catch (e) {; } this.domElement = null; this.div = null; } }, reposition: function (elem) { // reposition our floating div, optionally to new container // warning: container CANNOT change size, only position if (elem) { this.domElement = ZeroClipboard.$(elem); if (!this.domElement) this.hide(); } if (this.domElement && this.div) { var box = ZeroClipboard.getDOMObjectPosition(this.domElement); var style = this.div.style; style.left = '' + box.left + 'px'; style.top = '' + box.top + 'px'; } }, setText: function (newText) { // set text to be copied to clipboard this.clipText = newText; if (this.ready) { this.movie.setText(newText); } }, addEventListener: function (eventName, func) { // add user event listener for event // event types: load, queueStart, fileStart, fileComplete, queueComplete, progress, error, cancel eventName = eventName.toString().toLowerCase().replace(/^on/, ''); if (!this.handlers[eventName]) { this.handlers[eventName] = []; } this.handlers[eventName].push(func); }, setHandCursor: function (enabled) { // enable hand cursor (true), or default arrow cursor (false) this.handCursorEnabled = enabled; if (this.ready) { this.movie.setHandCursor(enabled); } }, setCSSEffects: function (enabled) { // enable or disable CSS effects on DOM container this.cssEffects = !! enabled; }, receiveEvent: function (eventName, args) { // receive event from flash eventName = eventName.toString().toLowerCase().replace(/^on/, ''); // special behavior for certain events switch (eventName) { case 'load': // movie claims it is ready, but in IE this isn't always the case... // bug fix: Cannot extend EMBED DOM elements in Firefox, must use traditional function this.movie = document.getElementById(this.movieId); if (!this.movie) { var self = this; setTimeout(function () { self.receiveEvent('load', null); }, 1); return; } // firefox on pc needs a "kick" in order to set these in certain cases if (!this.ready && navigator.userAgent.match(/Firefox/) && navigator.userAgent.match(/Windows/)) { var self = this; setTimeout(function () { self.receiveEvent('load', null); }, 100); this.ready = true; return; } this.ready = true; try { this.movie.setText(this.clipText); } catch (e) {} try { this.movie.setHandCursor(this.handCursorEnabled); } catch (e) {} break; case 'mouseover': if (this.domElement && this.cssEffects) { this.domElement.addClass('hover'); if (this.recoverActive) { this.domElement.addClass('active'); } } break; case 'mouseout': if (this.domElement && this.cssEffects) { this.recoverActive = false; if (this.domElement.hasClass('active')) { this.domElement.removeClass('active'); this.recoverActive = true; } this.domElement.removeClass('hover'); } break; case 'mousedown': if (this.domElement && this.cssEffects) { this.domElement.addClass('active'); } break; case 'mouseup': if (this.domElement && this.cssEffects) { this.domElement.removeClass('active'); this.recoverActive = false; } break; } // switch eventName if (this.handlers[eventName]) { for (var idx = 0, len = this.handlers[eventName].length; idx < len; idx++) { var func = this.handlers[eventName][idx]; if (typeof(func) == 'function') { // actual function reference func(this, args); } else if ((typeof(func) == 'object') && (func.length == 2)) { // PHP style object + method, i.e. [myObject, 'myMethod'] func[0][func[1]](this, args); } else if (typeof(func) == 'string') { // name of function window[func](this, args); } } // foreach event handler defined } // user defined handler for event } };