/*头部二级导航*/
$(function(){
$(".header .search").click(function(){
$(this).siblings("input").animate({width:200,left:-200}).css({"border-color":"#ccc"})
})
$(".header input").blur(function(){
$(this).animate({width:0,left:0},function(){
$(this).css({"border-color":"#fff"})
})
})
})
/*更新时间:2016-11-17*/
function nav(nav){
var li_width = 0;
var nav_width = 0;
var li_pa;
var li_len = $("#"+nav+">ul>li").length;
for(i=0;iul>li").eq(i).outerWidth();
}
li_pa = Math.floor(($("#"+nav+"").width()-nav_width)/li_len*0.5);
$("#"+nav+">ul>li>a").css({"padding-left":li_pa,"padding-right":li_pa});
nav_width = 0;
for(i=0;iul>li").eq(i).outerWidth();
}
var last_pa = $("#"+nav+"").width()-nav_width
$("#"+nav+">ul>li>a:last").css({"padding-right":li_pa+last_pa*0.5,"padding-left":li_pa+last_pa*0.5})
if($("#"+nav+">ul").height()>$("#"+nav+">ul>li").height()){
$("#"+nav+">ul>li>a:last").css({"padding-right":li_pa+last_pa*0.5,"padding-left":li_pa+last_pa*0.5-1})
}
}/*end nav()*/
function mswMove(boxID,btn_left,btn_right,btnBox,Car,direction,way,moveLengh,speed,Interval,number){
var _ID = $("#"+boxID+"");
var _btn_left = $("#"+btn_left+"");
var _btn_right = $("#"+btn_right+"");
var _btnBox = $("#"+btnBox+"");
var jsq = 0
var timer ;
var cj ;
var no_way = 0;
var no_wayGet = 0;
var fade = 0;
var new_time = new Date;
var ID_liLen , ID_liheight , cbtmBtn ;
ID_liLen = _ID.find("li").length;
ID_liheight = _ID.find("li").innerHeight();
if(direction == "left" || direction == "right"){
_ID.find("ul").width(ID_liLen*moveLengh);
}else if(direction == "top" || direction == "bottom"){
_ID.find("ul").height(ID_liLen*moveLengh);
_btnBox.hide()
}else if(direction == "fade"){
_ID.find("ul").width(moveLengh).height(ID_liheight);
_ID.find("li").eq(0).show().siblings().hide();
_ID.find("li").css({"position":"absolute","left":0,"top":0});
}
_btnBox.empty();
for(i=0;i");
};
_btnBox.find("span").eq(0).addClass("cur");
if(way == false){
_btn_left.hide();
_btn_right.hide();
_btnBox.hide();
}
function Carousel(){
if(way == false){
no_way++;
if(direction == "left"){
_ID.find("ul").css({"left":-no_way});
no_wayGet = parseInt(_ID.find("ul").css("left"));
if(no_wayGet == -moveLengh){
no_way = 0
_ID.find("li:first").insertAfter(_ID.find("li:last"));
_ID.find("ul").css({"left":0});
}
}
if(direction == "right"){
no_wayGet = parseInt(_ID.find("ul").css("left"));
if(no_wayGet == 0){
no_way = -moveLengh
_ID.find("li:last").insertBefore(_ID.find("li:first"));
_ID.find("ul").css({"left":0});
}
_ID.find("ul").css({"left":no_way});
}
if(direction == "top"){
_ID.find("ul").css({"top":-no_way});
no_wayGet = parseInt(_ID.find("ul").css("top"));
if(no_wayGet == -moveLengh){
no_way = 0
_ID.find("li:first").insertAfter(_ID.find("li:last"));
_ID.find("ul").css({"top":0});
}
}
if(direction == "bottom"){
no_wayGet = parseInt(_ID.find("ul").css("top"));
if(no_wayGet == 0){
no_way = -moveLengh
_ID.find("li:last").insertBefore(_ID.find("li:first"));
_ID.find("ul").css({"top":0});
}
_ID.find("ul").css({"top":no_way});
}
}else if(way == true){
if(direction == "left"){
_ID.find("ul").animate({left:-moveLengh},speed,function(){
_ID.find("li:first").insertAfter(_ID.find("li:last"));
_ID.find("ul").css({"left":0});
});
if(jsq0){
jsq--;
_btnBox.find("span").eq(jsq).addClass("cur").siblings().removeClass("cur");
}else{
jsq = ID_liLen-1;
_btnBox.find("span").eq(jsq).addClass("cur").siblings().removeClass("cur");
}
}
if(direction == "top"){
_ID.find("ul").animate({top:-moveLengh},speed,function(){
_ID.find("li:first").insertAfter(_ID.find("li:last"));
_ID.find("ul").css({"top":0});
});
}
if(direction == "bottom"){
_ID.find("li:last").insertBefore(_ID.find("li:first"));
_ID.find("ul").css({"top":-moveLengh});
_ID.find("ul").stop().animate({top:0},speed);
}
if(direction == "fade"){
if(fadenumber){
timer = setInterval(Carousel,Interval);
}else{
clearInterval(timer);
_btn_left.hide();
_btn_right.hide();
_btnBox.hide();
}
}else{
clearInterval(timer);
}
_ID.find("li").hover(function(){
clearInterval(timer);
},function(){
if(Car == true){
if(ID_liLen>number){
timer = setInterval(Carousel,Interval);
}else{
clearInterval(timer);
_btn_left.hide();
_btn_right.hide();
_btnBox.hide();
}
}else{
clearInterval(timer);
}
});
_btn_right.hover(function(){
clearInterval(timer);
},function(){
if(Car == true){
if(ID_liLen>number){
timer = setInterval(Carousel,Interval);
}else{
clearInterval(timer);
_btn_left.hide();
_btn_right.hide();
_btnBox.hide();
}
}else{
clearInterval(timer);
}
}).click(function(){
if(new Date - new_time>500){
new_time = new Date;
if(direction == "left" || direction == "right"){
_ID.find("ul").animate({left:-moveLengh},speed,function(){
_ID.find("li:first").insertAfter(_ID.find("li:last"));
_ID.find("ul").css({"left":0});
});
}
if(direction == "top" || direction == "bottom"){
_ID.find("ul").animate({top:-moveLengh},speed,function(){
_ID.find("li:first").insertAfter(_ID.find("li:last"));
_ID.find("ul").css({"top":0});
});
}
if(direction == "fade"){
if(fade>0){
fade--;
}else{fade = ID_liLen-1}
_ID.find("li").stop(true,true).eq(fade).fadeIn(speed).siblings().fadeOut(speed);
}
if(jsqnumber){
timer = setInterval(Carousel,Interval);
}else{
clearInterval(timer);
_btn_left.hide();
_btn_right.hide();
_btnBox.hide();
}
}else{
clearInterval(timer);
}
}).click(function(){
if(new Date - new_time>500){
new_time = new Date;
if(direction == "left" || direction == "right"){
_ID.find("li:last").insertBefore(_ID.find("li:first"));
_ID.find("ul").css({"left":-moveLengh});
_ID.find("ul").stop().animate({left:0},speed);
}
if(direction == "top" || direction == "bottom"){
_ID.find("li:last").insertBefore(_ID.find("li:first"));
_ID.find("ul").css({"top":-moveLengh});
_ID.find("ul").stop().animate({top:0},speed);
}
if(direction == "fade"){
if(fade0){
jsq--;
_btnBox.find("span").eq(jsq).addClass("cur").siblings().removeClass("cur");
}else{
jsq = ID_liLen-1;
_btnBox.find("span").eq(jsq).addClass("cur").siblings().removeClass("cur");
};
}else{};
});
_btnBox.find("span").hover(function(){
clearInterval(timer);
},function(){
if(Car == true){
if(ID_liLen>number){
timer = setInterval(Carousel,Interval);
}else{
clearInterval(timer);
_btn_left.hide();
_btn_right.hide();
_btnBox.hide();
}
}else{
clearInterval(timer);
}
}).click(function(){
if(new Date - new_time>500){
new_time = new Date;
cbtmBtn = $(this).index();
$(this).addClass("cur").siblings().removeClass("cur");
if(direction == "fade"){
_ID.find("li").eq(cbtmBtn).fadeIn(speed).siblings().fadeOut(speed);
}else{
if(cbtmBtn>jsq){
cj =cbtmBtn - jsq;
jsq = cbtmBtn;
_ID.find("ul").stop().animate({left:-moveLengh*cj},speed,function(){
for(i=0;i500){
time = new Date;
$("#"+ID+" ."+elment+":first").animate({width:'30%',left:'35%',top:'5%'}).css({'z-index':0});
$("#"+ID+" ."+elment+":first").insertAfter($("#"+ID+" ."+elment+":last"));
$("#"+ID+" ."+elment+"").eq(pfnum).addClass("active").animate({width:''+pre+'%',left:''+(100-pre)/2+'%',top:0}).css({'z-index':number}).find(""+title+"").show();
$("#"+ID+" ."+elment+"").eq(pfnum).siblings().removeClass("active").find(""+title+"").hide();
for(i=1,th=pfnum;i500){
time = new Date;
$("#"+ID+" ."+elment+":last").animate({width:''+(pre-10*pfnum)+'%',left:''+100-(pre-10*pfnum)+'%',top:''+7.5*pfnum+'%'}).css({'z-index':number-pfnum});
$("#"+ID+" ."+elment+":last").insertBefore($("#"+ID+" ."+elment+":first"));
//$("#jzt .list").eq(pfnum).addClass('active');
$("#"+ID+" ."+elment+"").eq(pfnum).addClass("active").animate({width:''+pre+'%',left:''+(100-pre)/2+'%',top:0}).css({'z-index':number}).find(""+title+"").show();
$("#"+ID+" ."+elment+"").eq(pfnum).siblings().removeClass("active").find(""+title+"").hide();
for(i=1,th=pfnum;i
style:
.tankuang { overflow:hidden; width:100%; height:100%; position:fixed; left:0; top:0; background:url(Img/Common/dsz06_tuwen.png) repeat center; z-index:99999999999; display:none}
.tankuang .bg{ display:block; width:100%; height:100%; background-color:#000; opacity:0.8; filter:alpha(opacity=80); position:absolute; left:0; top:0; z-index:0}
.tankuang .close{ display:block; position:absolute; right:10px; top:10px; background:url(Img/Common/in_ry_tk_close.png) no-repeat center; width:30px; height:30px; cursor:pointer}
.tankuang span{ display:block; width:28px; height:49px; cursor:pointer; position:absolute; top:36%; z-index:5}
.tankuang .btn01{ left:20px; background:url(Img/Index/fzlcLeft.png) no-repeat center;}
.tankuang .btn02{ right:20px; background:url(Img/Index/fzlcRight.png) no-repeat center;}
.tankuang .imgShow { overflow:hidden; width:100%; height:60%; position:absolute; left:0; top:15%;moz-user-select: -moz-none;
-moz-user-select: none;
-o-user-select:none;
-khtml-user-select:none;
-webkit-user-select:none;
-ms-user-select:none;
user-select:none;}
.tankuang .imgShow ul{ overflow:hidden; position:absolute; height:100%;}
.tankuang .imgShow li{ float:left; text-align:center; height:100%;}
.tankuang .imgShow li img{ display:block; margin:0 auto; height:90%;}
.tankuang .imgShow li p{ font-size:18px; color:#fff; text-align:center;}
.tankuang .imgBox{ overflow:hidden; width:100%; height:80px; position:absolute; left:0; bottom:5%}
.tankuang .imgBox ul{ overflow:hidden; position:absolute; height:100%; padding-right:5px;}
.tankuang .imgBox li{ float:left; height:100%; padding:0 5px; cursor:pointer}
.tankuang .imgBox li img{ display:block; height:70px; padding:5px; background-color:#fff;moz-user-select: -moz-none;
-moz-user-select: none;
-o-user-select:none;
-khtml-user-select:none;
-webkit-user-select:none;
-ms-user-select:none;
user-select:none;}
.tankuang .imgBox li em{ display:none}
.tankuang .imgBox li.cur img{ background:#ff0000 }
*/
function tankuang(ID,clickElement,title,showH,tkID){
var _tkId = $("#"+tkID+"");
var _ID = $("#"+ID+"") ;
var _cke = $("#"+ID+" "+clickElement+"");
var _close = $("#"+tkID+"").find(".close");
var _len = $("#"+ID+" "+clickElement+"").length;
var _IDimg , _IDtext , w , m=0 , n = 0 , a=0 , _width , imgNum = 0 , msw = 0 , msw_now = 0 , mfz = 0,mfm = 0;
var w_width = $(window).width();
_tkId.find(".imgShow").find("li").width(w_width);
if(showH == true){
_tkId.find("p").show();
_tkId.find("p").siblings("img").css({"height":"90%"});
}else if(showH == false){
_tkId.find("p").hide();
_tkId.find("p").siblings("img").css({"height":"100%"});
};
_close.click(function(){
_tkId.fadeOut(500);
_tkId.find(".imgShow").find("ul").css({"left":0});
_tkId.find(".imgBox").find("ul").css({"left":0,"width":0});
imgNum = 0;n = 0;w=0;m=0;
_tkId.find(".imgBox").find("ul").empty();
_tkId.find(".imgShow").find("ul").empty();
});
_cke.click(function(){
msw_now = $("#"+ID+" "+clickElement+"").index(this);
imgNum = $("#"+ID+" "+clickElement+"").index(this);
_tkId.fadeIn(500);
_tkId.find(".imgBox").find("ul").empty();
_tkId.find(".imgShow").find("ul").empty();
for(i=0;i<_len;i++){
_IDimg = _ID.find(clickElement).eq(i).find("img").attr("src");
_IDtext = _ID.find(clickElement).eq(i).find(title).text();
_tkId.find(".imgBox").find("ul").append(""+_IDtext+"");
_tkId.find(".imgShow").find("ul").append(""+_IDtext+"
");
};
_tkId.find(".imgShow").find("li").width(w_width);
_tkId.find(".imgShow").find("ul").width(w_width*_len);
_tkId.find(".imgBox").find("li").eq(0).addClass("cur").siblings().removeClass("cur");
var imgBoxUl = 0;
for(i=0;i<_len;i++){
if(imgBoxUlm && imgNum != _len-1){
var h = Math.ceil(imgNum/m);
_tkId.find(".imgBox").find("ul").css({"left":-(h-1)*w_width});
}else if(imgNum == _len-1 && _len-1>m){
var h = Math.ceil(imgNum/m);
_tkId.find(".imgBox").find("ul").css({"left":-(h-2)*w_width});
}
_tkId.find(".imgBox").find("li").click(function(){
imgNum = $(this).index();
msw = 0;
for(i=0;iimgNum && imgNum%(m-1) == 0 ){
mfz = imgNum/(m-1)-1;
mfm = imgNum/(m-1);
_tkId.find(".imgBox").find("ul").animate({left:-msw*(mfz/mfm)});
}
msw_now = imgNum;
_tkId.find(".imgShow").find("ul").stop().animate({left:-w_width*imgNum});
_tkId.find(".imgBox").find("li").eq(imgNum).addClass("cur").siblings().removeClass("cur");
});
});
_tkId.find(".btn02").click(function(){
console.log(m);
console.log(imgNum);
console.log(_len-1);
imgNum++;
if(imgNum<_len-1){
msw = 0;
a = 0;
for(i=0;i0){
imgNum--;
msw = 0;
for(i=0;iimgNum && imgNum%(m-1) == 0 ){
mfz = imgNum/(m-1)-1;
mfm = imgNum/(m-1);
_tkId.find(".imgBox").find("ul").animate({left:-msw*(mfz/mfm)});
}
msw_now = imgNum;
_tkId.find(".imgShow").find("ul").stop().animate({left:-w_width*imgNum});
_tkId.find(".imgBox").find("li").eq(imgNum).addClass("cur").siblings().removeClass("cur");
}else{
alert("this is first!");
imgNum = 0;
};
});
}
//tankuang() end
function MouseEvent(e){this.x=e.pageX,this.y=e.pageY}function QQLink(e){e=e?e:QQ,window.open("http://wpa.qq.com/msgrd?v=3&uin="+e+"&site=qq&menu=yes")}with(function(e,t){function n(e){var t=e.length,n=le.type(e);return le.isWindow(e)?!1:1===e.nodeType&&t?!0:"array"===n||"function"!==n&&(0===t||"number"==typeof t&&t>0&&t-1 in e)}function i(e){var t=Te[e]={};return le.each(e.match(de)||[],function(e,n){t[n]=!0}),t}function o(e,n,i,o){if(le.acceptData(e)){var r,s,a=le.expando,l="string"==typeof n,c=e.nodeType,d=c?le.cache:e,u=c?e[a]:e[a]&&a;if(u&&d[u]&&(o||d[u].data)||!l||i!==t)return u||(c?e[a]=u=K.pop()||le.guid++:u=a),d[u]||(d[u]={},c||(d[u].toJSON=le.noop)),("object"==typeof n||"function"==typeof n)&&(o?d[u]=le.extend(d[u],n):d[u].data=le.extend(d[u].data,n)),r=d[u],o||(r.data||(r.data={}),r=r.data),i!==t&&(r[le.camelCase(n)]=i),l?(s=r[n],null==s&&(s=r[le.camelCase(n)])):s=r,s}}function r(e,t,n){if(le.acceptData(e)){var i,o,r,s=e.nodeType,l=s?le.cache:e,c=s?e[le.expando]:le.expando;if(l[c]){if(t&&(r=n?l[c]:l[c].data)){le.isArray(t)?t=t.concat(le.map(t,le.camelCase)):t in r?t=[t]:(t=le.camelCase(t),t=t in r?[t]:t.split(" "));for(i=0,o=t.length;o>i;i++)delete r[t[i]];if(!(n?a:le.isEmptyObject)(r))return}(n||(delete l[c].data,a(l[c])))&&(s?le.cleanData([e],!0):le.support.deleteExpando||l!=l.window?delete l[c]:l[c]=null)}}}function s(e,n,i){if(i===t&&1===e.nodeType){var o="data-"+n.replace(Se,"-$1").toLowerCase();if(i=e.getAttribute(o),"string"==typeof i){try{i="true"===i?!0:"false"===i?!1:"null"===i?null:+i+""===i?+i:Ce.test(i)?le.parseJSON(i):i}catch(r){}le.data(e,n,i)}else i=t}return i}function a(e){var t;for(t in e)if(("data"!==t||!le.isEmptyObject(e[t]))&&"toJSON"!==t)return!1;return!0}function l(){return!0}function c(){return!1}function d(e,t){do e=e[t];while(e&&1!==e.nodeType);return e}function u(e,t,n){if(t=t||0,le.isFunction(t))return le.grep(e,function(e,i){var o=!!t.call(e,i,e);return o===n});if(t.nodeType)return le.grep(e,function(e){return e===t===n});if("string"==typeof t){var i=le.grep(e,function(e){return 1===e.nodeType});if(_e.test(t))return le.filter(t,i,!n);t=le.filter(t,i)}return le.grep(e,function(e){return le.inArray(e,t)>=0===n})}function p(e){var t=Ue.split("|"),n=e.createDocumentFragment();if(n.createElement)for(;t.length;)n.createElement(t.pop());return n}function f(e,t){return e.getElementsByTagName(t)[0]||e.appendChild(e.ownerDocument.createElement(t))}function h(e){var t=e.getAttributeNode("type");return e.type=(t&&t.specified)+"/"+e.type,e}function g(e){var t=ot.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function m(e,t){for(var n,i=0;null!=(n=e[i]);i++)le._data(n,"globalevals",!t||le._data(t[i],"globalevals"))}function v(e,t){if(1===t.nodeType&&le.hasData(e)){var n,i,o,r=le._data(e),s=le._data(t,r),a=r.events;if(a){delete s.handle,s.events={};for(n in a)for(i=0,o=a[n].length;o>i;i++)le.event.add(t,n,a[n][i])}s.data&&(s.data=le.extend({},s.data))}}function y(e,t){var n,i,o;if(1===t.nodeType){if(n=t.nodeName.toLowerCase(),!le.support.noCloneEvent&&t[le.expando]){o=le._data(t);for(i in o.events)le.removeEvent(t,i,o.handle);t.removeAttribute(le.expando)}"script"===n&&t.text!==e.text?(h(t).text=e.text,g(t)):"object"===n?(t.parentNode&&(t.outerHTML=e.outerHTML),le.support.html5Clone&&e.innerHTML&&!le.trim(t.innerHTML)&&(t.innerHTML=e.innerHTML)):"input"===n&&tt.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)}}function b(e,n){var i,o,r=0,s=typeof e.getElementsByTagName!==Q?e.getElementsByTagName(n||"*"):typeof e.querySelectorAll!==Q?e.querySelectorAll(n||"*"):t;if(!s)for(s=[],i=e.childNodes||e;null!=(o=i[r]);r++)!n||le.nodeName(o,n)?s.push(o):le.merge(s,b(o,n));return n===t||n&&le.nodeName(e,n)?le.merge([e],s):s}function w(e){tt.test(e.type)&&(e.defaultChecked=e.checked)}function x(e,t){if(t in e)return t;for(var n=t.charAt(0).toUpperCase()+t.slice(1),i=t,o=Ct.length;o--;)if(t=Ct[o]+n,t in e)return t;return i}function k(e,t){return e=t||e,"none"===le.css(e,"display")||!le.contains(e.ownerDocument,e)}function T(e,t){for(var n,i,o,r=[],s=0,a=e.length;a>s;s++)i=e[s],i.style&&(r[s]=le._data(i,"olddisplay"),n=i.style.display,t?(r[s]||"none"!==n||(i.style.display=""),""===i.style.display&&k(i)&&(r[s]=le._data(i,"olddisplay",E(i.nodeName)))):r[s]||(o=k(i),(n&&"none"!==n||!o)&&le._data(i,"olddisplay",o?n:le.css(i,"display"))));for(s=0;a>s;s++)i=e[s],i.style&&(t&&"none"!==i.style.display&&""!==i.style.display||(i.style.display=t?r[s]||"":"none"));return e}function C(e,t,n){var i=vt.exec(t);return i?Math.max(0,i[1]-(n||0))+(i[2]||"px"):t}function S(e,t,n,i,o){for(var r=n===(i?"border":"content")?4:"width"===t?1:0,s=0;4>r;r+=2)"margin"===n&&(s+=le.css(e,n+Tt[r],!0,o)),i?("content"===n&&(s-=le.css(e,"padding"+Tt[r],!0,o)),"margin"!==n&&(s-=le.css(e,"border"+Tt[r]+"Width",!0,o))):(s+=le.css(e,"padding"+Tt[r],!0,o),"padding"!==n&&(s+=le.css(e,"border"+Tt[r]+"Width",!0,o)));return s}function $(e,t,n){var i=!0,o="width"===t?e.offsetWidth:e.offsetHeight,r=dt(e),s=le.support.boxSizing&&"border-box"===le.css(e,"boxSizing",!1,r);if(0>=o||null==o){if(o=ut(e,t,r),(0>o||null==o)&&(o=e.style[t]),yt.test(o))return o;i=s&&(le.support.boxSizingReliable||o===e.style[t]),o=parseFloat(o)||0}return o+S(e,t,n||(s?"border":"content"),i,r)+"px"}function E(e){var t=Y,n=wt[e];return n||(n=N(e,t),"none"!==n&&n||(ct=(ct||le("").css("cssText","display:block !important")).appendTo(t.documentElement),t=(ct[0].contentWindow||ct[0].contentDocument).document,t.write("
尊龙凯时
=0}),n.length||(e.selectedIndex=-1),n}}},attr:function(e,n,i){var o,r,s,a=e.nodeType;if(e&&3!==a&&8!==a&&2!==a)return typeof e.getAttribute===Q?le.prop(e,n,i):(r=1!==a||!le.isXMLDoc(e),r&&(n=n.toLowerCase(),o=le.attrHooks[n]||(Oe.test(n)?Ee:$e)),i===t?o&&r&&"get"in o&&null!==(s=o.get(e,n))?s:(typeof e.getAttribute!==Q&&(s=e.getAttribute(n)),null==s?t:s):null!==i?o&&r&&"set"in o&&(s=o.set(e,i,n))!==t?s:(e.setAttribute(n,i+""),i):void le.removeAttr(e,n))},removeAttr:function(e,t){var n,i,o=0,r=t&&t.match(de);if(r&&1===e.nodeType)for(;n=r[o++];)i=le.propFix[n]||n,Oe.test(n)?!Pe&&Le.test(n)?e[le.camelCase("default-"+n)]=e[i]=!1:e[i]=!1:le.attr(e,n,""),e.removeAttribute(Pe?n:i)},attrHooks:{type:{set:function(e,t){if(!le.support.radioValue&&"radio"===t&&le.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},propFix:{tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(e,n,i){var o,r,s,a=e.nodeType;if(e&&3!==a&&8!==a&&2!==a)return s=1!==a||!le.isXMLDoc(e),s&&(n=le.propFix[n]||n,r=le.propHooks[n]),i!==t?r&&"set"in r&&(o=r.set(e,i,n))!==t?o:e[n]=i:r&&"get"in r&&null!==(o=r.get(e,n))?o:e[n]},propHooks:{tabIndex:{get:function(e){var n=e.getAttributeNode("tabindex");return n&&n.specified?parseInt(n.value,10):je.test(e.nodeName)||Me.test(e.nodeName)&&e.href?0:t}}}}),Ee={get:function(e,n){
var i=le.prop(e,n),o="boolean"==typeof i&&e.getAttribute(n),r="boolean"==typeof i?He&&Pe?null!=o:Le.test(n)?e[le.camelCase("default-"+n)]:!!o:e.getAttributeNode(n);return r&&r.value!==!1?n.toLowerCase():t},set:function(e,t,n){return t===!1?le.removeAttr(e,n):He&&Pe||!Le.test(n)?e.setAttribute(!Pe&&le.propFix[n]||n,n):e[le.camelCase("default-"+n)]=e[n]=!0,n}},He&&Pe||(le.attrHooks.value={get:function(e,n){var i=e.getAttributeNode(n);return le.nodeName(e,"input")?e.defaultValue:i&&i.specified?i.value:t},set:function(e,t,n){return le.nodeName(e,"input")?void(e.defaultValue=t):$e&&$e.set(e,t,n)}}),Pe||($e=le.valHooks.button={get:function(e,n){var i=e.getAttributeNode(n);return i&&("id"===n||"name"===n||"coords"===n?""!==i.value:i.specified)?i.value:t},set:function(e,n,i){var o=e.getAttributeNode(i);return o||e.setAttributeNode(o=e.ownerDocument.createAttribute(i)),o.value=n+="","value"===i||n===e.getAttribute(i)?n:t}},le.attrHooks.contenteditable={get:$e.get,set:function(e,t,n){$e.set(e,""===t?!1:t,n)}},le.each(["width","height"],function(e,t){le.attrHooks[t]=le.extend(le.attrHooks[t],{set:function(e,n){return""===n?(e.setAttribute(t,"auto"),n):void 0}})})),le.support.hrefNormalized||(le.each(["href","src","width","height"],function(e,n){le.attrHooks[n]=le.extend(le.attrHooks[n],{get:function(e){var i=e.getAttribute(n,2);return null==i?t:i}})}),le.each(["href","src"],function(e,t){le.propHooks[t]={get:function(e){return e.getAttribute(t,4)}}})),le.support.style||(le.attrHooks.style={get:function(e){return e.style.cssText||t},set:function(e,t){return e.style.cssText=t+""}}),le.support.optSelected||(le.propHooks.selected=le.extend(le.propHooks.selected,{get:function(e){var t=e.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null}})),le.support.enctype||(le.propFix.enctype="encoding"),le.support.checkOn||le.each(["radio","checkbox"],function(){le.valHooks[this]={get:function(e){return null===e.getAttribute("value")?"on":e.value}}}),le.each(["radio","checkbox"],function(){le.valHooks[this]=le.extend(le.valHooks[this],{set:function(e,t){return le.isArray(t)?e.checked=le.inArray(le(e).val(),t)>=0:void 0}})});var De=/^(?:input|select|textarea)$/i,qe=/^key/,Ie=/^(?:mouse|contextmenu)|click/,ze=/^(?:focusinfocus|focusoutblur)$/,Fe=/^([^.]*)(?:\.(.+)|)$/;le.event={global:{},add:function(e,n,i,o,r){var s,a,l,c,d,u,p,f,h,g,m,v=le._data(e);if(v){for(i.handler&&(c=i,i=c.handler,r=c.selector),i.guid||(i.guid=le.guid++),(a=v.events)||(a=v.events={}),(u=v.handle)||(u=v.handle=function(e){return typeof le===Q||e&&le.event.triggered===e.type?t:le.event.dispatch.apply(u.elem,arguments)},u.elem=e),n=(n||"").match(de)||[""],l=n.length;l--;)s=Fe.exec(n[l])||[],h=m=s[1],g=(s[2]||"").split(".").sort(),d=le.event.special[h]||{},h=(r?d.delegateType:d.bindType)||h,d=le.event.special[h]||{},p=le.extend({type:h,origType:m,data:o,handler:i,guid:i.guid,selector:r,needsContext:r&&le.expr.match.needsContext.test(r),namespace:g.join(".")},c),(f=a[h])||(f=a[h]=[],f.delegateCount=0,d.setup&&d.setup.call(e,o,g,u)!==!1||(e.addEventListener?e.addEventListener(h,u,!1):e.attachEvent&&e.attachEvent("on"+h,u))),d.add&&(d.add.call(e,p),p.handler.guid||(p.handler.guid=i.guid)),r?f.splice(f.delegateCount++,0,p):f.push(p),le.event.global[h]=!0;e=null}},remove:function(e,t,n,i,o){var r,s,a,l,c,d,u,p,f,h,g,m=le.hasData(e)&&le._data(e);if(m&&(d=m.events)){for(t=(t||"").match(de)||[""],c=t.length;c--;)if(a=Fe.exec(t[c])||[],f=g=a[1],h=(a[2]||"").split(".").sort(),f){for(u=le.event.special[f]||{},f=(i?u.delegateType:u.bindType)||f,p=d[f]||[],a=a[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),l=r=p.length;r--;)s=p[r],!o&&g!==s.origType||n&&n.guid!==s.guid||a&&!a.test(s.namespace)||i&&i!==s.selector&&("**"!==i||!s.selector)||(p.splice(r,1),s.selector&&p.delegateCount--,u.remove&&u.remove.call(e,s));l&&!p.length&&(u.teardown&&u.teardown.call(e,h,m.handle)!==!1||le.removeEvent(e,f,m.handle),delete d[f])}else for(f in d)le.event.remove(e,f+t[c],n,i,!0);le.isEmptyObject(d)&&(delete m.handle,le._removeData(e,"events"))}},trigger:function(n,i,o,r){var s,a,l,c,d,u,p,f=[o||Y],h=se.call(n,"type")?n.type:n,g=se.call(n,"namespace")?n.namespace.split("."):[];if(l=u=o=o||Y,3!==o.nodeType&&8!==o.nodeType&&!ze.test(h+le.event.triggered)&&(h.indexOf(".")>=0&&(g=h.split("."),h=g.shift(),g.sort()),a=h.indexOf(":")<0&&"on"+h,n=n[le.expando]?n:new le.Event(h,"object"==typeof n&&n),n.isTrigger=!0,n.namespace=g.join("."),n.namespace_re=n.namespace?new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,n.result=t,n.target||(n.target=o),i=null==i?[n]:le.makeArray(i,[n]),d=le.event.special[h]||{},r||!d.trigger||d.trigger.apply(o,i)!==!1)){if(!r&&!d.noBubble&&!le.isWindow(o)){for(c=d.delegateType||h,ze.test(c+h)||(l=l.parentNode);l;l=l.parentNode)f.push(l),u=l;u===(o.ownerDocument||Y)&&f.push(u.defaultView||u.parentWindow||e)}for(p=0;(l=f[p++])&&!n.isPropagationStopped();)n.type=p>1?c:d.bindType||h,s=(le._data(l,"events")||{})[n.type]&&le._data(l,"handle"),s&&s.apply(l,i),s=a&&l[a],s&&le.acceptData(l)&&s.apply&&s.apply(l,i)===!1&&n.preventDefault();if(n.type=h,!r&&!n.isDefaultPrevented()&&(!d._default||d._default.apply(o.ownerDocument,i)===!1)&&("click"!==h||!le.nodeName(o,"a"))&&le.acceptData(o)&&a&&o[h]&&!le.isWindow(o)){u=o[a],u&&(o[a]=null),le.event.triggered=h;try{o[h]()}catch(m){}le.event.triggered=t,u&&(o[a]=u)}return n.result}},dispatch:function(e){e=le.event.fix(e);var n,i,o,r,s,a=[],l=ie.call(arguments),c=(le._data(this,"events")||{})[e.type]||[],d=le.event.special[e.type]||{};if(l[0]=e,e.delegateTarget=this,!d.preDispatch||d.preDispatch.call(this,e)!==!1){for(a=le.event.handlers.call(this,e,c),n=0;(r=a[n++])&&!e.isPropagationStopped();)for(e.currentTarget=r.elem,s=0;(o=r.handlers[s++])&&!e.isImmediatePropagationStopped();)(!e.namespace_re||e.namespace_re.test(o.namespace))&&(e.handleObj=o,e.data=o.data,i=((le.event.special[o.origType]||{}).handle||o.handler).apply(r.elem,l),i!==t&&(e.result=i)===!1&&(e.preventDefault(),e.stopPropagation()));return d.postDispatch&&d.postDispatch.call(this,e),e.result}},handlers:function(e,n){var i,o,r,s,a=[],l=n.delegateCount,c=e.target;if(l&&c.nodeType&&(!e.button||"click"!==e.type))for(;c!=this;c=c.parentNode||this)if(1===c.nodeType&&(c.disabled!==!0||"click"!==e.type)){for(r=[],s=0;l>s;s++)o=n[s],i=o.selector+" ",r[i]===t&&(r[i]=o.needsContext?le(i,this).index(c)>=0:le.find(i,this,null,[c]).length),r[i]&&r.push(o);r.length&&a.push({elem:c,handlers:r})}return lC.cacheLength&&delete e[t.shift()],e[n]=i}}function o(e){return e[z]=!0,e}function r(e){var t=M.createElement("div");try{return e(t)}catch(n){return!1}finally{t=null}}function s(e,t,n,i){var o,r,s,a,l,c,d,f,h,g;if((t?t.ownerDocument||t:F)!==M&&j(t),t=t||M,n=n||[],!e||"string"!=typeof e)return n;if(1!==(a=t.nodeType)&&9!==a)return[];if(!L&&!i){if(o=ge.exec(e))if(s=o[1]){if(9===a){if(r=t.getElementById(s),!r||!r.parentNode)return n;if(r.id===s)return n.push(r),n}else if(t.ownerDocument&&(r=t.ownerDocument.getElementById(s))&&q(t,r)&&r.id===s)return n.push(r),n}else{if(o[2])return G.apply(n,J.call(t.getElementsByTagName(e),0)),n;if((s=o[3])&&W.getByClassName&&t.getElementsByClassName)return G.apply(n,J.call(t.getElementsByClassName(s),0)),n}if(W.qsa&&!P.test(e)){if(d=!0,f=z,h=t,g=9===a&&e,1===a&&"object"!==t.nodeName.toLowerCase()){for(c=u(e),(d=t.getAttribute("id"))?f=d.replace(ye,"\\$&"):t.setAttribute("id",f),f="[id='"+f+"'] ",l=c.length;l--;)c[l]=f+p(c[l]);h=fe.test(e)&&t.parentNode||t,g=c.join(",")}if(g)try{return G.apply(n,J.call(h.querySelectorAll(g),0)),n}catch(m){}finally{d||t.removeAttribute("id")}}}return w(e.replace(se,"$1"),t,n,i)}function a(e,t){var n=t&&e,i=n&&(~t.sourceIndex||Y)-(~e.sourceIndex||Y);if(i)return i;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function l(e){return function(t){var n=t.nodeName.toLowerCase();return"input"===n&&t.type===e}}function c(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function d(e){return o(function(t){return t=+t,o(function(n,i){for(var o,r=e([],n.length,t),s=r.length;s--;)n[o=r[s]]&&(n[o]=!(i[o]=n[o]))})})}function u(e,t){var n,i,o,r,a,l,c,d=X[e+" "];if(d)return t?0:d.slice(0);for(a=e,l=[],c=C.preFilter;a;){(!n||(i=ae.exec(a)))&&(i&&(a=a.slice(i[0].length)||a),l.push(o=[])),n=!1,(i=ce.exec(a))&&(n=i.shift(),o.push({value:n,type:i[0].replace(se," ")}),a=a.slice(n.length));for(r in C.filter)!(i=pe[r].exec(a))||c[r]&&!(i=c[r](i))||(n=i.shift(),o.push({value:n,type:r,matches:i}),a=a.slice(n.length));if(!n)break}return t?a.length:a?s.error(e):X(e,l).slice(0)}function p(e){for(var t=0,n=e.length,i="";n>t;t++)i+=e[t].value;return i}function f(e,t,n){var i=t.dir,o=n&&"parentNode"===i,r=_++;return t.first?function(t,n,r){for(;t=t[i];)if(1===t.nodeType||o)return e(t,n,r)}:function(t,n,s){var a,l,c,d=B+" "+r;if(s){for(;t=t[i];)if((1===t.nodeType||o)&&e(t,n,s))return!0}else for(;t=t[i];)if(1===t.nodeType||o)if(c=t[z]||(t[z]={}),(l=c[i])&&l[0]===d){if((a=l[1])===!0||a===T)return a===!0}else if(l=c[i]=[d],l[1]=e(t,n,s)||T,l[1]===!0)return!0}}function h(e){return e.length>1?function(t,n,i){for(var o=e.length;o--;)if(!e[o](t,n,i))return!1;return!0}:e[0]}function g(e,t,n,i,o){for(var r,s=[],a=0,l=e.length,c=null!=t;l>a;a++)(r=e[a])&&(!n||n(r,i,o))&&(s.push(r),c&&t.push(a));return s}function m(e,t,n,i,r,s){return i&&!i[z]&&(i=m(i)),r&&!r[z]&&(r=m(r,s)),o(function(o,s,a,l){var c,d,u,p=[],f=[],h=s.length,m=o||b(t||"*",a.nodeType?[a]:a,[]),v=!e||!o&&t?m:g(m,p,e,a,l),y=n?r||(o?e:h||i)?[]:s:v;if(n&&n(v,y,a,l),i)for(c=g(y,f),i(c,[],a,l),d=c.length;d--;)(u=c[d])&&(y[f[d]]=!(v[f[d]]=u));if(o){if(r||e){if(r){for(c=[],d=y.length;d--;)(u=y[d])&&c.push(v[d]=u);r(null,y=[],c,l)}for(d=y.length;d--;)(u=y[d])&&(c=r?K.call(o,u):p[d])>-1&&(o[c]=!(s[c]=u))}}else y=g(y===s?y.splice(h,y.length):y),r?r(null,s,y,l):G.apply(s,y)})}function v(e){for(var t,n,i,o=e.length,r=C.relative[e[0].type],s=r||C.relative[" "],a=r?1:0,l=f(function(e){return e===t},s,!0),c=f(function(e){return K.call(t,e)>-1},s,!0),d=[function(e,n,i){return!r&&(i||n!==A)||((t=n).nodeType?l(e,n,i):c(e,n,i))}];o>a;a++)if(n=C.relative[e[a].type])d=[f(h(d),n)];else{if(n=C.filter[e[a].type].apply(null,e[a].matches),n[z]){for(i=++a;o>i&&!C.relative[e[i].type];i++);return m(a>1&&h(d),a>1&&p(e.slice(0,a-1)).replace(se,"$1"),n,i>a&&v(e.slice(a,i)),o>i&&v(e=e.slice(i)),o>i&&p(e))}d.push(n)}return h(d)}function y(e,t){var n=0,i=t.length>0,r=e.length>0,a=function(o,a,l,c,d){var u,p,f,h=[],m=0,v="0",y=o&&[],b=null!=d,w=A,x=o||r&&C.find.TAG("*",d&&a.parentNode||a),k=B+=null==w?1:Math.random()||.1;for(b&&(A=a!==M&&a,T=n);null!=(u=x[v]);v++){if(r&&u){for(p=0;f=e[p++];)if(f(u,a,l)){c.push(u);break}b&&(B=k,T=++n)}i&&((u=!f&&u)&&m--,o&&y.push(u))}if(m+=v,i&&v!==m){for(p=0;f=t[p++];)f(y,h,a,l);if(o){if(m>0)for(;v--;)y[v]||h[v]||(h[v]=V.call(c));h=g(h)}G.apply(c,h),b&&!o&&h.length>0&&m+t.length>1&&s.uniqueSort(c)}return b&&(B=k,A=w),y};return i?o(a):a}function b(e,t,n){for(var i=0,o=t.length;o>i;i++)s(e,t[i],n);return n}function w(e,t,n,i){var o,r,s,a,l,c=u(e);if(!i&&1===c.length){if(r=c[0]=c[0].slice(0),r.length>2&&"ID"===(s=r[0]).type&&9===t.nodeType&&!L&&C.relative[r[1].type]){if(t=C.find.ID(s.matches[0].replace(we,xe),t)[0],!t)return n;e=e.slice(r.shift().value.length)}for(o=pe.needsContext.test(e)?0:r.length;o--&&(s=r[o],!C.relative[a=s.type]);)if((l=C.find[a])&&(i=l(s.matches[0].replace(we,xe),fe.test(r[0].type)&&t.parentNode||t))){if(r.splice(o,1),e=i.length&&p(r),!e)return G.apply(n,J.call(i,0)),n;break}}return E(e,c)(i,t,L,n,fe.test(e)),n}function x(){}var k,T,C,S,$,E,N,A,j,M,O,L,P,H,D,q,I,z="sizzle"+-new Date,F=e.document,W={},B=0,_=0,R=i(),X=i(),U=i(),Q=typeof t,Y=1<<31,Z=[],V=Z.pop,G=Z.push,J=Z.slice,K=Z.indexOf||function(e){for(var t=0,n=this.length;n>t;t++)if(this[t]===e)return t;return-1},ee="[\\x20\\t\\r\\n\\f]",te="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",ne=te.replace("w","w#"),ie="([*^$|!~]?=)",oe="\\["+ee+"*("+te+")"+ee+"*(?:"+ie+ee+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+ne+")|)|)"+ee+"*\\]",re=":("+te+")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|"+oe.replace(3,8)+")*)|.*)\\)|)",se=new RegExp("^"+ee+"+|((?:^|[^\\\\])(?:\\\\.)*)"+ee+"+$","g"),ae=new RegExp("^"+ee+"*,"+ee+"*"),ce=new RegExp("^"+ee+"*([\\x20\\t\\r\\n\\f>+~])"+ee+"*"),de=new RegExp(re),ue=new RegExp("^"+ne+"$"),pe={ID:new RegExp("^#("+te+")"),CLASS:new RegExp("^\\.("+te+")"),NAME:new RegExp("^\\[name=['\"]?("+te+")['\"]?\\]"),TAG:new RegExp("^("+te.replace("w","w*")+")"),ATTR:new RegExp("^"+oe),PSEUDO:new RegExp("^"+re),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ee+"*(even|odd|(([+-]|)(\\d*)n|)"+ee+"*(?:([+-]|)"+ee+"*(\\d+)|))"+ee+"*\\)|)","i"),needsContext:new RegExp("^"+ee+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ee+"*((?:-\\d)?\\d*)"+ee+"*\\)|)(?=[^-]|$)","i")},fe=/[\x20\t\r\n\f]*[+~]/,he=/^[^{]+\{\s*\[native code/,ge=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,me=/^(?:input|select|textarea|button)$/i,ve=/^h\d$/i,ye=/'|\\/g,be=/\=[\x20\t\r\n\f]*([^'"\]]*)[\x20\t\r\n\f]*\]/g,we=/\\([\da-fA-F]{1,6}[\x20\t\r\n\f]?|.)/g,xe=function(e,t){var n="0x"+t-65536;return n!==n?t:0>n?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320)};try{J.call(F.documentElement.childNodes,0)[0].nodeType}catch(ke){J=function(e){for(var t,n=[];t=this[e++];)n.push(t);return n}}$=s.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return t?"HTML"!==t.nodeName:!1},j=s.setDocument=function(e){var i=e?e.ownerDocument||e:F;return i!==M&&9===i.nodeType&&i.documentElement?(M=i,O=i.documentElement,L=$(i),W.tagNameNoComments=r(function(e){return e.appendChild(i.createComment("")),!e.getElementsByTagName("*").length}),W.attributes=r(function(e){e.innerHTML="";var t=typeof e.lastChild.getAttribute("multiple");return"boolean"!==t&&"string"!==t}),W.getByClassName=r(function(e){return e.innerHTML="",e.getElementsByClassName&&e.getElementsByClassName("e").length?(e.lastChild.className="e",2===e.getElementsByClassName("e").length):!1}),W.getByName=r(function(e){e.id=z+0,e.innerHTML="",O.insertBefore(e,O.firstChild);var t=i.getElementsByName&&i.getElementsByName(z).length===2+i.getElementsByName(z+0).length;return W.getIdNotName=!i.getElementById(z),O.removeChild(e),t}),C.attrHandle=r(function(e){return e.innerHTML="",e.firstChild&&typeof e.firstChild.getAttribute!==Q&&"#"===e.firstChild.getAttribute("href")})?{}:{href:function(e){return e.getAttribute("href",2)},type:function(e){return e.getAttribute("type")}},W.getIdNotName?(C.find.ID=function(e,t){if(typeof t.getElementById!==Q&&!L){var n=t.getElementById(e);return n&&n.parentNode?[n]:[]}},C.filter.ID=function(e){var t=e.replace(we,xe);return function(e){return e.getAttribute("id")===t}}):(C.find.ID=function(e,n){if(typeof n.getElementById!==Q&&!L){var i=n.getElementById(e);return i?i.id===e||typeof i.getAttributeNode!==Q&&i.getAttributeNode("id").value===e?[i]:t:[]}},C.filter.ID=function(e){var t=e.replace(we,xe);return function(e){var n=typeof e.getAttributeNode!==Q&&e.getAttributeNode("id");return n&&n.value===t}}),C.find.TAG=W.tagNameNoComments?function(e,t){return typeof t.getElementsByTagName!==Q?t.getElementsByTagName(e):void 0}:function(e,t){var n,i=[],o=0,r=t.getElementsByTagName(e);if("*"===e){for(;n=r[o++];)1===n.nodeType&&i.push(n);return i}return r},C.find.NAME=W.getByName&&function(e,t){return typeof t.getElementsByName!==Q?t.getElementsByName(name):void 0},C.find.CLASS=W.getByClassName&&function(e,t){return typeof t.getElementsByClassName===Q||L?void 0:t.getElementsByClassName(e)},H=[],P=[":focus"],(W.qsa=n(i.querySelectorAll))&&(r(function(e){e.innerHTML="",e.querySelectorAll("[selected]").length||P.push("\\["+ee+"*(?:checked|disabled|ismap|multiple|readonly|selected|value)"),e.querySelectorAll(":checked").length||P.push(":checked")}),r(function(e){e.innerHTML="",e.querySelectorAll("[i^='']").length&&P.push("[*^$]="+ee+"*(?:\"\"|'')"),e.querySelectorAll(":enabled").length||P.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),P.push(",.*:")})),(W.matchesSelector=n(D=O.matchesSelector||O.mozMatchesSelector||O.webkitMatchesSelector||O.oMatchesSelector||O.msMatchesSelector))&&r(function(e){W.disconnectedMatch=D.call(e,"div"),D.call(e,"[s!='']:x"),H.push("!=",re)}),P=new RegExp(P.join("|")),H=new RegExp(H.join("|")),q=n(O.contains)||O.compareDocumentPosition?function(e,t){var n=9===e.nodeType?e.documentElement:e,i=t&&t.parentNode;return e===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):e.compareDocumentPosition&&16&e.compareDocumentPosition(i)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},I=O.compareDocumentPosition?function(e,t){var n;return e===t?(N=!0,0):(n=t.compareDocumentPosition&&e.compareDocumentPosition&&e.compareDocumentPosition(t))?1&n||e.parentNode&&11===e.parentNode.nodeType?e===i||q(F,e)?-1:t===i||q(F,t)?1:0:4&n?-1:1:e.compareDocumentPosition?-1:1}:function(e,t){var n,o=0,r=e.parentNode,s=t.parentNode,l=[e],c=[t];if(e===t)return N=!0,0;if(!r||!s)return e===i?-1:t===i?1:r?-1:s?1:0;if(r===s)return a(e,t);for(n=e;n=n.parentNode;)l.unshift(n);for(n=t;n=n.parentNode;)c.unshift(n);for(;l[o]===c[o];)o++;return o?a(l[o],c[o]):l[o]===F?-1:c[o]===F?1:0},N=!1,[0,0].sort(I),W.detectDuplicates=N,M):M},s.matches=function(e,t){return s(e,null,null,t)},s.matchesSelector=function(e,t){if((e.ownerDocument||e)!==M&&j(e),t=t.replace(be,"='$1']"),W.matchesSelector&&!L&&(!H||!H.test(t))&&!P.test(t))try{var n=D.call(e,t);if(n||W.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(i){}return s(t,M,null,[e]).length>0},s.contains=function(e,t){return(e.ownerDocument||e)!==M&&j(e),q(e,t)},s.attr=function(e,t){var n;return(e.ownerDocument||e)!==M&&j(e),L||(t=t.toLowerCase()),(n=C.attrHandle[t])?n(e):L||W.attributes?e.getAttribute(t):((n=e.getAttributeNode(t))||e.getAttribute(t))&&e[t]===!0?t:n&&n.specified?n.value:null},s.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},s.uniqueSort=function(e){var t,n=[],i=1,o=0;if(N=!W.detectDuplicates,e.sort(I),N){for(;t=e[i];i++)t===e[i-1]&&(o=n.push(i));for(;o--;)e.splice(n[o],1)}return e},S=s.getText=function(e){var t,n="",i=0,o=e.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=S(e)}else if(3===o||4===o)return e.nodevalsue}else for(;t=e[i];i++)n+=S(t);return n},C=s.selectors={cacheLength:50,createPseudo:o,match:pe,find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(we,xe),e[3]=(e[4]||e[5]||"").replace(we,xe),"~="===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]||s.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]&&s.error(e[0]),e},PSEUDO:function(e){var t,n=!e[5]&&e[2];return pe.CHILD.test(e[0])?null:(e[4]?e[2]=e[4]:n&&de.test(n)&&(t=u(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){return"*"===e?function(){return!0}:(e=e.replace(we,xe).toLowerCase(),function(t){return t.nodeName&&t.nodeName.toLowerCase()===e})},CLASS:function(e){var t=R[e+" "];return t||(t=new RegExp("(^|"+ee+")"+e+"("+ee+"|$)"))&&R(e,function(e){return t.test(e.className||typeof e.getAttribute!==Q&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(i){var o=s.attr(i,e);return null==o?"!="===t:t?(o+="","="===t?o===n:"!="===t?o!==n:"^="===t?n&&0===o.indexOf(n):"*="===t?n&&o.indexOf(n)>-1:"$="===t?n&&o.slice(-n.length)===n:"~="===t?(" "+o+" ").indexOf(n)>-1:"|="===t?o===n||o.slice(0,n.length+1)===n+"-":!1):!0}},CHILD:function(e,t,n,i,o){var r="nth"!==e.slice(0,3),s="last"!==e.slice(-4),a="of-type"===t;return 1===i&&0===o?function(e){return!!e.parentNode}:function(t,n,l){var c,d,u,p,f,h,g=r!==s?"nextSibling":"previousSibling",m=t.parentNode,v=a&&t.nodeName.toLowerCase(),y=!l&&!a;if(m){if(r){for(;g;){for(u=t;u=u[g];)if(a?u.nodeName.toLowerCase()===v:1===u.nodeType)return!1;h=g="only"===e&&!h&&"nextSibling"}return!0}if(h=[s?m.firstChild:m.lastChild],s&&y){for(d=m[z]||(m[z]={}),c=d[e]||[],f=c[0]===B&&c[1],p=c[0]===B&&c[2],u=f&&m.childNodes[f];u=++f&&u&&u[g]||(p=f=0)||h.pop();)if(1===u.nodeType&&++p&&u===t){d[e]=[B,f,p];break}}else if(y&&(c=(t[z]||(t[z]={}))[e])&&c[0]===B)p=c[1];else for(;(u=++f&&u&&u[g]||(p=f=0)||h.pop())&&((a?u.nodeName.toLowerCase()!==v:1!==u.nodeType)||!++p||(y&&((u[z]||(u[z]={}))[e]=[B,p]),u!==t)););return p-=o,p===i||p%i===0&&p/i>=0}}},PSEUDO:function(e,t){var n,i=C.pseudos[e]||C.setFilters[e.toLowerCase()]||s.error("unsupported pseudo: "+e);return i[z]?i(t):i.length>1?(n=[e,e,"",t],C.setFilters.hasOwnProperty(e.toLowerCase())?o(function(e,n){for(var o,r=i(e,t),s=r.length;s--;)o=K.call(e,r[s]),e[o]=!(n[o]=r[s])}):function(e){return i(e,0,n)}):i}},pseudos:{not:o(function(e){var t=[],n=[],i=E(e.replace(se,"$1"));return i[z]?o(function(e,t,n,o){for(var r,s=i(e,null,o,[]),a=e.length;a--;)(r=s[a])&&(e[a]=!(t[a]=r))}):function(e,o,r){return t[0]=e,i(t,null,r,n),!n.pop()}}),has:o(function(e){return function(t){return s(e,t).length>0}}),contains:o(function(e){return function(t){return(t.textContent||t.innerText||S(t)).indexOf(e)>-1}}),lang:o(function(e){return ue.test(e||"")||s.error("unsupported lang: "+e),e=e.replace(we,xe).toLowerCase(),function(t){var n;do if(n=L?t.getAttribute("xml:lang")||t.getAttribute("lang"):t.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.locations&&e.locations.hash;return n&&n.slice(1)===t.id},root:function(e){return e===O},focus:function(e){return e===M.activeElement&&(!M.hasFocus||M.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!C.pseudos.empty(e)},header:function(e){return ve.test(e.nodeName)},input:function(e){return me.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:d(function(){return[0]}),last:d(function(e,t){return[t-1]}),eq:d(function(e,t,n){return[0>n?n+t:n]}),even:d(function(e,t){for(var n=0;t>n;n+=2)e.push(n);return e}),odd:d(function(e,t){for(var n=1;t>n;n+=2)e.push(n);return e}),lt:d(function(e,t,n){for(var i=0>n?n+t:n;--i>=0;)e.push(i);return e}),gt:d(function(e,t,n){for(var i=0>n?n+t:n;++it;t++)if(le.contains(i[t],this))return!0}));for(n=[],t=0;o>t;t++)le.find(e,this[t],n);return n=this.pushStack(o>1?le.unique(n):n),n.selector=(this.selector?this.selector+" ":"")+e,n},has:function(e){var t,n=le(e,this),i=n.length;return this.filter(function(){for(t=0;i>t;t++)if(le.contains(this,n[t]))return!0})},not:function(e){return this.pushStack(u(this,e,!1))},filter:function(e){return this.pushStack(u(this,e,!0))},is:function(e){return!!e&&("string"==typeof e?Re.test(e)?le(e,this.context).index(this[0])>=0:le.filter(e,this).length>0:this.filter(e).length>0)},closest:function(e,t){for(var n,i=0,o=this.length,r=[],s=Re.test(e)||"string"!=typeof e?le(e,t||this.context):0;o>i;i++)for(n=this[i];n&&n.ownerDocument&&n!==t&&11!==n.nodeType;){if(s?s.index(n)>-1:le.find.matchesSelector(n,e)){r.push(n);break}n=n.parentNode}return this.pushStack(r.length>1?le.unique(r):r)},index:function(e){return e?"string"==typeof e?le.inArray(this[0],le(e)):le.inArray(e.jquery?e[0]:e,this):this[0]&&this[0].parentNode?this.first().prevalsl().length:-1},add:function(e,t){var n="string"==typeof e?le(e,t):le.makeArray(e&&e.nodeType?[e]:e),i=le.merge(this.get(),n);return this.pushStack(le.unique(i))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),le.fn.andSelf=le.fn.addBack,le.each({parent:function(e){
var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return le.dir(e,"parentNode")},parentsUntil:function(e,t,n){return le.dir(e,"parentNode",n)},next:function(e){return d(e,"nextSibling")},prev:function(e){return d(e,"previousSibling")},nextAll:function(e){return le.dir(e,"nextSibling")},prevalsl:function(e){return le.dir(e,"previousSibling")},nextUntil:function(e,t,n){return le.dir(e,"nextSibling",n)},prevUntil:function(e,t,n){return le.dir(e,"previousSibling",n)},siblings:function(e){return le.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return le.sibling(e.firstChild)},contents:function(e){return le.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:le.merge([],e.childNodes)}},function(e,t){le.fn[e]=function(n,i){var o=le.map(this,t,n);return We.test(e)||(i=n),i&&"string"==typeof i&&(o=le.filter(i,o)),o=this.length>1&&!Xe[e]?le.unique(o):o,this.length>1&&Be.test(e)&&(o=o.reverse()),this.pushStack(o)}}),le.extend({filter:function(e,t,n){return n&&(e=":not("+e+")"),1===t.length?le.find.matchesSelector(t[0],e)?[t[0]]:[]:le.find.matches(e,t)},dir:function(e,n,i){for(var o=[],r=e[n];r&&9!==r.nodeType&&(i===t||1!==r.nodeType||!le(r).is(i));)1===r.nodeType&&o.push(r),r=r[n];return o},sibling:function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}});var Ue="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",Qe=/ jQuery\d+="(?:null|\d+)"/g,Ye=new RegExp("<(?:"+Ue+")[\\s/>]","i"),Ze=/^\s+/,Ve=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,Ge=/<([\w:]+)/,Je=/\s*$/g,st={option:[1,""],legend:[1,""],area:[1,""],param:[1,""],thead:[1,""],tr:[2,""],col:[2,""],td:[3,""],_default:le.support.htmlSerialize?[0,"",""]:[1,"X","
"]},at=p(Y),lt=at.appendChild(Y.createElement("div"));st.optgroup=st.option,st.tbody=st.tfoot=st.colgroup=st.caption=st.thead,st.th=st.td,le.fn.extend({text:function(e){return le.access(this,function(e){return e===t?le.text(this):this.empty().append((this[0]&&this[0].ownerDocument||Y).createTextNode(e))},null,e,arguments.length)},wrapAll:function(e){if(le.isFunction(e))return this.each(function(t){le(this).wrapAll(e.call(this,t))});if(this[0]){var t=le(e,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstChild&&1===e.firstChild.nodeType;)e=e.firstChild;return e}).append(this)}return this},wrapInner:function(e){return le.isFunction(e)?this.each(function(t){le(this).wrapInner(e.call(this,t))}):this.each(function(){var t=le(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=le.isFunction(e);return this.each(function(n){le(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){le.nodeName(this,"body")||le(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(e){(1===this.nodeType||11===this.nodeType||9===this.nodeType)&&this.appendChild(e)})},prepend:function(){return this.domManip(arguments,!0,function(e){(1===this.nodeType||11===this.nodeType||9===this.nodeType)&&this.insertBefore(e,this.firstChild)})},before:function(){return this.domManip(arguments,!1,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return this.domManip(arguments,!1,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},remove:function(e,t){for(var n,i=0;null!=(n=this[i]);i++)(!e||le.filter(e,[n]).length>0)&&(t||1!==n.nodeType||le.cleanData(b(n)),n.parentNode&&(t&&le.contains(n.ownerDocument,n)&&m(b(n,"script")),n.parentNode.removeChild(n)));return this},empty:function(){for(var e,t=0;null!=(e=this[t]);t++){for(1===e.nodeType&&le.cleanData(b(e,!1));e.firstChild;)e.removeChild(e.firstChild);e.options&&le.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 le.clone(this,e,t)})},html:function(e){return le.access(this,function(e){var n=this[0]||{},i=0,o=this.length;if(e===t)return 1===n.nodeType?n.innerHTML.replace(Qe,""):t;if("string"==typeof e&&!et.test(e)&&(le.support.htmlSerialize||!Ye.test(e))&&(le.support.leadingWhitespace||!Ze.test(e))&&!st[(Ge.exec(e)||["",""])[1].toLowerCase()]){e=e.replace(Ve,"<$1>$2>");try{for(;o>i;i++)n=this[i]||{},1===n.nodeType&&(le.cleanData(b(n,!1)),n.innerHTML=e);n=0}catch(r){}}n&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(e){var t=le.isFunction(e);return t||"string"==typeof e||(e=le(e).not(this).detach()),this.domManip([e],!0,function(e){var t=this.nextSibling,n=this.parentNode;n&&(le(this).remove(),n.insertBefore(e,t))})},detach:function(e){return this.remove(e,!0)},domManip:function(e,n,i){e=te.apply([],e);var o,r,s,a,l,c,d=0,u=this.length,p=this,m=u-1,v=e[0],y=le.isFunction(v);if(y||!(1>=u||"string"!=typeof v||le.support.checkClone)&&nt.test(v))return this.each(function(o){var r=p.eq(o);y&&(e[0]=v.call(this,o,n?r.html():t)),r.domManip(e,n,i)});if(u&&(c=le.buildFragment(e,this[0].ownerDocument,!1,this),o=c.firstChild,1===c.childNodes.length&&(c=o),o)){for(n=n&&le.nodeName(o,"tr"),a=le.map(b(c,"script"),h),s=a.length;u>d;d++)r=c,d!==m&&(r=le.clone(r,!0,!0),s&&le.merge(a,b(r,"script"))),i.call(n&&le.nodeName(this[d],"table")?f(this[d],"tbody"):this[d],r,d);if(s)for(l=a[a.length-1].ownerDocument,le.map(a,g),d=0;s>d;d++)r=a[d],it.test(r.type||"")&&!le._data(r,"globalevals")&&le.contains(l,r)&&(r.src?le.ajax({url:r.src,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0}):le.globalevals((r.text||r.textContent||r.innerHTML||"").replace(rt,"")));c=o=null}return this}}),le.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){le.fn[e]=function(e){for(var n,i=0,o=[],r=le(e),s=r.length-1;s>=i;i++)n=i===s?this:this.clone(!0),le(r[i])[t](n),ne.apply(o,n.get());return this.pushStack(o)}}),le.extend({clone:function(e,t,n){var i,o,r,s,a,l=le.contains(e.ownerDocument,e);if(le.support.html5Clone||le.isXMLDoc(e)||!Ye.test("<"+e.nodeName+">")?r=e.cloneNode(!0):(lt.innerHTML=e.outerHTML,lt.removeChild(r=lt.firstChild)),!(le.support.noCloneEvent&&le.support.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||le.isXMLDoc(e)))for(i=b(r),a=b(e),s=0;null!=(o=a[s]);++s)i[s]&&y(o,i[s]);if(t)if(n)for(a=a||b(e),i=i||b(r),s=0;null!=(o=a[s]);s++)v(o,i[s]);else v(e,r);return i=b(r,"script"),i.length>0&&m(i,!l&&b(e,"script")),i=a=o=null,r},buildFragment:function(e,t,n,i){for(var o,r,s,a,l,c,d,u=e.length,f=p(t),h=[],g=0;u>g;g++)if(r=e[g],r||0===r)if("object"===le.type(r))le.merge(h,r.nodeType?[r]:r);else if(Ke.test(r)){for(a=a||f.appendChild(t.createElement("div")),l=(Ge.exec(r)||["",""])[1].toLowerCase(),d=st[l]||st._default,a.innerHTML=d[1]+r.replace(Ve,"<$1>$2>")+d[2],o=d[0];o--;)a=a.lastChild;if(!le.support.leadingWhitespace&&Ze.test(r)&&h.push(t.createTextNode(Ze.exec(r)[0])),!le.support.tbody)for(r="table"!==l||Je.test(r)?""!==d[1]||Je.test(r)?0:a:a.firstChild,o=r&&r.childNodes.length;o--;)le.nodeName(c=r.childNodes[o],"tbody")&&!c.childNodes.length&&r.removeChild(c);for(le.merge(h,a.childNodes),a.textContent="";a.firstChild;)a.removeChild(a.firstChild);a=f.lastChild}else h.push(t.createTextNode(r));for(a&&f.removeChild(a),le.support.appendChecked||le.grep(b(h,"input"),w),g=0;r=h[g++];)if((!i||-1===le.inArray(r,i))&&(s=le.contains(r.ownerDocument,r),a=b(f.appendChild(r),"script"),s&&m(a),n))for(o=0;r=a[o++];)it.test(r.type||"")&&n.push(r);return a=null,f},cleanData:function(e,t){for(var n,i,o,r,s=0,a=le.expando,l=le.cache,c=le.support.deleteExpando,d=le.event.special;null!=(n=e[s]);s++)if((t||le.acceptData(n))&&(o=n[a],r=o&&l[o])){if(r.events)for(i in r.events)d[i]?le.event.remove(n,i):le.removeEvent(n,i,r.handle);l[o]&&(delete l[o],c?delete n[a]:typeof n.removeAttribute!==Q?n.removeAttribute(a):n[a]=null,K.push(o))}}});var ct,dt,ut,pt=/alpha\([^)]*\)/i,ft=/opacity\s*=\s*([^)]*)/,ht=/^(top|right|bottom|left)$/,gt=/^(none|table(?!-c[ea]).+)/,mt=/^margin/,vt=new RegExp("^("+ce+")(.*)$","i"),yt=new RegExp("^("+ce+")(?!px)[a-z%]+$","i"),bt=new RegExp("^([+-])=("+ce+")","i"),wt={BODY:"block"},xt={position:"absolute",visibility:"hidden",display:"block"},kt={letterSpacing:0,fontWeight:400},Tt=["Top","Right","Bottom","Left"],Ct=["Webkit","O","Moz","ms"];le.fn.extend({css:function(e,n){return le.access(this,function(e,n,i){var o,r,s={},a=0;if(le.isArray(n)){for(r=dt(e),o=n.length;o>a;a++)s[n[a]]=le.css(e,n[a],!1,r);return s}return i!==t?le.style(e,n,i):le.css(e,n)},e,n,arguments.length>1)},show:function(){return T(this,!0)},hide:function(){return T(this)},toggle:function(e){var t="boolean"==typeof e;return this.each(function(){(t?e:k(this))?le(this).show():le(this).hide()})}}),le.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=ut(e,"opacity");return""===n?"1":n}}}},cssNumber:{columnCount:!0,fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":le.support.cssFloat?"cssFloat":"styleFloat"},style:function(e,n,i,o){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var r,s,a,l=le.camelCase(n),c=e.style;if(n=le.cssProps[l]||(le.cssProps[l]=x(c,l)),a=le.cssHooks[n]||le.cssHooks[l],i===t)return a&&"get"in a&&(r=a.get(e,!1,o))!==t?r:c[n];if(s=typeof i,"string"===s&&(r=bt.exec(i))&&(i=(r[1]+1)*r[2]+parseFloat(le.css(e,n)),s="number"),!(null==i||"number"===s&&isNaN(i)||("number"!==s||le.cssNumber[l]||(i+="px"),le.support.clearCloneStyle||""!==i||0!==n.indexOf("background")||(c[n]="inherit"),a&&"set"in a&&(i=a.set(e,i,o))===t)))try{c[n]=i}catch(d){}}},css:function(e,n,i,o){var r,s,a,l=le.camelCase(n);return n=le.cssProps[l]||(le.cssProps[l]=x(e.style,l)),a=le.cssHooks[n]||le.cssHooks[l],a&&"get"in a&&(s=a.get(e,!0,i)),s===t&&(s=ut(e,n,o)),"normal"===s&&n in kt&&(s=kt[n]),""===i||i?(r=parseFloat(s),i===!0||le.isNumeric(r)?r||0:s):s},swap:function(e,t,n,i){var o,r,s={};for(r in t)s[r]=e.style[r],e.style[r]=t[r];o=n.apply(e,i||[]);for(r in t)e.style[r]=s[r];return o}}),e.getComputedStyle?(dt=function(t){return e.getComputedStyle(t,null)},ut=function(e,n,i){var o,r,s,a=i||dt(e),l=a?a.getPropertyValue(n)||a[n]:t,c=e.style;return a&&(""!==l||le.contains(e.ownerDocument,e)||(l=le.style(e,n)),yt.test(l)&&mt.test(n)&&(o=c.width,r=c.minWidth,s=c.maxWidth,c.minWidth=c.maxWidth=c.width=l,l=a.width,c.width=o,c.minWidth=r,c.maxWidth=s)),l}):Y.documentElement.currentStyle&&(dt=function(e){return e.currentStyle},ut=function(e,n,i){var o,r,s,a=i||dt(e),l=a?a[n]:t,c=e.style;return null==l&&c&&c[n]&&(l=c[n]),yt.test(l)&&!ht.test(n)&&(o=c.left,r=e.runtimeStyle,s=r&&r.left,s&&(r.left=e.currentStyle.left),c.left="fontSize"===n?"1em":l,l=c.pixelLeft+"px",c.left=o,s&&(r.left=s)),""===l?"auto":l}),le.each(["height","width"],function(e,t){le.cssHooks[t]={get:function(e,n,i){return n?0===e.offsetWidth&>.test(le.css(e,"display"))?le.swap(e,xt,function(){return $(e,t,i)}):$(e,t,i):void 0},set:function(e,n,i){var o=i&&dt(e);return C(e,n,i?S(e,t,i,le.support.boxSizing&&"border-box"===le.css(e,"boxSizing",!1,o),o):0)}}}),le.support.opacity||(le.cssHooks.opacity={get:function(e,t){return ft.test((t&&e.currentStyle?e.currentStyle.filter:e.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(e,t){var n=e.style,i=e.currentStyle,o=le.isNumeric(t)?"alpha(opacity="+100*t+")":"",r=i&&i.filter||n.filter||"";n.zoom=1,(t>=1||""===t)&&""===le.trim(r.replace(pt,""))&&n.removeAttribute&&(n.removeAttribute("filter"),""===t||i&&!i.filter)||(n.filter=pt.test(r)?r.replace(pt,o):r+" "+o)}}),le(function(){le.support.reliableMarginRight||(le.cssHooks.marginRight={get:function(e,t){return t?le.swap(e,{display:"inline-block"},ut,[e,"marginRight"]):void 0}}),!le.support.pixelPosition&&le.fn.position&&le.each(["top","left"],function(e,t){le.cssHooks[t]={get:function(e,n){return n?(n=ut(e,t),yt.test(n)?le(e).position()[t]+"px":n):void 0}}})}),le.expr&&le.expr.filters&&(le.expr.filters.hidden=function(e){return e.offsetWidth<=0&&e.offsetHeight<=0||!le.support.reliableHiddenOffsets&&"none"===(e.style&&e.style.display||le.css(e,"display"))},le.expr.filters.visible=function(e){return!le.expr.filters.hidden(e)}),le.each({margin:"",padding:"",border:"Width"},function(e,t){le.cssHooks[e+t]={expand:function(n){for(var i=0,o={},r="string"==typeof n?n.split(" "):[n];4>i;i++)o[e+Tt[i]+t]=r[i]||r[i-2]||r[0];return o}},mt.test(e)||(le.cssHooks[e+t].set=C)});var St=/%20/g,$t=/\[\]$/,Et=/\r?\n/g,Nt=/^(?:submit|button|image|reset|file)$/i,At=/^(?:input|select|textarea|keygen)/i;le.fn.extend({serialize:function(){return le.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=le.prop(this,"elements");return e?le.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!le(this).is(":disabled")&&At.test(this.nodeName)&&!Nt.test(e)&&(this.checked||!tt.test(e))}).map(function(e,t){var n=le(this).val();return null==n?null:le.isArray(n)?le.map(n,function(e){return{name:t.name,value:e.replace(Et,"\r\n")}}):{name:t.name,value:n.replace(Et,"\r\n")}}).get()}}),le.param=function(e,n){var i,o=[],r=function(e,t){t=le.isFunction(t)?t():null==t?"":t,o[o.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(n===t&&(n=le.ajaxSettings&&le.ajaxSettings.traditional),le.isArray(e)||e.jquery&&!le.isPlainObject(e))le.each(e,function(){r(this.name,this.value)});else for(i in e)A(i,e[i],n,r);return o.join("&").replace(St,"+")},le.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(e,t){le.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),le.fn.hover=function(e,t){return this.mouseenter(e).mouseleave(t||e)};var jt,Mt,Ot=le.now(),Lt=/\?/,Pt=/#.*$/,Ht=/([?&])_=[^&]*/,Dt=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,qt=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,It=/^(?:GET|HEAD)$/,zt=/^\/\//,Ft=/^([\w.+-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,Wt=le.fn.load,Bt={},_t={},Rt="*/".concat("*");try{Mt=Z.href}catch(Xt){Mt=Y.createElement("a"),Mt.href="",Mt=Mt.href}jt=Ft.exec(Mt.toLowerCase())||[],le.fn.load=function(e,n,i){if("string"!=typeof e&&Wt)return Wt.apply(this,arguments);var o,r,s,a=this,l=e.indexOf(" ");return l>=0&&(o=e.slice(l,e.length),e=e.slice(0,l)),le.isFunction(n)?(i=n,n=t):n&&"object"==typeof n&&(s="POST"),a.length>0&&le.ajax({url:e,type:s,dataType:"html",data:n}).done(function(e){r=arguments,a.html(o?le("").append(le.parseHTML(e)).find(o):e)}).complete(i&&function(e,t){a.each(i,r||[e.responseText,t,e])}),this},le.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){le.fn[t]=function(e){return this.on(t,e)}}),le.each(["get","post"],function(e,n){le[n]=function(e,i,o,r){return le.isFunction(i)&&(r=r||o,o=i,i=t),le.ajax({url:e,type:n,dataType:r,data:i,success:o})}}),le.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Mt,type:"GET",isLocal:qt.test(jt[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Rt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":e.String,"text html":!0,"text json":le.parseJSON,"text xml":le.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?O(O(e,le.ajaxSettings),t):O(le.ajaxSettings,e)},ajaxPrefilter:j(Bt),ajaxTransport:j(_t),ajax:function(e,n){function i(e,n,i,o){var r,u,y,b,x,T=n;2!==w&&(w=2,l&&clearTimeout(l),d=t,a=o||"",k.readyState=e>0?4:0,i&&(b=L(p,k,i)),e>=200&&300>e||304===e?(p.ifModified&&(x=k.getResponseHeader("Last-Modified"),x&&(le.lastModified[s]=x),x=k.getResponseHeader("etag"),x&&(le.etag[s]=x)),204===e?(r=!0,T="nocontent"):304===e?(r=!0,T="notmodified"):(r=P(p,b),T=r.state,u=r.data,y=r.error,r=!y)):(y=T,(e||!T)&&(T="error",0>e&&(e=0))),k.status=e,k.statusText=(n||T)+"",r?g.resolveWith(f,[u,T,k]):g.rejectWith(f,[k,T,y]),k.statusCode(v),v=t,c&&h.trigger(r?"ajaxSuccess":"ajaxError",[k,p,r?u:y]),m.fireWith(f,[k,T]),c&&(h.trigger("ajaxComplete",[k,p]),--le.active||le.event.trigger("ajaxStop")))}"object"==typeof e&&(n=e,e=t),n=n||{};var o,r,s,a,l,c,d,u,p=le.ajaxSetup({},n),f=p.context||p,h=p.context&&(f.nodeType||f.jquery)?le(f):le.event,g=le.Deferred(),m=le.Callbacks("once memory"),v=p.statusCode||{},y={},b={},w=0,x="canceled",k={readyState:0,getResponseHeader:function(e){var t;if(2===w){if(!u)for(u={};t=Dt.exec(a);)u[t[1].toLowerCase()]=t[2];t=u[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===w?a:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return w||(e=b[n]=b[n]||e,y[e]=t),this},overrideMimeType:function(e){return w||(p.mimeType=e),this},statusCode:function(e){var t;if(e)if(2>w)for(t in e)v[t]=[v[t],e[t]];else k.always(e[k.status]);return this},abort:function(e){var t=e||x;return d&&d.abort(t),i(0,t),this}};if(g.promise(k).complete=m.add,k.success=k.done,k.error=k.fail,p.url=((e||p.url||Mt)+"").replace(Pt,"").replace(zt,jt[1]+"http://"),p.type=n.method||n.type||p.method||p.type,p.dataTypes=le.trim(p.dataType||"*").toLowerCase().match(de)||[""],null==p.crossDomain&&(o=Ft.exec(p.url.toLowerCase()),p.crossDomain=!(!o||o[1]===jt[1]&&o[2]===jt[2]&&(o[3]||("http:"===o[1]?80:443))==(jt[3]||("http:"===jt[1]?80:443)))),p.data&&p.processData&&"string"!=typeof p.data&&(p.data=le.param(p.data,p.traditional)),M(Bt,p,n,k),2===w)return k;c=p.global,c&&0===le.active++&&le.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!It.test(p.type),s=p.url,p.hasContent||(p.data&&(s=p.url+=(Lt.test(s)?"&":"?")+p.data,delete p.data),p.cache===!1&&(p.url=Ht.test(s)?s.replace(Ht,"$1_="+Ot++):s+(Lt.test(s)?"&":"?")+"_="+Ot++)),p.ifModified&&(le.lastModified[s]&&k.setRequestHeader("If-Modified-Since",le.lastModified[s]),le.etag[s]&&k.setRequestHeader("If-None-Match",le.etag[s])),(p.data&&p.hasContent&&p.contentType!==!1||n.contentType)&&k.setRequestHeader("Content-Type",p.contentType),k.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+Rt+"; q=0.01":""):p.accepts["*"]);for(r in p.headers)k.setRequestHeader(r,p.headers[r]);if(p.beforeSend&&(p.beforeSend.call(f,k,p)===!1||2===w))return k.abort();x="abort";for(r in{success:1,error:1,complete:1})k[r](p[r]);if(d=M(_t,p,n,k)){k.readyState=1,c&&h.trigger("ajaxSend",[k,p]),p.async&&p.timeout>0&&(l=setTimeout(function(){k.abort("timeout")},p.timeout));try{w=1,d.send(y,i)}catch(T){if(!(2>w))throw T;i(-1,T)}}else i(-1,"No Transport");return k},getScript:function(e,n){return le.get(e,t,n,"script")},getJSON:function(e,t,n){return le.get(e,t,n,"json")}}),le.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(e){return le.globalevals(e),e}}}),le.ajaxPrefilter("script",function(e){e.cache===t&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)}),le.ajaxTransport("script",function(e){if(e.crossDomain){var n,i=Y.head||le("head")[0]||Y.documentElement;return{send:function(t,o){n=Y.createElement("script"),n.async=!0,e.scriptCharset&&(n.charset=e.scriptCharset),n.src=e.url,n.onload=n.onreadystatechange=function(e,t){(t||!n.readyState||/loaded|complete/.test(n.readyState))&&(n.onload=n.onreadystatechange=null,n.parentNode&&n.parentNode.removeChild(n),n=null,t||o(200,"success"))},i.insertBefore(n,i.firstChild)},abort:function(){n&&n.onload(t,!0)}}}});var Ut=[],Qt=/(=)\?(?=&|$)|\?\?/;le.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Ut.pop()||le.expando+"_"+Ot++;return this[e]=!0,e}}),le.ajaxPrefilter("json jsonp",function(n,i,o){var r,s,a,l=n.jsonp!==!1&&(Qt.test(n.url)?"url":"string"==typeof n.data&&!(n.contentType||"").indexOf("application/x-www-form-urlencoded")&&Qt.test(n.data)&&"data");return l||"jsonp"===n.dataTypes[0]?(r=n.jsonpCallback=le.isFunction(n.jsonpCallback)?n.jsonpCallback():n.jsonpCallback,l?n[l]=n[l].replace(Qt,"$1"+r):n.jsonp!==!1&&(n.url+=(Lt.test(n.url)?"&":"?")+n.jsonp+"="+r),n.converters["script json"]=function(){return a||le.error(r+" was not called"),a[0]},n.dataTypes[0]="json",s=e[r],e[r]=function(){a=arguments},o.always(function(){e[r]=s,n[r]&&(n.jsonpCallback=i.jsonpCallback,Ut.push(r)),a&&le.isFunction(s)&&s(a[0]),a=s=t}),"script"):void 0});var Yt,Zt,Vt=0,Gt=e.ActiveXObject&&function(){var e;for(e in Yt)Yt[e](t,!0)};le.ajaxSettings.xhr=e.ActiveXObject?function(){return!this.isLocal&&H()||D()}:H,Zt=le.ajaxSettings.xhr(),le.support.cors=!!Zt&&"withCredentials"in Zt,Zt=le.support.ajax=!!Zt,Zt&&le.ajaxTransport(function(n){if(!n.crossDomain||le.support.cors){var i;return{send:function(o,r){var s,a,l=n.xhr();if(n.username?l.open(n.type,n.url,n.async,n.username,n.password):l.open(n.type,n.url,n.async),n.xhrFields)for(a in n.xhrFields)l[a]=n.xhrFields[a];n.mimeType&&l.overrideMimeType&&l.overrideMimeType(n.mimeType),n.crossDomain||o["X-Requested-With"]||(o["X-Requested-With"]="XMLHttpRequest");try{for(a in o)l.setRequestHeader(a,o[a])}catch(c){}l.send(n.hasContent&&n.data||null),i=function(e,o){var a,c,d,u;try{if(i&&(o||4===l.readyState))if(i=t,s&&(l.onreadystatechange=le.noop,Gt&&delete Yt[s]),o)4!==l.readyState&&l.abort();else{u={},a=l.status,c=l.getAllResponseHeaders(),"string"==typeof l.responseText&&(u.text=l.responseText);try{d=l.statusText}catch(p){d=""}a||!n.isLocal||n.crossDomain?1223===a&&(a=204):a=u.text?200:404}}catch(f){o||r(-1,f)}u&&r(a,d,u,c)},n.async?4===l.readyState?setTimeout(i):(s=++Vt,Gt&&(Yt||(Yt={},le(e).unload(Gt)),Yt[s]=i),l.onreadystatechange=i):i()},abort:function(){i&&i(t,!0)}}}});var Jt,Kt,en=/^(?:toggle|show|hide)$/,tn=new RegExp("^(?:([+-])=|)("+ce+")([a-z%]*)$","i"),nn=/queueHooks$/,on=[W],rn={"*":[function(e,t){var n,i,o=this.createTween(e,t),r=tn.exec(t),s=o.cur(),a=+s||0,l=1,c=20;if(r){if(n=+r[2],i=r[3]||(le.cssNumber[e]?"":"px"),"px"!==i&&a){a=le.css(o.elem,e,!0)||n||1;do l=l||".5",a/=l,le.style(o.elem,e,a+i);while(l!==(l=o.cur()/s)&&1!==l&&--c)}o.unit=i,o.start=a,o.end=r[1]?a+(r[1]+1)*n:n}return o}]};le.Animation=le.extend(z,{tweener:function(e,t){le.isFunction(e)?(t=e,e=["*"]):e=e.split(" ");for(var n,i=0,o=e.length;o>i;i++)n=e[i],rn[n]=rn[n]||[],rn[n].unshift(t)},prefilter:function(e,t){t?on.unshift(e):on.push(e)}}),le.Tween=B,B.prototype={constructor:B,init:function(e,t,n,i,o,r){this.elem=e,this.prop=n,this.easing=o||"swing",this.options=t,this.start=this.now=this.cur(),this.end=i,this.unit=r||(le.cssNumber[n]?"":"px")},cur:function(){var e=B.propHooks[this.prop];return e&&e.get?e.get(this):B.propHooks._default.get(this)},run:function(e){var t,n=B.propHooks[this.prop];return this.options.duration?this.pos=t=le.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):B.propHooks._default.set(this),this}},B.prototype.init.prototype=B.prototype,B.propHooks={_default:{get:function(e){var t;return null==e.elem[e.prop]||e.elem.style&&null!=e.elem.style[e.prop]?(t=le.css(e.elem,e.prop,""),t&&"auto"!==t?t:0):e.elem[e.prop]},set:function(e){le.fx.step[e.prop]?le.fx.step[e.prop](e):e.elem.style&&(null!=e.elem.style[le.cssProps[e.prop]]||le.cssHooks[e.prop])?le.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}},B.propHooks.scrollTop=B.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},le.each(["toggle","show","hide"],function(e,t){var n=le.fn[t];le.fn[t]=function(e,i,o){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(_(t,!0),e,i,o)}}),le.fn.extend({fadeTo:function(e,t,n,i){return this.filter(k).css("opacity",0).show().end().animate({opacity:t},e,n,i)},animate:function(e,t,n,i){var o=le.isEmptyObject(e),r=le.speed(t,n,i),s=function(){var t=z(this,le.extend({},e),r);s.finish=function(){t.stop(!0)},(o||le._data(this,"finish"))&&t.stop(!0)};return s.finish=s,o||r.queue===!1?this.each(s):this.queue(r.queue,s)},stop:function(e,n,i){var o=function(e){var t=e.stop;delete e.stop,t(i)};return"string"!=typeof e&&(i=n,n=e,e=t),n&&e!==!1&&this.queue(e||"fx",[]),this.each(function(){var t=!0,n=null!=e&&e+"queueHooks",r=le.timers,s=le._data(this);if(n)s[n]&&s[n].stop&&o(s[n]);else for(n in s)s[n]&&s[n].stop&&nn.test(n)&&o(s[n]);for(n=r.length;n--;)r[n].elem!==this||null!=e&&r[n].queue!==e||(r[n].anim.stop(i),t=!1,r.splice(n,1));(t||!i)&&le.dequeue(this,e)})},finish:function(e){return e!==!1&&(e=e||"fx"),this.each(function(){var t,n=le._data(this),i=n[e+"queue"],o=n[e+"queueHooks"],r=le.timers,s=i?i.length:0;for(n.finish=!0,le.queue(this,e,[]),o&&o.cur&&o.cur.finish&&o.cur.finish.call(this),t=r.length;t--;)r[t].elem===this&&r[t].queue===e&&(r[t].anim.stop(!0),r.splice(t,1));for(t=0;s>t;t++)i[t]&&i[t].finish&&i[t].finish.call(this);delete n.finish})}}),le.each({slideDown:_("show"),slideUp:_("hide"),slideToggle:_("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){le.fn[e]=function(e,n,i){return this.animate(t,e,n,i)}}),le.speed=function(e,t,n){var i=e&&"object"==typeof e?le.extend({},e):{complete:n||!n&&t||le.isFunction(e)&&e,duration:e,easing:n&&t||t&&!le.isFunction(t)&&t};return i.duration=le.fx.off?0:"number"==typeof i.duration?i.duration:i.duration in le.fx.speeds?le.fx.speeds[i.duration]:le.fx.speeds._default,(null==i.queue||i.queue===!0)&&(i.queue="fx"),i.old=i.complete,i.complete=function(){le.isFunction(i.old)&&i.old.call(this),i.queue&&le.dequeue(this,i.queue)},i},le.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2}},le.timers=[],le.fx=B.prototype.init,le.fx.tick=function(){var e,n=le.timers,i=0;for(Jt=le.now();i
-1,u={},p={};d?(p=s.position(),o=p.top,r=p.left):(o=parseFloat(l)||0,r=parseFloat(c)||0),le.isFunction(t)&&(t=t.call(e,n,a)),null!=t.top&&(u.top=t.top-a.top+o),null!=t.left&&(u.left=t.left-a.left+r),"using"in t?t.using.call(e,u):s.css(u)}},le.fn.extend({position:function(){if(this[0]){var e,t,n={top:0,left:0},i=this[0];return"fixed"===le.css(i,"position")?t=i.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),le.nodeName(e[0],"html")||(n=e.offset()),n.top+=le.css(e[0],"borderTopWidth",!0),n.left+=le.css(e[0],"borderLeftWidth",!0)),{top:t.top-n.top-le.css(i,"marginTop",!0),left:t.left-n.left-le.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent||Y.documentElement;e&&!le.nodeName(e,"html")&&"static"===le.css(e,"position");)e=e.offsetParent;return e||Y.documentElement})}}),le.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,n){var i=/Y/.test(n);le.fn[e]=function(o){return le.access(this,function(e,o,r){var s=R(e);return r===t?s?n in s?s[n]:s.document.documentElement[o]:e[o]:void(s?s.scrollTo(i?le(s).scrollLeft():r,i?r:le(s).scrollTop()):e[o]=r)},e,o,arguments.length,null)}}),le.each({Height:"height",Width:"width"},function(e,n){le.each({padding:"inner"+e,content:n,"":"outer"+e},function(i,o){le.fn[o]=function(o,r){var s=arguments.length&&(i||"boolean"!=typeof o),a=i||(o===!0||r===!0?"margin":"border");return le.access(this,function(n,i,o){var r;return le.isWindow(n)?n.document.documentElement["client"+e]:9===n.nodeType?(r=n.documentElement,Math.max(n.body["scroll"+e],r["scroll"+e],n.body["offset"+e],r["offset"+e],r["client"+e])):o===t?le.css(n,i,a):le.style(n,i,o,a)},n,s?o:t,s,null)}})}),e.jQuery=e.$=le,"function"==typeof define&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return le})}(window),$(function(){var e="",t=7,n=4,i=0,o=9,r=0,s=0,a=0,l="",c="",d=$("div.plc"),u=$("div.t2-wz"),p=$("div.pro_curmbs"),f=d.size()?d:u,h=f.size()?f:p,g=$("div.menu"),m=g.children("ul").children("li"),v=h.find("a"),y=v.size(),b="cur";g.find("li").removeClass(b);var w=new Object;if(w.getCurrentURL=function(){switch(e){case"product":l=n?n:e;break;case"news":l=t?t:e;break;case"project":l=r?r:e;break;case"agent":l=i?i:e;break;case"help":l=o?o:e;break;case"download":l=s?s:e;break;case"job":l=a?a:e;break;default:l=e}return l},w.firstLiCur=function(){g.find("li:first").addClass(b)},w.selectedCur=function(){m.each(function(){var e=$(this).children("a").attr("href").toLowerCase(),t=e.substring(e.lastIndexOf("/")+1);return e==l||t==c&&"index.html"!=c?($(this).addClass(b),!1):"number"==typeof l?(m.eq(l).addClass(b),!1):void 0})},w.selectedTxtCur=function(){return m.children("a").each(function(){var e=$.trim($(this).text());return e==k&&-1==k.indexOf("棣栭〉")?($(this).parent("li").addClass(b),!1):void 0}),g.children("ul").children("li."+b)},w.hasCur=function(){var e=g.children("ul").children("li."+b).size();return e},"undefined"==typeof e)return w.firstLiCur(),!1;y||(l=w.getCurrentURL(),w.selectedCur());for(var x=y-1;x>=0;x--){l=v.eq(x).attr("href");var k=$.trim(v.eq(x).text());c=l.substring(l.lastIndexOf("/")+1).toLowerCase(),(""==l||void 0==l)&&(l=w.getCurrentURL());var T=w.selectedTxtCur();if(T.size()&&-1==k.indexOf("棣栭〉"))return T.parent("li").addClass(b),!1;if(w.selectedCur(),w.hasCur())return!1}w.hasCur()||(l=e,w.selectedCur(),w.hasCur()||w.firstLiCur())}),function(){var e,t,n,i,o,r,s,a,l,c;t=window.device,e={},window.device=e,i=window.document.documentElement,c=window.navigator.userAgent.toLowerCase(),e.ioses=function(){return e.iphoness()||e.ipods()||e.ipads()},e.iphoness=function(){return!e.windows()&&o("iphoness")},e.ipods=function(){return o("ipods")},e.ipads=function(){return o("ipads")},e.androids=function(){return!e.windows()&&o("androids")},e.androidsphones=function(){return e.androids()&&o("mobiles")},e.androidsTablet=function(){return e.androids()&&!o("mobiles")},e.blackberry=function(){return o("blackberry")||o("bb10")||o("rim")},e.blackberryphones=function(){return e.blackberry()&&!o("tablet")},e.blackberryTablet=function(){return e.blackberry()&&o("tablet")},e.windows=function(){return o("windows")},e.windowsphones=function(){return e.windows()&&o("phones")},e.windowsTablet=function(){return e.windows()&&o("touch")&&!e.windowsphones()},e.fxos=function(){return(o("(mobiles;")||o("(tablet;"))&&o("; rv:");
},e.fxosphones=function(){return e.fxos()&&o("mobiles")},e.fxosTablet=function(){return e.fxos()&&o("tablet")},e.meego=function(){return o("meego")},e.cordova=function(){return window.cordova&&"file:"===locations.protocol},e.nodeWebkit=function(){return"object"==typeof window.process},e.mobiles=function(){return e.androidsphones()||e.iphoness()||e.ipods()||e.windowsphones()||e.blackberryphones()||e.fxosphones()||e.meego()},e.tablet=function(){return e.ipads()||e.androidsTablet()||e.blackberryTablet()||e.windowsTablet()||e.fxosTablet()},e.desktop=function(){return!e.tablet()&&!e.mobiles()},e.television=function(){var e;for(television=["googletv","viera","smarttv","internet.tv","netcast","nettv","appletv","boxee","kylo","roku","dlnadoc","roku","pov_tv","hbbtv","ce-html"],e=0;e1},e.landscape=function(){return window.innerHeight/window.innerWidth<1},e.noConflict=function(){return window.device=t,this},o=function(e){return-1!==c.indexOf(e)},s=function(e){var t;return t=new RegExp(e,"i"),i.className.match(t)},n=function(e){var t=null;s(e)||(t=i.className.replace(/^\s+|\s+$/g,""),i.className=t+" "+e)},l=function(e){s(e)&&(i.className=i.className.replace(" "+e,""))},e.ioses()?e.ipads()?n("ioses ipads tablet"):e.iphoness()?n("ioses iphoness mobiles"):e.ipods()&&n("ioses ipods mobiles"):e.androids()?n(e.androidsTablet()?"androids tablet":"androids mobiles"):e.blackberry()?n(e.blackberryTablet()?"blackberry tablet":"blackberry mobiles"):e.windows()?n(e.windowsTablet()?"windows tablet":e.windowsphones()?"windows mobiles":"desktop"):e.fxos()?n(e.fxosTablet()?"fxos tablet":"fxos mobiles"):e.meego()?n("meego mobiles"):e.nodeWebkit()?n("node-webkit"):e.television()?n("television"):e.desktop()&&n("desktop"),e.cordova()&&n("cordova"),r=function(){e.landscape()?(l("portrait"),n("landscape")):(l("landscape"),n("portrait"))},a=Object.prototype.hasOwnProperty.call(window,"onorientationchange")?"orientationchange":"resize",window.addEventListener?window.addEventListener(a,r,!1):window.attachEvent?window.attachEvent(a,r):window[a]=r,r(),"function"==typeof define&&"object"==typeof define.amd&&define.amd?define(function(){return e}):"undefined"!=typeof module&&module.exports?module.exports=e:window.device=e}.call(window),!function(e){e.fn.slide=function(t){return e.fn.slide.defaults={type:"slide",effect:"fade",autoPlay:!1,delayTime:500,interTime:2500,triggerTime:150,defaultIndex:0,titCell:".hd li",mainCell:".bd",targetCell:null,trigger:"mouseover",scroll:1,vis:1,titOnClassName:"on",autoPage:!1,prevCell:".prev",nextCell:".next",pageStateCell:".pageState",opp:!1,pnLoop:!0,easing:"swing",startFun:null,endFun:null,switchLoad:null,playStateCell:".playState",mouseOverStop:!0,defaultPlay:!0,returnDefault:!1},this.each(function(){var n,i=e.extend({},e.fn.slide.defaults,t),o=e(this),r=i.effect,s=e(i.prevCell,o),a=e(i.nextCell,o),l=e(i.pageStateCell,o),c=e(i.playStateCell,o),d=e(i.titCell,o),u=d.size(),p=e(i.mainCell,o),f=p.children().size(),h=i.switchLoad,g=e(i.targetCell,o),m=parseInt(i.defaultIndex),v=parseInt(i.delayTime),y=parseInt(i.interTime),b=(parseInt(i.triggerTime),parseInt(i.scroll)),w=parseInt(i.vis),x="false"==i.autoPlay||0==i.autoPlay?!1:!0,k="false"==i.opp||0==i.opp?!1:!0,T="false"==i.autoPage||0==i.autoPage?!1:!0,C="false"==i.pnLoop||0==i.pnLoop?!1:!0,S="false"==i.mouseOverStop||0==i.mouseOverStop?!1:!0,$="false"==i.defaultPlay||0==i.defaultPlay?!1:!0,E="false"==i.returnDefault||0==i.returnDefault?!1:!0,N=0,A=0,j=0,M=0,O=i.easing,L=null,P=null,H=null,D=i.titOnClassName,q=d.index(o.find("."+D)),I=m=-1==q?m:q,z=m,F=m,W=f>=w?f%b!=0?f%b:b:0,B="leftMarquee"==r||"topMarquee"==r?!0:!1,_=function(){e.isFunction(i.startFun)&&i.startFun(m,u,o,e(i.titCell,o),p,g,s,a)},R=function(){e.isFunction(i.endFun)&&i.endFun(m,u,o,e(i.titCell,o),p,g,s,a)},X=function(){d.removeClass(D),$&&d.eq(z).addClass(D)};if("menu"==i.type)return $&&d.removeClass(D).eq(m).addClass(D),d.hover(function(){n=e(this).find(i.targetCell);var t=d.index(e(this));P=setTimeout(function(){switch(m=t,d.removeClass(D).eq(m).addClass(D),_(),r){case"fade":n.stop(!0,!0).animate({opacity:"show"},v,O,R);break;case"slideDown":n.stop(!0,!0).animate({height:"show"},v,O,R)}},i.triggerTime)},function(){switch(clearTimeout(P),r){case"fade":n.animate({opacity:"hide"},v,O);break;case"slideDown":n.animate({height:"hide"},v,O)}}),void(E&&o.hover(function(){clearTimeout(H)},function(){H=setTimeout(X,v)}));if(0==u&&(u=f),B&&(u=2),T){if(f>=w)if("leftLoop"==r||"topLoop"==r)u=f%b!=0?(f/b^0)+1:f/b;else{var U=f-w;u=1+parseInt(U%b!=0?U/b+1:U/b),0>=u&&(u=1)}else u=1;d.html("");var Q="";if(1==i.autoPage||"true"==i.autoPage)for(var Y=0;u>Y;Y++)Q+=""+(Y+1)+"";else for(var Y=0;u>Y;Y++)Q+=i.autoPage.replace("$",Y+1);d.html(Q);var d=d.children()}if(f>=w){p.children().each(function(){e(this).width()>j&&(j=e(this).width(),A=e(this).outerWidth(!0)),e(this).height()>M&&(M=e(this).height(),N=e(this).outerHeight(!0))});var Z=p.children(),V=function(){for(var e=0;w>e;e++)Z.eq(e).clone().addClass("clone").appendTo(p);for(var e=0;W>e;e++)Z.eq(f-e-1).clone().addClass("clone").prependTo(p)};switch(r){case"fold":p.css({position:"relative",width:A,height:N}).children().css({position:"absolute",width:j,left:0,top:0,display:"none"});break;case"top":p.wrap('').css({top:-(m*b)*N,position:"relative",padding:"0",margin:"0"}).children().css({height:M});break;case"left":p.wrap('').css({width:f*A,left:-(m*b)*A,position:"relative",overflow:"hidden",padding:"0",margin:"0"}).children().css({"float":"left",width:j});break;case"leftLoop":case"leftMarquee":V(),p.wrap('').css({width:(f+w+W)*A,position:"relative",overflow:"hidden",padding:"0",margin:"0",left:-(W+m*b)*A}).children().css({"float":"left",width:j});break;case"topLoop":case"topMarquee":V(),p.wrap('').css({height:(f+w+W)*N,position:"relative",padding:"0",margin:"0",top:-(W+m*b)*N}).children().css({height:M})}}var G=function(e){var t=e*b;return e==u?t=f:-1==e&&f%b!=0&&(t=-f%b),t},J=function(t){var n=function(n){for(var i=n;w+n>i;i++)t.eq(i).find("img["+h+"]").each(function(){var t=e(this);if(t.attr("src",t.attr(h)).removeAttr(h),p.find(".clone")[0])for(var n=p.children(),i=0;i=1?m=1:0>=m&&(m=0):(F=m,m>=u?m=0:0>m&&(m=u-1)),_(),null!=h&&J(p.children()),g[0]&&(n=g.eq(m),null!=h&&J(g),"slideDown"==r?(g.not(n).stop(!0,!0).slideUp(v),n.slideDown(v,O,function(){p[0]||R()})):(g.not(n).stop(!0,!0).hide(),n.animate({opacity:"show"},v,function(){p[0]||R()}))),f>=w)switch(r){case"fade":p.children().stop(!0,!0).eq(m).animate({opacity:"show"},v,O,function(){R()}).siblings().hide();break;case"fold":p.children().stop(!0,!0).eq(m).animate({opacity:"show"},v,O,function(){R()}).siblings().animate({opacity:"hide"},v,O);break;case"top":p.stop(!0,!1).animate({top:-m*b*N},v,O,function(){R()});break;case"left":p.stop(!0,!1).animate({left:-m*b*A},v,O,function(){R()});break;case"leftLoop":var t=F;p.stop(!0,!0).animate({left:-(G(F)+W)*A},v,O,function(){-1>=t?p.css("left",-(W+(u-1)*b)*A):t>=u&&p.css("left",-W*A),R()});break;case"topLoop":var t=F;p.stop(!0,!0).animate({top:-(G(F)+W)*N},v,O,function(){-1>=t?p.css("top",-(W+(u-1)*b)*N):t>=u&&p.css("top",-W*N),R()});break;case"leftMarquee":var i=p.css("left").replace("px","");0==m?p.animate({left:++i},0,function(){p.css("left").replace("px","")>=0&&p.css("left",-f*A)}):p.animate({left:--i},0,function(){p.css("left").replace("px","")<=-(f+W)*A&&p.css("left",-W*A)});break;case"topMarquee":var o=p.css("top").replace("px","");0==m?p.animate({top:++o},0,function(){p.css("top").replace("px","")>=0&&p.css("top",-f*N)}):p.animate({top:--o},0,function(){p.css("top").replace("px","")<=-(f+W)*N&&p.css("top",-W*N)})}d.removeClass(D).eq(m).addClass(D),I=m,C||(a.removeClass("nextStop"),s.removeClass("prevStop"),0==m&&s.addClass("prevStop"),m==u-1&&a.addClass("nextStop")),l.html(""+(m+1)+"/"+u)}};$&&K(!0),E&&o.hover(function(){clearTimeout(H)},function(){H=setTimeout(function(){m=z,$?K():"slideDown"==r?n.slideUp(v,X):n.animate({opacity:"hide"},v,X),I=m},300)});var ee=function(e){L=setInterval(function(){k?m--:m++,K()},e?e:y)},te=function(e){L=setInterval(K,e?e:y)},ne=function(){S||(clearInterval(L),ee())},ie=function(){(C||m!=u-1)&&(m++,K(),B||ne())},oe=function(){(C||0!=m)&&(m--,K(),B||ne())},re=function(){clearInterval(L),B?te():ee(),c.removeClass("pauseState")},se=function(){clearInterval(L),c.addClass("pauseState")};if(x?B?(k?m--:m++,te(),S&&p.hover(se,re)):(ee(),S&&o.hover(se,re)):(B&&(k?m--:m++),c.addClass("pauseState")),c.click(function(){c.hasClass("pauseState")?re():se()}),"mouseover"==i.trigger?d.hover(function(){var e=d.index(this);P=setTimeout(function(){m=e,K(),ne()},i.triggerTime)},function(){clearTimeout(P)}):d.click(function(){m=d.index(this),K(),ne()}),B){if(a.mousedown(ie),s.mousedown(oe),C){var ae,le=function(){ae=setTimeout(function(){clearInterval(L),te(y/10^0)},150)},ce=function(){clearTimeout(ae),clearInterval(L),te()};a.mousedown(le),a.mouseup(ce),s.mousedown(le),s.mouseup(ce)}"mouseover"==i.trigger&&(a.hover(ie,function(){}),s.hover(oe,function(){}))}else a.click(ie),s.click(oe)})}}(jQuery),jQuery.easing.jswing=jQuery.easing.swing,jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(e,t,n,i,o){return jQuery.easing[jQuery.easing.def](e,t,n,i,o)},easeInQuad:function(e,t,n,i,o){return i*(t/=o)*t+n},easeOutQuad:function(e,t,n,i,o){return-i*(t/=o)*(t-2)+n},easeInOutQuad:function(e,t,n,i,o){return(t/=o/2)<1?i/2*t*t+n:-i/2*(--t*(t-2)-1)+n},easeInCubic:function(e,t,n,i,o){return i*(t/=o)*t*t+n},easeOutCubic:function(e,t,n,i,o){return i*((t=t/o-1)*t*t+1)+n},easeInOutCubic:function(e,t,n,i,o){return(t/=o/2)<1?i/2*t*t*t+n:i/2*((t-=2)*t*t+2)+n},easeInQuart:function(e,t,n,i,o){return i*(t/=o)*t*t*t+n},easeOutQuart:function(e,t,n,i,o){return-i*((t=t/o-1)*t*t*t-1)+n},easeInOutQuart:function(e,t,n,i,o){return(t/=o/2)<1?i/2*t*t*t*t+n:-i/2*((t-=2)*t*t*t-2)+n},easeInQuint:function(e,t,n,i,o){return i*(t/=o)*t*t*t*t+n},easeOutQuint:function(e,t,n,i,o){return i*((t=t/o-1)*t*t*t*t+1)+n},easeInOutQuint:function(e,t,n,i,o){return(t/=o/2)<1?i/2*t*t*t*t*t+n:i/2*((t-=2)*t*t*t*t+2)+n},easeInSine:function(e,t,n,i,o){return-i*Math.cos(t/o*(Math.PI/2))+i+n},easeOutSine:function(e,t,n,i,o){return i*Math.sin(t/o*(Math.PI/2))+n},easeInOutSine:function(e,t,n,i,o){return-i/2*(Math.cos(Math.PI*t/o)-1)+n},easeInExpo:function(e,t,n,i,o){return 0==t?n:i*Math.pow(2,10*(t/o-1))+n},easeOutExpo:function(e,t,n,i,o){return t==o?n+i:i*(-Math.pow(2,-10*t/o)+1)+n},easeInOutExpo:function(e,t,n,i,o){return 0==t?n:t==o?n+i:(t/=o/2)<1?i/2*Math.pow(2,10*(t-1))+n:i/2*(-Math.pow(2,-10*--t)+2)+n},easeInCirc:function(e,t,n,i,o){return-i*(Math.sqrt(1-(t/=o)*t)-1)+n},easeOutCirc:function(e,t,n,i,o){return i*Math.sqrt(1-(t=t/o-1)*t)+n},easeInOutCirc:function(e,t,n,i,o){return(t/=o/2)<1?-i/2*(Math.sqrt(1-t*t)-1)+n:i/2*(Math.sqrt(1-(t-=2)*t)+1)+n},easeInElastic:function(e,t,n,i,o){var r=1.70158,s=0,a=i;if(0==t)return n;if(1==(t/=o))return n+i;if(s||(s=.3*o),at?-.5*(a*Math.pow(2,10*(t-=1))*Math.sin((t*o-r)*(2*Math.PI)/s))+n:a*Math.pow(2,-10*(t-=1))*Math.sin((t*o-r)*(2*Math.PI)/s)*.5+i+n},easeInBack:function(e,t,n,i,o,r){return void 0==r&&(r=1.70158),i*(t/=o)*t*((r+1)*t-r)+n},easeOutBack:function(e,t,n,i,o,r){return void 0==r&&(r=1.70158),i*((t=t/o-1)*t*((r+1)*t+r)+1)+n},easeInOutBack:function(e,t,n,i,o,r){return void 0==r&&(r=1.70158),(t/=o/2)<1?i/2*(t*t*(((r*=1.525)+1)*t-r))+n:i/2*((t-=2)*t*(((r*=1.525)+1)*t+r)+2)+n},easeInBounce:function(e,t,n,i,o){return i-jQuery.easing.easeOutBounce(e,o-t,0,i,o)+n},easeOutBounce:function(e,t,n,i,o){return(t/=o)<1/2.75?i*(7.5625*t*t)+n:2/2.75>t?i*(7.5625*(t-=1.5/2.75)*t+.75)+n:2.5/2.75>t?i*(7.5625*(t-=2.25/2.75)*t+.9375)+n:i*(7.5625*(t-=2.625/2.75)*t+.984375)+n},easeInOutBounce:function(e,t,n,i,o){return o/2>t?.5*jQuery.easing.easeInBounce(e,2*t,0,i,o)+n:.5*jQuery.easing.easeOutBounce(e,2*t-o,0,i,o)+.5*i+n}}),!$(function(){!function(e){function t(t,n){var i=n.maxWidth,o=n.ellipsisChar;i||(i=t.width()),i*=n.maxLine;var r=e.trim(t.text()).replace(" ","銆€"),s=t.clone(!1).css({visibility:"hidden",whiteSpace:"nowrap",width:"auto","box-sizing":"content-box",diplay:"inline-block",position:"absolute"}).appendTo(t.parent()),a=s.width();if(a>i){var l=Math.floor(r.length*i/a),c=r.substring(0,l)+o;if(a=s.text(c).width(),a>i)for(;a>i&&l>1;)l--,c=r.substring(0,l)+o,a=s.text(c).width();else if(i>a){for(;i>a&&li&&(c=r.substring(0,l-1)+o)}t.text(c.replace("銆€"," "))}s.remove()}var n={maxWidth:0,maxLine:1,ellipsisChar:"..."};e.fn.ellipsis=function(i){return this.each(function(){var o=e(this),r=e.extend({},n,i);t(o,r)})},e.fn.ellipsis.options=n}(jQuery),function(e){var t=e.fn.ellipsis;t.unobtrusive={parseElement:function(t){var n=e(t),i=n.data("ellipsis-max-width");i=i?parseInt(i):0;var o=n.data("ellipsis-max-line");o=o?parseInt(o):1,n.ellipsis({maxWidth:i,maxLine:o})},parse:function(n){e(n).find("[data-ellipsis=true]").each(function(){t.unobtrusive.parseElement(this)})}}}(jQuery)}),function(e){var t,n,i,o,r,s,a,l,c,d,u,p,f=0,h={},g=[],m=0,v={},y=[],b=null,w=new Image,x=/\.(jpg|gif|png|bmp|jpeg)(.*)?$/i,k=/[^\.]\.(swf)\s*$/i,T=1,C=!1,S=e.extend(e("")[0],{prop:0}),$=0,E=!e.support.opacity&&!window.XMLHttpRequest,N=function(){n.hide(),w.onerror=w.onload=null,b&&b.abort(),t.empty()},A=function(){e.fancybox('The requested content cannot be loaded.
Please try again later.
',{scrolling:"no",padding:20,transitionIn:"none",transitionOut:"none"})},j=function(){return[e(window).width(),e(window).height(),e(document).scrollLeft(),e(document).scrollTop()]},M=function(){var e=j(),t={},n=v.margin,i=v.autoScale,o=2*(20+n),r=2*(20+n),s=2*v.padding;return v.width.toString().indexOf("%")>-1?(t.width=e[0]*parseFloat(v.width)/100-40,i=!1):t.width=v.width+s,v.height.toString().indexOf("%")>-1?(t.height=e[1]*parseFloat(v.height)/100-40,i=!1):t.height=v.height+s,i&&(t.width>e[0]-o||t.height>e[1]-r)&&("image"==h.type||"swf"==h.type?(o+=s,r+=s,i=Math.min(Math.min(e[0]-o,v.width)/v.width,Math.min(e[1]-r,v.height)/v.height),t.width=Math.round(i*(t.width-s))+s,t.height=Math.round(i*(t.height-s))+s):(t.width=Math.min(t.width,e[0]-o),t.height=Math.min(t.height,e[1]-r))),t.top=e[3]+.5*(e[1]-(t.height+40)),t.left=e[2]+.5*(e[0]-(t.width+40)),v.autoScale===!1&&(t.top=Math.max(e[3]+n,t.top),t.left=Math.max(e[2]+n,t.left)),t},O=function(e){if(e&&e.length)switch(v.titlePosition){case"inside":return e;case"over":return''+e+"";default:return''+e+''}return!1},L=function(){var t=v.title,n=p.width-2*v.padding,i="fancybox-title-"+v.titlePosition;if(e("#fancybox-title").remove(),$=0,v.titleShow!==!1&&(t=e.isFunction(v.titleFormat)?v.titleFormat(t,y,m,v):O(t),t&&""!==t)){switch(e('').css({width:n,paddingLeft:v.padding,paddingRight:v.padding}).html(t).appendTo("body"),v.titlePosition){case"inside":$=e("#fancybox-title").outerHeight(!0)-v.padding,p.height+=$;break;case"over":e("#fancybox-title").css("bottom",v.padding);break;default:e("#fancybox-title").css("bottom",-1*e("#fancybox-title").outerHeight(!0))}e("#fancybox-title").appendTo(r).hide()}},P=function(){e(document).unbind("keydown.fb").bind("keydown.fb",function(t){27==t.keyCode&&v.enableEscapeButton?(t.preventDefault(),e.fancybox.close()):37==t.keyCode?(t.preventDefault(),e.fancybox.prev()):39==t.keyCode&&(t.preventDefault(),e.fancybox.next())}),e.fn.mousewheel&&(o.unbind("mousewheel.fb"),y.length>1&&o.bind("mousewheel.fb",function(t,n){t.preventDefault(),C||0===n||(n>0?e.fancybox.prev():e.fancybox.next())})),v.showNavArrows&&((v.cyclic&&y.length>1||0!==m)&&l.show(),(v.cyclic&&y.length>1||m!=y.length-1)&&c.show())},H=function(){var e,t;y.length-1>m&&(e=y[m+1].href,"undefined"!=typeof e&&e.match(x)&&(t=new Image,t.src=e)),m>0&&(e=y[m-1].href,"undefined"!=typeof e&&e.match(x)&&(t=new Image,t.src=e))},D=function(){s.css("overflow","auto"==v.scrolling?"image"==v.type||"iframe"==v.type||"swf"==v.type?"hidden":"auto":"yes"==v.scrolling?"auto":"visible"),e.support.opacity||(s.get(0).style.removeAttribute("filter"),o.get(0).style.removeAttribute("filter")),e("#fancybox-title").show(),v.hideOnContentClick&&s.one("click",e.fancybox.close),v.hideOnOverlayClick&&i.one("click",e.fancybox.close),v.showCloseButton&&a.show(),P(),e(window).bind("resize.fb",e.fancybox.center),v.centerOnScroll?e(window).bind("scroll.fb",e.fancybox.center):e(window).unbind("scroll.fb"),e.isFunction(v.onComplete)&&v.onComplete(y,m,v),C=!1,H()},q=function(e){var t=Math.round(u.width+(p.width-u.width)*e),n=Math.round(u.height+(p.height-u.height)*e),i=Math.round(u.top+(p.top-u.top)*e),r=Math.round(u.left+(p.left-u.left)*e);o.css({width:t+"px",height:n+"px",top:i+"px",left:r+"px"}),t=Math.max(t-2*v.padding,0),n=Math.max(n-(2*v.padding+$*e),0),s.css({width:t+"px",height:n+"px"}),"undefined"!=typeof p.opacity&&o.css("opacity",.5>e?.5:e)},I=function(e){var t=e.offset();return t.top+=parseFloat(e.css("paddingTop"))||0,t.left+=parseFloat(e.css("paddingLeft"))||0,t.top+=parseFloat(e.css("border-top-width"))||0,t.left+=parseFloat(e.css("border-left-width"))||0,t.width=e.width(),t.height=e.height(),t},z=function(){var t=h.orig?e(h.orig):!1,n={};return t&&t.length?(t=I(t),n={width:t.width+2*v.padding,height:t.height+2*v.padding,top:t.top-v.padding-20,left:t.left-v.padding-20}):(t=j(),n={width:1,height:1,top:t[3]+.5*t[1],left:t[2]+.5*t[0]}),n},F=function(){if(n.hide(),o.is(":visible")&&e.isFunction(v.onCleanup)&&v.onCleanup(y,m,v)===!1)return e.event.trigger("fancybox-cancel"),void(C=!1);if(y=g,m=f,v=h,s.get(0).scrollTop=0,s.get(0).scrollLeft=0,v.overlayShow&&(E&&e("select:not(#fancybox-tmp select)").filter(function(){return"hidden"!==this.style.visibility}).css({visibility:"hidden"}).one("fancybox-cleanup",function(){this.style.visibility="inherit"}),i.css({"background-color":v.overlayColor,opacity:v.overlayOpacity}).unbind().show()),p=M(),L(),o.is(":visible")){e(a.add(l).add(c)).hide();var r,d=o.position();u={top:d.top,left:d.left,width:o.width(),height:o.height()},r=u.width==p.width&&u.height==p.height,s.fadeOut(v.changeFade,function(){var n=function(){s.html(t.contents()).fadeIn(v.changeFade,D)};e.event.trigger("fancybox-change"),s.empty().css("overflow","hidden"),r?(s.css({top:v.padding,left:v.padding,width:Math.max(p.width-2*v.padding,1),height:Math.max(p.height-2*v.padding-$,1)}),n()):(s.css({top:v.padding,left:v.padding,width:Math.max(u.width-2*v.padding,1),height:Math.max(u.height-2*v.padding,1)}),S.prop=0,e(S).animate({prop:1},{duration:v.changeSpeed,easing:v.easingChange,step:q,complete:n}))})}else o.css("opacity",1),"elastic"==v.transitionIn?(u=z(),s.css({top:v.padding,left:v.padding,width:Math.max(u.width-2*v.padding,1),height:Math.max(u.height-2*v.padding,1)}).html(t.contents()),o.css(u).show(),v.opacity&&(p.opacity=0),S.prop=0,e(S).animate({prop:1},{duration:v.speedIn,easing:v.easingIn,step:q,complete:D})):(s.css({top:v.padding,left:v.padding,width:Math.max(p.width-2*v.padding,1),height:Math.max(p.height-2*v.padding-$,1)}).html(t.contents()),o.css(p).fadeIn("none"==v.transitionIn?0:v.speedIn,D))},W=function(){t.width(h.width),t.height(h.height),"auto"==h.width&&(h.width=t.width()),"auto"==h.height&&(h.height=t.height()),F()},B=function(){C=!0,h.width=w.width,h.height=w.height,e("").attr({id:"fancybox-img",src:w.src,alt:h.title}).appendTo(t),F()},_=function(){N();var n,i,o,r,a,l=g[f];if(h=e.extend({},e.fn.fancybox.defaults,"undefined"==typeof e(l).data("fancybox")?h:e(l).data("fancybox")),o=l.title||e(l).title||h.title||"",l.nodeName&&!h.orig&&(h.orig=e(l).children("img:first").length?e(l).children("img:first"):e(l)),""===o&&h.orig&&(o=h.orig.attr("alt")),n=l.nodeName&&/^(?:javascript|#)/i.test(l.href)?h.href||null:h.href||l.href||null,h.type?(i=h.type,n||(n=h.content)):h.content?i="html":n?n.match(x)?i="image":n.match(k)?i="swf":e(l).hasClass("iframe")?i="iframe":n.match(/#/)?(l=n.substr(n.indexOf("#")),i=e(l).length>0?"inline":"ajax"):i="ajax":i="inline",h.type=i,h.href=n,h.title=o,h.autoDimensions&&"iframe"!==h.type&&"swf"!==h.type&&(h.width="auto",h.height="auto"),h.modal&&(h.overlayShow=!0,h.hideOnOverlayClick=!1,h.hideOnContentClick=!1,h.enableEscapeButton=!1,h.showCloseButton=!1),e.isFunction(h.onStart)&&h.onStart(g,f,h)===!1)return void(C=!1);switch(t.css("padding",20+h.padding+h.margin),e(".fancybox-inline-tmp").unbind("fancybox-cancel").bind("fancybox-change",function(){e(this).replaceWith(s.children())}),i){case"html":t.html(h.content),W();break;case"inline":e('').hide().insertBefore(e(l)).bind("fancybox-cleanup",function(){e(this).replaceWith(s.children())}).bind("fancybox-cancel",function(){e(this).replaceWith(t.children())}),e(l).appendTo(t),W();break;case"image":C=!1,e.fancybox.showActivity(),w=new Image,w.onerror=function(){A()},w.onload=function(){w.onerror=null,w.onload=null,B()},w.src=n;break;case"swf":r='",t.html(r),W();break;case"ajax":l=n.split("#",2),i=h.ajax.data||{},l.length>1&&(n=l[0],"string"==typeof i?i+="&selector="+l[1]:i.selector=l[1]),C=!1,e.fancybox.showActivity(),b=e.ajax(e.extend(h.ajax,{url:n,data:i,error:A,success:function(e){200==b.status&&(t.html(e),W())}}));break;case"iframe":e('').appendTo(t),F()}},R=function(){n.is(":visible")?(e("div",n).css("top",-40*T+"px"),T=(T+1)%12):clearInterval(d)},X=function(){e("#fancybox-wrap").length||(e("body").append(t=e(''),n=e(''),i=e(''),o=e('')),e.support.opacity||(o.addClass("fancybox-ie"),n.addClass("fancybox-ie")),r=e('').append('').appendTo(o),r.append(s=e(''),a=e(''),l=e(''),c=e('')),a.click(e.fancybox.close),n.click(e.fancybox.cancel),l.click(function(t){t.preventDefault(),e.fancybox.prev()}),c.click(function(t){t.preventDefault(),e.fancybox.next()}),E&&(i.get(0).style.setExpression("height","document.body.scrollHeight > document.body.offsetHeight ? document.body.scrollHeight : document.body.offsetHeight + 'px'"),n.get(0).style.setExpression("top","(-20 + (document.documentElement.clientHeight ? document.documentElement.clientHeight/2 : document.body.clientHeight/2 ) + ( ignoreMe = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop )) + 'px'"),r.prepend('')))};e.fn.fancybox=function(t){return e(this).data("fancybox",e.extend({},t,e.metadata?e(this).metadata():{})).unbind("click.fb").bind("click.fb",function(t){return t.preventDefault(),C?void 0:(C=!0,e(this).blur(),g=[],f=0,t=e(this).attr("rel")||"",t&&""!=t&&"nofollow"!==t?(g=e("a[rel="+t+"], area[rel="+t+"]"),f=g.index(this)):g.push(this),_(),!1)}),this},e.fancybox=function(t,n){if(!C){if(C=!0,n="undefined"!=typeof n?n:{},g=[],f=n.index||0,e.isArray(t)){for(var i=0,o=t.length;o>i;i++)"object"==typeof t[i]?e(t[i]).data("fancybox",e.extend({},n,t[i])):t[i]=e({}).data("fancybox",e.extend({content:t[i]},n));g=jQuery.merge(g,t)}else"object"==typeof t?e(t).data("fancybox",e.extend({},n,t)):t=e({}).data("fancybox",e.extend({content:t},n)),g.push(t);(f>g.length||0>f)&&(f=0),_()}},e.fancybox.showActivity=function(){clearInterval(d),n.show(),d=setInterval(R,66)},e.fancybox.hideActivity=function(){n.hide()},e.fancybox.next=function(){return e.fancybox.pos(m+1)},e.fancybox.prev=function(){return e.fancybox.pos(m-1)},e.fancybox.pos=function(e){C||(e=parseInt(e,10),e>-1&&y.length>e&&(f=e,_()),v.cyclic&&y.length>1&&0>e&&(f=y.length-1,_()),v.cyclic&&y.length>1&&e>=y.length&&(f=0,_()))},e.fancybox.cancel=function(){C||(C=!0,e.event.trigger("fancybox-cancel"),N(),h&&e.isFunction(h.onCancel)&&h.onCancel(g,f,h),C=!1)},e.fancybox.close=function(){function t(){i.fadeOut("fast"),o.hide(),e.event.trigger("fancybox-cleanup"),s.empty(),e.isFunction(v.onClosed)&&v.onClosed(y,m,v),y=h=[],m=f=0,v=h={},C=!1}if(!C&&!o.is(":hidden")){if(C=!0,v&&e.isFunction(v.onCleanup)&&v.onCleanup(y,m,v)===!1)return void(C=!1);if(N(),e(a.add(l).add(c)).hide(),e("#fancybox-title").remove(),o.add(s).add(i).unbind(),e(window).unbind("resize.fb scroll.fb"),e(document).unbind("keydown.fb"),s.css("overflow","hidden"),"elastic"==v.transitionOut){u=z();var n=o.position();p={top:n.top,left:n.left,width:o.width(),height:o.height()},v.opacity&&(p.opacity=1),S.prop=1,e(S).animate({prop:0},{duration:v.speedOut,easing:v.easingOut,step:q,complete:t})}else o.fadeOut("none"==v.transitionOut?0:v.speedOut,t)}},e.fancybox.resize=function(){var t,n;C||o.is(":hidden")||(C=!0,t=s.wrapInner("").children(),n=t.height(),o.css({height:n+2*v.padding+$}),s.css({height:n}),t.replaceWith(t.children()),e.fancybox.center())},e.fancybox.center=function(){C=!0;var e=j(),t=v.margin,n={};n.top=e[3]+.5*(e[1]-(o.height()-$+40)),n.left=e[2]+.5*(e[0]-(o.width()+40)),n.top=Math.max(e[3]+t,n.top),n.left=Math.max(e[2]+t,n.left),o.css(n),C=!1},e.fn.fancybox.defaults={padding:10,margin:20,opacity:!1,modal:!1,cyclic:!1,scrolling:"auto",width:560,height:340,autoScale:!0,autoDimensions:!0,centerOnScroll:!1,ajax:{},swf:{wmode:"transparent"},hideOnOverlayClick:!0,hideOnContentClick:!1,overlayShow:!0,overlayOpacity:.3,overlayColor:"#666",titleShow:!0,titlePosition:"outside",titleFormat:null,transitionIn:"fade",transitionOut:"fade",speedIn:300,speedOut:300,changeSpeed:300,changeFade:"fast",easingIn:"swing",easingOut:"swing",showCloseButton:!0,showNavArrows:!0,enableEscapeButton:!0,onStart:null,onCancel:null,onComplete:null,onCleanup:null,onClosed:null},e(document).ready(function(){X()})}(jQuery),function(e){e.fn.jqueryzoom=function(t){var n={xzoom:200,yzoom:200,offset:10,position:"right",lens:1,preload:1};t&&e.extend(n,t);var i="";e(this).hover(function(){var t=this.offsetLeft,o=(this.offsetRight,e(this).get(0).offsetTop),r=e(this).children("img").get(0).offsetWidth,s=e(this).children("img").get(0).offsetHeight;i=e(this).children("img").attr("alt");var a=e(this).children("img").attr("jqimg");e(this).children("img").attr("alt",""),0==e("div.zoomdiv").get().length&&(e(this).after(""),e(this).append("
")),"right"==n.position?t+r+n.offset+n.xzoom>screen.width?leftpos=t-n.offset-n.xzoom:leftpos=t+r+n.offset:(leftpos=t-n.xzoom-n.offset,leftpos<0&&(leftpos=t+r+n.offset)),e("div.zoomdiv").css({top:o-1,left:leftpos+9}),e("div.zoomdiv").show(),n.lens||e(this).css("cursor","crosshair"),e(document.body).mousemove(function(i){mouse=new MouseEvent(i);var a=e(".bigimg").get(0).offsetWidth,l=e(".bigimg").get(0).offsetHeight,c="x",d="y";if(isNaN(d)|isNaN(c)){var d=a/r,c=l/s;e("div.jqZoomPup").width(n.xzoom/d),e("div.jqZoomPup").height(n.yzoom/c),n.lens&&e("div.jqZoomPup").css("visibility","visible")}xpos=mouse.x-e("div.jqZoomPup").width()/2-t,ypos=mouse.y-e("div.jqZoomPup").height()/2-o,n.lens&&(xpos=mouse.x-e("div.jqZoomPup").width()/2r+t?r-e("div.jqZoomPup").width()-2:xpos,ypos=mouse.y-e("div.jqZoomPup").height()/2s+o?s-e("div.jqZoomPup").height()-2:ypos),n.lens&&e("div.jqZoomPup").css({top:ypos,left:xpos}),scrolly=ypos,e("div.zoomdiv").get(0).scrollTop=scrolly*c,scrollx=xpos,e("div.zoomdiv").get(0).scrollLeft=scrollx*d})},function(){e(this).children("img").attr("alt",i),e(document.body).unbind("mousemove"),n.lens&&e("div.jqZoomPup").remove(),e("div.zoomdiv").remove()}),count=0,n.preload&&(e("body").append("sdsdssdsd
"),e(this).each(function(){var t=e(this).children("img").attr("jqimg"),n=jQuery("div.jqPreload"+count).html();jQuery("div.jqPreload"+count).html(n+'')}))}}(jQuery),function(e){"use strict";e.fn.pin=function(t){var n=0,i=[],o=!1,r=e(window);t=t||{};var s=function(){for(var n=0,s=i.length;s>n;n++){var a=i[n];if(t.minWidth&&r.width()<=t.minWidth)a.parent().is(".pin-wrapper")&&a.unwrap(),a.css({width:"",left:"",top:"",position:""}),t.activeClass&&a.removeClass(t.activeClass),o=!0;else{o=!1;var l=t.containerSelector?a.closest(t.containerSelector):e(document.body),c=a.offset(),d=l.offset(),u=a.offsetParent().offset();a.parent().is(".pin-wrapper")||a.wrap("");var p=e.extend({top:0,bottom:0},t.padding||{});a.data("pin",{pad:p,from:(t.containerSelector?d.top:c.top)-p.top,to:d.top+l.height()-a.outerHeight()-p.bottom,end:d.top+l.height(),parentTop:u.top}),a.css({width:a.outerWidth()}),a.parent().css("height",a.outerHeight())}}},a=function(){if(!o){n=r.scrollTop();for(var s=[],a=0,l=i.length;l>a;a++){var c=e(i[a]),d=c.data("pin");if(d){s.push(c);var u=d.from-d.pad.bottom,p=d.to-d.pad.top;u+c.outerHeight()>d.end?c.css("position",""):n>u&&p>n?(!("fixed"==c.css("position"))&&c.css({left:c.offset().left,top:d.pad.top}).css("position","fixed"),t.activeClass&&c.addClass(t.activeClass)):n>=p?(c.css({left:"",top:p-d.parentTop+d.pad.top}).css("position","absolute"),t.activeClass&&c.addClass(t.activeClass)):(c.css({position:"",top:"",left:""}),t.activeClass&&c.removeClass(t.activeClass))}}i=s}},l=function(){s(),a()};return this.each(function(){
var t=e(this),n=e(this).data("pin")||{};n&&n.update||(i.push(t),e("img",this).one("load",s),n.update=l,e(this).data("pin",n))}),r.scroll(a),r.resize(function(){s()}),s(),r.load(l),this}}(jQuery),!function(){"use strict";function e(i){var o="laypagecss";e.dir="dir"in e?e.dir:r.getpath+"/skin/laypage.css",new r(i),e.dir&&!t[n](o)}e.v="1.3";var t=document,n="getElementById",i="getElementsByTagName",o=0,r=function(e){var t=this,n=t.config=e||{};n.item=o++,t.render(!0)};r.on=function(e,t,n){return e.attachEvent?e.attachEvent("on"+t,function(){n.call(e,window.even)}):e.addEventListener(t,n,!1),r},r.getpath=function(){var e=document.scripts,t=e[e.length-1].src;return t.substring(0,t.lastIndexOf("/")+1)}(),r.prototype.type=function(){var e=this.config;return"object"==typeof e.cont?void 0===e.cont.length?2:3:void 0},r.prototype.view=function(){var t=this,n=t.config,i=[],o={};if(n.pages=0|n.pages,n.curr=0|n.curr||1,n.groups="groups"in n?0|n.groups:5,n.first="first"in n?n.first:"首页",n.last="last"in n?n.last:"尾页",n.prev="prev"in n?n.prev:"上一页",n.next="next"in n?n.next:"下一页",n.pages<=1)return"";for(n.groups>n.pages&&(n.groups=n.pages),o.index=Math.ceil((n.curr+(n.groups>1&&n.groups!==n.pages?1:0))/(0===n.groups?1:n.groups)),n.curr>1&&n.prev&&i.push('
'+n.prev+""),o.index>1&&n.first&&0!==n.groups&&i.push('
'+n.first+"…"),o.poor=Math.floor((n.groups-1)/2),o.start=o.index>1?n.curr-o.poor:1,o.end=o.index>1?function(){var e=n.curr+(n.groups-o.poor-1);return e>n.pages?n.pages:e}():n.groups,o.end-o.start
"+o.start+""):i.push(''+o.start+"");return n.pages>n.groups&&o.end…'+n.last+""),o.flow=!n.prev&&0===n.groups,(n.curr!==n.pages&&n.next||o.flow)&&i.push(function(){return o.flow&&n.curr===n.pages?''+n.next+"":''+n.next+""}()),''+i.join("")+function(){return n.skip?'':""}()+"
"},r.prototype.jump=function(e){if(e){for(var t=this,n=t.config,o=e.children,s=e[i]("button")[0],a=e[i]("input")[0],l=0,c=o.length;c>l;l++)"a"===o[l].nodeName.toLowerCase()&&r.on(o[l],"click",function(){var e=0|this.getAttribute("data-page");n.curr=e,t.render()});s&&r.on(s,"click",function(){var e=0|a.value.replace(/\s|\D/g,"");e&&e<=n.pages&&(n.curr=e,t.render())})}},r.prototype.render=function(e){var i=this,o=i.config,r=i.type(),s=i.view();2===r?o.cont.innerHTML=s:3===r?o.cont.html(s):t[n](o.cont).innerHTML=s,o.jump&&o.jump(o,e),i.jump(t[n]("laypage_"+o.item)),o.hash&&!e&&(locations.hash="!"+o.hash+"="+o.curr)},"function"==typeof define?define(function(){return e}):"undefined"!=typeof exports?module.exports=e:window.laypage=e}(),window._bd_share_config={common:{bdSnsKey:{},bdText:"",bdMini:"2",bdMiniList:!1,bdPic:"",bdStyle:"1",bdSize:"16"},share:{}},document)0[(getElementsByTagName("head")[0]||body).appendChild(createElement("script")).src="http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion="+~(-new Date/36e5)];!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):"undefined"!=typeof exports?module.exports=e(require("jquery")):e(jQuery)}(function(e){"use strict";var t=window.Slick||{};t=function(){function t(t,i){var o,r=this;r.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:e(t),appendDots:e(t),arrows:!0,asNavFor:null,prevArrow:'',nextArrow:'',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(e,t){return'"},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",mobilesFirst:!1,pauseOnHover:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rows:1,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!1,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3},r.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},e.extend(r,r.initials),r.activeBreakpoint=null,r.animType=null,r.animProp=null,r.breakpoints=[],r.breakpointSettings=[],r.cssTransitions=!1,r.hidden="hidden",r.paused=!1,r.positionProp=null,r.respondTo=null,r.rowCount=1,r.shouldClick=!0,r.$slider=e(t),r.$slidesCache=null,r.transformType=null,r.transitionType=null,r.visibilityChange="visibilitychange",r.windowWidth=0,r.windowTimer=null,o=e(t).data("slick")||{},r.options=e.extend({},r.defaults,o,i),r.currentSlide=r.options.initialSlide,r.originalSettings=r.options,"undefined"!=typeof document.mozHidden?(r.hidden="mozHidden",r.visibilityChange="mozvisibilitychange"):"undefined"!=typeof document.webkitHidden&&(r.hidden="webkitHidden",r.visibilityChange="webkitvisibilitychange"),r.autoPlay=e.proxy(r.autoPlay,r),r.autoPlayClear=e.proxy(r.autoPlayClear,r),r.changeSlide=e.proxy(r.changeSlide,r),r.clickHandler=e.proxy(r.clickHandler,r),r.selectHandler=e.proxy(r.selectHandler,r),r.setPosition=e.proxy(r.setPosition,r),r.swipeHandler=e.proxy(r.swipeHandler,r),r.dragHandler=e.proxy(r.dragHandler,r),r.keyHandler=e.proxy(r.keyHandler,r),r.autoPlayIterator=e.proxy(r.autoPlayIterator,r),r.instanceUid=n++,r.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,r.registerBreakpoints(),r.init(!0),r.checkResponsive(!0)}var n=0;return t}(),t.prototype.addSlide=t.prototype.slickAdd=function(t,n,i){var o=this;if("boolean"==typeof n)i=n,n=null;else if(0>n||n>=o.slideCount)return!1;o.unload(),"number"==typeof n?0===n&&0===o.$slides.length?e(t).appendTo(o.$slideTrack):i?e(t).insertBefore(o.$slides.eq(n)):e(t).insertAfter(o.$slides.eq(n)):i===!0?e(t).prependTo(o.$slideTrack):e(t).appendTo(o.$slideTrack),o.$slides=o.$slideTrack.children(this.options.slide),o.$slideTrack.children(this.options.slide).detach(),o.$slideTrack.append(o.$slides),o.$slides.each(function(t,n){e(n).attr("data-slick-index",t)}),o.$slidesCache=o.$slides,o.reinit()},t.prototype.animateHeight=function(){var e=this;if(1===e.options.slidesToShow&&e.options.adaptiveHeight===!0&&e.options.vertical===!1){var t=e.$slides.eq(e.currentSlide).outerHeight(!0);e.$list.animate({height:t},e.options.speed)}},t.prototype.animateSlide=function(t,n){var i={},o=this;o.animateHeight(),o.options.rtl===!0&&o.options.vertical===!1&&(t=-t),o.transformsEnabled===!1?o.options.vertical===!1?o.$slideTrack.animate({left:t},o.options.speed,o.options.easing,n):o.$slideTrack.animate({top:t},o.options.speed,o.options.easing,n):o.cssTransitions===!1?(o.options.rtl===!0&&(o.currentLeft=-o.currentLeft),e({animStart:o.currentLeft}).animate({animStart:t},{duration:o.options.speed,easing:o.options.easing,step:function(e){e=Math.ceil(e),o.options.vertical===!1?(i[o.animType]="translate("+e+"px, 0px)",o.$slideTrack.css(i)):(i[o.animType]="translate(0px,"+e+"px)",o.$slideTrack.css(i))},complete:function(){n&&n.call()}})):(o.applyTransition(),t=Math.ceil(t),o.options.vertical===!1?i[o.animType]="translate3d("+t+"px, 0px, 0px)":i[o.animType]="translate3d(0px,"+t+"px, 0px)",o.$slideTrack.css(i),n&&setTimeout(function(){o.disableTransition(),n.call()},o.options.speed))},t.prototype.asNavFor=function(t){var n=this,i=n.options.asNavFor;i&&null!==i&&(i=e(i).not(n.$slider)),null!==i&&"object"==typeof i&&i.each(function(){var n=e(this).slick("getSlick");n.unslicked||n.slideHandler(t,!0)})},t.prototype.applyTransition=function(e){var t=this,n={};t.options.fade===!1?n[t.transitionType]=t.transformType+" "+t.options.speed+"ms "+t.options.cssEase:n[t.transitionType]="opacity "+t.options.speed+"ms "+t.options.cssEase,t.options.fade===!1?t.$slideTrack.css(n):t.$slides.eq(e).css(n)},t.prototype.autoPlay=function(){var e=this;e.autoPlayTimer&&clearInterval(e.autoPlayTimer),e.slideCount>e.options.slidesToShow&&e.paused!==!0&&(e.autoPlayTimer=setInterval(e.autoPlayIterator,e.options.autoplaySpeed))},t.prototype.autoPlayClear=function(){var e=this;e.autoPlayTimer&&clearInterval(e.autoPlayTimer)},t.prototype.autoPlayIterator=function(){var e=this;e.options.infinite===!1?1===e.direction?(e.currentSlide+1===e.slideCount-1&&(e.direction=0),e.slideHandler(e.currentSlide+e.options.slidesToScroll)):(e.currentSlide-1===0&&(e.direction=1),e.slideHandler(e.currentSlide-e.options.slidesToScroll)):e.slideHandler(e.currentSlide+e.options.slidesToScroll)},t.prototype.buildArrows=function(){var t=this;t.options.arrows===!0&&(t.$prevArrow=e(t.options.prevArrow).addClass("slick-arrow"),t.$nextArrow=e(t.options.nextArrow).addClass("slick-arrow"),t.slideCount>t.options.slidesToShow?(t.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),t.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),t.htmlExpr.test(t.options.prevArrow)&&t.$prevArrow.prependTo(t.options.appendArrows),t.htmlExpr.test(t.options.nextArrow)&&t.$nextArrow.appendTo(t.options.appendArrows),t.options.infinite!==!0&&t.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):t.$prevArrow.add(t.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))},t.prototype.buildDots=function(){var t,n,i=this;if(i.options.dots===!0&&i.slideCount>i.options.slidesToShow){for(n='',t=0;t<=i.getDotCount();t+=1)n+="- "+i.options.customPaging.call(this,i,t)+"
";n+="
",i.$dots=e(n).appendTo(i.options.appendDots),i.$dots.find("li").first().addClass("slick-active").attr("aria-hidden","false")}},t.prototype.buildOut=function(){var t=this;t.$slides=t.$slider.children(t.options.slide+":not(.slick-cloned)").addClass("slick-slide"),t.slideCount=t.$slides.length,t.$slides.each(function(t,n){e(n).attr("data-slick-index",t).data("originalStyling",e(n).attr("style")||"")}),t.$slider.addClass("slick-slider"),t.$slideTrack=0===t.slideCount?e('').appendTo(t.$slider):t.$slides.wrapAll('').parent(),t.$list=t.$slideTrack.wrap('').parent(),t.$slideTrack.css("opacity",0),(t.options.centerMode===!0||t.options.swipeToSlide===!0)&&(t.options.slidesToScroll=1),e("img[data-lazy]",t.$slider).not("[src]").addClass("slick-loading"),t.setupInfinite(),t.buildArrows(),t.buildDots(),t.updateDots(),t.setSlideClasses("number"==typeof t.currentSlide?t.currentSlide:0),t.options.draggable===!0&&t.$list.addClass("draggable")},t.prototype.buildRows=function(){var e,t,n,i,o,r,s,a=this;if(i=document.createDocumentFragment(),r=a.$slider.children(),a.options.rows>1){for(s=a.options.slidesPerRow*a.options.rows,o=Math.ceil(r.length/s),e=0;o>e;e++){var l=document.createElement("div");for(t=0;ts.breakpoints[i]&&(o=s.breakpoints[i]));null!==o?null!==s.activeBreakpoint?(o!==s.activeBreakpoint||n)&&(s.activeBreakpoint=o,"unslick"===s.breakpointSettings[o]?s.unslick(o):(s.options=e.extend({},s.originalSettings,s.breakpointSettings[o]),t===!0&&(s.currentSlide=s.options.initialSlide),s.refresh(t)),a=o):(s.activeBreakpoint=o,"unslick"===s.breakpointSettings[o]?s.unslick(o):(s.options=e.extend({},s.originalSettings,s.breakpointSettings[o]),t===!0&&(s.currentSlide=s.options.initialSlide),s.refresh(t)),a=o):null!==s.activeBreakpoint&&(s.activeBreakpoint=null,s.options=s.originalSettings,t===!0&&(s.currentSlide=s.options.initialSlide),s.refresh(t),a=o),t||a===!1||s.$slider.trigger("breakpoint",[s,a])}},t.prototype.changeSlide=function(t,n){var i,o,r,s=this,a=e(t.target);switch(a.is("a")&&t.preventDefault(),a.is("li")||(a=a.closest("li")),r=s.slideCount%s.options.slidesToScroll!==0,i=r?0:(s.slideCount-s.currentSlide)%s.options.slidesToScroll,t.data.message){case"previous":o=0===i?s.options.slidesToScroll:s.options.slidesToShow-i,s.slideCount>s.options.slidesToShow&&s.slideHandler(s.currentSlide-o,!1,n);break;case"next":o=0===i?s.options.slidesToScroll:i,s.slideCount>s.options.slidesToShow&&s.slideHandler(s.currentSlide+o,!1,n);break;case"index":var l=0===t.data.index?0:t.data.index||a.index()*s.options.slidesToScroll;s.slideHandler(s.checkNavigable(l),!1,n),a.children().trigger("focus");break;default:return}},t.prototype.checkNavigable=function(e){var t,n,i=this;if(t=i.getNavigableIndexes(),n=0,e>t[t.length-1])e=t[t.length-1];else for(var o in t){if(et.options.slidesToShow&&(t.$prevArrow&&t.$prevArrow.off("click.slick",t.changeSlide),t.$nextArrow&&t.$nextArrow.off("click.slick",t.changeSlide)),t.$list.off("touchstart.slick mousedown.slick",t.swipeHandler),t.$list.off("touchmove.slick mousemove.slick",t.swipeHandler),t.$list.off("touchend.slick mouseup.slick",t.swipeHandler),t.$list.off("touchcancel.slick mouseleave.slick",t.swipeHandler),t.$list.off("click.slick",t.clickHandler),e(document).off(t.visibilityChange,t.visibility),t.$list.off("mouseenter.slick",e.proxy(t.setPaused,t,!0)),t.$list.off("mouseleave.slick",e.proxy(t.setPaused,t,!1)),t.options.accessibility===!0&&t.$list.off("keydown.slick",t.keyHandler),t.options.focusOnSelect===!0&&e(t.$slideTrack).children().off("click.slick",t.selectHandler),e(window).off("orientationchange.slick.slick-"+t.instanceUid,t.orientationChange),e(window).off("resize.slick.slick-"+t.instanceUid,t.resize),e("[draggable!=true]",t.$slideTrack).off("dragstart",t.preventDefault),e(window).off("load.slick.slick-"+t.instanceUid,t.setPosition),e(document).off("ready.slick.slick-"+t.instanceUid,t.setPosition)},t.prototype.cleanUpRows=function(){var e,t=this;t.options.rows>1&&(e=t.$slides.children().children(),e.removeAttr("style"),t.$slider.html(e))},t.prototype.clickHandler=function(e){var t=this;t.shouldClick===!1&&(e.stopImmediatePropagation(),e.stopPropagation(),e.preventDefault())},t.prototype.destroy=function(t){var n=this;n.autoPlayClear(),n.touchObject={},n.cleanUpEvents(),e(".slick-cloned",n.$slider).detach(),n.$dots&&n.$dots.remove(),n.$prevArrow&&n.$prevArrow.length&&(n.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),n.htmlExpr.test(n.options.prevArrow)&&n.$prevArrow.remove()),n.$nextArrow&&n.$nextArrow.length&&(n.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),n.htmlExpr.test(n.options.nextArrow)&&n.$nextArrow.remove()),n.$slides&&(n.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each(function(){e(this).attr("style",e(this).data("originalStyling"))}),n.$slideTrack.children(this.options.slide).detach(),n.$slideTrack.detach(),n.$list.detach(),n.$slider.append(n.$slides)),n.cleanUpRows(),n.$slider.removeClass("slick-slider"),n.$slider.removeClass("slick-initialized"),n.unslicked=!0,t||n.$slider.trigger("destroy",[n])},t.prototype.disableTransition=function(e){var t=this,n={};n[t.transitionType]="",t.options.fade===!1?t.$slideTrack.css(n):t.$slides.eq(e).css(n)},t.prototype.fadeSlide=function(e,t){var n=this;n.cssTransitions===!1?(n.$slides.eq(e).css({zIndex:n.options.zIndex}),n.$slides.eq(e).animate({opacity:1},n.options.speed,n.options.easing,t)):(n.applyTransition(e),n.$slides.eq(e).css({opacity:1,zIndex:n.options.zIndex}),t&&setTimeout(function(){n.disableTransition(e),t.call()},n.options.speed))},t.prototype.fadeSlideOut=function(e){var t=this;t.cssTransitions===!1?t.$slides.eq(e).animate({opacity:0,zIndex:t.options.zIndex-2},t.options.speed,t.options.easing):(t.applyTransition(e),t.$slides.eq(e).css({opacity:0,zIndex:t.options.zIndex-2}))},t.prototype.filterSlides=t.prototype.slickFilter=function(e){var t=this;null!==e&&(t.$slidesCache=t.$slides,t.unload(),t.$slideTrack.children(this.options.slide).detach(),t.$slidesCache.filter(e).appendTo(t.$slideTrack),t.reinit())},t.prototype.getCurrent=t.prototype.slickCurrentSlide=function(){var e=this;return e.currentSlide},t.prototype.getDotCount=function(){var e=this,t=0,n=0,i=0;if(e.options.infinite===!0)for(;to.options.slidesToShow&&(o.slideOffset=o.slideWidth*o.options.slidesToShow*-1,r=n*o.options.slidesToShow*-1),o.slideCount%o.options.slidesToScroll!==0&&e+o.options.slidesToScroll>o.slideCount&&o.slideCount>o.options.slidesToShow&&(e>o.slideCount?(o.slideOffset=(o.options.slidesToShow-(e-o.slideCount))*o.slideWidth*-1,r=(o.options.slidesToShow-(e-o.slideCount))*n*-1):(o.slideOffset=o.slideCount%o.options.slidesToScroll*o.slideWidth*-1,r=o.slideCount%o.options.slidesToScroll*n*-1))):e+o.options.slidesToShow>o.slideCount&&(o.slideOffset=(e+o.options.slidesToShow-o.slideCount)*o.slideWidth,r=(e+o.options.slidesToShow-o.slideCount)*n),o.slideCount<=o.options.slidesToShow&&(o.slideOffset=0,r=0),o.options.centerMode===!0&&o.options.infinite===!0?o.slideOffset+=o.slideWidth*Math.floor(o.options.slidesToShow/2)-o.slideWidth:o.options.centerMode===!0&&(o.slideOffset=0,o.slideOffset+=o.slideWidth*Math.floor(o.options.slidesToShow/2)),t=o.options.vertical===!1?e*o.slideWidth*-1+o.slideOffset:e*n*-1+r,o.options.variableWidth===!0&&(i=o.slideCount<=o.options.slidesToShow||o.options.infinite===!1?o.$slideTrack.children(".slick-slide").eq(e):o.$slideTrack.children(".slick-slide").eq(e+o.options.slidesToShow),t=o.options.rtl===!0?i[0]?-1*(o.$slideTrack.width()-i[0].offsetLeft-i.width()):0:i[0]?-1*i[0].offsetLeft:0,o.options.centerMode===!0&&(i=o.slideCount<=o.options.slidesToShow||o.options.infinite===!1?o.$slideTrack.children(".slick-slide").eq(e):o.$slideTrack.children(".slick-slide").eq(e+o.options.slidesToShow+1),t=o.options.rtl===!0?i[0]?-1*(o.$slideTrack.width()-i[0].offsetLeft-i.width()):0:i[0]?-1*i[0].offsetLeft:0,t+=(o.$list.width()-i.outerWidth())/2)),t},t.prototype.getOption=t.prototype.slickGetOption=function(e){var t=this;return t.options[e]},t.prototype.getNavigableIndexes=function(){var e,t=this,n=0,i=0,o=[];for(t.options.infinite===!1?e=t.slideCount:(n=-1*t.options.slidesToScroll,i=-1*t.options.slidesToScroll,e=2*t.slideCount);e>n;)o.push(n),n=i+t.options.slidesToScroll,i+=t.options.slidesToScroll<=t.options.slidesToShow?t.options.slidesToScroll:t.options.slidesToShow;return o},t.prototype.getSlick=function(){return this},t.prototype.getSlideCount=function(){var t,n,i,o=this;return i=o.options.centerMode===!0?o.slideWidth*Math.floor(o.options.slidesToShow/2):0,o.options.swipeToSlide===!0?(o.$slideTrack.find(".slick-slide").each(function(t,r){return r.offsetLeft-i+e(r).outerWidth()/2>-1*o.swipeLeft?(n=r,!1):void 0}),t=Math.abs(e(n).attr("data-slick-index")-o.currentSlide)||1):o.options.slidesToScroll},t.prototype.goTo=t.prototype.slickGoTo=function(e,t){var n=this;n.changeSlide({data:{message:"index",index:parseInt(e)}},t)},t.prototype.init=function(t){var n=this;e(n.$slider).hasClass("slick-initialized")||(e(n.$slider).addClass("slick-initialized"),n.buildRows(),n.buildOut(),n.setProps(),n.startLoad(),n.loadSlider(),n.initializeEvents(),n.updateArrows(),n.updateDots()),t&&n.$slider.trigger("init",[n]),n.options.accessibility===!0&&n.initADA()},t.prototype.initArrowEvents=function(){var e=this;e.options.arrows===!0&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow.on("click.slick",{message:"previous"},e.changeSlide),e.$nextArrow.on("click.slick",{message:"next"},e.changeSlide))},t.prototype.initDotEvents=function(){var t=this;t.options.dots===!0&&t.slideCount>t.options.slidesToShow&&e("li",t.$dots).on("click.slick",{message:"index"},t.changeSlide),t.options.dots===!0&&t.options.pauseOnDotsHover===!0&&t.options.autoplay===!0&&e("li",t.$dots).on("mouseenter.slick",e.proxy(t.setPaused,t,!0)).on("mouseleave.slick",e.proxy(t.setPaused,t,!1))},t.prototype.initializeEvents=function(){var t=this;t.initArrowEvents(),t.initDotEvents(),t.$list.on("touchstart.slick mousedown.slick",{action:"start"},t.swipeHandler),t.$list.on("touchmove.slick mousemove.slick",{action:"move"},t.swipeHandler),t.$list.on("touchend.slick mouseup.slick",{action:"end"},t.swipeHandler),t.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},t.swipeHandler),t.$list.on("click.slick",t.clickHandler),e(document).on(t.visibilityChange,e.proxy(t.visibility,t)),t.$list.on("mouseenter.slick",e.proxy(t.setPaused,t,!0)),t.$list.on("mouseleave.slick",e.proxy(t.setPaused,t,!1)),t.options.accessibility===!0&&t.$list.on("keydown.slick",t.keyHandler),t.options.focusOnSelect===!0&&e(t.$slideTrack).children().on("click.slick",t.selectHandler),e(window).on("orientationchange.slick.slick-"+t.instanceUid,e.proxy(t.orientationChange,t)),e(window).on("resize.slick.slick-"+t.instanceUid,e.proxy(t.resize,t)),e("[draggable!=true]",t.$slideTrack).on("dragstart",t.preventDefault),e(window).on("load.slick.slick-"+t.instanceUid,t.setPosition),e(document).on("ready.slick.slick-"+t.instanceUid,t.setPosition)},t.prototype.initUI=function(){var e=this;e.options.arrows===!0&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow.show(),e.$nextArrow.show()),e.options.dots===!0&&e.slideCount>e.options.slidesToShow&&e.$dots.show(),e.options.autoplay===!0&&e.autoPlay()},t.prototype.keyHandler=function(e){var t=this;e.target.tagName.match("TEXTAREA|INPUT|SELECT")||(37===e.keyCode&&t.options.accessibility===!0?t.changeSlide({data:{message:"previous"}}):39===e.keyCode&&t.options.accessibility===!0&&t.changeSlide({data:{message:"next"}}))},t.prototype.lazyLoad=function(){function t(t){e("img[data-lazy]",t).each(function(){var t=e(this),n=e(this).attr("data-lazy"),i=document.createElement("img");i.onload=function(){t.animate({opacity:0},100,function(){t.attr("src",n).animate({opacity:1},200,function(){t.removeAttr("data-lazy").removeClass("slick-loading")})})},i.src=n})}var n,i,o,r,s=this;s.options.centerMode===!0?s.options.infinite===!0?(o=s.currentSlide+(s.options.slidesToShow/2+1),r=o+s.options.slidesToShow+2):(o=Math.max(0,s.currentSlide-(s.options.slidesToShow/2+1)),r=2+(s.options.slidesToShow/2+1)+s.currentSlide):(o=s.options.infinite?s.options.slidesToShow+s.currentSlide:s.currentSlide,r=o+s.options.slidesToShow,s.options.fade===!0&&(o>0&&o--,r<=s.slideCount&&r++)),n=s.$slider.find(".slick-slide").slice(o,r),t(n),s.slideCount<=s.options.slidesToShow?(i=s.$slider.find(".slick-slide"),t(i)):s.currentSlide>=s.slideCount-s.options.slidesToShow?(i=s.$slider.find(".slick-cloned").slice(0,s.options.slidesToShow),t(i)):0===s.currentSlide&&(i=s.$slider.find(".slick-cloned").slice(-1*s.options.slidesToShow),t(i))},t.prototype.loadSlider=function(){var e=this;e.setPosition(),e.$slideTrack.css({opacity:1}),e.$slider.removeClass("slick-loading"),e.initUI(),"progressive"===e.options.lazyLoad&&e.progressiveLazyLoad()},t.prototype.next=t.prototype.slickNext=function(){var e=this;e.changeSlide({data:{message:"next"}})},t.prototype.orientationChange=function(){var e=this;e.checkResponsive(),e.setPosition()},t.prototype.pause=t.prototype.slickPause=function(){var e=this;e.autoPlayClear(),e.paused=!0},t.prototype.play=t.prototype.slickPlay=function(){var e=this;e.paused=!1,e.autoPlay()},t.prototype.postSlide=function(e){var t=this;t.$slider.trigger("afterChange",[t,e]),t.animating=!1,t.setPosition(),t.swipeLeft=null,t.options.autoplay===!0&&t.paused===!1&&t.autoPlay(),t.options.accessibility===!0&&t.initADA()},t.prototype.prev=t.prototype.slickPrev=function(){var e=this;e.changeSlide({data:{message:"previous"}})},t.prototype.preventDefault=function(e){e.preventDefault()},t.prototype.progressiveLazyLoad=function(){var t,n,i=this;t=e("img[data-lazy]",i.$slider).length,t>0&&(n=e("img[data-lazy]",i.$slider).first(),n.attr("src",null),n.attr("src",n.attr("data-lazy")).removeClass("slick-loading").load(function(){n.removeAttr("data-lazy"),i.progressiveLazyLoad(),i.options.adaptiveHeight===!0&&i.setPosition()}).error(function(){n.removeAttr("data-lazy"),i.progressiveLazyLoad()}))},t.prototype.refresh=function(t){var n,i,o=this;i=o.slideCount-o.options.slidesToShow,o.options.infinite||(o.slideCount<=o.options.slidesToShow?o.currentSlide=0:o.currentSlide>i&&(o.currentSlide=i)),n=o.currentSlide,o.destroy(!0),e.extend(o,o.initials,{currentSlide:n}),o.init(),t||o.changeSlide({data:{message:"index",index:n}},!1)},t.prototype.registerBreakpoints=function(){var t,n,i,o=this,r=o.options.responsive||null;if("array"===e.type(r)&&r.length){o.respondTo=o.options.respondTo||"window";for(t in r)if(i=o.breakpoints.length-1,n=r[t].breakpoint,r.hasOwnProperty(t)){for(;i>=0;)o.breakpoints[i]&&o.breakpoints[i]===n&&o.breakpoints.splice(i,1),i--;o.breakpoints.push(n),o.breakpointSettings[n]=r[t].settings}o.breakpoints.sort(function(e,t){return o.options.mobilesFirst?e-t:t-e})}},t.prototype.reinit=function(){var t=this;t.$slides=t.$slideTrack.children(t.options.slide).addClass("slick-slide"),t.slideCount=t.$slides.length,t.currentSlide>=t.slideCount&&0!==t.currentSlide&&(t.currentSlide=t.currentSlide-t.options.slidesToScroll),t.slideCount<=t.options.slidesToShow&&(t.currentSlide=0),t.registerBreakpoints(),t.setProps(),t.setupInfinite(),t.buildArrows(),t.updateArrows(),t.initArrowEvents(),t.buildDots(),t.updateDots(),t.initDotEvents(),t.checkResponsive(!1,!0),t.options.focusOnSelect===!0&&e(t.$slideTrack).children().on("click.slick",t.selectHandler),t.setSlideClasses(0),t.setPosition(),t.$slider.trigger("reInit",[t]),t.options.autoplay===!0&&t.focusHandler()},t.prototype.resize=function(){var t=this;e(window).width()!==t.windowWidth&&(clearTimeout(t.windowDelay),t.windowDelay=window.setTimeout(function(){t.windowWidth=e(window).width(),t.checkResponsive(),t.unslicked||t.setPosition()},50))},t.prototype.removeSlide=t.prototype.slickRemove=function(e,t,n){var i=this;return"boolean"==typeof e?(t=e,e=t===!0?0:i.slideCount-1):e=t===!0?--e:e,i.slideCount<1||0>e||e>i.slideCount-1?!1:(i.unload(),n===!0?i.$slideTrack.children().remove():i.$slideTrack.children(this.options.slide).eq(e).remove(),i.$slides=i.$slideTrack.children(this.options.slide),i.$slideTrack.children(this.options.slide).detach(),i.$slideTrack.append(i.$slides),i.$slidesCache=i.$slides,void i.reinit())},t.prototype.setCSS=function(e){var t,n,i=this,o={};i.options.rtl===!0&&(e=-e),t="left"==i.positionProp?Math.ceil(e)+"px":"0px",n="top"==i.positionProp?Math.ceil(e)+"px":"0px",o[i.positionProp]=e,i.transformsEnabled===!1?i.$slideTrack.css(o):(o={},i.cssTransitions===!1?(o[i.animType]="translate("+t+", "+n+")",i.$slideTrack.css(o)):(o[i.animType]="translate3d("+t+", "+n+", 0px)",i.$slideTrack.css(o)))},t.prototype.setDimensions=function(){var e=this;e.options.vertical===!1?e.options.centerMode===!0&&e.$list.css({padding:"0px "+e.options.centerPadding}):(e.$list.height(e.$slides.first().outerHeight(!0)*e.options.slidesToShow),e.options.centerMode===!0&&e.$list.css({padding:e.options.centerPadding+" 0px"})),e.listWidth=e.$list.width(),e.listHeight=e.$list.height(),e.options.vertical===!1&&e.options.variableWidth===!1?(e.slideWidth=Math.ceil(e.listWidth/e.options.slidesToShow),e.$slideTrack.width(Math.ceil(e.slideWidth*e.$slideTrack.children(".slick-slide").length))):e.options.variableWidth===!0?e.$slideTrack.width(5e3*e.slideCount):(e.slideWidth=Math.ceil(e.listWidth),e.$slideTrack.height(Math.ceil(e.$slides.first().outerHeight(!0)*e.$slideTrack.children(".slick-slide").length)));var t=e.$slides.first().outerWidth(!0)-e.$slides.first().width();e.options.variableWidth===!1&&e.$slideTrack.children(".slick-slide").width(e.slideWidth-t)},t.prototype.setFade=function(){var t,n=this;n.$slides.each(function(i,o){t=n.slideWidth*i*-1,n.options.rtl===!0?e(o).css({position:"relative",right:t,top:0,zIndex:n.options.zIndex-2,opacity:0}):e(o).css({position:"relative",left:t,top:0,zIndex:n.options.zIndex-2,opacity:0})}),n.$slides.eq(n.currentSlide).css({zIndex:n.options.zIndex-1,opacity:1})},t.prototype.setHeight=function(){var e=this;if(1===e.options.slidesToShow&&e.options.adaptiveHeight===!0&&e.options.vertical===!1){var t=e.$slides.eq(e.currentSlide).outerHeight(!0);e.$list.css("height",t)}},t.prototype.setOption=t.prototype.slickSetOption=function(t,n,i){var o,r,s=this;if("responsive"===t&&"array"===e.type(n))for(r in n)if("array"!==e.type(s.options.responsive))s.options.responsive=[n[r]];else{for(o=s.options.responsive.length-1;o>=0;)s.options.responsive[o].breakpoint===n[r].breakpoint&&s.options.responsive.splice(o,1),o--;s.options.responsive.push(n[r])}else s.options[t]=n;i===!0&&(s.unload(),s.reinit())},t.prototype.setPosition=function(){var e=this;e.setDimensions(),e.setHeight(),e.options.fade===!1?e.setCSS(e.getLeft(e.currentSlide)):e.setFade(),e.$slider.trigger("setPosition",[e])},t.prototype.setProps=function(){var e=this,t=document.body.style;e.positionProp=e.options.vertical===!0?"top":"left","top"===e.positionProp?e.$slider.addClass("slick-vertical"):e.$slider.removeClass("slick-vertical"),(void 0!==t.WebkitTransition||void 0!==t.MozTransition||void 0!==t.msTransition)&&e.options.useCSS===!0&&(e.cssTransitions=!0),
e.options.fade&&("number"==typeof e.options.zIndex?e.options.zIndex<3&&(e.options.zIndex=3):e.options.zIndex=e.defaults.zIndex),void 0!==t.OTransform&&(e.animType="OTransform",e.transformType="-o-transform",e.transitionType="OTransition",void 0===t.perspectiveProperty&&void 0===t.webkitPerspective&&(e.animType=!1)),void 0!==t.MozTransform&&(e.animType="MozTransform",e.transformType="-moz-transform",e.transitionType="MozTransition",void 0===t.perspectiveProperty&&void 0===t.MozPerspective&&(e.animType=!1)),void 0!==t.webkitTransform&&(e.animType="webkitTransform",e.transformType="-webkit-transform",e.transitionType="webkitTransition",void 0===t.perspectiveProperty&&void 0===t.webkitPerspective&&(e.animType=!1)),void 0!==t.msTransform&&(e.animType="msTransform",e.transformType="-ms-transform",e.transitionType="msTransition",void 0===t.msTransform&&(e.animType=!1)),void 0!==t.transform&&e.animType!==!1&&(e.animType="transform",e.transformType="transform",e.transitionType="transition"),e.transformsEnabled=e.options.useTransform&&null!==e.animType&&e.animType!==!1},t.prototype.setSlideClasses=function(e){var t,n,i,o,r=this;n=r.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true"),r.$slides.eq(e).addClass("slick-current"),r.options.centerMode===!0?(t=Math.floor(r.options.slidesToShow/2),r.options.infinite===!0&&(e>=t&&e<=r.slideCount-1-t?r.$slides.slice(e-t,e+t+1).addClass("slick-active").attr("aria-hidden","false"):(i=r.options.slidesToShow+e,n.slice(i-t+1,i+t+2).addClass("slick-active").attr("aria-hidden","false")),0===e?n.eq(n.length-1-r.options.slidesToShow).addClass("slick-center"):e===r.slideCount-1&&n.eq(r.options.slidesToShow).addClass("slick-center")),r.$slides.eq(e).addClass("slick-center")):e>=0&&e<=r.slideCount-r.options.slidesToShow?r.$slides.slice(e,e+r.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"):n.length<=r.options.slidesToShow?n.addClass("slick-active").attr("aria-hidden","false"):(o=r.slideCount%r.options.slidesToShow,i=r.options.infinite===!0?r.options.slidesToShow+e:e,r.options.slidesToShow==r.options.slidesToScroll&&r.slideCount-eo.options.slidesToShow)){for(i=o.options.centerMode===!0?o.options.slidesToShow+1:o.options.slidesToShow,t=o.slideCount;t>o.slideCount-i;t-=1)n=t-1,e(o.$slides[n]).clone(!0).attr("id","").attr("data-slick-index",n-o.slideCount).prependTo(o.$slideTrack).addClass("slick-cloned");for(t=0;i>t;t+=1)n=t,e(o.$slides[n]).clone(!0).attr("id","").attr("data-slick-index",n+o.slideCount).appendTo(o.$slideTrack).addClass("slick-cloned");o.$slideTrack.find(".slick-cloned").find("[id]").each(function(){e(this).attr("id","")})}},t.prototype.setPaused=function(e){var t=this;t.options.autoplay===!0&&t.options.pauseOnHover===!0&&(t.paused=e,e?t.autoPlayClear():t.autoPlay())},t.prototype.selectHandler=function(t){var n=this,i=e(t.target).is(".slick-slide")?e(t.target):e(t.target).parents(".slick-slide"),o=parseInt(i.attr("data-slick-index"));return o||(o=0),n.slideCount<=n.options.slidesToShow?(n.setSlideClasses(o),void n.asNavFor(o)):void n.slideHandler(o)},t.prototype.slideHandler=function(e,t,n){var i,o,r,s,a=null,l=this;return t=t||!1,l.animating===!0&&l.options.waitForAnimate===!0||l.options.fade===!0&&l.currentSlide===e||l.slideCount<=l.options.slidesToShow?void 0:(t===!1&&l.asNavFor(e),i=e,a=l.getLeft(i),s=l.getLeft(l.currentSlide),l.currentLeft=null===l.swipeLeft?s:l.swipeLeft,l.options.infinite===!1&&l.options.centerMode===!1&&(0>e||e>l.getDotCount()*l.options.slidesToScroll)?void(l.options.fade===!1&&(i=l.currentSlide,n!==!0?l.animateSlide(s,function(){l.postSlide(i)}):l.postSlide(i))):l.options.infinite===!1&&l.options.centerMode===!0&&(0>e||e>l.slideCount-l.options.slidesToScroll)?void(l.options.fade===!1&&(i=l.currentSlide,n!==!0?l.animateSlide(s,function(){l.postSlide(i)}):l.postSlide(i))):(l.options.autoplay===!0&&clearInterval(l.autoPlayTimer),o=0>i?l.slideCount%l.options.slidesToScroll!==0?l.slideCount-l.slideCount%l.options.slidesToScroll:l.slideCount+i:i>=l.slideCount?l.slideCount%l.options.slidesToScroll!==0?0:i-l.slideCount:i,l.animating=!0,l.$slider.trigger("beforeChange",[l,l.currentSlide,o]),r=l.currentSlide,l.currentSlide=o,l.setSlideClasses(l.currentSlide),l.updateDots(),l.updateArrows(),l.options.fade===!0?(n!==!0?(l.fadeSlideOut(r),l.fadeSlide(o,function(){l.postSlide(o)})):l.postSlide(o),void l.animateHeight()):void(n!==!0?l.animateSlide(a,function(){l.postSlide(o)}):l.postSlide(o))))},t.prototype.startLoad=function(){var e=this;e.options.arrows===!0&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow.hide(),e.$nextArrow.hide()),e.options.dots===!0&&e.slideCount>e.options.slidesToShow&&e.$dots.hide(),e.$slider.addClass("slick-loading")},t.prototype.swipeDirection=function(){var e,t,n,i,o=this;return e=o.touchObject.startX-o.touchObject.curX,t=o.touchObject.startY-o.touchObject.curY,n=Math.atan2(t,e),i=Math.round(180*n/Math.PI),0>i&&(i=360-Math.abs(i)),45>=i&&i>=0?o.options.rtl===!1?"left":"right":360>=i&&i>=315?o.options.rtl===!1?"left":"right":i>=135&&225>=i?o.options.rtl===!1?"right":"left":o.options.verticalSwiping===!0?i>=35&&135>=i?"left":"right":"vertical"},t.prototype.swipeEnd=function(e){var t,n=this;if(n.dragging=!1,n.shouldClick=n.touchObject.swipeLength>10?!1:!0,void 0===n.touchObject.curX)return!1;if(n.touchObject.edgeHit===!0&&n.$slider.trigger("edge",[n,n.swipeDirection()]),n.touchObject.swipeLength>=n.touchObject.minSwipe)switch(n.swipeDirection()){case"left":t=n.options.swipeToSlide?n.checkNavigable(n.currentSlide+n.getSlideCount()):n.currentSlide+n.getSlideCount(),n.slideHandler(t),n.currentDirection=0,n.touchObject={},n.$slider.trigger("swipe",[n,"left"]);break;case"right":t=n.options.swipeToSlide?n.checkNavigable(n.currentSlide-n.getSlideCount()):n.currentSlide-n.getSlideCount(),n.slideHandler(t),n.currentDirection=1,n.touchObject={},n.$slider.trigger("swipe",[n,"right"])}else n.touchObject.startX!==n.touchObject.curX&&(n.slideHandler(n.currentSlide),n.touchObject={})},t.prototype.swipeHandler=function(e){var t=this;if(!(t.options.swipe===!1||"ontouchend"in document&&t.options.swipe===!1||t.options.draggable===!1&&-1!==e.type.indexOf("mouse")))switch(t.touchObject.fingerCount=e.originalEvent&&void 0!==e.originalEvent.touches?e.originalEvent.touches.length:1,t.touchObject.minSwipe=t.listWidth/t.options.touchThreshold,t.options.verticalSwiping===!0&&(t.touchObject.minSwipe=t.listHeight/t.options.touchThreshold),e.data.action){case"start":t.swipeStart(e);break;case"move":t.swipeMove(e);break;case"end":t.swipeEnd(e)}},t.prototype.swipeMove=function(e){var t,n,i,o,r,s=this;return r=void 0!==e.originalEvent?e.originalEvent.touches:null,!s.dragging||r&&1!==r.length?!1:(t=s.getLeft(s.currentSlide),s.touchObject.curX=void 0!==r?r[0].pageX:e.clientX,s.touchObject.curY=void 0!==r?r[0].pageY:e.clientY,s.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(s.touchObject.curX-s.touchObject.startX,2))),s.options.verticalSwiping===!0&&(s.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(s.touchObject.curY-s.touchObject.startY,2)))),n=s.swipeDirection(),"vertical"!==n?(void 0!==e.originalEvent&&s.touchObject.swipeLength>4&&e.preventDefault(),o=(s.options.rtl===!1?1:-1)*(s.touchObject.curX>s.touchObject.startX?1:-1),s.options.verticalSwiping===!0&&(o=s.touchObject.curY>s.touchObject.startY?1:-1),i=s.touchObject.swipeLength,s.touchObject.edgeHit=!1,s.options.infinite===!1&&(0===s.currentSlide&&"right"===n||s.currentSlide>=s.getDotCount()&&"left"===n)&&(i=s.touchObject.swipeLength*s.options.edgeFriction,s.touchObject.edgeHit=!0),s.options.vertical===!1?s.swipeLeft=t+i*o:s.swipeLeft=t+i*(s.$list.height()/s.listWidth)*o,s.options.verticalSwiping===!0&&(s.swipeLeft=t+i*o),s.options.fade===!0||s.options.touchMove===!1?!1:s.animating===!0?(s.swipeLeft=null,!1):void s.setCSS(s.swipeLeft)):void 0)},t.prototype.swipeStart=function(e){var t,n=this;return 1!==n.touchObject.fingerCount||n.slideCount<=n.options.slidesToShow?(n.touchObject={},!1):(void 0!==e.originalEvent&&void 0!==e.originalEvent.touches&&(t=e.originalEvent.touches[0]),n.touchObject.startX=n.touchObject.curX=void 0!==t?t.pageX:e.clientX,n.touchObject.startY=n.touchObject.curY=void 0!==t?t.pageY:e.clientY,void(n.dragging=!0))},t.prototype.unfilterSlides=t.prototype.slickUnfilter=function(){var e=this;null!==e.$slidesCache&&(e.unload(),e.$slideTrack.children(this.options.slide).detach(),e.$slidesCache.appendTo(e.$slideTrack),e.reinit())},t.prototype.unload=function(){var t=this;e(".slick-cloned",t.$slider).remove(),t.$dots&&t.$dots.remove(),t.$prevArrow&&t.htmlExpr.test(t.options.prevArrow)&&t.$prevArrow.remove(),t.$nextArrow&&t.htmlExpr.test(t.options.nextArrow)&&t.$nextArrow.remove(),t.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")},t.prototype.unslick=function(e){var t=this;t.$slider.trigger("unslick",[t,e]),t.destroy()},t.prototype.updateArrows=function(){var e,t=this;e=Math.floor(t.options.slidesToShow/2),t.options.arrows===!0&&t.slideCount>t.options.slidesToShow&&!t.options.infinite&&(t.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),t.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),0===t.currentSlide?(t.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),t.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):t.currentSlide>=t.slideCount-t.options.slidesToShow&&t.options.centerMode===!1?(t.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),t.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")):t.currentSlide>=t.slideCount-1&&t.options.centerMode===!0&&(t.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),t.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))},t.prototype.updateDots=function(){var e=this;null!==e.$dots&&(e.$dots.find("li").removeClass("slick-active").attr("aria-hidden","true"),e.$dots.find("li").eq(Math.floor(e.currentSlide/e.options.slidesToScroll)).addClass("slick-active").attr("aria-hidden","false"))},t.prototype.visibility=function(){var e=this;document[e.hidden]?(e.paused=!0,e.autoPlayClear()):e.options.autoplay===!0&&(e.paused=!1,e.autoPlay())},t.prototype.initADA=function(){var t=this;t.$slides.add(t.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"}),t.$slideTrack.attr("role","listbox"),t.$slides.not(t.$slideTrack.find(".slick-cloned")).each(function(n){e(this).attr({role:"option","aria-describedby":"slick-slide"+t.instanceUid+n})}),null!==t.$dots&&t.$dots.attr("role","tablist").find("li").each(function(n){e(this).attr({role:"presentation","aria-selected":"false","aria-controls":"navigation"+t.instanceUid+n,id:"slick-slide"+t.instanceUid+n})}).first().attr("aria-selected","true").end().find("button").attr("role","button").end().closest("div").attr("role","toolbar"),t.activateADA()},t.prototype.activateADA=function(){var e=this;e.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})},t.prototype.focusHandler=function(){var t=this;t.$slider.on("focus.slick blur.slick","*",function(n){n.stopImmediatePropagation();var i=e(this);setTimeout(function(){t.isPlay&&(i.is(":focus")?(t.autoPlayClear(),t.paused=!0):(t.paused=!1,t.autoPlay()))},0)})},e.fn.slick=function(){var e,n,i=this,o=arguments[0],r=Array.prototype.slice.call(arguments,1),s=i.length;for(e=0;s>e;e++)if("object"==typeof o||"undefined"==typeof o?i[e].slick=new t(i[e],o):n=i[e].slick[o].apply(i[e].slick,r),"undefined"!=typeof n)return n;return i}}),!$(function(){function e(){$(".t1-first-menu").hover(function(){$(this).find(".t1-second-panel").stop().slideDown(200)},function(){$(this).find(".t1-second-panel").stop().slideUp(200)})}function t(){var e=($(".t1-vice-nav"),$(".t1-vice-nav-2"));e.find(".t1-menu");e.find(".t1-menu-hd").click(function(){return $(this).siblings(".t1-menu-bd").slideToggle(300),!1})}function n(){var e=($(".t1-vice-nav"),$(".t1-vice-nav-3")),t=e.find(".t1-menu");t.hover(function(){$(this).addClass("t1-current").find(".t1-menu-bd").show()},function(){$(this).removeClass("t1-current").find(".t1-menu-bd").hide()})}function i(){var e=$(".t1-link-list-1");e.find("dl").height(e.innerHeight()-40+"px")}function o(){var e=$(".t1-link-list-2");$(window).resize(function(){e.find("dt").each(function(){$(this).height($(this).parents("dl").height())})}).resize()}function r(){var e=$(".t1-tab"),t=e.find(".t1-switchable");t.click(function(){var e=$(this).parents(".t1-tab"),t=e.find(".t1-switchable").index($(this));$(this).addClass("t1-current").siblings(".t1-switchable").removeClass("t1-current"),e.find(".t1-tab-panel").hide().eq(t).show()}),t.eq(0).click()}function s(){var e=$(".t1-comment"),t=e.find(".t1-interact");t.find(".t1-fore2").click(function(){var e=$(this).parents("li");e.find(".t1-input-group").slideToggle(200)})}function a(){var e=$(".t1-crumb"),t=e.find(".t1-more-case");t.hover(function(){$(this).find(".t1-more-case-bd").stop().slideDown(150)},function(){$(this).find(".t1-more-case-bd").stop().slideUp(150)})}e(),t(),n(),i(),o(),r(),s(),a()}),$(function(){function e(){$(window).resize(function(){var e=$(".w"),t=$(this).width();960>t?e.removeClass("w-sm w-md w-lg").addClass("w-xs"):t>=960&&1210>t?e.removeClass("w-xs w-md w-lg").addClass("w-sm"):t>=1210&&1390>t?e.removeClass("w-xs w-sm w-lg").addClass("w-md"):e.removeClass("w-xs w-sm w-md").addClass("w-lg")})}function t(){var e=$(".t1-sm-hidden");$(window).resize(function(){var t=$(this).width();960>t?e.css("display","none"):e.css("display","block")})}function n(){$(window).resize(function(){$(".t1-main-content").each(function(){var e=$(this).parents(".w"),t=$(this).siblings(".t1-main-sidebar");t&&t.is(":visible")?$(this).css("width",e.width()-t.width()-20+"px"):$(this).css("width",e.width()-2+"px")})}),$(window).resize()}e(),t(),$(window).resize(),n()});
function QQLink(){
window.open("http://wpa.qq.com/msgrd?v=3&uin="+QQ+"&site=qq&menu=yes");
}
/******************************************************************************
* filename: Common.js
* Ajax Modul Scripting
*******************************************************************************/
/********************
* 初始化头部信息,如购物车产品总数,登录状态等
* 回应 : XML对象
********************/
/******************************************************************************
* filename: Common.js
* Common Modul Scripting(Basic, Utilities)
*******************************************************************************/
SKIN_PATH = "/Skins/default/";
var PTN_EMAIL = /\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/;
var PTN_FLOAT = /\d+(\.\d+)?/;
function $nsw() { }
/********************
* 根据ID获取jQuery对象
* elmId : 元素ID
********************/
function $j(elmId) { return $("#" + elmId); }
/********************
* 根据ID获取文本框内容
* 重载1: 如果传递val参数,则修改文本框内容
* elmId : 元素ID
* val : 新的文本框内容
********************/
function $v(elmId, val) {
if (val == null) {
var o = $j(elmId).attr("value");
if (o == null || o == undefined) {
return "";
}
return o;
} else {
return $j(elmId).attr("value", val);
}
}
/********************
* 根据ID获取文本框内容并去除两边空格
* elmId : 元素ID
********************/
function $tv(elmId) { return $.trim($v(elmId)); };
/********************
* 获取元素选中状态(复选框、单选框)
* elmId : 元素ID
********************/
function getChecked(elmId) { return $("#" + elmId).attr("checked"); };
/********************
* 从容器查找单选框,当value与val相等则选中之
* val : 值
* cntrId : 容器ID
********************/
function checkRadio(val, cntrId) {
var rdos;
if (cntrId == null) {
rdos = $(document.body).find("input[type=radio]");
} else {
rdos = $j(cntrId).find("input[type=radio]");
}
rdos.each(function (i) {
var jT = $(this);
jT.attr("checked", jT.attr("value") == val);
});
}
function getSelectedText(ddlElmId) {
var opts = $("#" + ddlElmId + ">option");
var rtnVal = "";
opts.each(function (i) {
if (this.selected) {
rtnVal = this.text;
}
});
return rtnVal;
}
/********************
* 隐藏下拉框函数
* 重载1 : 如果不传递cntrId,则以body为容器
* cntrId : 容器ID
********************/
function hideDdl(cntrId) {
var arrTags = ["select", "iframe", "applet", "object"];
var jCntr;
if (cntrId != null) {
jCntr = $j(cntrId);
} else {
jCntr = $(document.body);
}
for (var i = 0; i < arrTags.length; ++i) {
jCntr.find(arrTags[i]).css("visibility", "hidden");
}
// if (behavior != null) {
// behavior();
// }
}
/********************
* 隐藏下拉框函数
********************/
function showDdl() {
var arrTags = ["select", "iframe", "applet", "object"];
for (var i = 0; i < arrTags.length; ++i) {
$(arrTags[i]).css("visibility", "visible");
}
}
/********************
* 重置一个层为绝对居中于窗口的位置
* elmId : 元素ID或元素
********************/
function relocations(elmId) {
var jElm;
if (typeof (elmId).toString().toLowerCase() == "string") {
jElm = $j(elmId);
} else {
jElm = $(elmId);
}
if (jElm.length == 0) {
return;
}
var dd = document.documentElement;
var t = (dd.scrollTop - (jElm.height() / 2) + "px");
jElm.css({ "margin-top": t/*, "left": l */ });
}
/********************
* 缩放窗口或拖动滚动条时,保持弹出层消息框于窗口居中
********************/
$(function () {
//--
$(window).resize(function () {
relocations("mesbook1");
relocations("mesbook1_c");
});
$(window).scroll(function () {
relocations("mesbook1");
relocations("mesbook1_c");
});
//--
});
/********************
* 对应$a(...),用于在服务端显示弹出层消息框,针对IE的补丁
********************/
function oran_msg(sMsg, boxType, autoClose, focusElmId, sTitle, behavior) {
window.onload = function () {
$a(sMsg, boxType, autoClose, focusElmId, sTitle, behavior);
}
}
/********************
* 提示选择对话框
* msg : 消息内容(必传递参数)
* obj : 对话框属性
********************/
function $confirm(sMsg, yesObj, noObj) {
hideDdl();
var sTitle = "消息对话框";
var jMesbook1 = $j("mesbook1_c");
if (jMesbook1.length == 0) {
var sHtml = "";
$(document.body).append(sHtml);
}
var jMesbook1 = $j("mesbook1_c");
var jMesbook1ImgClose = $j("mesbook1_cImgClose");
var jMesbook1Icon = $j("mesbook1_cIcon");
var jMesbook1Msg = $j("mesbook1_cMsg");
var jMesbook1AutoClose = $j("mesbook1_cAutoClose");
var jMesbook1Delay = $j("mesbook1_cDelay");
var jMesbook1Title = $j("mesbook1_cTitle");
var jMesbook1Btns = $j("mesbook1_cBtns");
jMesbook1Title.html(sTitle);
//消息内容
jMesbook1Msg.html(sMsg);
//图标
var iconPath = SKIN_PATH + "Img/ico_ques.gif";
jMesbook1Icon.attr("src", iconPath);
//关闭按钮
var yesBtn = jMesbook1Btns.find("input:eq(0)");
var noBtn = jMesbook1Btns.find("input:eq(1)");
yesBtn.removeAttr("onclick");
noBtn.removeAttr("onclick");
//yes
if (yesObj.title != null) {
yesBtn.val(yesObj.title);
}
if (typeof (yesObj.toDo) == "string") {
yesBtn.click(function () {
locations.href = yesObj.toDo;
});
} else {
yesBtn.click(function () {
yesObj.toDo();
})
}
//no
if (noObj.title != null) {
noBtn.val(noObj.title);
}
if (typeof (noObj.toDo) == "string") {
noBtn.click(function () {
locations.href = noObj.toDo;
});
} else {
noBtn.click(function () {
noObj.toDo();
})
}
jMesbook1ImgClose.removeAttr("onclick");
jMesbook1ImgClose.click(function () {
hideConfirm();
});
//显示
showFullBg();
setCM("mesbook1_c");
// relocations("mesbook1_c");
jMesbook1.fadeIn(80);
}
/********************
* 隐藏消息提示层
********************/
function hideConfirm() {
showDdl();
var jShadow = $j("mesbook1_c");
hideFullBg();
jShadow.fadeOut(80);
}
/********************
* 显示消息提示层
* sMsg : 消息内容(必传递参数)
* boxType : 消息框类型(ok - 确认,info - 消息提示,yesno - 确定或取消对话框,error - 错误警告 )
* autoClose : 自动关闭消息框延时(秒),传递null表示不自动关闭
* focusElmId : 关闭消息框后将获得焦点的元素的ID,传递null则取消该操作
* sTitle : 消息框标题
* behavior : 传递一个 Function 对象,当关闭消息框后调用该函数
********************/
function $a(sMsg, boxType, autoClose, focusElmId, sTitle, behavior) {
if (boxType == null) {
boxType = 2;
}
if (autoClose == null) {
autoClose = -1;
}
//标题
if (sTitle == null) {
sTitle = "消息提示";
}
hideDdl();
var jMesbook1 = $j("mesbook1");
if (jMesbook1.length == 0) {
var sHtml = ""
+ "
"
+ "
"
+ ""
+ ""
+ "- 此窗口秒钟后自动关闭。
"
+ "- "
+ ""
+ "
"
+ "
"
+ "
";
$(document.body).append(sHtml);
}
var jMesbook1 = $j("mesbook1");
var jMesbook1ImgClose = $j("mesbook1ImgClose");
var jMesbook1Icon = $j("mesbook1Icon");
var jMesbook1Msg = $j("mesbook1Msg");
var jMesbook1AutoClose = $j("mesbook1AutoClose");
var jMesbook1Delay = $j("mesbook1Delay");
var jMesbook1Title = $j("mesbook1Title");
var jMesbook1Btns = $j("mesbook1Btns");
jMesbook1Title.html(sTitle);
//消息内容
jMesbook1Msg.html(sMsg);
//图标
var iconPath = SKIN_PATH + "Img/";
switch (boxType) {
case 1: iconPath += "ico_ok.gif"; break;
case 2: iconPath += "ico_info.gif"; break;
case 3: iconPath += "ioc_ques.gif"; break;
case -1: iconPath += "ico_error.gif"; break;
default: iconPath += "ico_normal.gif"; break;
}
jMesbook1Icon.attr("src", iconPath);
//关闭按钮
var okBtn = jMesbook1Btns.find("input");
okBtn.removeAttr("onclick");
okBtn.click(function () {
hideMsg();
if (focusElmId != null) {
$j(focusElmId).focus();
}
if (behavior != null) {
behavior();
}
});
jMesbook1ImgClose.removeAttr("onclick");
jMesbook1ImgClose.click(function () {
hideMsg();
if (focusElmId != null) {
$j(focusElmId).focus();
}
if (behavior != null) {
behavior();
}
});
okBtn.focus();
//显示
showFullBg();
setCM("mesbook1");
//relocations("mesbook1");
jMesbook1.fadeIn(80);
}
function showMsgPage(msg, msgType, btnHref, btnTitle, defaultHref, delay) {
if (msgType == null) {
msgType = "Information";
} else {
switch (msgType) {
case 1: msgType = "Successful"; break;
case 2: msgType = "Information"; break;
case 3: msgType = "Question"; break;
case -1: msgType = "Failed"; break;
default: msgType = "Information"; break;
}
}
if (btnHref == null) {
btnHref = "/";
}
if (btnTitle == null) {
btnTitle = "首页";
}
if (defaultHref == null) {
defaultHref = "/";
}
if (delay == null) {
delay = 9;
}
var url = "/Tools/Message.aspx?result=" + msgType
+ "&btntitle=" + encodeURI(btnTitle) + "&btnhref=" + encodeURI(btnHref) + "&defaulthref=" + encodeURI(defaultHref)
+ "&delay=" + delay + "&msg=" + encodeURI(msg);
locations.href = url;
}
/********************
* 隐藏消息提示层
********************/
function hideMsg() {
showDdl();
var jShadow = $j("mesbook1");
hideFullBg();
jShadow.fadeOut(80);
}
/********************
* 设置层绝对居中(水平,垂直)setCenterMiddle
* elmId : 元素ID或元素
* speed : (可选)渐变进入的速度
********************/
function setCM(elmId, speed) {
var jElm;
if (typeof (elmId).toString().toLowerCase() == "string") {
jElm = $j(elmId);
} else {
jElm = $(elmId);
}
if (speed == null) {
speed = 80;
}
var h = jElm.height() / 2;
var w = jElm.width() / 2;
var $w = $(window);
var top = $w.height() / 2 + $w.scrollTop();
//jElm.css({ "top": top+"px", "margin-top" : "0px !important", "left": "50%", "margin-left": "-" + w + "px" });
jElm.css({ top: top + "px", marginTop: "0px", left: "50%", marginLeft: (-w) + "px" });
var isIE = navigator.userAgent.toUpperCase().indexOf("MSIE") == -1 ? false : true;
$w.scroll(function () {
var top = $w.height() / 2 + $w.scrollTop();
jElm.css({ 'top': top + 'px' });
});
//if(isIE){
jElm.css({ "position": "absolute", "z-index": "999" });
// }else{
// jElm.css({ "position": "fixed", "z-index": "999"});
// }
jElm.fadeIn(speed);
}
function setCMS(elmId, speed) {
var jElm;
if (typeof (elmId).toString().toLowerCase() == "string") {
jElm = $j(elmId);
} else {
jElm = $(elmId);
}
if (speed == null) {
speed = 80;
}
var h = jElm.height() / 2;
var w = jElm.width() / 2;
var height = document.documentElement.scrollTop;
if (height > 100) {
jElm.css({ "top": "50%", "margin-top": "-" + h + "px", "left": "50%", "margin-left": "-" + w + "px" });
}
else {
h = 200;
jElm.css({ "margin-top": "-" + h + "px", "left": "50%", "margin-left": "-" + w + "px" });
}
jElm.css({ "position": "absolute", "z-index": "999" });
jElm.fadeIn(speed);
}
/********************
* 显示一个全屏灰度背景
* elmId : 元素ID或元素
********************/
function showFullBg(elmId, isHideDdl, opacity, bgColor, zIndex, speed, behavior) {
if (elmId == null) {
elmId = "oran_full_bg";
}
var jElm = $j(elmId);
if (jElm.length == 0) {
var sHtml = "";
$(document.body).append(sHtml);
}
if (opacity == null) {
opacity = 0.75;
}
if (bgColor == null) {
bgColor = "#777";
}
if (zIndex == null) {
zIndex = "9";
}
if (speed == null) {
speed = 80;
}
if (isHideDdl == null) {
isHideDdl = true;
}
var jElm = $j(elmId);
var dd = document.documentElement;
var sWidth = dd.scrollWidth;
var sHeight = dd.scrollHeight;
var cH = dd.clientHeight;
var cW = dd.clientWidth;
if (sHeight < cH) {
sHeight = cH;
}
if (sWidth < cW) {
sWidth = cW;
}
jElm.css({ "z-index": zIndex, "background": bgColor, "opacity": opacity, "filter": "progid:DXImageTransform.Microsoft.Alpha(opacity=" + opacity * 100 + ")" });
jElm.css({ "height": sHeight, "width": sWidth });
if (isHideDdl) {
hideDdl(null, behavior);
}
jElm.fadeIn(speed);
if (behavior != null) {
behavior();
}
}
/********************
* 隐藏全屏灰度背景
* speed : (可选)渐变消退的速度
********************/
function hideFullBg(elmId, speed) {
if (elmId == null) {
elmId = "oran_full_bg";
}
if (speed == null) {
speed = 80;
}
var jElm = $j(elmId);
jElm.fadeOut(speed);
showDdl();
}
//关闭层
//cntrId : 层ID
//bgId : 背景层ID
function $closeLayer(cntrId, bgId) {
$j(cntrId).fadeOut(80, function () { hideFullBg(bgId); });
}
/********************
* 限制文本框字符长度,一个中文占两个长度(该函数一般用于多行文本框)
* src : 触发事件的源元素
* 使用方法如
********************/
function limitLength(src) {
var value = src.value;
var byteLength = parseInt($(src).attr("max"));
var attribute = src.id;
var newvalue = value.replace(/[^\x00-\xff]/g, "**");
var length = newvalue.length;
//当填写的字节数小于设置的字节数
if (length * 1 <= byteLength * 1) {
return;
}
var limitDate = newvalue.substr(0, byteLength);
var count = 0;
var limitvalue = "";
for (var i = 0; i < limitDate.length; i++) {
var flat = limitDate.substr(i, 1);
if (flat == "*") {
count++;
}
}
var size = 0;
var istar = newvalue.substr(byteLength * 1 - 1, 1); //校验点是否为“×”
//if 基点是×; 判断在基点内有×为偶数还是奇数
if (count % 2 == 0) {
//当为偶数时
size = count / 2 + (byteLength * 1 - count);
limitvalue = value.substr(0, size);
} else {
//当为奇数时
size = (count - 1) / 2 + (byteLength * 1 - count);
limitvalue = value.substr(0, size);
}
alert("最大输入" + byteLength + "个字节(相当于" + byteLength / 2 + "个汉字)!");
document.getElementById(attribute).value = limitvalue;
return;
}
/********************
* 根据元素ID获取元素对象(document.getElementById)
* elmId : 元素ID
********************/
function $g(elmId) { return document.getElementById(elmId); };
/********************
* 根据元素名称获取元素对象集(document.getElementsByName)
* nm : 元素name
********************/
function $name(nm) { return document.getElementsByName(nm); };
/********************
* 根据元素标签从指定容器获取元素对象集(document.getElementsByTagName)
* cntr : 容器,可以是元素对象、元素ID
* tagName : 标签名称
********************/
function $tag(cntr, tagName) {
var o = cntr;
if (o != Object) { o = $g(cntr); }
return o.getElementsByTagName(tagName);
}
/********************
* 限制文本框只能输入数字(数字键)
* e : event
********************/
function digiKeyOnly(e) {
var key = window.event ? event.keyCode : e.which;
if (key < 27 || key > 128) {
return true;
} else if (key >= 48 && key <= 57) {
return true;
} else {
return false;
}
}
/********************
* 限制文本框只能输入数字
* src : 触发事件的源元素
* 使用方法如
********************/
function digiOnly(src) {
src.value = src.value.replace(/[^0-9]/g, '');
}
/********************
* 打开窗口
* url : URL
* w : 窗口宽度(不传递则默认为300px)
* h : 窗口高度(不传递则默认为300px)
* features : 关于窗口的更多属性(可先,不传递该参数或传递null则默认为无工具栏、无菜单栏、可拖放、有滚动条、纵横坐标为0)
********************/
function $o(url, w, h, features) {
if (url == null || url == "") {
return;
}
if (w == null) {
w = "300";
}
if (h == null) {
h = "300";
}
if (features == null) {
features = "locations=0,menubar=0,resizable=1,scrollbars=1,status=0,toolbar=0;top=0,left=0";
}
if (w) {
features += ",width=" + w;
}
if (h) {
features += ",height=" + h;
}
window.open(url, "", features, false);
}
/********************
* 清空文本框内容
* cntrId : 容器ID,不传递则以body为容器
********************/
function emptyText(cntrId) {
var jTxts;
if (cntrId == null) {
jTxts = $("body").find("input[type=text]");
} else {
jTxts = $j(cntrId).find("input[type=text]");
}
var jTxtss;
if (cntrId == null) {
jTxtss = $("body").find("input[type=password]");
} else {
jTxtss = $j(cntrId).find("input[type=password]");
}
jTxts.each(function () {
$(this).attr("value", "");
});
jTxtss.each(function () {
$(this).attr("value", "");
});
if (cntrId == null)
jTxts = $("body").find("textarea");
else
jTxts = $j(cntrId).find("textarea");
jTxts.each(function () {
$(this).attr("value", "");
});
}
/********************
* COOKIE操作
* 重载1 只传递name : 根据键名获取cookie值
* 重载2 传递name, value : 设置cookie,默认过期时间为9986400000
* 重载3 传递name, value, expire : 设置cookie并指定过期时间
* 重载4 传递name, value(bool) : 根据键名删除cookie
* name : cookie 键名 :
* val : cookie值
* expire : cookie过期时间
********************/
$cookie = function (name, val, expire) {
if (val == null && expire == null) {
var search = name + "=";
begin = document.cookie.indexOf(search);
if (begin != -1) {
begin += search.length;
end = document.cookie.indexOf(";", begin);
if (end == -1) end = document.cookie.length;
return document.cookie.substring(begin, end);
}
return null;
} else if (typeof (val) == "boolean") {
$cookie(name, "", -999999);
} else {
if (expire == null) { expire = 9986400000; }
var today = new Date();
var expireDay = new Date();
var msPerMonth = expire;
expireDay.setTime(today.getTime() + msPerMonth);
document.cookie = name + "=" + val + ";expires=" + expireDay.toGMTString();
}
};
/********************
* 查询URL参数(查询失败则返回空字符串)
* paraNm : 参数名
********************/
function $qs(paraNm) {
var args = new Object();
var query = locations.search.substring(1);
var pairs = query.split("&");
for (var i = 0; i < pairs.length; ++i) {
var pos = pairs[i].indexOf('=');
if (!pos) continue;
var paraNm2 = pairs[i].substring(0, pos);
var vlu = pairs[i].substring(pos + 1);
vlu = decodeURIComponent(vlu);
args[paraNm2] = vlu;
}
return args[paraNm] == null ? "" : args[paraNm];
}
/********************
* 全选复选框或取消全选(根据触发事件的源对象的选中状态而定)
* src : 触发事件的源对象
* cntrId : 容器ID
********************/
function selectAll(src, cntrId) {
var chks = $tag(cntrId, "input");
for (var i = 0; i < chks.length; ++i) {
chks[i].checked = src.checked;
}
}
/********************
* 反选复选框
* cntrId : 容器ID
********************/
function invertSelect(cntrId) {
var chks = $tag(cntrId, "input");
for (var i = 0; i < chks.length; ++i) {
chks[i].checked = !chks[i].checked;
}
}
function getPageFilename() {
var path = locations.pathname;
var pos = path.lastIndexOf('/') + 1;
var filename = path.substring(pos, path.length);
return filename;
}
function getRawUrl() {
var path = locations.href;
var pos = path.lastIndexOf('/') + 1;
var filename = path.substring(pos, path.length);
pos = filename.lastIndexOf('#');
filename = filename.substring(0, pos);
return filename;
}
function getIntactRawUrl() {
var path = locations.href;
var pos;
pos = path.lastIndexOf('#');
path = path.substring(0, pos);
return path;
}
/********************
* 附加参数到现URl
* name : 参数名
* val : 参数值
********************/
function toggleArg(name, val) {
var url = $$.intactRawUrl();
var pos = url.indexOf('?');
if (pos == -1) {
return url + "?" + name + "=" + val;
} else {
var args = url.substring(pos);
var path = url.substring(0, pos);
var patten = new RegExp("&?" + name + "=?\\w*\\[?\\w*\\]?\\|?\\d?", "i");
args = args.replace(patten, "");
if (args.length == 1) {//没有任何参数,只有?
args += name + "=" + val;
} else {
args += "&" + name + "=" + val;
}
return path + args;
}
};
/********************
* 渐大/小,渐出/入一个元素
* elmId : 元素ID
* visibility : 显现或隐藏
********************/
function increase(elmId, visibility) {
if (visibility == null) {
visibility = "show";
}
var jO = $j(elmId);
jO.animate({
height: visibility,
width: visibility,
opacity: visibility
}, "fast");
}
/********************
* 渐出/入一个元素(当元素可见则入,反之则出)
* elmId : 元素ID
* speed : 速度
********************/
function fadeToggle(elmId, speed) {
if (speed == null) { speed = "fast" };
if ($("#" + elmId).is(":visible")) { $("#" + elmId).fadeOut(speed) }
else { $("#" + elmId).fadeIn(speed) };
}
/********************
* 当元素获得焦点时,高亮显示
* cntrId : 容器ID
* focusClass : 高亮时的样式我
********************/
function clearAllElms(cntrId, focusClass) {
clearDdls(cntrId, focusClass);
clearTextBoxes(cntrId, focusClass);
clearRdos(cntrId, focusClass);
clearChks(cntrId, focusClass);
}
function clearRdos(cntrId, focusClass) {
if (focusClass == null) {
focusClass = "tfocus";
}
var txts = $j(cntrId).find("input[type=radio]");
txts.focus(function () { $(this).addClass(focusClass); });
txts.blur(function () { $(this).removeClass(focusClass); });
}
function clearChks(cntrId, focusClass) {
if (focusClass == null) {
focusClass = "tfocus";
}
var txts = $j(cntrId).find("input[type=checkbox]");
txts.focus(function () { $(this).addClass(focusClass); });
txts.blur(function () { $(this).removeClass(focusClass); });
}
function clearDdls(cntrId, focusClass) {
if (focusClass == null) {
focusClass = "tfocus";
}
var txts = $j(cntrId).find("select");
txts.focus(function () { $(this).addClass(focusClass); });
txts.blur(function () { $(this).removeClass(focusClass); });
}
function clearTextBoxes(cntrId, focusClass) {
if (focusClass == null) {
focusClass = "tfocus";
}
var txts = $j(cntrId).find("input[type=text]");
txts.focus(function () { $(this).addClass(focusClass); });
txts.blur(function () { $(this).removeClass(focusClass); });
var txts = $j(cntrId).find("input[type=password]");
txts.focus(function () { $(this).addClass(focusClass); });
txts.blur(function () { $(this).removeClass(focusClass); });
txts = $j(cntrId).find("textarea");
txts.focus(function () { $(this).addClass(focusClass); });
txts.blur(function () { $(this).removeClass(focusClass); });
}
/********************
* 增加书签
* url : URL
* title : 收藏项目的标题
********************/
function addBookmark(url, title) {
if (window.sidebar) {
window.sidebar.addPanel(title, url, "");
} else if (document.all) {
window.external.AddFavorite(url, title);
} else if (window.opera && window.print) {
return true;
}
}
function addBookmark() {
var title = document.title;
var url = document.URL;
try {
window.external.addFavorite(url, title);
}
catch (e) {
try {
window.sidebar.addPanel(title, url, "");
}
catch (e) {
alert("抱歉,您所使用的浏览器无法完成此操作。\n\n加入收藏失败,请使用Ctrl+D进行添加");
}
}
}
//加入收藏
function BookMarkit() {
var url = "http://" + window.locations.host;
var title = document.title;
if (document.all) {
window.external.addFavorite(url, title);
}
else if (window.sidebar) {
window.sidebar.addPanel(title, url, "");
}
}
/********************
* 根据值选中下拉列表项
* ddlId : 下拉列表元素ID
* val : 值
********************/
function setSelectByValue(ddlId, val) {
var ddl = $g(ddlId);
for (var i = 0; i < ddl.options.length; ++i) {
var opt = ddl.options[i];
opt.selected = (opt.value == val);
}
}
/********************
* 显示验证码
********************/
function showVerifyCode(elmId, msgElmId, imgId, chgLnkId) {
if (elmId == null) {
elmId = "spVerCode";
}
if (msgElmId == null) {
msgElmId = "spVerCodeMsg";
}
if (imgId == null) {
imgId = "imgVerCode";
}
if (chgLnkId == null) {
chgLnkId = "spChgVerCode";
}
var jImg = $j(elmId);
var jMsg = $j(msgElmId);
var jChgLnk = $j(chgLnkId);
if (jImg.html() == "") {
jMsg.html("正在加载验证码...");
jMsg.show();
jImg.html("");
}
var jVerCode = $j(imgId);
jVerCode.load(function () {
jMsg.hide();
jVerCode.show();
jChgLnk.show();
});
}
/********************
* 更换验证码
********************/
function changeVerCode(elmId, msgElmId) {
if (elmId == null) {
elmId = "imgVerCode";
}
if (msgElmId == null) {
msgElmId = "spVerCodeMsg";
}
var jImg = $j(elmId);
var jMsg = $j(msgElmId);
jMsg.html("正在刷新验证码...").show();
jImg.attr({ src: "/Tools/ValidCode.aspx?x=" + Math.random(), alt: "验证码" });
jImg.hide();
jImg.load(function () {
jMsg.hide();
jImg.show();
});
}
/********************
* 显示正在处理的图标
* src : 触发事件的源对象
* show : 显示/隐藏
********************/
function showProc(src, show) {
var oImg = $j("imgProc");
if (show == null) {
show = true;
}
if (show) {
$(src).hide();
if (oImg.length > 0) {
oImg.remove();
}
$("").insertAfter(src);
} else {
$(src).show();
oImg.remove();
}
}
/********************
* 放大字体
* el : 放大/缩小
********************/
function enlarge(el, elmId) {
if (el == null) {
el = true;
}
if (elmId == null) {
elmId = "Content";
}
var o = $j(elmId);
var fontSize = parseInt(o.css("font-size"));
var newFontSize = (el ? fontSize * 1.2 : fontSize / 1.2);
o.css("font-size", newFontSize + "px");
}
/********************
* 奇偶行变色
* el : 放大/缩小
* escapeRows : 忽略最首行数
* tabName : 表ID
* odd : 奇行的样式或样式类名
* even : 偶行的样式或样式类名
********************/
function altRow(escapeRows, tabName, odd, even) {
var rows = $tag(tabName, "tr");
for (var i = escapeRows; i < rows.length; ++i) {
var argSty;
if (i % 2 == 0) argSty = even;
else argSty = odd;
if (typeof (argSty) == "object") {
for (var sty in argSty) {
rows[i].style[sty] = argSty[sty];
}
} else {
rows[i].className = argSty;
}
}
}
/********************
* 获取容器里已选中复选/单选按钮的值
* cntrId : 容器ID
* escapeRows : 忽略最首行数
********************/
function getCheckedVal(cntrId, escapeRows) {
if (escapeRows == null) {
escapeRows = -1;
}
var chks = $j(cntrId).find("input:checked");
var rtnVal = "";
var flag = false;
chks.each(function (i) {
if (i > escapeRows) {
if (flag) {
rtnVal += ",";
}
rtnVal += $(this).val();
flag = true;
}
});
return rtnVal;
}
function checkAll(src, cntrId) {
var chks = $j(cntrId).find("input[type=checkbox]");
chks.each(function (i) {
this.checked = src.checked;
});
}
//根据字段列表获取查询页面路径字符串
//FieldList格式:控件ID名称,查询字段名称|控件ID名称1,查询字段名称1|..
function GetSearchURL(FieldList, URL) {
//1\定义变量
if (URL == null) {
URL = getIntactRawUrl();
}
//2\循环把变量列表取出来,组合成URL
var TempFieldList = FieldList.split("|");
for (var i = 0; i < TempFieldList.length; i++) {
//1>寻找控件
var control1 = TempFieldList[i].split(",");
var controlname;
var control = document.getElementById(control1[0]);
if (control1.length == 2) { controlname = control1[1]; } else { controlname = control1[0]; }
if (control != null) {
//2>取出控件的值
var controlvalue = control.value;
//3>设置URL
if (controlvalue != null) {
URL += "&" + controlname + "=" + encodeURIComponent(controlvalue);
}
}
}
return URL;
}
function SearchObjectByGet(FieldList, url, getUrlOnly) {
if (getUrlOnly == null) {
getUrlOnly = false;
}
var newUrl = GetSearchURL(FieldList, url);
if (getUrlOnly) {
return newUrl;
}
window.locations.href = newUrl;
}
function SearchObjects(kwd, objtype) {
if (kwd == "请填写关键词" || kwd == "请输入关键词") {
$a("您还没有输入关键词,请填写后查询。");
return;
}
if (objtype == "product") {
var URL = "/Search/Index.aspx?objtype=product&kwd=" + escape(kwd);
window.locations.href = URL;
}
else {
var URL = "/Search/News.aspx?objtype=news&kwd=" + escape(kwd);
window.locations.href = URL;
}
}
//跳转到某页
//参数:参训参数
// 参数值
function GoToURL(FieldName, FieldValue) {
var URL;
URL = SetURLField(URL, FieldName, FieldValue);
locations.href = URL;
}
//跳转到某页
//参数:参训参数
// 参数值
function GoToURLByGet(FieldName, FieldValue) {
//1\定义变量
var URL;
URL = locations.href;
//2\获取地址参数
URL = SetURLField(URL, "page", "1");
URL = SetURLField(URL, FieldName, FieldValue);
//3\递交数据
}
//设置地址栏的参数
function SetURLField(URL, FieldName, FieldValue) {
//1\把当前的超链接地址取出来
var FindPlace;
//2\如果?号后面没有字符串,则在?后面添加查询的字段
FindPlace = URL.indexOf("?");
if (FindPlace == -1) {
URL += "?" + FieldName + "=" + FieldValue;
}
else {
//3\如果?后面有查询字符串,则检测有没有该字段,如果有,则重新付值
var search = FieldName + "=";
var offset = URL.indexOf(search);
if (offset != -1) {
offset += search.length;
end = URL.indexOf("&", offset);
if (end == -1) {
URL = URL.substring(0, offset) + FieldValue;
}
else {
URL = URL.substring(0, offset) + FieldValue + URL.substring(end);
}
}
else {
URL = URL + "&" + FieldName + "=" + FieldValue;
}
}
return URL;
}
//读取地址栏的参数值
//参数:参数名称
function readURLParameter(FieldName) {
var search = FieldName + "=";
var FieldValue = "";
var URL = locations.href;
var offset = URL.indexOf(search);
if (offset != -1) {
offset += search.length;
end = URL.indexOf("&", offset);
if (end == -1) {
FieldValue = URL.substring(offset);
}
else {
FieldValue = URL.substring(offset, end);
}
}
return FieldValue;
}
/********************
* 当一个文本框第一次获得焦点时清空自己的文本,该文本框默认有一个属性和事件:hadfocused="0" onfocus="focusToRemoveText(this)"
* src : 触发事件的源元素
********************/
function focusToRemoveText(src) {
var jSrc = $(src);
var hadFocused = (jSrc.attr("hadfocused") == "1");
if (!hadFocused) {
jSrc.val("");
jSrc.attr("hadfocused", "1");
}
}
//输出动态表单
//surObj : 投票对象
function SUR_ShowTable(surObj) {
var sHtml = "";
//投票模式(单选/复选)
var inputType;
switch (surObj.SelectionMode) {
case 1: inputType = "radio"; break;
case 2: inputType = "checkbox"; break;
}
//输出内容
switch (surObj.ShowMode) {
case 1:
sHtml = ""
+ "
" + surObj.Title + "
"
+ "
"
+ "
"
+ ""
+ ""
+ "
"
+ "
";
break;
} // end switch
document.write(sHtml);
}
////提交投票
////参数:src : 触发方法的源对象
////surObj : 投票对象
//function SUR_senddata(src, subObj) {
// var msgElmId = "SUR_post_msg_" + subObj.SubjectId;
// var s = "正在提交,请稍后...";
// var url = "/ajax.ashx?action=Survey&t=" + Math.random();
// var checkedVla = getCheckedVal("SUR_itemTab_" + subObj.SubjectId);
// if (checkedVla == null || checkedVla.length == 0) {
// $a("您至少需要选中一个投票项。");
// return;
// }
// $(src).after(s).hide();
// $.post(url, {
// _SUR_SubjectID: subObj.SubjectId,
// _CheckedItems: checkedVla
// }, function(rsp) {
// var sta = gav(rsp, "state");
// var sMsg = gav(rsp, "msg");
// if (sta == "1") {
// $confirm("投票成功,感谢您的参与。", { title: "确定", toDo: function() { hideConfirm(); } }, { title: "查看结果", toDo: function() { window.open("/tools/survey.aspx?oid=" + subObj.SubjectId); hideConfirm(); } });
// } else {
// $a(sMsg);
// }
// $j(msgElmId).remove();
// $(src).show();
// });
//}
//输出留言表单
//surObj : 对象ID
function LEW_ShowTable() {
var sHtml = "";
document.write(sHtml);
fillLeavewordCategories();
}
////输出留言表单
////surObj : 对象ID
//function PAY_ShowTable() {
// var sHtml = ""
// + "
付款
"
// + "
"
// + "
";
// document.write(sHtml);
//}
//用户登陆
function LoginCheck(_username, _password) {
var url = window.locations;
if (_username == undefined || _username.length == 0) {
$a("请输入用户名", "错误提示", "txtUsername");
return;
}
if (_password == undefined || _password.length == 0) {
$a("请输入密码", "错误提示", "txtPassword");
return;
}
$.post("/ajax.ashx?action=logincheck&t=" + Math.random(), {
username: _username,
password: _password
},
function (msg) {
if (gav(msg, "state") == "1") {
$a(gav(msg, "msg"));
window.locations.href = url;
}
else {
$a(gav(msg, "msg"));
}
;
});
}
function xuanze() {
var xz =document.getElementById('seachkeywords').value;
if (xz.length == 0) {
xz = "";
}
window.locations.href = '/Search/Index.aspx?objtype=product&kwd=' + xz;
}
function initCommonHeader() {
$.get("/ajax.ashx?action=initcommonheader&t=" + Math.random(), function(rsp) {
// $j("headerCartCount").html(gav(rsp, "prod_count"));
var IM = gav(rsp, "showIM");
showIM(IM);
var username = gav(rsp, "username");
if (username.length > 0) {
$j("commonHeaderGuest").hide();
$j("commonHeaderUsername").html(username);
$j("commonHeaderUser").fadeIn(80);
}
});
}
//是否显示在线客服
function showIM(res) {
if ($("#bodd").html() != "") {
if (res == "True") {
$("#bodd").show();
$("#kefubtn").hide();
$("#divOranIm").show();
}
else {
$("#bodd").hide();
$("#kefubtn").show();
$("#divOranIm").hide();
}
}
}
//初始化头部热门关键词
function initCommonHeaderKeywords(_s) {
if (_s == "") _s = "6";
$.post("/ajax.ashx?action=initcommonheaderkeywords&t=" + Math.random(), {
s: _s
}, function(msg) {
$j("commonHeaderkeywords").html(msg);
});
}
/********************
* 添加产品到购物车
* src : 触发事件的源对象
* _pid : 产品ID
* qutiElmId : 数量(重载:number购买数量、string数量的文本框元素ID)
* atts : 附加属性
* reloadCartPage : (可选)是否询问重新刷新购物车首页
* redirectUrl : (可选)当产品添加成功后,跳转到的页面(优先权高)
* 回应 : XML对象
********************/
function addToCart(src, _pid, qutiElmId, _atts,_pidlist, reloadCartPage, redirectUrl) {
showProc(src);
if (reloadCartPage == null) {
reloadCartPage = false;
}
_atts = $j(_atts).html();
_pidlist = $j(_pidlist).val();
var _quti;
if (qutiElmId == null) {
_quti = 1;
} else if (typeof (qutiElmId) == "number") {
_quti = qutiElmId;
} else {
_quti = $tv(qutiElmId);
}
if (_atts == null) {
_atts = "";
}
if (_pidlist==null)
{
_pidlist = "";
}
$.post("/ajax.ashx?action=addtocart&t=" + Math.random(), {
pid: _pid,
quti: _quti,
atts: _atts,
pidlist: _pidlist
}, function(msg) {
var sMsg = gav(msg, "msg");
var sCount = gav(msg, "count");
var sta = gav(msg, "state");
if (redirectUrl != null) {
locations.href = redirectUrl;
return;
}
if (sta != "1") {
$a(sMsg);
showProc(src, false);
return;
}
$confirm(sMsg, { title: "去结算", toDo: "/paycenter/cart.aspx" }, { title: "再选购", toDo: function() {
hideConfirm();
}
});
$j("headerCartCount").html(sCount);
if (reloadCartPage && (gav(msg, "state") == 1) && confirm("添加到购物车成功,是否马上刷新页面购物车页面?\r\n\r\n是 - 刷新本页面查看最新结果\r\n否 - 保留当前页面状态")) {
locations.href = "cart.aspx?t=" + Math.random();
return;
}
showProc(src, false);
});
}
/********************
* 清空购物车
* src : 触发事件的源对象
* 回应 : string
* 1 - 成功
* 0 - 失败
********************/
function emptyCart(src) {
showBgProc();
$.get("/ajax.ashx?action=emptycart&t=" + Math.random(), function(msg) {
if (msg == "1") {
$a("清空购物车成功,单击确认返回产品中心。", 1, false, null, "消息", function() {
locations.href = "/product";
});
} else {
$a("清空购物车失败,请稍候重试。");
}
showBgProc(false);
});
}
/********************
* 清空购物车
* src : 触发事件的源对象
* _pid : 产品ID
* 回应 : xml
********************/
function changeQuantity(src, _pid,_attrs) {
var newVal = $(src).parent().find("input").attr("value");
if (!/^\d+$/.test(newVal)) {
$a("数量必须是一个整数。");
return;
}
if (parseInt(newVal) == 0) {
$a("数量必须大于0,若要删商品,请点操作中的‘删除’。");
return;
}
showBgProc();
$.post("/ajax.ashx?action=addtocart&t=" + Math.random(), {
pid: _pid,
quti: newVal,
atts: _attrs
}, function(msg) {
if (gav(msg, "state") == "1") {
if (confirm("数量修改成功,是否马上刷新页面查看购物车结果?\n\n是 - 刷新页面查看结果\n否 - 保留当前页面状态")) {
locations.href = "cart.aspx?t=" + Math.random();
} else {
showBgProc(false);
$(src).hide();
}
} else {
$a(msg);
showBgProc(false);
}
});
}
function delCartProduct(src, _pid, _atts) {
showBgProc();
var _quti = 0;
$.post("/ajax.ashx?action=addtocart&t=" + Math.random(), {
pid: _pid,
atts: _atts
}, function(msg) {
if (gav(msg, "state") == "1") {
if (confirm("商品已删除,是否马上刷新页面查看结果?\n\n\r\n是 - 刷新页面查看结果\n否 - 保留当前页面状态")) {
locations.href = "cart.aspx?t=" + Math.random();
}
} else {
$a(gav(msg, "msg"));
}
showBgProc(false);
});
}
/********************
* 清空购物车
* src : 触发事件的源对象
* _pid : 产品ID
* 回应 : xml
********************/
function changeQuantity(src, _pid) {
var newVal = $(src).parent().find("input").attr("value");
if (!/^\d+$/.test(newVal)) {
$a("数量必须是一个整数。");
return;
}
if (parseInt(newVal) == 0) {
$a("数量必须大于0,若要删商品,请点操作中的‘删除’。");
return;
}
showBgProc();
$.post("/ajax.ashx?action=addtocart&t=" + Math.random(), {
pid: _pid,
quti: newVal
}, function(msg) {
if (gav(msg, "state") == "1") {
if (confirm("数量修改成功,是否马上刷新页面查看购物车结果?\n\n是 - 刷新页面查看结果\n否 - 保留当前页面状态")) {
locations.href = "cart.aspx?t=" + Math.random();
} else {
showBgProc(false);
$(src).hide();
}
} else {
$a(msg);
showBgProc(false);
}
});
}
function delCartProduct(src, _pid, _atts) {
showBgProc();
var _quti = 0;
$.post("/ajax.ashx?action=addtocart&t=" + Math.random(), {
pid: _pid,
atts: _atts
}, function(msg) {
if (gav(msg, "state") == "1") {
if (confirm("商品已删除,是否马上刷新页面查看结果?\n\n\r\n是 - 刷新页面查看结果\n否 - 保留当前页面状态")) {
locations.href = "cart.aspx?t=" + Math.random();
}
} else {
$a(gav(msg, "msg"));
}
showBgProc(false);
});
}
function cancelOrder(src, _orderNo) {
showBgProc();
$.post("/ajax.ashx?action=cancelorder&t=" + Math.random(), {
no: _orderNo
}, function(msg) {
if (gav(msg, "state") == "1") {
$(src).parent().parent().parent().find("td[name=orderstate]").html("已取消");
$(src).hide();
} else {
$a("取消订单操作失败。
非‘待审核’状态、已锁定等订单不可取消。
");
}
showBgProc(false);
});
}
function hits(_oid, _mark) {
$.post("/ajax.ashx?action=hits&t=" + Math.random(), {
oid: _oid,
mark: _mark
})
}
function postComment(src, _oid, _mark) {
showProc(src);
var _content = $tv("txtCmtContent");
var _verCode = $tv("txtCmtVerCode");
if (_content == "") {
$a("内容必填。");
showProc(src, false);
return;
}
if ($g("txtVerCode") != null && s_verCode == "") {
$a("验证码不可空。");
showProc(src, false);
return;
}
$.post("/ajax.ashx?action=postcomment&t=" + Math.random(), {
content: _content,
oid: _oid,
verCode: _verCode,
mark: _mark
}, function(msg) {
var sta = gav(msg, "state");
var sMsg = gav(msg, "msg");
if (sta == "") {
$a(msg, -1);
} else if (sta == "2") {
$a(sMsg, 1);
emptyText('tbCmt');
} else if (sta == "1") {
var sTime = gav(msg, "time");
var sUsername = gav(msg, "username");
var sIp = gav(msg, "ip");
var sComment = gav(msg, "comment");
var sfeedback = gav(msg, "feedback");
var num = gav(msg, "num");
var htmlFmt = ""
+""
+ "{$username$}说:
{$content$}发表于:{$time$}
"
+ "管理员回复:
{$feedback$}
"
+ "
";
var sHtml = htmlFmt
.replace("{$username$}", sUsername)
.replace("{$ip$}", sIp)
.replace("{$time$}", sTime)
.replace("{$feedback$}", sfeedback)
.replace("{$content$}", sComment);
var oldComments=$j("divComments").html();
if(oldComments=="暂无评论")
{
oldComments="";
}
$j("divComments").html(sHtml + oldComments);
$j("spCommentCount").html(num);
$a(sMsg, 1);
emptyText('tbCmt')
} else {
$a(sMsg);
}
showProc(src, false);
});
}
function writeComment(_oid, _mark) {
$.post("/ajax.ashx?action=getcomment&t=" + Math.random(), {
oid: _oid,
mark: _mark
}, function(msg) {
var iCount = $(msg).find("count").text();
$j("spCommentCount").html(iCount);
var commtns = $(msg).find("comment");
var sHtml = "";
var htmlFmt = ""
+""
+ "{$username$}说:
{$content$}发表于:{$time$}
"
+ "管理员回复:
{$feedback$}
"
+ "
";
for (var i = 0; i < commtns.length; ++i) {
var jCmt = $(commtns[i]);
var sUsername = jCmt.find("username").text();
var sContent = jCmt.find("content").text();
var sIp = jCmt.find("ip").text();
var sTime = jCmt.find("inputTime").text();
var sfeedback = jCmt.find("feedback").text();
sHtml += htmlFmt
.replace("{$username$}", sUsername)
.replace("{$ip$}", sIp)
.replace("{$time$}", sTime)
.replace("{$content$}", sContent)
.replace("{$feedback$}", sfeedback);
}
if (sHtml.length > 0) {
$j("divComments").html(sHtml);
} else {
$j("divComments").html("暂无评论");
}
});
}
function addHistory(_oid, _mark) {
$.get("/ajax.ashx?action=addhistory&t=" + Math.random(), {
oid: _oid,
mark: _mark
});
}
function getHistory(_mark) {
$.post("/ajax.ashx?action=gethistory&t=" + Math.random(), {
mark: _mark
}, function(msg) {
if (msg.length == 0) {
msg = " 无浏览历史";
}
$j("divHistoryCntr").html(msg+"");
});
}
function getHits(_oid, _mark) {
$.post("/ajax.ashx?action=gethits", {
mark: _mark,
oid: _oid
}, function(msg) {
$j("cntrHits").html(msg);
});
}
function submitHelpUse(src, _oid) {
showProc(src);
var _notice = $("input[name=use]:checked").val();
$.post("/ajax.ashx?action=helpuseful&t=" + Math.random(), {
oid: _oid,
notion: _notice
}, function(msg) {
if (gav(msg, "state") == "0") {
$a(gav(msg, "msg"));
} else {
$a(gav(msg, "msg"), 1);
getHelpStatic(_oid);
}
showProc(src, false);
});
}
function getSimilarArticle(_sid) {
$.post("/ajax.ashx?action=getsmilararticle&t=" + Math.random(), {
sid: _sid
}, function(msg) {
$j("cntrSimilarArticle").html(msg);
});
}
function getLastArticle() {
$.post("/ajax.ashx?action=getlastarticle", function(msg) {
$j("cntrLastArticle").html(msg);
});
}
function cleanHistory(_mark, key) {
$.post("/ajax.ashx?action=cleanhistory", {
mark: _mark
}, function(msg) {
// $j("divHistoryCntr").html("清除最近浏览过的产品
无浏览历史
");
$j("divHistoryCntr").html("
无浏览历史");
});
}
function subscription(src, elmId) {
if (elmId == null) {
elmId = "txtSubscriptionEmail";
}
var _email = $.trim($j(elmId).val());
var ptn = /\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/;
if (_email.length == 0) {
$a("E-Mail 不可为空");
$j(elmId).focus();
return false;
}
if (!ptn.test(_email)) {
$a("E-Mail 格式错误。");
$j(elmId).focus();
return false;
}
showProc(src);
$.post("/ajax.ashx?action=subscription&t=" + Math.random(), {
email: _email
}, function(msg) {
var sta = gav(msg, "state");
var sMsg = gav(msg, "msg");
if (sta == "1") {
$a(sMsg, 1);
} else {
$a(sMsg);
}
showProc(src, false);
});
}
function userFeedback(src) {
var _title = $tv("txtFdTitle");
var _shortDesc = $tv("txtFdShortDesc");
if (_title.length == 0 || _shortDesc.length == 0) {
$a("内容或标题不可为空。");
return false;
}
showBgProc(true, "正在提交...");
$.post("/ajax.ashx?action=userfeedback&t=" + Math.random(), {
title: _title,
shortDesc: _shortDesc
}, function(msg) {
var sta = gav(msg, "state");
var sMsg = gav(msg, "msg");
if (sta == "1") {
showMsgPage("
您的意见提交成功,感谢您的意见,有您的支持,我们会做得更好。", 1, "/user/faq.aspx", "意见/反馈", "/user/faq.aspx");
return;
} else if (sMsg.length > 0) {
$a(sMsg);
} else {
$a(msg);
}
showBgProc(false);
});
}
function checkAuthority(_authIDs, _title) {
$.post("/ajax.ashx?action=checkauthority&t=" + Math.random(), {
authIDs: _authIDs
}, function(msg) {
if (msg == "1") {
$j("div___________Perm").hide();
document.oncontextmenu = function() { return true; };
document.onselectstart = function() { return true; };
} else {
showMsgPage("您不具有查看 " + _title + " 的权限。");
return;
}
});
}
function changeFavColumn(src, itemTabId) {
var _ids = getCheckedVal(itemTabId);
if (_ids.length == 0) {
$a("无选中项。");
return;
}
showProc(src);
$.post("/ajax.ashx?action=changefavcolumn&t=" + Math.random(), {
ids: _ids,
targetId: src.value
}, function(msg) {
var sta = gav(msg, "state");
var sMsg = gav(msg, "msg");
if (sta == "1") {
locations.reload();
} else {
//alert(sMsg);
}
});
showProc(src, false);
}
function getRecommentProductByHistory() {
$.post("/ajax.ashx?action=GetRecommentProductByHistory&t=" + Math.random(), {
}, function(msg) {
var jO = $j("divHistoryRecommentCntr");
if (msg.length == 0) {
jO.remove();
} else {
jO.html(msg);
}
});
}
function getRecommentProjectByHistory(_oid) {
$.post("/ajax.ashx?action=GetRecommentProjectByHistory&t=" + Math.random(), {
oid: _oid
}, function(msg) {
var jO = $j("divHistoryRecommentCntr");
if (msg.length == 0) {
jO.remove();
} else {
jO.html(msg);
}
});
}
function getRelevantSales(_oid) {
$.post("/ajax.ashx?action=GetRelevantSales&t=" + Math.random(), {
oid: _oid
}, function(msg) {
var jO = $j("divRelevantSalesCntr");
if (msg.length == 0) {
jO.remove();
} else {
jO.html(msg);
}
});
}
function getRelevantViewed(_oid) {
$.post("/ajax.ashx?action=GetRelevantViewed&t=" + Math.random(), {
oid: _oid
}, function(msg) {
var jO = $j("divRelevantViewedCntr");
if (msg.length == 0) {
jO.remove();
} else {
jO.html(msg);
}
});
}
//浏览服务的历史记录
function getRelevantViewedProject(_oid) {
$.post("/ajax.ashx?action=GetRelevantViewedProject&t=" + Math.random(), {
oid: _oid
}, function(msg) {
var jO = $j("divRelevantViewedCntr");
if (msg.length == 0) {
jO.remove();
} else {
jO.html(msg);
}
});
}
function delInitationlog(src, itemTabId) {
var _ids = getCheckedVal(itemTabId);
if (_ids.length == 0) {
$a("无选中项。");
return;
}
showBgProc();
$.post("/ajax.ashx?action=DelInitationlog&t=" + Math.random(), {
ids: _ids
}, function(msg) {
if (gav(msg, "state") == "1") {
var chks = $j(itemTabId).find("input[name=item]:checked");
chks.each(function(i) {
$(this).parent().parent().remove();
});
} else {
$a(gav(msg, "msg"));
}
showBgProc(false);
});
}
function sendInvitation(src) {
var jSrc = $j(src);
var sEmail = $j("txtEmail").val();
if (sEmail == null || sEmail.length == 0) {
$a("电子邮箱地址不可为空。");
return;
}
if (!PTN_EMAIL.test(sEmail)) {
$a("电子邮箱地址格式不正确。");
return;
}
showProc(src);
$.post("/ajax.ashx?action=SendInvitation&t=" + Math.random(), {
_email: sEmail
}, function(msg) {
var sta = gav(msg, "state");
var sMsg = gav(msg, "msg");
if (sta == "1") {
showMsgPage(sMsg, 1, "/user/InviteUserList.aspx", "邀请函列表", "/user/InviteUserList.aspx");
} else {
$a(sMsg);
showProc(src, false);
}
});
}
//填充报告分类
function fillReportCategories() {
$.get("/ajax.ashx?action=GetReportCategories&t=" + Math.random(), function(msg) {
var arrCat = msg.split("$$");
var sOptHtml = "
";
for (var i = 0; i < arrCat.length; ++i) {
sOptHtml += "
";
}
$j("RPT_tdCats").html("
");
});
}
//填充留言分类
function fillLeavewordCategories() {
$.get("/ajax.ashx?action=GetLeavewordCategories&t=" + Math.random(), function(msg) {
var arrCat = msg.split("$$");
var sOptHtml = "
";
for (var i = 0; i < arrCat.length; ++i) {
sOptHtml += "
";
}
$j("LEAVEWORD_tdCats").html("
");
});
}
//发送留言
function sendLeaveword(src) {
var sCat = $j("LEAVEWORD_cats").val();
var sTitle = $v("LEAVEWORD_txtTitle");
var sTel = $v("LEAVEWORD_txtTel");
var smobiles = $v("LEAVEWORD_txtmobiles");
var sContact = $v("LEAVEWORD_txtContact");
var sEmail = $v("LEAVEWORD_txtEmail");
var sShortDesc = $v("LEAVEWORD_txtShortDesc");
var err = "";
if (sTitle == "") {
err += "
标题不可为空";
}
if (sContact == "") {
err += "
联系人不可为空";
}
if (sEmail == "") {
err += "
电子邮箱地址不可为空";
}
else if (!PTN_EMAIL.test(sEmail)) {
err += "
电子邮箱地址格式错误";
}
if (sCat == "") {
err += "
留言类型必选";
}
if (err.length > 0) {
$a(err);
return;
}
showProc(src);
$.post("/ajax.ashx?action=SendLeaveword&t=" + Math.random(), {
title: sTitle,
cat: sCat,
contact: sContact,
email: sEmail,
shortDesc: sShortDesc,
tel: sTel,
mobiles: smobiles
}, function(msg) {
var sta = gav(msg, "state");
var sMsg = gav(msg, "msg");
if (sta == "1") {
$a(sMsg, 1);
} else {
$a(sMsg);
}
showProc(src, false);
});
}
function submitOrder(src, _oid) {
showProc(src);
var _contact = $j("txtContact").val();
var _mobiles = $j("txtmobiles").val();
var _email = $j("txtEmail").val();
var _code = $j("txtcode").val();
var _content = $j("txtContent").val();
var errorMsg = "";
if (_contact.length == 0 || _contact == "请填写联系人") {
errorMsg += "
联系人不可为空
";
}
if (_mobiles.length == 0) {
errorMsg += "
手机不可为空
";
}
var ptns = /^\d{11,13}$/;
if (_mobiles.length > 0 && !ptns.test(_mobiles)) {
errorMsg += "
手机格式错误
";
}
var ptn = /\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/;
if (_email.length > 0 && !ptn.test(_email)) {
errorMsg += "
E-Mail格式错误
";
}
if (_content.length == 0 || _content == "请填写您要咨询的信息") {
errorMsg += "
请填写您要咨询的信息不可为空
";
}
if (_code.length == 0 || _code == "请填写正确的验证码") {
errorMsg += "
请填写正确的验证码
";
}
if (errorMsg.length > 0) {
$a(errorMsg);
showProc(src, false);
return;
}
$.post("/ajax.ashx?action=submitorder&t=" + Math.random(), {
oid: _oid,
contact: _contact,
mobiles: _mobiles,
code:_code,
content: _content
}, function(msg) {
var sta = gav(msg, "state");
var sMsg = gav(msg, "msg");
if (sta == "1") {
$a(sMsg, 1);
emptyText('tbForm1');
} else {
$a(msg);
emptyText('tbForm1');
}
});
showProc(src, false);
}
/*加盟商在线下单*/
function sendGetProductsNotify(src) {
var _productColumn = $j("ddlProductsColumns").val();
var _searchText = $j("txtSearch").val();
if (_searchText == "关键词") { _searchText = ""; }
//showProc(src);
$.post("/ajax.ashx?action=sendGetProductsByColumn&t=" + Math.random(), {
columnID: _productColumn,
searchText: _searchText
}, function(msg) {
//创建下拉表单
InitDropdownlist(document.getElementById("PackageSelectList"), "请选择关联资讯", "0", msg);
});
}
//设置产品数据源
function InitDropdownlist(sel, defaulttext, defaultvalue, arry) {
//1\清除所有的数据源
var len = sel.options.length;
for (i = 0; i < len; i++) {
sel.remove(0);
}
//2\设置一个默认值
//sel.add(new Option(defaulttext, defaultvalue));
//3\制作数据源,键值对中间用$$分开,||作为键值对之间的分割符
var ary = arry.split("||");
len = ary.length;
if (len) {
for (i = 0; i < len-1; i++) {
text_value = ary[i].split("$$");
text = text_value[1];
value = text_value[0];
sel.add(new Option(text, value));
}
}
}
/******************************************************************************
* filename: Common.js
* Include Modul Scripting
*******************************************************************************/
/********************
* 帮助中心详细页加载脚本
********************/
function helpLoad() {
hits(OBJ_ID, MARK);
getHits(OBJ_ID, MARK);
// getHelpStatic(OBJ_ID);
helpSelectCurrentPosition(SID);
}
/********************
* 根据当前方案ID,使帮助中心左边选择对应的分类
********************/
function helpSelectCurrentPosition(SID) {
var lis = $(".pageMenu .pageErjiNav").find("li");
for (var i = 0; i < lis.length; ++i) {
if ($(lis[i]).attr("sid") == SID) {
$(lis[i]).addClass("cur");
break;
}
}
$(".ty-menu li[sid='" + SID + "']").addClass("cur")
}
/********************
* 资讯详细页加载脚本
********************/
function newsLoad() {
hits(OBJ_ID, MARK);
getHits(OBJ_ID, MARK);
writeComment(OBJ_ID, MARK);
getLastArticle();
getHistory(MARK);
addHistory(OBJ_ID, MARK);
}
/********************
* 根据当前请求的分类SID,使资讯中心左边选择对应的分类
********************/
function newsSelectCurrentPosition(SID) {
$("div.pageMenu .pageErjiNav li[sid='" + SID + "'],div.pageMenu .pageErjiNav li a[sid='" + SID + "']").addClass("cur")
}
/********************
* 资讯详细页加载脚本
********************/
function productLoad() {
productSelectCurrentPosition(SID);
hits(ProductID, "product");
// writeComment(ProductID, MARK);
// addHistory(ProductID, MARK);
initImages(ProductID);
initImagesxgty(ProductID);
// getVideo(VIDEO_KEY);
// getHistory("product");
getRecommentProductByHistory();
getRelevantViewed(ProductID);
}
///********************
//* 资讯详细页加载脚本
//********************/
//function downLoad() {
// hits(DownloadID, "download");
// writeComment(DownloadID, MARK);
// addHistory(DownloadID, MARK);
// getHistory("download");
// getRelevantViewedDownload(DownloadID);
//}
/********************
* 方案服务详细页加载脚本
********************/
function projectLoad() {
productSelectCurrentPosition(SID);
hits(ProjectID, "project");
writeComment(ProjectID, MARK);
addHistory(ProjectID, MARK);
getHistory("project");
getRecommentProjectByHistory(ProjectID);
getRelevantViewedProject(ProjectID);
}
/********************
* 产品详细页选择产品的颜色,尺寸等(愿望夹)
********************/
/********************
* 产品详细页选择产品的属性时,显示相关的图片
********************/
function getAttrValesPhotos(_oid) {
// alert(_oid);
$.post("/ajax.ashx?action=attrValuesPhotos&t=" + Math.random(), {
oid: _oid
}, function (msg) {
//alert(msg);
// var sta = gav(msg, "state");
// var s = gav(msg, "msg");
$j("img_list").html(msg);
$j("img_listty").html(msg);
});
}
/********************
* 产品详细页切换‘相关产品’,‘相关购买产品’,‘相关浏览器’选项卡
* src : 触发事件的源
********************/
function switchProdTab(src) {
var jSrc = $(src);
var targetId = jSrc.attr("target_id");
var selectedElm = jSrc.parent().find("a[class=cr]");
if (selectedElm.attr("target_id") == targetId) {
return;
}
selectedElm.removeClass("cr");
jSrc.addClass("cr");
$j("cntrRelevantProd>div").hide();
$j(targetId).show();
}
/********************************************* 代理加盟:start *********************************/
/********************
* 代理加盟详细页加载脚本
********************/
function agentLoad() {
hits(OBJ_ID, MARK);
getHits(OBJ_ID, MARK);
getAgentHelpStatic(OBJ_ID);
getAd(MARK, "cntrAd");
}
/********************************************* 代理加盟:end *********************************/
/********************
* 保存用户名
********************/
function keepUsername(keep, emailElmId) {
var sName = $j(emailElmId).attr("value");
if (keep != null && sName != undefined) {
if (keep) { $cookie("__oran__k_username", sName, 99999999999) }
else { $cookie("__oran__k_username", false) };
return;
}
if (!$j("chkKeep").attr("checked")) { return };
if (sName != undefined) { $cookie("__oran__k_username", sName, 99999999999) };
}
/********************
* 根据ID获取文本框内容并去除两边空格
* src : 触发事件的源对象
********************/
function toggleJobDetail(src, _skinPath) {
var detail = $(src).parent().next();
var jH = $(src).parent();
if (detail.is(":visible")) {
detail.slideUp(80);
jH.css({ "background": "url(" + _skinPath + "img/ico14.gif) no-repeat 0 5px" });
} else {
detail.slideDown(80);
jH.css({ "background": "url(" + _skinPath + "img/ico13.gif) no-repeat 0 5px" });
}
}
/********************
* 显示所有产品分类
* showBg : (可选)是否显示灰度背景,默认显示
********************/
function showAllColumns(showBg) {
if (showBg == null) {
showBg = true;
}
if (showBg) {
showFullBg();
}
setCM("prod_all_columns");
relocations("prod_all_columns");
}
/********************
* 隐藏所有产品分类
* showBg : (可选)是否隐藏灰度背景,默认隐藏
********************/
function hideAllColumns(showBg) {
if (showBg == null) {
showBg = true;
}
if (showBg) {
hideFullBg();
}
$j("prod_all_columns").fadeOut(80);
}
/********************
* 显示正在处理中动画,点全屏
* show : (可选)显示或隐藏,默认显示
********************/
function showBgProc(show, msg) {
if (msg == null) {
msg = "正在处理...";
}
var sElmId = "oran_div_processing";
var oImg = $j(sElmId);
if (oImg.length == 0) {
$(document.body).append("
"
+ "
" + msg + "
");
}
oImg = $j(sElmId);
if (show == null) {
show = true;
}
if (show) {
showFullBg("oran_full_bg_2");
setCM(sElmId);
relocations(sElmId);
oImg.fadeIn(80);
} else {
oImg.fadeOut(80);
hideFullBg("oran_full_bg_2");
}
}
/********************
* 根据key获取 ajax对象节点值getAjaxVal
* xMsg : xml对象
* key : 节点的属性key
********************/
function gav(xMsg, key) {
var jMsg = $(xMsg);
var s = $(jMsg.find("node[key=" + key + "]")).text();
return s;
}
/********************
* 设置对象的样式名SetClass
* jObj : jQuery对象
* className : 样式类名
********************/
function sc(jObj, className) {
jObj.attr("class", className);
}
function ddlSecQus_Changed(src, elmId) {
if (elmId == null) {
elmId = "txtSecQus";
}
var jTxt = $j(elmId);
if (src.value == "") {
jTxt.show();
jTxt.attr("value", "").focus();
} else {
jTxt.hide();
}
jTxt.attr("value", src.value);
}
/********************
* 弹出我的收货地址层
* showBg : (可选)是否显示灰度背景,默认显示
********************/
function showMyAddress(showBg) {
if (showBg == null) {
showBg = true;
}
if (showBg) {
showFullBg("oran_full_bg", false);
}
var jFrm = $("#divCartMyAddr > iframe");
jFrm.attr("src", "layer/MyAddress.aspx");
setCM("divCartMyAddr");
//relocations("divCartMyAddr");
}
/********************
* 隐藏我的收货地址层
********************/
function hideMyAddress() {
top.window.hideFullBg("oran_full_bg");
$(top.window.document).find("#divCartMyAddr").fadeOut(80);
}
/********************
* 设置我的收货地址层
* src : 触发事件的源对象
********************/
function setMyAddr(src) {
var jCntr = $(src).parent().parent().parent();
var chnName = jCntr.find("span[name=chnName]").html();
var province = jCntr.find("span[name=province]").html();
var city = jCntr.find("span[name=city]").html();
var address = jCntr.find("span[name=address]").html();
var zipCode = jCntr.find("span[name=zipCode]").html();
var tel = jCntr.find("span[name=tel]").html();
var mobiles = jCntr.find("span[name=mobiles]").html();
var email = jCntr.find("span[name=email]").html();
var jTopDoc = $(top.window.document);
jTopDoc.find("#txtAddrName").val(chnName);
jTopDoc.find("#txtInvoiceTitle").val(chnName);
jTopDoc.find("#txtEmail").val(email);
jTopDoc.find("#txtAddrAddr").val(address);
jTopDoc.find("#txtAddrZip").val(zipCode);
jTopDoc.find("#txtAddrTel").val(tel);
jTopDoc.find("#txtAddrmobiles").val(mobiles);
$(top.window.document).find("#regionAddr_hdnPrtRegion").val(province);
$(top.window.document).find("#regionAddr_hdnChdRegion").val(city);
top.window.regionAddr_initSelectedItems();
hideMyAddress();
}
function checkPinForm() {
var newPin = $j("txtNewPin").val();
var newSecAsr = $j("txtSecAsr").val();
var newEmail = $j("txtNewEmail").val();
if (newPin.length == 0 && newSecAsr == 0 && newEmail.length == 0) {
$a("未有任何修改项", 2);
return false;
} else {
return true;
}
}
/********************
* 切换订单选项卡
********************/
function switchOrderTab(src) {
var jUl = $j("ulOrderTypeTabs");
jUl.find("a").removeClass("cur b cblack f14");
$(src).addClass("cur b cblack f14").blur();
}
/********************
* 搜索订单
********************/
function searchOrder() {
var orderNo = $tv("txOrderNo");
var startDate = $tv("txtStartDate");
var endDate = $tv("txtEndDate");
var orderState = $tv("ddlOrderStates");
var orderType = $("#ulOrderTypeTabs").find(".cur").attr("ordertype");
if (orderNo.length == 0 && startDate.length == 0 && endDate.length == 0 && orderState.length == 0) {
$a("至少需要一个查询条件。");
return;
}
var flag = false;
var url = "orderlist.aspx?";
if (orderNo.length > 0) {
url += "no=" + orderNo;
flag = true;
}
if (startDate.length > 0) {
if (flag) {
url += "&";
}
url += "start=" + startDate;
flag = true;
}
if (endDate.length > 0) {
if (flag) {
url += "&";
}
url += "end=" + endDate;
flag = true;
}
if (orderState.length > 0) {
if (flag) {
url += "&";
}
url += "state=" + orderState;
flag = true;
}
if (orderType != undefined && orderType.length > 0) {
if (flag) {
url += "&";
}
url += "type=" + orderType;
flag = true;
}
locations.href = url;
}
//function searchFav() {
// var kwd = $tv("txtFavKwd");
// var clnId = $tv("ddlFavClns");
// var flag = false;
// var url = "MyFavorites.aspx?";
// if (kwd.length > 0) {
// url += "kwd=" + encodeURI(kwd);
// flag = true;
// }
// if (clnId.length > 0) {
// if (flag) {
// url += "&";
// }
// url += "oid=" + clnId;
// flag = true;
// }
// locations.href = url;
//}
//function customizePriceRange(src) {
// var jLower = $(src).parent().find("input:eq(0)");
// var jUpper = $(src).parent().find("input:eq(1)");
// var lower = parseInt(jLower.val());
// var upper = parseInt(jUpper.val());
// var url = "/product/list.aspx?";
// if (!lower) {
// lower = 0;
// }
// if (!upper) {
// upper = 0;
// }
// if (lower == 0 && upper == 0) {
// $a("至少需要一个价格范围。");
// jLower.focus();
// return;
// }
// if (lower > 0 && upper > 0) {
// url += "PriceLower=" + lower + "&PriceUpper=" + upper;
// } else if (lower > 0) {
// url += "PriceUpper=" + lower;
// } else if (upper > 0) {
// url += "PriceLower=" + upper;
// }
// locations.href = url;
//}
function copyUrl(_mark) {
var jLayer = $j("div_nsw_copy_url");
var s = locations.href;
if (jLayer.length == 0) {
var sHtml = "
"
+ "
拷贝链接地址
"
+ "
"
+ "
拷贝本URL从您的博客或者网站链接到本" + (_mark == "product" ? "产品" : "文章") + "
"
+ "
"
+ "
"
+ "
"
+ "
";
$(document.body).append(sHtml);
}
setCM("div_nsw_copy_url");
relocations("div_nsw_copy_url");
showFullBg("div_nsw_copy_url_bg");
}
function copyArticleUrl() {
var s = $("#div_nsw_copy_url .cont textarea").val();
window.clipboardData.setData("Text", s);
$a("本网页地址已复制到粘帖板。", 1);
}
function initImages(oid) {
var fmt = "
";
var oHtml = "";
for (var i = 0; i < ARR_IMG_PATH.length; ++i) {
if (i == 0) {
oHtml = fmt.replace(/\{\$co\$\}/ig, "class=now").replace(/\{\$path\$\}/ig, ARR_IMG_PATH[i]);
}
else {
oHtml += fmt.replace(/\{\$path\$\}/ig, ARR_IMG_PATH[i]);
}
}
$("#img_list").html(oHtml);
}
function initImagesxgty(oid) {
var fmt = "
";
var oHtml = "";
for (var i = 0; i < ARR_IMG_PATH.length; ++i) {
if (i == 0) {
oHtml = fmt.replace(/\{\$path\$\}/ig, ARR_IMG_PATH[i]);
}
else {
oHtml += fmt.replace(/\{\$path\$\}/ig, ARR_IMG_PATH[i]);
}
}
$("#img_listty").html(oHtml);
}
function setSelectedImg(src) {
$(src).parent().find("a").removeClass("cur");
$(src).addClass("cur");
}
function viewBigImage(oid) {
var curPath = window.locations.host;
var url = "/product/gallery.aspx?oid=" + oid;
if (curPath != "undefined") {
url += "&selectedpath=http://" + curPath;
}
window.open(url);
}
function switchImage(src) {
var jImgA = $(".MagicZoom");
var jMainImg = jImgA.find("img:eq(0)");
var jMainImg2 = $(".MagicZoomBigImageCont img");
var targetPath = $(src).find("img").attr("srcimg");
jImgA.attr("href", targetPath);
jMainImg.attr("src", targetPath);
jMainImg2.attr("src", targetPath);
// alert(targetPath);
// $("#ulImgs>li>a").removeClass("cur");
// $(src).addClass("cur").blur();
$j("btnShowOrgiImg").click(function () {
window.open(targetPath, "orgiImg");
});
}
function initViewPhoto() {
$j("imgBig").attr("src", $("#ulPhotos>li>a>img").attr("src"));
$("#ulPhotos>li>a:eq(0)").addClass("cur");
resetNextPrevious($("#ulPhotos>li>a:eq(0)").get());
}
function viewPhoto(src) {
$j("imgBig").attr("src", $(src).find("img").attr("src"));
$("#ulPhotos>li>a").removeClass("cur");
$(src).addClass("cur").blur();
resetNextPrevious(src);
}
function resetNextPrevious(curObj) {
var jPre = $(curObj).parent().prev();
if (jPre.length == 0) {
jPre = $("#ulPhotos>li:last");
}
var jNext = $(curObj).parent().next();
if (jNext.length == 0) {
jNext = $("#ulPhotos>li:first");
}
$j("btnPrev").removeAttr("onclick").click(function () {
viewPhoto(jPre.find("a").get());
});
$j("btnNext").removeAttr("onclick").click(function () {
viewPhoto(jNext.find("a").get());
});
}
function mailArticle(objType, oid) {
var jCntr = $j("mailArticle");
if (jCntr.length == 0) {
var sHtml = "
";
$(document.body).append(sHtml);
}
setCM('mailArticle');
showFullBg("mailArticle_bg", null, null, null, null, null, function () { $("#mailArticle iframe").css("visibility", "visible"); });
relocations("mailArticle");
}
function mailProduct(objType, oid) {
$j("mailArticle").html("
");
setCM('mailArticle');
showFullBg("mailArticle_bg", null, null, null, null, null, function () { $("#mailArticle iframe").css("visibility", "visible"); });
relocations("mailArticle");
}
function mailDownload(objType, oid) {
$j("mailArticle").html("
");
setCM('mailArticle');
showFullBg("mailArticle_bg", null, null, null, null, null, function () { $("#mailArticle iframe").css("visibility", "visible"); });
relocations("mailArticle");
}
function hideMailAtricle() {
$(top.document.getElementById("mailArticle")).fadeOut(80);
$(top.document.getElementById("mailArticle_bg")).fadeOut(80);
top.showDdl();
}
function contractExtend(src, skinPath) {
var jSrc = $(src);
var jDiv = jSrc.parent().next();
var alt;
var icon;
if (jSrc.attr("alt") == "收缩") {
alt = "展开";
icon = "img/ico15_.gif";
jDiv.slideUp(80);
} else {
alt = "收缩";
icon = "img/ico15.gif";
jDiv.slideDown(80);
}
jSrc.attr({ src: skinPath + icon, alt: alt });
}
function showLayer(elmId, bgElmId, behavior) {
setCM(elmId);
relocations(elmId);
showFullBg(bgElmId, null, null, null, null, null, behavior);
}
function hideLayer(elmId, bgElmId) {
$j(elmId).fadeOut(80);
hideFullBg(bgElmId);
}
//function showAdvanNewsSearch() {
// $j("div_nsw_news_advan_cntr").find("iframe").attr("src", "/news/AdvanSearch.aspx");
// showLayer('div_nsw_news_advan_cntr', 'div_nsw_news_advan_bg', function() { $j("div_nsw_news_advan_cntr").find("iframe").css("visibility", "visible"); });
//}
function hideAdvanNewsSearch() {
$(top.document).find("#div_nsw_news_advan_cntr").fadeOut(80);
$(top.document).find("#div_nsw_news_advan_bg").fadeOut(80);
top.showDdl();
}
function advanNewsSearch() {
var url = "/search/news.aspx?type=";
url += $g("rdoFuzzy").checked ? "1" : "2";
top.locations.href = SearchObjectByGet("ddlFields,tg|ddlNewsColumns2,sid|txtKwd,kwd|txtStartDate,start|txtEndDate,end", url, true);
}
function contractExtendProdColumn(src, _skin) {
var jSrc = $(src);
var jDiv = jSrc.parent().parent().next();
var alt;
var icon;
if (jSrc.attr("alt") == "收缩") {
alt = "展开";
icon = "img/ico14.gif";
jDiv.slideUp(80);
} else {
alt = "收缩";
icon = "img/ico13.gif";
jDiv.slideDown(80);
}
jSrc.attr({ src: _skin + icon, alt: alt });
}
function resetOrderList(urlPara) {
var pos = urlPara.lastIndexOf('/');
urlPara = urlPara.substring(pos + 1);
var opts = $j("ddlOrderBy").find("option");
opts.each(function (i) {
if ($(opts[i]).attr("value") == urlPara) {
$(opts[i]).attr("selected", "selected");
}
});
}
function initNextPre() {
var jA = $j("pagerMain").find("a[class=oran_pg_pp]");
if (jA.length == 0) {
$j("btnPrePage").click(function () { $a("这已是第一页。"); });
} else {
var sHref = jA.attr("href");
$j("btnPrePage").click(function () {
locations.href = sHref;
});
}
var jA_2 = $j("pagerMain").find("a[class=oran_pg_np]");
if (jA_2.length == 0) {
$j("btnNextPage").click(function () { $a("这已是最后一页。"); });
} else {
var sHref_2 = jA_2.attr("href");
$j("btnNextPage").click(function () {
locations.href = sHref_2;
});
}
}
function increaseScroll(elmId) {
var i = 1;
var intVal1 = setInterval(function () { if (i > 320) window.clearInterval(intVal1); $g("img_list").scrollLeft += 14; i += 14; }, 1);
}
function decreaseScroll(elmId) {
var i = 1;
var intVal1 = setInterval(function () { if (i > 320) window.clearInterval(intVal1); $g("img_list").scrollLeft -= 14; i += 14; }, 1);
}
function payadScroll(hiddenId, shownId, maxId) {
var jShown = $j("payad_" + shownId);
var jHdden = $j("payad_" + hiddenId);
if (jShown.length == 0) {
jShown = $j("payad_" + maxId);
}
jHdden.fadeOut("80", function () {
jShown.show();
});
}
////显示报告对话框
//function showReport(src) {
// var jCnrt = $j("RPT_cntr");
// if (jCnrt.length == 0) {
// var sHtml = "
"
// + "
报告/纠错/举报
"
// + "
"
// + "
";
// $(document.body).append(sHtml);
// fillReportCategories();
// } //end if
// jCnrt.show();
// showFullBg("RPT____BG", null, null, null, null, null, function() { $j("RPT_cats").css("visibility", "visible"); });
// setCM("RPT_cntr");
// relocations("RPT_cntr");
//}
////显示留言对话框
//function showLeaveword(src) {
// var jCnrt = $j("LEAVEWORD_cntr");
// if (jCnrt.length == 0) {
// var sHtml = "
"
// + "
留言
"
// + "
"
// + "
";
// $(document.body).append(sHtml);
// fillLeavewordCategories();
// } //end if
// jCnrt.show();
// showFullBg("LEAVEWORD____BG", null, null, null, null, null, function() { $j("LEAVEWORD_cats").css("visibility", "visible"); });
// setCM("LEAVEWORD_cntr");
// relocations("LEAVEWORD_cntr");
//}
////显示直接付款对话框
//function showDirectPay(src) {
// var jCnrt = $j("DIR_PAY_cntr");
// if (jCnrt.length == 0) {
// var sHtml = "
"
// + "
付款
"
// + "
"
// + "
";
// $(document.body).append(sHtml);
// } //end if
// jCnrt.show();
// showFullBg("DIR_PAY____BG", null, null, null, null, null, function() { $j("DIR_PAY_ddlPayment").css("visibility", "visible"); });
// setCM("DIR_PAY_cntr");
// relocations("DIR_PAY_cntr");
//}
//在top对象里关闭层
function closeTopLayer(layerId) {
var j = $(top.document).find("#" + layerId);
j.fadeOut();
top.hideFullBg();
}
function getObjectOffset(src) {
var jSrc = $(src);
var offset = jSrc.offset();
var obj = { top: offset.top, left: offset.left, bottom: offset.top + jSrc.height(), right: offset.left + jSrc.width() };
return obj;
}
/********************
* 根据当前方案ID,使产品中心左边选择对应的分类
********************/
function productSelectCurrentPosition(SID) {
$(".inmenu li[sid='" + SID + "'],.inmenu li a[sid='" + SID + "'],div.soleft dd[sid='" + SID + "'],.pxq-right .pxq-plist li>a[sid='" + SID + "'],.pxq-right .pxq-plist .eej a[sid='" + SID + "'],.ty-menu li[sid='" + SID + "'],.pc-ej a[sid='" + SID + "']").addClass("cur")
}
//切换产品详细页选项卡
function switchAttrTab(src) {
var jSrc = $(src);
if (jSrc.attr("class") == "cur") {
return;
}
var targetItem = jSrc.attr("item_name");
$j("div__detail").hide();
$j("div__attr").hide();
$j("div__" + targetItem).show();
$(".prod_tab").find("a").removeClass("cur");
jSrc.addClass("cur");
}
//切换产品详细页扩展标签选项卡
function switchExtendAttrTab(src, n) {
var jSrc = src;
var temp = src.substring(src.length - 1, src.length);
for (var i = 0; i < n; i++) {
var tab = "detailvalue" + i;
var ttab = "detail" + i;
if (temp == i) {
$j(tab).show();
$j(ttab).addClass("status_on");
}
else {
$j(tab).hide();
$j(ttab).removeClass();
}
}
}
//切换产品标签内容分页
function switchExtendContentTab(src, n, m) {
var jSrc = src;
var temp = src.substring(src.length - 1, src.length);
for (var i = 0; i < n; i++) {
var tab = "contentvalue" + m + i;
var ttab = "content" + m + i;
if (temp == i) {
$j(tab).show();
$j(ttab).addClass("cur");
}
else {
$j(tab).hide();
$j(ttab).removeClass();
}
}
}
//填加友情连接
function AddApply(src) {
var s_Type = document.getElementById("TxtType").selectedIndex;
var s_Url = $tv("TxtUrl");
var s_Name = $tv("TxtName");
var s_PhotoPath = $tv("TxtPhotoPath");
var s_Content = $tv("TxtMsg");
var s_UserName = $tv("TxtUserName");
var s_phones = $tv("TxtTel");
var s_Email = $tv("TxtEmail");
var s_QQ = $tv("TxtQQ");
if (s_Url == "" || s_Url == "http://") {
$a("请输入网址!", "TxtUrl");
return;
}
if (s_Name == "") {
$a("请输入网站名称!", "TxtName");
return;
}
if (s_Content.length > 400) {
$a("网站简况不能大于400字!", "txtUsername");
return;
}
$.post("/ajax.ashx?action=apply&t=" + Math.random(), {
Type: s_Type,
Url: s_Url,
Name: s_Name,
PhotoPath: s_PhotoPath,
Content: s_Content,
UserName: s_UserName,
phones: s_phones,
Email: s_Email,
QQ: s_QQ
},
function(msg) {
if (gav(msg, "state") == "1") {
$a(gav(msg, "msg"));
}
else {
$a(gav(msg, "msg"));
}
;
});
}
//网站整体主导航选中样式 !!!!!!!!!主导航链接地址要小写,切勿大写!!!!!!!!!
$(function () {
/*如果没有各栏目的中心页面(如产品的中心页面index.aspx),
*就指定一个默认的替代导航选中
*一般用的最多的是资讯
*/
var newsDefault = "".toLowerCase();
var productDefault = "".toLowerCase();
var agentDefault = "".toLowerCase();
var helpDefault = "".toLowerCase();
var projectDefault = "".toLowerCase();
var downloadDefault = "".toLowerCase();
/*面包屑导航的判断
*
*/
var $plc = $("div.rtop");
var $plc2 = $("div.ntop");
var $tmp = $plc.size() ? $plc : $plc2;
var $locations = $tmp; //$tmp.size() ? $tmp : $pro;
//主导航的父级DIV
var $menu = $("div.header_btm .nav");
//面包屑导航的超链接
var $info = $locations.find("a");
//面包屑导航超链接的数量
var count = $info.size();
//判断MARK是否存在
if (!MARK) {
MARK = "";
}
//循环面包屑导航 倒序
for (var i = count - 1; i >= 0; i--) {
//取链接地址
var current = $info.eq(i).attr("href");
//取文本
var txt = $.trim($info.eq(i).text());
//截取"/"后面的链接
current = current.substring(current.lastIndexOf("/") + 1);
//如果截取到是空的话,一般就是最后一次循环还没有匹配到主导航的样式
if (current == "" || current == undefined) {
//判断MARK
//并查看是取默认MARK 还是取之前定义好的替代栏目导航
switch (MARK) {
case "product":
current = productDefault ? productDefault : MARK;
break;
case "news":
current = newsDefault ? newsDefault : MARK;
break;
case "help":
current = helpDefault ? helpDefault : MARK;
break;
default:
current = MARK;
break;
}
}
//主导航的匹配链接
var $a = $("div.header_btm .nav>li>a[href*='" + current + "']");
//主导航的匹配文字 [一般情况下是没有用的,有时候会碰到说是这个文字,但是链接确是另外一个,但是导航选中还是要加在文字上面]
//比如 二级分类是成功案例,但是它下面还有一个三级分类是经典案例,主导航上的是二级分类确标着三级分类的链接,这个文字就有用了
//况且这里还要先判断文字再判断链接
var $t = $("div.header_btm .nav>li>a:contains('" + txt + "')");
//最后一次循环txt是首页,往往主导航的第一个都是**首页,所以要判断一下
//判断文字
if ($t.size() && txt != "首页") {
$t.parent("li").addClass("cur").siblings("li").removeClass("cur");
return;
} else if ($a.size()) { //判断链接
$a.eq(0).parent("li").addClass("cur").siblings("li").removeClass("cur");
return;
}
}
//如果都没有主导航选中,给MARK加链接 各栏目首页 主要是产品首页没有面包屑导航,没有办法判断
if (!$("div.header_btm .nav>li.cur").size()) {
$("div.header_btm .nav>li>a[href*='" + MARK + "']").parent("li").addClass("cur").siblings("li").removeClass("cur");
//如果还没有主导航选中,给第一个加样式
if (!$("div.header_btm .nav>li.cur").size()) {
//$("div.hddown li:first").addClass("cur").siblings("li").removeClass("cur");
}
} else {
}
});
jQuery(document).ready(function ($) {
action();
});
function sssendLeaveword(src) {
var smobiles = $("#LEAVEWORD_txtmobiles").val(); //手机
var sContact = $("#LEAVEWORD_txtContact").val(); //姓名
var sEmail = $("#LEAVEWORD_txtEmail").val();
var sTitle = $("#LEAVEWORD_txtTitle").val();
var sDesc = $("#LEAVEWORD_txtDesc").val(); //留言
var err = "";
if (sContact == "" || sContact == "您的姓名") {
err += "
您的姓名不可为空";
}
if (smobiles == "" || smobiles == "您的电话") {
err += "
您的电话不可为空";
}
else {
var partten = /^1[34578]\d{9}$/;
if (!partten.test(smobiles)) {
err += "
手机号码格式不对";
}
}
if (sEmail == "" || sEmail == "电子邮箱") {
err += "
电子邮箱不可为空";
}
if (sDesc == "" || sDesc == "请详细描述您的建议、意见、问题等") {
err += "
请详细描述您的建议、意见、问题等不可为空";
}
if (err.length > 0) {
$a(err);
return;
}
showProc(src);
$.post("/ajax.ashx?action=SendLeaveword&t=" + Math.random(), {
email: sEmail,
contact: sContact,
mobiles: smobiles,
title: sTitle,
desc: sDesc
}, function (msg) {
var sta = gav(msg, "state");
var sMsg = gav(msg, "msg");
if (sta == "1") {
$a(sMsg, 1);
$("#LEAVEWORD_txtmobiles").val("您的电话");
$("#LEAVEWORD_txtContact").val("您的姓名");
$("#LEAVEWORD_txtEmail").val("电子邮箱");
$("#LEAVEWORD_txtDesc").val("请详细描述您的建议、意见、问题等");
} else {
$a(sMsg);
}
showProc(src, false);
});
}
function Leaveword(src) {
var smobiles = $("#txtmobiles").val(); //手机
var sContact = $("#txtContact").val(); //姓名
var sDesc = $("#txtDesc").val(); //留言
var err = "";
if (sContact == "" || sContact == "姓名") {
err += "
姓名不可为空";
}
if (smobiles == "" || smobiles == "手机") {
err += "
手机不可为空";
}
else {
var partten = /^1[34578]\d{9}$/;
if (!partten.test(smobiles)) {
err += "
手机号码格式不对";
}
}
if (sDesc == "" || sDesc == "留言") {
err += "
留言";
}
if (err.length > 0) {
$a(err);
return;
}
showProc(src);
$.post("/ajax.ashx?action=ZSJMLeaveword&t=" + Math.random(), {
contact: sContact,
mobiles: smobiles,
desc: sDesc
}, function (msg) {
var sta = gav(msg, "state");
var sMsg = gav(msg, "msg");
if (sta == "1") {
$a(sMsg, 1);
$("#LEAVEWORD_txtmobiles").val("姓名");
$("#LEAVEWORD_txtContact").val("手机");
$("#LEAVEWORD_txtDesc").val("留言");
} else {
$a(sMsg);
}
showProc(src, false);
});
}
//应聘
function AddJobApply(src) {
var oid = $("#hidoid").val();
var s_Name = $("#txtName").val();
var s_phones = $("#txtphones").val();
var s_Email = $("#txtemail").val();
var s_path = $("#imgPhotoPath_txt").val();
var s_desc = $("#txtdesc").val();
var err = "";
if (s_Name == "" || s_Name == "姓名:") {
alert("请填写联系人");
return false;
}
var ptns = /^1[34578]\d{9}$/;
if (!ptns.test(s_phones)) {
alert("电话号码错误" + s_phones); return false;
}
if (s_path.length == "" || s_path.indexOf("/UploadFiles/Others/") == -1) {
alert("请上传简历"); return false;
}
showProc(src);
$.post("/ajax.ashx?action=Jobapply&t=" + Math.random(), {
oid: oid,
path: s_path,
Name: s_Name,
desc: s_desc,
phones: s_phones,
Email: s_Email
},
function (msg) {
if (gav(msg, "state") == "1") {
alert("投递成功");
$("#txtName").val("姓名:");
$("#txtphones").val("电话:");
$("#txtemail").val("邮箱:");
$("#imgPhotoPath_txt").val("");
$("#txtdesc").val("备注:");
}
else {
alert(msg);
}
showProc(src, false);
});
}
function uploadFile(src, elmId, txt, toggle, folder, srcFilenameElmId, isSingle, targetFilePath) {
if (elmId == null)
elmId = "divFu";
var url = "/Job/Upload.aspx?"
url += "cntr=" + elmId;
url += "&txt=" + txt;
if (toggle)
url += "&toggle=yes";
if (folder != null)
url += "&folder=" + folder;
if (srcFilenameElmId != null && srcFilenameElmId.length > 0) {
url += "&srcfilenameelmid=" + srcFilenameElmId;
}
if (isSingle) {
url += "&single=yes";
}
if (targetFilePath) {
url += "&targetFilePath=" + targetFilePath;
}
$j(elmId).html("
")
console.log(elmId);
$j(elmId).css({ left: "375px", top: "86px" }).show();
}
/*
* jQuery JavaScript Library v1.3.2
* http://jquery.com/
*
* Copyright (c) 2009 John Resig
* Dual licensed under the MIT and GPL licenses.
* http://docs.jquery.com/License
*
* Date: 2009-02-19 17:34:21 -0500 (Thu, 19 Feb 2009)
* Revision: 6246
*/
(function(){var l=this,g,y=l.jQuery,p=l.$,o=l.jQuery=l.$=function(E,F){return new o.fn.init(E,F)},D=/^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,f=/^.[^:#\[\.,]*$/;o.fn=o.prototype={init:function(E,H){E=E||document;if(E.nodeType){this[0]=E;this.length=1;this.context=E;return this}if(typeof E==="string"){var G=D.exec(E);if(G&&(G[1]||!H)){if(G[1]){E=o.clean([G[1]],H)}else{var I=document.getElementById(G[3]);if(I&&I.id!=G[3]){return o().find(E)}var F=o(I||[]);F.context=document;F.selector=E;return F}}else{return o(H).find(E)}}else{if(o.isFunction(E)){return o(document).ready(E)}}if(E.selector&&E.context){this.selector=E.selector;this.context=E.context}return this.setArray(o.isArray(E)?E:o.makeArray(E))},selector:"",jquery:"1.3.2",size:function(){return this.length},get:function(E){return E===g?Array.prototype.slice.call(this):this[E]},pushStack:function(F,H,E){var G=o(F);G.prevObject=this;G.context=this.context;if(H==="find"){G.selector=this.selector+(this.selector?" ":"")+E}else{if(H){G.selector=this.selector+"."+H+"("+E+")"}}return G},setArray:function(E){this.length=0;Array.prototype.push.apply(this,E);return this},each:function(F,E){return o.each(this,F,E)},index:function(E){return o.inArray(E&&E.jquery?E[0]:E,this)},attr:function(F,H,G){var E=F;if(typeof F==="string"){if(H===g){return this[0]&&o[G||"attr"](this[0],F)}else{E={};E[F]=H}}return this.each(function(I){for(F in E){o.attr(G?this.style:this,F,o.prop(this,E[F],G,I,F))}})},css:function(E,F){if((E=="width"||E=="height")&&parseFloat(F)<0){F=g}return this.attr(E,F,"curCSS")},text:function(F){if(typeof F!=="object"&&F!=null){return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(F))}var E="";o.each(F||this,function(){o.each(this.childNodes,function(){if(this.nodeType!=8){E+=this.nodeType!=1?this.nodevalsue:o.fn.text([this])}})});return E},wrapAll:function(E){if(this[0]){var F=o(E,this[0].ownerDocument).clone();if(this[0].parentNode){F.insertBefore(this[0])}F.map(function(){var G=this;while(G.firstChild){G=G.firstChild}return G}).append(this)}return this},wrapInner:function(E){return this.each(function(){o(this).contents().wrapAll(E)})},wrap:function(E){return this.each(function(){o(this).wrapAll(E)})},append:function(){return this.domManip(arguments,true,function(E){if(this.nodeType==1){this.appendChild(E)}})},prepend:function(){return this.domManip(arguments,true,function(E){if(this.nodeType==1){this.insertBefore(E,this.firstChild)}})},before:function(){return this.domManip(arguments,false,function(E){this.parentNode.insertBefore(E,this)})},after:function(){return this.domManip(arguments,false,function(E){this.parentNode.insertBefore(E,this.nextSibling)})},end:function(){return this.prevObject||o([])},push:[].push,sort:[].sort,splice:[].splice,find:function(E){if(this.length===1){var F=this.pushStack([],"find",E);F.length=0;o.find(E,this[0],F);return F}else{return this.pushStack(o.unique(o.map(this,function(G){return o.find(E,G)})),"find",E)}},clone:function(G){var E=this.map(function(){if(!o.support.noCloneEvent&&!o.isXMLDoc(this)){var I=this.outerHTML;if(!I){var J=this.ownerDocument.createElement("div");J.appendChild(this.cloneNode(true));I=J.innerHTML}return o.clean([I.replace(/ jQuery\d+="(?:\d+|null)"/g,"").replace(/^\s*/,"")])[0]}else{return this.cloneNode(true)}});if(G===true){var H=this.find("*").andSelf(),F=0;E.find("*").andSelf().each(function(){if(this.nodeName!==H[F].nodeName){return}var I=o.data(H[F],"events");for(var K in I){for(var J in I[K]){o.event.add(this,K,I[K][J],I[K][J].data)}}F++})}return E},filter:function(E){return this.pushStack(o.isFunction(E)&&o.grep(this,function(G,F){return E.call(G,F)})||o.multiFilter(E,o.grep(this,function(F){return F.nodeType===1})),"filter",E)},closest:function(E){var G=o.expr.match.POS.test(E)?o(E):null,F=0;return this.map(function(){var H=this;while(H&&H.ownerDocument){if(G?G.index(H)>-1:o(H).is(E)){o.data(H,"closest",F);return H}H=H.parentNode;F++}})},not:function(E){if(typeof E==="string"){if(f.test(E)){return this.pushStack(o.multiFilter(E,this,true),"not",E)}else{E=o.multiFilter(E,this)}}var F=E.length&&E[E.length-1]!==g&&!E.nodeType;return this.filter(function(){return F?o.inArray(this,E)<0:this!=E})},add:function(E){return this.pushStack(o.unique(o.merge(this.get(),typeof E==="string"?o(E):o.makeArray(E))))},is:function(E){return !!E&&o.multiFilter(E,this).length>0},hasClass:function(E){return !!E&&this.is("."+E)},val:function(K){if(K===g){var E=this[0];if(E){if(o.nodeName(E,"option")){return(E.attributes.value||{}).specified?E.value:E.text}if(o.nodeName(E,"select")){var I=E.selectedIndex,L=[],M=E.options,H=E.type=="select-one";if(I<0){return null}for(var F=H?I:0,J=H?I+1:M.length;F
=0||o.inArray(this.name,K)>=0)}else{if(o.nodeName(this,"select")){var N=o.makeArray(K);o("option",this).each(function(){this.selected=(o.inArray(this.value,N)>=0||o.inArray(this.text,N)>=0)});if(!N.length){this.selectedIndex=-1}}else{this.value=K}}})},html:function(E){return E===g?(this[0]?this[0].innerHTML.replace(/ jQuery\d+="(?:\d+|null)"/g,""):null):this.empty().append(E)},replaceWith:function(E){return this.after(E).remove()},eq:function(E){return this.slice(E,+E+1)},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments),"slice",Array.prototype.slice.call(arguments).join(","))},map:function(E){return this.pushStack(o.map(this,function(G,F){return E.call(G,F,G)}))},andSelf:function(){return this.add(this.prevObject)},domManip:function(J,M,L){if(this[0]){var I=(this[0].ownerDocument||this[0]).createDocumentFragment(),F=o.clean(J,(this[0].ownerDocument||this[0]),I),H=I.firstChild;if(H){for(var G=0,E=this.length;G1||G>0?I.cloneNode(true):I)}}if(F){o.each(F,z)}}return this;function K(N,O){return M&&o.nodeName(N,"table")&&o.nodeName(O,"tr")?(N.getElementsByTagName("tbody")[0]||N.appendChild(N.ownerDocument.createElement("tbody"))):N}}};o.fn.init.prototype=o.fn;function z(E,F){if(F.src){o.ajax({url:F.src,async:false,dataType:"script"})}else{o.globalevals(F.text||F.textContent||F.innerHTML||"")}if(F.parentNode){F.parentNode.removeChild(F)}}function e(){return +new Date}o.extend=o.fn.extend=function(){var J=arguments[0]||{},H=1,I=arguments.length,E=false,G;if(typeof J==="boolean"){E=J;J=arguments[1]||{};H=2}if(typeof J!=="object"&&!o.isFunction(J)){J={}}if(I==H){J=this;--H}for(;H-1}},swap:function(H,G,I){var E={};for(var F in G){E[F]=H.style[F];H.style[F]=G[F]}I.call(H);for(var F in G){H.style[F]=E[F]}},css:function(H,F,J,E){if(F=="width"||F=="height"){var L,G={position:"absolute",visibility:"hidden",display:"block"},K=F=="width"?["Left","Right"]:["Top","Bottom"];function I(){L=F=="width"?H.offsetWidth:H.offsetHeight;if(E==="border"){return}o.each(K,function(){if(!E){L-=parseFloat(o.curCSS(H,"padding"+this,true))||0}if(E==="margin"){L+=parseFloat(o.curCSS(H,"margin"+this,true))||0}else{L-=parseFloat(o.curCSS(H,"border"+this+"Width",true))||0}})}if(H.offsetWidth!==0){I()}else{o.swap(H,G,I)}return Math.max(0,Math.round(L))}return o.curCSS(H,F,J)},curCSS:function(I,F,G){var L,E=I.style;if(F=="opacity"&&!o.support.opacity){L=o.attr(E,"opacity");return L==""?"1":L}if(F.match(/float/i)){F=w}if(!G&&E&&E[F]){L=E[F]}else{if(q.getComputedStyle){if(F.match(/float/i)){F="float"}F=F.replace(/([A-Z])/g,"-$1").toLowerCase();var M=q.getComputedStyle(I,null);if(M){L=M.getPropertyValue(F)}if(F=="opacity"&&L==""){L="1"}}else{if(I.currentStyle){var J=F.replace(/\-(\w)/g,function(N,O){return O.toUpperCase()});L=I.currentStyle[F]||I.currentStyle[J];if(!/^\d+(px)?$/i.test(L)&&/^\d/.test(L)){var H=E.left,K=I.runtimeStyle.left;I.runtimeStyle.left=I.currentStyle.left;E.left=L||0;L=E.pixelLeft+"px";E.left=H;I.runtimeStyle.left=K}}}}return L},clean:function(F,K,I){K=K||document;if(typeof K.createElement==="undefined"){K=K.ownerDocument||K[0]&&K[0].ownerDocument||document}if(!I&&F.length===1&&typeof F[0]==="string"){var H=/^<(\w+)\s*\/?>$/.exec(F[0]);if(H){return[K.createElement(H[1])]}}var G=[],E=[],L=K.createElement("div");o.each(F,function(P,S){if(typeof S==="number"){S+=""}if(!S){return}if(typeof S==="string"){S=S.replace(/(<(\w+)[^>]*?)\/>/g,function(U,V,T){return T.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?U:V+">"+T+">"});var O=S.replace(/^\s+/,"").substring(0,10).toLowerCase();var Q=!O.indexOf("",""]||!O.indexOf("",""]||O.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,""]||!O.indexOf("
","
"]||(!O.indexOf(" | ","
"]||!O.indexOf("",""]||!o.support.htmlSerialize&&[1,"div","
"]||[0,"",""];L.innerHTML=Q[1]+S+Q[2];while(Q[0]--){L=L.lastChild}if(!o.support.tbody){var R=/"&&!R?L.childNodes:[];for(var M=N.length-1;M>=0;--M){if(o.nodeName(N[M],"tbody")&&!N[M].childNodes.length){N[M].parentNode.removeChild(N[M])}}}if(!o.support.leadingWhitespace&&/^\s/.test(S)){L.insertBefore(K.createTextNode(S.match(/^\s*/)[0]),L.firstChild)}S=o.makeArray(L.childNodes)}if(S.nodeType){G.push(S)}else{G=o.merge(G,S)}});if(I){for(var J=0;G[J];J++){if(o.nodeName(G[J],"script")&&(!G[J].type||G[J].type.toLowerCase()==="text/javascript")){E.push(G[J].parentNode?G[J].parentNode.removeChild(G[J]):G[J])}else{if(G[J].nodeType===1){G.splice.apply(G,[J+1,0].concat(o.makeArray(G[J].getElementsByTagName("script"))))}I.appendChild(G[J])}}return E}return G},attr:function(J,G,K){if(!J||J.nodeType==3||J.nodeType==8){return g}var H=!o.isXMLDoc(J),L=K!==g;G=H&&o.props[G]||G;if(J.tagName){var F=/href|src|style/.test(G);if(G=="selected"&&J.parentNode){J.parentNode.selectedIndex}if(G in J&&H&&!F){if(L){if(G=="type"&&o.nodeName(J,"input")&&J.parentNode){throw"type property can't be changed"}J[G]=K}if(o.nodeName(J,"form")&&J.getAttributeNode(G)){return J.getAttributeNode(G).nodevalsue}if(G=="tabIndex"){var I=J.getAttributeNode("tabIndex");return I&&I.specified?I.value:J.nodeName.match(/(button|input|object|select|textarea)/i)?0:J.nodeName.match(/^(a|area)$/i)&&J.href?0:g}return J[G]}if(!o.support.style&&H&&G=="style"){return o.attr(J.style,"cssText",K)}if(L){J.setAttribute(G,""+K)}var E=!o.support.hrefNormalized&&H&&F?J.getAttribute(G,2):J.getAttribute(G);return E===null?g:E}if(!o.support.opacity&&G=="opacity"){if(L){J.zoom=1;J.filter=(J.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(K)+""=="NaN"?"":"alpha(opacity="+K*100+")")}return J.filter&&J.filter.indexOf("opacity=")>=0?(parseFloat(J.filter.match(/opacity=([^)]*)/)[1])/100)+"":""}G=G.replace(/-([a-z])/ig,function(M,N){return N.toUpperCase()});if(L){J[G]=K}return J[G]},trim:function(E){return(E||"").replace(/^\s+|\s+$/g,"")},makeArray:function(G){var E=[];if(G!=null){var F=G.length;if(F==null||typeof G==="string"||o.isFunction(G)||G.setInterval){E[0]=G}else{while(F){E[--F]=G[F]}}}return E},inArray:function(G,H){for(var E=0,F=H.length;E0?this.clone(true):this).get();o.fn[F].apply(o(L[K]),I);J=J.concat(I)}return this.pushStack(J,E,G)}});o.each({removeAttr:function(E){o.attr(this,E,"");if(this.nodeType==1){this.removeAttribute(E)}},addClass:function(E){o.className.add(this,E)},removeClass:function(E){o.className.remove(this,E)},toggleClass:function(F,E){if(typeof E!=="boolean"){E=!o.className.has(this,F)}o.className[E?"add":"remove"](this,F)},remove:function(E){if(!E||o.filter(E,[this]).length){o("*",this).add([this]).each(function(){o.event.remove(this);o.removeData(this)});if(this.parentNode){this.parentNode.removeChild(this)}}},empty:function(){o(this).children().remove();while(this.firstChild){this.removeChild(this.firstChild)}}},function(E,F){o.fn[E]=function(){return this.each(F,arguments)}});function j(E,F){return E[0]&&parseInt(o.curCSS(E[0],F,true),10)||0}var h="jQuery"+e(),v=0,A={};o.extend({cache:{},data:function(F,E,G){F=F==l?A:F;var H=F[h];if(!H){H=F[h]=++v}if(E&&!o.cache[H]){o.cache[H]={}}if(G!==g){o.cache[H][E]=G}return E?o.cache[H][E]:H},removeData:function(F,E){F=F==l?A:F;var H=F[h];if(E){if(o.cache[H]){delete o.cache[H][E];E="";for(E in o.cache[H]){break}if(!E){o.removeData(F)}}}else{try{delete F[h]}catch(G){if(F.removeAttribute){F.removeAttribute(h)}}delete o.cache[H]}},queue:function(F,E,H){if(F){E=(E||"fx")+"queue";var G=o.data(F,E);if(!G||o.isArray(H)){G=o.data(F,E,o.makeArray(H))}else{if(H){G.push(H)}}}return G},dequeue:function(H,G){var E=o.queue(H,G),F=E.shift();if(!G||G==="fx"){F=E[0]}if(F!==g){F.call(H)}}});o.fn.extend({data:function(E,G){var H=E.split(".");H[1]=H[1]?"."+H[1]:"";if(G===g){var F=this.triggerHandler("getData"+H[1]+"!",[H[0]]);if(F===g&&this.length){F=o.data(this[0],E)}return F===g&&H[1]?this.data(H[0]):F}else{return this.trigger("setData"+H[1]+"!",[H[0],G]).each(function(){o.data(this,E,G)})}},removeData:function(E){return this.each(function(){o.removeData(this,E)})},queue:function(E,F){if(typeof E!=="string"){F=E;E="fx"}if(F===g){return o.queue(this[0],E)}return this.each(function(){var G=o.queue(this,E,F);if(E=="fx"&&G.length==1){G[0].call(this)}})},dequeue:function(E){return this.each(function(){o.dequeue(this,E)})}});
/*
* Sizzle CSS Selector Engine - v0.9.3
* Copyright 2009, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
* More information: http://sizzlejs.com/
*/
(function(){var R=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,L=0,H=Object.prototype.toString;var F=function(Y,U,ab,ac){ab=ab||[];U=U||document;if(U.nodeType!==1&&U.nodeType!==9){return[]}if(!Y||typeof Y!=="string"){return ab}var Z=[],W,af,ai,T,ad,V,X=true;R.lastIndex=0;while((W=R.exec(Y))!==null){Z.push(W[1]);if(W[2]){V=RegExp.rightContext;break}}if(Z.length>1&&M.exec(Y)){if(Z.length===2&&I.relative[Z[0]]){af=J(Z[0]+Z[1],U)}else{af=I.relative[Z[0]]?[U]:F(Z.shift(),U);while(Z.length){Y=Z.shift();if(I.relative[Y]){Y+=Z.shift()}af=J(Y,af)}}}else{var ae=ac?{expr:Z.pop(),set:E(ac)}:F.find(Z.pop(),Z.length===1&&U.parentNode?U.parentNode:U,Q(U));af=F.filter(ae.expr,ae.set);if(Z.length>0){ai=E(af)}else{X=false}while(Z.length){var ah=Z.pop(),ag=ah;if(!I.relative[ah]){ah=""}else{ag=Z.pop()}if(ag==null){ag=U}I.relative[ah](ai,ag,Q(U))}}if(!ai){ai=af}if(!ai){throw"Syntax error, unrecognized expression: "+(ah||Y)}if(H.call(ai)==="[object Array]"){if(!X){ab.push.apply(ab,ai)}else{if(U.nodeType===1){for(var aa=0;ai[aa]!=null;aa++){if(ai[aa]&&(ai[aa]===true||ai[aa].nodeType===1&&K(U,ai[aa]))){ab.push(af[aa])}}}else{for(var aa=0;ai[aa]!=null;aa++){if(ai[aa]&&ai[aa].nodeType===1){ab.push(af[aa])}}}}}else{E(ai,ab)}if(V){F(V,U,ab,ac);if(G){hasDuplicate=false;ab.sort(G);if(hasDuplicate){for(var aa=1;aa":function(Z,U,aa){var X=typeof U==="string";if(X&&!/\W/.test(U)){U=aa?U:U.toUpperCase();for(var V=0,T=Z.length;V=0)){if(!V){T.push(Y)}}else{if(V){U[X]=false}}}}return false},ID:function(T){return T[1].replace(/\\/g,"")},TAG:function(U,T){for(var V=0;T[V]===false;V++){}return T[V]&&Q(T[V])?U[1]:U[1].toUpperCase()},CHILD:function(T){if(T[1]=="nth"){var U=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(T[2]=="even"&&"2n"||T[2]=="odd"&&"2n+1"||!/\D/.test(T[2])&&"0n+"+T[2]||T[2]);T[2]=(U[1]+(U[2]||1))-0;T[3]=U[3]-0}T[0]=L++;return T},ATTR:function(X,U,V,T,Y,Z){var W=X[1].replace(/\\/g,"");if(!Z&&I.attrMap[W]){X[1]=I.attrMap[W]}if(X[2]==="~="){X[4]=" "+X[4]+" "}return X},PSEUDO:function(X,U,V,T,Y){if(X[1]==="not"){if(X[3].match(R).length>1||/^\w/.test(X[3])){X[3]=F(X[3],null,null,U)}else{var W=F.filter(X[3],U,V,true^Y);if(!V){T.push.apply(T,W)}return false}}else{if(I.match.POS.test(X[0])||I.match.CHILD.test(X[0])){return true}}return X},POS:function(T){T.unshift(true);return T}},filters:{enabled:function(T){return T.disabled===false&&T.type!=="hidden"},disabled:function(T){return T.disabled===true},checked:function(T){return T.checked===true},selected:function(T){T.parentNode.selectedIndex;return T.selected===true},parent:function(T){return !!T.firstChild},empty:function(T){return !T.firstChild},has:function(V,U,T){return !!F(T[3],V).length},header:function(T){return/h\d/i.test(T.nodeName)},text:function(T){return"text"===T.type},radio:function(T){return"radio"===T.type},checkbox:function(T){return"checkbox"===T.type},file:function(T){return"file"===T.type},password:function(T){return"password"===T.type},submit:function(T){return"submit"===T.type},image:function(T){return"image"===T.type},reset:function(T){return"reset"===T.type},button:function(T){return"button"===T.type||T.nodeName.toUpperCase()==="BUTTON"},input:function(T){return/input|select|textarea|button/i.test(T.nodeName)}},setFilters:{first:function(U,T){return T===0},last:function(V,U,T,W){return U===W.length-1},even:function(U,T){return T%2===0},odd:function(U,T){return T%2===1},lt:function(V,U,T){return UT[3]-0},nth:function(V,U,T){return T[3]-0==U},eq:function(V,U,T){return T[3]-0==U}},filter:{PSEUDO:function(Z,V,W,aa){var U=V[1],X=I.filters[U];if(X){return X(Z,W,V,aa)}else{if(U==="contains"){return(Z.textContent||Z.innerText||"").indexOf(V[3])>=0}else{if(U==="not"){var Y=V[3];for(var W=0,T=Y.length;W=0)}}},ID:function(U,T){return U.nodeType===1&&U.getAttribute("id")===T},TAG:function(U,T){return(T==="*"&&U.nodeType===1)||U.nodeName===T},CLASS:function(U,T){return(" "+(U.className||U.getAttribute("class"))+" ").indexOf(T)>-1},ATTR:function(Y,W){var V=W[1],T=I.attrHandle[V]?I.attrHandle[V](Y):Y[V]!=null?Y[V]:Y.getAttribute(V),Z=T+"",X=W[2],U=W[4];return T==null?X==="!=":X==="="?Z===U:X==="*="?Z.indexOf(U)>=0:X==="~="?(" "+Z+" ").indexOf(U)>=0:!U?Z&&T!==false:X==="!="?Z!=U:X==="^="?Z.indexOf(U)===0:X==="$="?Z.substr(Z.length-U.length)===U:X==="|="?Z===U||Z.substr(0,U.length+1)===U+"-":false},POS:function(X,U,V,Y){var T=U[2],W=I.setFilters[T];if(W){return W(X,V,U,Y)}}}};var M=I.match.POS;for(var O in I.match){I.match[O]=RegExp(I.match[O].source+/(?![^\[]*\])(?![^\(]*\))/.source)}var E=function(U,T){U=Array.prototype.slice.call(U);if(T){T.push.apply(T,U);return T}return U};try{Array.prototype.slice.call(document.documentElement.childNodes)}catch(N){E=function(X,W){var U=W||[];if(H.call(X)==="[object Array]"){Array.prototype.push.apply(U,X)}else{if(typeof X.length==="number"){for(var V=0,T=X.length;V";var T=document.documentElement;T.insertBefore(U,T.firstChild);if(!!document.getElementById(V)){I.find.ID=function(X,Y,Z){if(typeof Y.getElementById!=="undefined"&&!Z){var W=Y.getElementById(X[1]);return W?W.id===X[1]||typeof W.getAttributeNode!=="undefined"&&W.getAttributeNode("id").nodevalsue===X[1]?[W]:g:[]}};I.filter.ID=function(Y,W){var X=typeof Y.getAttributeNode!=="undefined"&&Y.getAttributeNode("id");return Y.nodeType===1&&X&&X.nodevalsue===W}}T.removeChild(U)})();(function(){var T=document.createElement("div");T.appendChild(document.createComment(""));if(T.getElementsByTagName("*").length>0){I.find.TAG=function(U,Y){var X=Y.getElementsByTagName(U[1]);if(U[1]==="*"){var W=[];for(var V=0;X[V];V++){if(X[V].nodeType===1){W.push(X[V])}}X=W}return X}}T.innerHTML="";if(T.firstChild&&typeof T.firstChild.getAttribute!=="undefined"&&T.firstChild.getAttribute("href")!=="#"){I.attrHandle.href=function(U){return U.getAttribute("href",2)}}})();if(document.querySelectorAll){(function(){var T=F,U=document.createElement("div");U.innerHTML="";if(U.querySelectorAll&&U.querySelectorAll(".TEST").length===0){return}F=function(Y,X,V,W){X=X||document;if(!W&&X.nodeType===9&&!Q(X)){try{return E(X.querySelectorAll(Y),V)}catch(Z){}}return T(Y,X,V,W)};F.find=T.find;F.filter=T.filter;F.selectors=T.selectors;F.matches=T.matches})()}if(document.getElementsByClassName&&document.documentElement.getElementsByClassName){(function(){var T=document.createElement("div");T.innerHTML="";if(T.getElementsByClassName("e").length===0){return}T.lastChild.className="e";if(T.getElementsByClassName("e").length===1){return}I.order.splice(1,0,"CLASS");I.find.CLASS=function(U,V,W){if(typeof V.getElementsByClassName!=="undefined"&&!W){return V.getElementsByClassName(U[1])}}})()}function P(U,Z,Y,ad,aa,ac){var ab=U=="previousSibling"&&!ac;for(var W=0,V=ad.length;W0){X=T;break}}}T=T[U]}ad[W]=X}}}var K=document.compareDocumentPosition?function(U,T){return U.compareDocumentPosition(T)&16}:function(U,T){return U!==T&&(U.contains?U.contains(T):true)};var Q=function(T){return T.nodeType===9&&T.documentElement.nodeName!=="HTML"||!!T.ownerDocument&&Q(T.ownerDocument)};var J=function(T,aa){var W=[],X="",Y,V=aa.nodeType?[aa]:aa;while((Y=I.match.PSEUDO.exec(T))){X+=Y[0];T=T.replace(I.match.PSEUDO,"")}T=I.relative[T]?T+"*":T;for(var Z=0,U=V.length;Z0||T.offsetHeight>0};F.selectors.filters.animated=function(T){return o.grep(o.timers,function(U){return T===U.elem}).length};o.multiFilter=function(V,T,U){if(U){V=":not("+V+")"}return F.matches(V,T)};o.dir=function(V,U){var T=[],W=V[U];while(W&&W!=document){if(W.nodeType==1){T.push(W)}W=W[U]}return T};o.nth=function(X,T,V,W){T=T||1;var U=0;for(;X;X=X[V]){if(X.nodeType==1&&++U==T){break}}return X};o.sibling=function(V,U){var T=[];for(;V;V=V.nextSibling){if(V.nodeType==1&&V!=U){T.push(V)}}return T};return;l.Sizzle=F})();o.event={add:function(I,F,H,K){if(I.nodeType==3||I.nodeType==8){return}if(I.setInterval&&I!=l){I=l}if(!H.guid){H.guid=this.guid++}if(K!==g){var G=H;H=this.proxy(G);H.data=K}var E=o.data(I,"events")||o.data(I,"events",{}),J=o.data(I,"handle")||o.data(I,"handle",function(){return typeof o!=="undefined"&&!o.event.triggered?o.event.handle.apply(arguments.callee.elem,arguments):g});J.elem=I;o.each(F.split(/\s+/),function(M,N){var O=N.split(".");N=O.shift();H.type=O.slice().sort().join(".");var L=E[N];if(o.event.specialAll[N]){o.event.specialAll[N].setup.call(I,K,O)}if(!L){L=E[N]={};if(!o.event.special[N]||o.event.special[N].setup.call(I,K,O)===false){if(I.addEventListener){I.addEventListener(N,J,false)}else{if(I.attachEvent){I.attachEvent("on"+N,J)}}}}L[H.guid]=H;o.event.global[N]=true});I=null},guid:1,global:{},remove:function(K,H,J){if(K.nodeType==3||K.nodeType==8){return}var G=o.data(K,"events"),F,E;if(G){if(H===g||(typeof H==="string"&&H.charAt(0)==".")){for(var I in G){this.remove(K,I+(H||""))}}else{if(H.type){J=H.handler;H=H.type}o.each(H.split(/\s+/),function(M,O){var Q=O.split(".");O=Q.shift();var N=RegExp("(^|\\.)"+Q.slice().sort().join(".*\\.")+"(\\.|$)");if(G[O]){if(J){delete G[O][J.guid]}else{for(var P in G[O]){if(N.test(G[O][P].type)){delete G[O][P]}}}if(o.event.specialAll[O]){o.event.specialAll[O].teardown.call(K,Q)}for(F in G[O]){break}if(!F){if(!o.event.special[O]||o.event.special[O].teardown.call(K,Q)===false){if(K.removeEventListener){K.removeEventListener(O,o.data(K,"handle"),false)}else{if(K.detachEvent){K.detachEvent("on"+O,o.data(K,"handle"))}}}F=null;delete G[O]}}})}for(F in G){break}if(!F){var L=o.data(K,"handle");if(L){L.elem=null}o.removeData(K,"events");o.removeData(K,"handle")}}},trigger:function(I,K,H,E){var G=I.type||I;if(!E){I=typeof I==="object"?I[h]?I:o.extend(o.Event(G),I):o.Event(G);if(G.indexOf("!")>=0){I.type=G=G.slice(0,-1);I.exclusive=true}if(!H){I.stopPropagation();if(this.global[G]){o.each(o.cache,function(){if(this.events&&this.events[G]){o.event.trigger(I,K,this.handle.elem)}})}}if(!H||H.nodeType==3||H.nodeType==8){return g}I.result=g;I.target=H;K=o.makeArray(K);K.unshift(I)}I.currentTarget=H;var J=o.data(H,"handle");if(J){J.apply(H,K)}if((!H[G]||(o.nodeName(H,"a")&&G=="click"))&&H["on"+G]&&H["on"+G].apply(H,K)===false){I.result=false}if(!E&&H[G]&&!I.isDefaultPrevented()&&!(o.nodeName(H,"a")&&G=="click")){this.triggered=true;try{H[G]()}catch(L){}}this.triggered=false;if(!I.isPropagationStopped()){var F=H.parentNode||H.ownerDocument;if(F){o.event.trigger(I,K,F,true)}}},handle:function(K){var J,E;K=arguments[0]=o.event.fix(K||l.event);K.currentTarget=this;var L=K.type.split(".");K.type=L.shift();J=!L.length&&!K.exclusive;var I=RegExp("(^|\\.)"+L.slice().sort().join(".*\\.")+"(\\.|$)");E=(o.data(this,"events")||{})[K.type];for(var G in E){var H=E[G];if(J||I.test(H.type)){K.handler=H;K.data=H.data;var F=H.apply(this,arguments);if(F!==g){K.result=F;if(F===false){K.preventDefault();K.stopPropagation()}}if(K.isImmediatePropagationStopped()){break}}}},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode metaKey newValue originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(H){if(H[h]){return H}var F=H;H=o.Event(F);for(var G=this.props.length,J;G;){J=this.props[--G];H[J]=F[J]}if(!H.target){H.target=H.srcElement||document}if(H.target.nodeType==3){H.target=H.target.parentNode}if(!H.relatedTarget&&H.fromElement){H.relatedTarget=H.fromElement==H.target?H.toElement:H.fromElement}if(H.pageX==null&&H.clientX!=null){var I=document.documentElement,E=document.body;H.pageX=H.clientX+(I&&I.scrollLeft||E&&E.scrollLeft||0)-(I.clientLeft||0);H.pageY=H.clientY+(I&&I.scrollTop||E&&E.scrollTop||0)-(I.clientTop||0)}if(!H.which&&((H.charCode||H.charCode===0)?H.charCode:H.keyCode)){H.which=H.charCode||H.keyCode}if(!H.metaKey&&H.ctrlKey){H.metaKey=H.ctrlKey}if(!H.which&&H.button){H.which=(H.button&1?1:(H.button&2?3:(H.button&4?2:0)))}return H},proxy:function(F,E){E=E||function(){return F.apply(this,arguments)};E.guid=F.guid=F.guid||E.guid||this.guid++;return E},special:{ready:{setup:B,teardown:function(){}}},specialAll:{live:{setup:function(E,F){o.event.add(this,F[0],c)},teardown:function(G){if(G.length){var E=0,F=RegExp("(^|\\.)"+G[0]+"(\\.|$)");o.each((o.data(this,"events").live||{}),function(){if(F.test(this.type)){E++}});if(E<1){o.event.remove(this,G[0],c)}}}}}};o.Event=function(E){if(!this.preventDefault){return new o.Event(E)}if(E&&E.type){this.originalEvent=E;this.type=E.type}else{this.type=E}this.timeStamp=e();this[h]=true};function k(){return false}function u(){return true}o.Event.prototype={preventDefault:function(){this.isDefaultPrevented=u;var E=this.originalEvent;if(!E){return}if(E.preventDefault){E.preventDefault()}E.returnValue=false},stopPropagation:function(){this.isPropagationStopped=u;var E=this.originalEvent;if(!E){return}if(E.stopPropagation){E.stopPropagation()}E.cancelBubble=true},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=u;this.stopPropagation()},isDefaultPrevented:k,isPropagationStopped:k,isImmediatePropagationStopped:k};var a=function(F){var E=F.relatedTarget;while(E&&E!=this){try{E=E.parentNode}catch(G){E=this}}if(E!=this){F.type=F.data;o.event.handle.apply(this,arguments)}};o.each({mouseover:"mouseenter",mouseout:"mouseleave"},function(F,E){o.event.special[E]={setup:function(){o.event.add(this,F,a,E)},teardown:function(){o.event.remove(this,F,a)}}});o.fn.extend({bind:function(F,G,E){return F=="unload"?this.one(F,G,E):this.each(function(){o.event.add(this,F,E||G,E&&G)})},one:function(G,H,F){var E=o.event.proxy(F||H,function(I){o(this).unbind(I,E);return(F||H).apply(this,arguments)});return this.each(function(){o.event.add(this,G,E,F&&H)})},unbind:function(F,E){return this.each(function(){o.event.remove(this,F,E)})},trigger:function(E,F){return this.each(function(){o.event.trigger(E,F,this)})},triggerHandler:function(E,G){if(this[0]){var F=o.Event(E);F.preventDefault();F.stopPropagation();o.event.trigger(F,G,this[0]);return F.result}},toggle:function(G){var E=arguments,F=1;while(Fa';var H=K.getElementsByTagName("*"),E=K.getElementsByTagName("a")[0];if(!H||!H.length||!E){return}o.support={leadingWhitespace:K.firstChild.nodeType==3,tbody:!K.getElementsByTagName("tbody").length,objectAll:!!K.getElementsByTagName("object")[0].getElementsByTagName("*").length,htmlSerialize:!!K.getElementsByTagName("link").length,style:/red/.test(E.getAttribute("style")),hrefNormalized:E.getAttribute("href")==="/a",opacity:E.style.opacity==="0.5",cssFloat:!!E.style.cssFloat,scriptevals:false,noCloneEvent:true,boxModel:null};G.type="text/javascript";try{G.appendChild(document.createTextNode("window."+J+"=1;"))}catch(I){}F.insertBefore(G,F.firstChild);if(l[J]){o.support.scriptevals=true;delete l[J]}F.removeChild(G);if(K.attachEvent&&K.fireEvent){K.attachEvent("onclick",function(){o.support.noCloneEvent=false;K.detachEvent("onclick",arguments.callee)});K.cloneNode(true).fireEvent("onclick")}o(function(){var L=document.createElement("div");L.style.width=L.style.paddingLeft="1px";document.body.appendChild(L);o.boxModel=o.support.boxModel=L.offsetWidth===2;document.body.removeChild(L).style.display="none"})})();var w=o.support.cssFloat?"cssFloat":"styleFloat";o.props={"for":"htmlFor","class":"className","float":w,cssFloat:w,styleFloat:w,readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",tabindex:"tabIndex"};o.fn.extend({_load:o.fn.load,load:function(G,J,K){if(typeof G!=="string"){return this._load(G)}var I=G.indexOf(" ");if(I>=0){var E=G.slice(I,G.length);G=G.slice(0,I)}var H="GET";if(J){if(o.isFunction(J)){K=J;J=null}else{if(typeof J==="object"){J=o.param(J);H="POST"}}}var F=this;o.ajax({url:G,type:H,dataType:"html",data:J,complete:function(M,L){if(L=="success"||L=="notmodified"){F.html(E?o("").append(M.responseText.replace(/