• 汉中十佳餐饮评选活动!
  • 祝福老爸!爱就晒出来。
  • 大义妻女-感动汉中
(function(c,f){if(c.PCgroup){return}var b,d=Object.prototype.toString,e=Array.prototype.slice,a=c.document;b=function(){return b.dom.quick.apply(this,arguments)};b.add=function(g,h){if(typeof g!="string"){var i=g;for(var g in i){b.add(g,i[g])}return}if(b[g]==f){b[g]=h}else{throw new Error("PCgroup Lib:模块名"+g+"已被占用")}};b.version="1.0";b.add({isFunction:function(g){return d.call(g)==="[object Function]"},isArray:function(g){return d.call(g)==="[object Array]"},isPlainObject:function(g){return g&&d.call(g)==="[object Object]"&&!g.nodeType&&!g.setInterval},isBoolean:function(g){return d.call(g)==="[object Boolean]"},isUndefined:function(g){return g===f},isString:function(g){return d.call(g)==="[object String]"},isNumber:function(g){return d.call(g)==="[object Number]"},trim:function(g){if(String.prototype.trim){return g.trim()}return g.replace(/^\s+/g,"").replace(/\s+$/g,"")},each:function(h,l){if(f===h.length){for(var k in h){if(false===l.call(h,h[k],k)){break}}}else{for(var j=0,g=h.length;j1){p.each=b.bindFn(b.each)}else{p=p[0];p[0]=p;p.each=function(q){q(p)}}return p}if(p.nodeType){return b.dom.element(p)}return null},ready:function(m){bindReady();if(g){m.call(a,b)}else{l.push(function(){return m.call(a,b)})}return this},element:function(m){b.extend(m,b.dom.methods);return m},extend:function(p,o){if(!b.isString(p)){var q={};if(o){b.each(o,function(s){var t=p[s];if(t){q[s]=t}})}else{q=p}b.each(q,function(t,s){b.dom.extend(s,t)})}else{var m=b.dom.methods,n=p,r=o;if(b.isFunction(r)){m[n]=b.bindFn(r)}else{m[n]=r}}},methods:{}};return j}(b));b.getElem=b.dom.getElem;b.getElems=b.dom.getElems;b.ready=b.dom.ready;b.element=b.dom.element;b.add("loader",{getScript:function(h,k,j){var i=a.getElementsByTagName("head")[0]||a.documentElement,g=a.createElement("script");g.src=h;j&&(g.charset=j);g.onload=g.onreadystatechange=function(){if((!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){k&&k();g.onload=g.onreadystatechange=null;if(i&&g.parentNode){g.parentNode.removeChild(g)}}};i.appendChild(g);return g},need:function(){var g=b.loader,h=e.call(arguments,0),i=h.pop();if(!b.isFunction(i)){return}var j=function(){i.call(b,b)};j.depth=h.length;b.each(h,function(o){var l,n=g.__mods[o];if(n){l=o;o=n}if(o){var m=function(){!--j.depth&&j()},k=g.__log[o]||(g.__log[o]={});if(l&&b[l]){k.status="loaded"}if(k.status=="sent"){k.callbaks.push(m)}else{if(k.status=="loaded"){m()}else{k.status="sent";k.callbaks=[m];g.getScript(o,function(){b.each(k.callbaks,function(p){p.call(c,b)});k.status="loaded"})}}}})},__log:{},__mods:{ajax:"http://js.3conline.com/min/temp/v2/mod-ajax.js",cookie:"http://js.3conline.com/min/temp/v2/mod-cookie.js",tab:"http://js.3conline.com/min/temp/v2/dpl-tab.js"}});b.need=b.loader.need;b.getScript=b.loader.getScript;c.pc=c.PCgroup=b})(window);PCgroup.add("selector",(function(f){var g=/^(?:[\w\-_]+)?\.([\w\-_]+)/,e=/^(?:[\w\-_]+)?#([\w\-_]+)/,k=/^([\w\*\-_]+)/,h=/^(?:[\w\-_]+)?\[([\w]+)(=(\w+))?\]/,i=[null,null,null,null];function c(p,n){n=n||document;var l=/^[\w\-_#]+$/.test(p);if(!l&&n.querySelectorAll){return b(n.querySelectorAll(p))}if(p.indexOf(",")>-1){var z=p.split(/,/g),w=[],v=0,u=z.length;for(;v ",">").replace(">"," > ");var r=p.split(/ /g),o=r.pop(),m=(o.match(e)||i)[1],x=!m&&(o.match(g)||i)[1],A=!m&&(o.match(k)||i)[1],q=o.match(h)||i,y=q[1]||null,t=q[3]||null,s;if(x&&!A&&n.getElementsByClassName){s=b(n.getElementsByClassName(x))}else{s=!m&&b(n.getElementsByTagName(A||"*")); if(x){s=j(s,"className",x)}if(y){s=j(s,y,t)}if(m){var B=n.getElementById(m);return B?[B]:[]}}return r[0]&&s[0]?a(r,s):s}function b(p){try{return slice.call(p)}catch(o){var m=[],n=0,l=p.length;for(;n"){return a(x,q,true)}var t=[],l=-1,m=(s.match(e)||i)[1],u=!m&&(s.match(g)||i)[1],w=!m&&(s.match(k)||i)[1],v=-1,n,y,p;w=w&&w.toLowerCase();while((n=q[++v])){y=n.parentNode;do{p=!w||w==="*"||w===y.nodeName.toLowerCase();p=p&&(!m||y.id===m);p=p&&(!u||RegExp("(^|\\s)"+u+"(\\s|$)").test(y.className));if(o||p){break}}while((y=y.parentNode));if(p){t[++l]=n}}return x[0]&&t[0]?a(x,t):t}var d=(function(){var l=new Date().getTime();var m=(function(){var o=1;return function(q){var p=q[l],n=o++;if(!p){q[l]=n;return true}return false}})();return function(n){var t=n.length,o=[],s=-1,p=0,q;for(;pa";var b=f.getElementsByTagName("a")[0];return{opacity:/^0.55$/.test(b.style.opacity),cssFloat:!!b.style.cssFloat}}();return c})(window.navigator.userAgent.toLowerCase()));(function(h,d){var f=/alpha\([^)]*\)/,e=/float/i,n=/opacity=([^)]*)/,i=h.browser.support.cssFloat?"cssFloat":"styleFloat",m=/([A-Z])/g,b=/-([a-z])/ig,c=function(o,p){return p.toUpperCase()},a=document.defaultView&&document.defaultView.getComputedStyle,g=/^-?\d+(?:px)?$/i,l=/^-?\d/;h.add({cssHooks:{},getStyle:function(u,r,v,p){var q,t=u.style,s,o=PCgroup.cssHooks[r];if(!h.browser.support.opacity&&r==="opacity"&&u.currentStyle){q=n.test(u.currentStyle.filter||"")?(parseFloat(RegExp.$1)/100)+"":"";return q===""?"1":q}if(e.test(r)){r=i}if(o&&"get" in o&&(q=o.get(u,p))!==d){return q}else{if(!v&&t&&t[r]){q=t[r]}else{q=k(u,r,v)}}return q},setStyle:function(){var t=arguments,r=t[0];if(typeof t[1]!="string"){for(var w in t[1]){h.setStyle.apply(h,[r,w,t[1][w]])}return}var p=t[1],v=t[2];var o=r.style||r,u=v!==d;if(!h.browser.support.opacity&&p==="opacity"){if(u){o.zoom=1;var s=parseInt(v,10)+""==="NaN"?"":"alpha(opacity="+v*100+")";if(v>=1){s=""}var q=o.filter||"";o.filter=f.test(q)?q.replace(f,s):s}return o.filter&&o.filter.indexOf("opacity=")>=0?(parseFloat(n.exec(o.filter)[1])/100)+"":""}if(e.test(p)){p=i}p=p.replace(b,c);if(u){o[p]=v}}});function j(s,q,p){var u=q==="width"?s.offsetWidth:s.offsetHeight,t=q==="width"?["Left","Right"]:["Top","Bottom"],r=0,o=t.length;if(u>0){if(p!=="border"){for(;rh){c.oncomplete&&c.oncomplete(); c.stop()}}},e);c.start();d.timers[c.id]=c}};c.__init();return c},now:function(){return new Date().getTime()}})})(PCgroup);(function(d,g){var f=document,c=encodeURIComponent,e=decodeURIComponent;var a={get:function(j){var i,h;if(b(j)){if((h=f.cookie.match("(?:^| )"+j+"(?:(?:=([^;]*))|;|$)"))){i=h[1]?e(h[1]):""}}return i},set:function(j,o,h,k,m,l){var n=c(o),i=h;if(typeof i==="number"){i=new Date();i.setTime(i.getTime()+h*86400000)}if(i instanceof Date){n+="; expires="+i.toUTCString()}if(b(k)){n+="; domain="+k}if(b(m)){n+="; path="+m}if(l){n+="; secure"}f.cookie=j+"="+n},remove:function(h,i,k,j){d.setCookie(h,"",0,i,k,j)}};d.add({cookie:a,getCookie:a.get,setCookie:a.set,removeCookie:a.remove});function b(h){return d.isString(h)&&h!==""}})(PCgroup);(function(c,h){var g=Array.prototype.slice,f=Object.prototype.toString,d=function(i,j,l,k){this.elem=i;this.duration=j;this.easing=l;this.callback=function(){var m=c.getData(i,"timers");if(c.isArray(m)&&m.length>0){m.shift()}k&&k.call(this);c.dequeue(i)};this.clips=[]},b=function(l,m,i,j,k){this.elem=l;this.start=m;this.end=i;this.name=j;this.unit=k};var e={visibility:"hidden",display:"block"};var a=function(j,l,k){var i;if(c.isNumber(j)&&c.isFunction(l)){k=l;l=i}else{if(c.isString(j)){if(c.isFunction(l)){k=l}l=j;j=i}else{if(c.isFunction(j)){k=j;j=i;l=i}}}return{duration:j,easing:l,callback:k}};c.add({animate:function(l,j,m,s,t,o){var k=arguments,u=[],r,q;for(var n=2;n'+(g+1)+""}h.innerHTML=j;h=f.wrap.appendChild(h);l.control=pc.childElems(h)}var e=[];pc.each(l.control,function(n,m){if(pc.hasClass(n,"next")){f.nextBtn=n}else{if(pc.hasClass(n,"prev")){f.prevBtn=n}else{e.push(n)}}});f.control=e}if(l.nextBtn){f.nextBtn=l.nextBtn}if(l.prevBtn){f.prevBtn=l.prevBtn}l.oninit.call(f);if(f.effect){f.effect.oninit.call(f)}f.playTo(l.playTo);if(l.autoPlay){f.play()}f.attach()},attach:function(){var g=this,k=g.config;if(k.autoPlay){var f=[g.wrap],e=g.control&&g.control[0].parentNode;if(e){f.push(e)}pc.each(f,function(l){pc.addEvent(l,"mouseover",function(m){g.stop()});pc.addEvent(l,"mouseout",function(m){g.play()})})}if(k.effect==="slide"&&k.isIpad){pc.each(g.target,function(l){l.addEventListener("touchstart",function(m){g.stop();g.iPadDistance=(k.direction==="x"?m.touches[0].pageX:m.touches[0].pageY);g.srcScrollNum=g.contentWrap[g.prop]},false);l.addEventListener("touchmove",function(n){g.iPadLastDistance=(k.direction==="x"?n.touches[0].pageX:n.touches[0].pageY);var m=g.iPadLastDistance-g.iPadDistance;g.contentWrap[g.prop]=g.srcScrollNum-m;n.preventDefault()},false);l.addEventListener("touchend",function(o){if(g.iPadLastDistance===undefined){return}var p=g.iPadLastDistance-g.iPadDistance>0?false:true;var m=g.curPage===0,n=g.curPage===g.length-1;if(p&&(g.config.merge||!n)){g.next()}else{if(!p&&(g.config.merge||!m)){g.prev()}}g.play();o.preventDefault();g.iPadLastDistance=undefined},false)})}var i=k.type=="mouseover";if(k.control){pc.each(g.control,function(m,l){pc.addEvent(m,k.type,function(){var n=i?k.delay:0;if(g.delayTimer){window.clearTimeout(g.delayTimer)}g.delayTimer=window.setTimeout(function(){g.playTo(l)},n)});if(i){pc.addEvent(m,"mouseout",function(){if(g.delayTimer){window.clearTimeout(g.delayTimer)}});pc.addEvent(m,"click",function(){g.playTo(l)})}if(!g.config.link){pc.addEvent(m,"click",function(n){n.preventDefault()})}})}var j=g.config.autoPlay&&g.config.defaultEvent;if(g.nextBtn){pc.addEvent(g.nextBtn,"click",function(l){g.next();l.preventDefault()});j&&h(g.nextBtn)}if(g.prevBtn){pc.addEvent(g.prevBtn,"click",function(l){g.prev();l.preventDefault()});j&&h(g.prevBtn)}if(k.onresize&&!a){a=true}pc.addEvent(window,"resize",function(){var m=d.length,l;(function(){while(m>0){m--;l=d[m];l.stop();l.config.onresize&&pc.isFunction(l.config.onresize)&&l.config.onresize.call(l);setTimeout(arguments.callee,0)}})()});function h(l){pc.addEvent(l,"mouseenter",function(){g.stop()});pc.addEvent(l,"mouseleave",function(){g.play()})}},playTo:function(l){var q=this,o=q.config,j=q.curPage!==window.undefined,k,f,m,n;if(j&&q.curPage===l){return}q.prevPage=q.curPage;if(o.effect=="slide"&&o.merge){f=i(q.curPage,true);k=i(q.curPage);q.curPage=l;m=i(l,true);l=i(l);n=i(m+1,true)}else{f=k=q.curPage;m=l=q.curPage=i(l);n=i(m+1)}if(q.control&&l!==k){var e=q.control[l],p=q.control[k];if(e){pc.addClass(e,q.config.curClass)}if(p){pc.removeClass(p,q.config.curClass)}}if(o.lazy){var g=q.curPage;if(o.merge&&g<0){g=q.target.length-1}var h=q.target[g];if(h&&!h.parsed){q._lazyload(h)}}if(q.effect){q.effect.onchange.call(q)}q.config.onchange.call(q,m,f,n);function i(t,s){var u=s?q.length*2:q.length;if(t>=u){t%=u}if(t<0){var r=t%u;t=r===0?0:(r+u)}return t}},next:function(){this.playTo(this.curPage+1)},prev:function(){this.playTo(this.curPage-1)},play:function(){var e=this,f=e.config;if(e.timer){e.stop()}e.timer=window.setInterval(function(){var g=e.curPage+1;e.playTo(g)},f.stay)},stop:function(){window.clearInterval(this.timer)},_lazyload:function(f){var e=pc.getElem("textarea",f);if(e){f.innerHTML=e.value;f.parsed=true}}};b.effect={};return b}(pc));pc.extend(pc.tab.effect,{base:{oninit:function(){var a=this,b=a.config;pc.each(a.target,function(c){if(a.target[b.playTo]!=c){pc.setStyle(c,"display","none")}})},onchange:function(){var b=this,a=b.prevPage===window.undefined?null:b.target[b.prevPage],c=b.target[b.curPage];if(a){pc.setStyle(a,"display","none") }pc.setStyle(c,"display","block")}},fade:{oninit:function(){var a=this,b=a.config;pc.setStyle(a.content,"position","relative");pc.each(a.target,function(d,c){pc.setData(d,"index",c);pc.setStyle(d,{opacity:0,position:"absolute",zIndex:c})})},onchange:function(){var b=this,a=b.prevPage===window.undefined?null:b.target[b.prevPage],c=b.target[b.curPage];if(a){pc.setStyle(a,"zIndex",pc.getData(c,"index"))}pc.setStyle(c,"zIndex",b.length);pc.setStyle(c,"opacity",0);pc.show(c,b.config.animateTime,function(){pc.each(b.target,function(d){if(d!=c){pc.setStyle(d,"opacity",0)}})});if(a){pc.hide(a,b.config.animateTime)}pc.each(b.target,function(d){if(d!=c){pc.end(d)}})}},slide:{oninit:function(){var a=this,g=a.config;var f=a.target[g.playTo];var e=pc.create("div",{className:"contentWrap"});pc.setStyle(e,{overflow:"hidden",position:"relative"});e.appendChild(a.content);a.contentWrap=a.wrap.appendChild(e);pc.setStyle(a.wrap,"overflow","hidden");if(pc.browser.ie){pc.setStyle(a.contentWrap,"zoom","1")}var b=function(c){return parseFloat(pc.getStyle(f,c))||0};if(g.direction=="x"){a.prop="scrollLeft";a.boxProp="width";a.step=g.width||f.offsetWidth+b("marginLeft")+b("marginRight")}else{a.prop="scrollTop";a.boxProp="height";a.step=g.height||f.offsetHeight+b("marginTop")+b("marginBottom")}pc.setStyle(a.contentWrap,a.boxProp,"100%");a.showNum=Math.floor(parseFloat(pc.getStyle(a.wrap,a.boxProp))/a.step);if(g.merge){a.showNum=Math.ceil(parseFloat(pc.getStyle(a.wrap,a.boxProp))/a.step);var d=[];pc.each(a.target,function(c){var h=c.cloneNode(true);h=a.content.appendChild(h);pc.cloneEvent(c,h);d.push(h)});a.target=g.target.concat(d);a.plus=0}if(g.direction=="x"){pc.setStyle(a.content,"width",(g.totalWidth||a.step*a.target.length)+"px");pc.each(a.target,function(c){pc.setStyle(c,"float","left")})}},onchange:function(){var m=this,h=m.config,k=m.prevPage===window.undefined?0:m.prevPage,l=m.curPage,j;merge:if(h.merge){var g=l-k,f=Math.abs(g);if(m.realCurPage===undefined){m.realCurPage=l;m.realPrevPage=k}if(g===0){break merge}if(g<0){if(l>=m.showNum-2&&m.realCurPage>0){m.realPrevPage=m.realCurPage;m.realCurPage+=g}else{m.realPrevPage=1;m.realCurPage=0}if(l>=m.plus){break merge}for(var e=0;e0){if(l<=m.target.length+m.plus-m.showNum){var d=m.realCurPage;m.realCurPage=m.plus==0?l:m.realCurPage+g;m.realPrevPage=d;break merge}m.realCurPage=m.target.length-m.showNum;m.realPrevPage=m.realCurPage-1;for(var e=0;em.length){l=m.length-m.showNum}j=l*m.step}var a={};a[m.prop]=j;pc.end(m.contentWrap);pc.animate(m.contentWrap,a,m.config.animateTime,m.config.easing);if(h.merge){pc.each(m.target,function(c){pc.removeClass(c,h.curClass)});pc.addClass(m.target[m.realCurPage],h.curClass)}}}});var focus=pc.tab.focus=function(a){return new pc.tab(pc.merge(focus.config,a))};focus.prototype=pc.tab.prototype;focus.config={autoPlay:true,effect:"fade"};var marquee=pc.tab.marquee=function(a){return new pc.tab(pc.merge(marquee.config,a))};marquee.prototype=pc.tab.prototype;marquee.config={effect:"slide",easing:"linear",merge:"true",control:false,direction:"y",autoPlay:true};var tabScroll=pc.tab.scroll=function(a){return new pc.tab(pc.merge(tabScroll.config,a))};tabScroll.prototype=pc.tab.prototype;tabScroll.config={effect:"slide",merge:"true",control:false}; var Lazy={eCatch:{},eHandle:0,isFunction:function(a){return Object.prototype.toString.call(a)==="[object Function]"},addEvent:function(c,b,a){if(c.addEventListener){c.addEventListener(b,a,false)}else{c.attachEvent("on"+b,a)}this.eCatch[++this.eHandle]={handler:a};return this.eHandle},removeEvent:function(c,b,a){if(c.addEventListener){c.removeEventListener(b,this.eCatch[a].handler,false)}else{c.detachEvent("on"+b,this.eCatch[a].handler)}},$$:function(a){return(typeof(a)=="object")?a:document.getElementById(a)},converNodeToArray:function(b){var f=[];try{f=Array.prototype.slice.call(b,0)}catch(d){for(var c=0,a=b.length;c-1||a.indexOf("iphone")>-1||a.indexOf("ipod")>-1||a.indexOf("ipad")>-1){this.isPhone=true}else{this.isPhone=false}},checkLazyLoad:function(a){if(a.indexOf("opera mini")>-1){return false}else{return true}},init:function(b){if(b.unNeedListen){this.loadOnce(b);return}if(b.imgCount==0&&b.jsCount==0){return}var a=navigator.userAgent.toLowerCase();if(this.checkLazyLoad(a)){this.checkPhone(a);b.e1=this.addEvent(window,"scroll",this.load(b));b.e2=this.addEvent(window,"touchmove",this.load(b));b.e3=this.addEvent(window,"touchend",this.load(b));this.loadTime(b)}else{this.loadOnce(b)}},getYGetBound:function(b,a){var c=b.getBoundingClientRect().top||0;return c==0?null:(c+a)},getYOffSet:function(a){var b=0;while(a.offsetParent){b+=a.offsetTop;a=a.offsetParent}return b==0?null:b},getHideY:function(c,b,a){while(c&&c!==document){var d=b(c,a);if(d!=null){return d}c=c.parentNode}return 0},getY:function(b,c){var a;if(b.getBoundingClientRect){a=this.getHideY(b,this.getYGetBound,c)}else{a=this.getHideY(b,this.getYOffSet)}return a},load:function(a){return function(){if(a.loading==true){return}a.loading=true;if(a.time_act&&((1*new Date()-a.time_act)>a.delay_tot)){a.timmer&&clearTimeout(a.timmer);Lazy.loadTime(a)}else{a.timmer&&clearTimeout(a.timmer);a.timmer=setTimeout(function(){Lazy.loadTime(a)},a.delay)}a.loading=false}},setSrc:function(b,a){b.setAttribute("src",b.getAttribute(a));b.removeAttribute(a)},setJs:function(js){Lazy.isFunction(js)?js.call(this):eval(js)},loadTime:function(b){b.time_act=1*new Date();var e,h,c;if(this.isPhone){e=window.screen.height;h=window.scrollY;c=h+e}else{e=document.documentElement.clientHeight||document.body.clientHeight;h=Math.max(document.documentElement.scrollTop,document.body.scrollTop);c=e+h}b.offset=b.offset||e;b.preOffset=b.preOffset||e;if(b.imgCount){var k=[];for(var f=0;f(h-b.preOffset)&&l<(c+b.offset)){if(l>h&&l (function () { pc.each(pc.getElems('#JchaNav a'),function (nav,i) { if(nav.href == location.href){ nav.parentNode.className+=" current"; return false; } }) //替换tab.scroll的图片 function replceSrc(target,type){ var imgs = target.getElementsByTagName("img"); if(!imgs) return; for(var i=0,len=imgs.length;i 465) { pc.setStyle(pc.getElem('#JnavGuide'),{display : 'block'}); }else { pc.setStyle(pc.getElem('#JnavGuide'),{display : 'none'}); } pc.getElem('#JbackTop').onclick=function(){ window.scrollTo(0,0); } } //适应分辨率低分辨率的浮动导航 window.onresize = function() { if (document.documentElement.clientWidth < 1360) { pc.setStyle(pc.getElem('#JnavGuide'),{'margin-left' : '450px'}); } else { pc.setStyle(pc.getElem('#JnavGuide'),{'margin-left' : '575px'}); } } var pcLazy = Lazy.create({ lazyId : "Jbody", trueSrc : '#src', offset : 500, delay : 100, delay_tot : 1000 }); Lazy.init(pcLazy); })();