jQuery.easing.jswing=jQuery.easing.swing;
jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(d,a,b,c,f){return jQuery.easing[jQuery.easing.def](d,a,b,c,f)},easeInQuad:function(d,a,b,c,f){return c*(a/=f)*a+b},easeOutQuad:function(d,a,b,c,f){return-c*(a/=f)*(a-2)+b},easeInOutQuad:function(d,a,b,c,f){if((a/=f/2)<1)return c/2*a*a+b;return-c/2*(--a*(a-2)-1)+b},easeInCubic:function(d,a,b,c,f){return c*(a/=f)*a*a+b},easeOutCubic:function(d,a,b,c,f){return c*((a=a/f-1)*a*a+1)+b},easeInOutCubic:function(d,a,b,c,f){if((a/=f/2)<1)return c/
2*a*a*a+b;return c/2*((a-=2)*a*a+2)+b},easeInQuart:function(d,a,b,c,f){return c*(a/=f)*a*a*a+b},easeOutQuart:function(d,a,b,c,f){return-c*((a=a/f-1)*a*a*a-1)+b},easeInOutQuart:function(d,a,b,c,f){if((a/=f/2)<1)return c/2*a*a*a*a+b;return-c/2*((a-=2)*a*a*a-2)+b},easeInQuint:function(d,a,b,c,f){return c*(a/=f)*a*a*a*a+b},easeOutQuint:function(d,a,b,c,f){return c*((a=a/f-1)*a*a*a*a+1)+b},easeInOutQuint:function(d,a,b,c,f){if((a/=f/2)<1)return c/2*a*a*a*a*a+b;return c/2*((a-=2)*a*a*a*a+2)+b},easeInSine:function(d,
a,b,c,f){return-c*Math.cos(a/f*(Math.PI/2))+c+b},easeOutSine:function(d,a,b,c,f){return c*Math.sin(a/f*(Math.PI/2))+b},easeInOutSine:function(d,a,b,c,f){return-c/2*(Math.cos(Math.PI*a/f)-1)+b},easeInExpo:function(d,a,b,c,f){return a==0?b:c*Math.pow(2,10*(a/f-1))+b},easeOutExpo:function(d,a,b,c,f){return a==f?b+c:c*(-Math.pow(2,-10*a/f)+1)+b},easeInOutExpo:function(d,a,b,c,f){if(a==0)return b;if(a==f)return b+c;if((a/=f/2)<1)return c/2*Math.pow(2,10*(a-1))+b;return c/2*(-Math.pow(2,-10*--a)+2)+b},
easeInCirc:function(d,a,b,c,f){return-c*(Math.sqrt(1-(a/=f)*a)-1)+b},easeOutCirc:function(d,a,b,c,f){return c*Math.sqrt(1-(a=a/f-1)*a)+b},easeInOutCirc:function(d,a,b,c,f){if((a/=f/2)<1)return-c/2*(Math.sqrt(1-a*a)-1)+b;return c/2*(Math.sqrt(1-(a-=2)*a)+1)+b},easeInElastic:function(d,a,b,c,f){d=1.70158;var h=0,j=c;if(a==0)return b;if((a/=f)==1)return b+c;h||(h=f*0.3);if(j<Math.abs(c)){j=c;d=h/4}else d=h/(2*Math.PI)*Math.asin(c/j);return-(j*Math.pow(2,10*(a-=1))*Math.sin((a*f-d)*2*Math.PI/h))+b},easeOutElastic:function(d,
a,b,c,f){d=1.70158;var h=0,j=c;if(a==0)return b;if((a/=f)==1)return b+c;h||(h=f*0.3);if(j<Math.abs(c)){j=c;d=h/4}else d=h/(2*Math.PI)*Math.asin(c/j);return j*Math.pow(2,-10*a)*Math.sin((a*f-d)*2*Math.PI/h)+c+b},easeInOutElastic:function(d,a,b,c,f){d=1.70158;var h=0,j=c;if(a==0)return b;if((a/=f/2)==2)return b+c;h||(h=f*0.3*1.5);if(j<Math.abs(c)){j=c;d=h/4}else d=h/(2*Math.PI)*Math.asin(c/j);if(a<1)return-0.5*j*Math.pow(2,10*(a-=1))*Math.sin((a*f-d)*2*Math.PI/h)+b;return j*Math.pow(2,-10*(a-=1))*Math.sin((a*
f-d)*2*Math.PI/h)*0.5+c+b},easeInBack:function(d,a,b,c,f,h){if(h==undefined)h=1.70158;return c*(a/=f)*a*((h+1)*a-h)+b},easeOutBack:function(d,a,b,c,f,h){if(h==undefined)h=1.70158;return c*((a=a/f-1)*a*((h+1)*a+h)+1)+b},easeInOutBack:function(d,a,b,c,f,h){if(h==undefined)h=1.70158;if((a/=f/2)<1)return c/2*a*a*(((h*=1.525)+1)*a-h)+b;return c/2*((a-=2)*a*(((h*=1.525)+1)*a+h)+2)+b},easeInBounce:function(d,a,b,c,f){return c-jQuery.easing.easeOutBounce(d,f-a,0,c,f)+b},easeOutBounce:function(d,a,b,c,f){return(a/=
f)<1/2.75?c*7.5625*a*a+b:a<2/2.75?c*(7.5625*(a-=1.5/2.75)*a+0.75)+b:a<2.5/2.75?c*(7.5625*(a-=2.25/2.75)*a+0.9375)+b:c*(7.5625*(a-=2.625/2.75)*a+0.984375)+b},easeInOutBounce:function(d,a,b,c,f){if(a<f/2)return jQuery.easing.easeInBounce(d,a*2,0,c,f)*0.5+b;return jQuery.easing.easeOutBounce(d,a*2-f,0,c,f)*0.5+c*0.5+b}});var ie6=$.browser.msie&&$.browser.version=="6.0"&&!$.support.style;
(function(d,a){function b(g,l){g=g?' id="'+o+g+'"':"";l=l?' style="'+l+'"':"";return d("<div"+g+l+"/>")}function c(g,l){l=l===F?G.width():G.height();return typeof g==="string"?Math.round(/%/.test(g)?l/100*parseInt(g,10):parseInt(g,10)):g}function f(g){return e.photo||/\.(gif|png|jpg|jpeg|bmp)(?:\?([^#]*))?(?:#(\.*))?$/i.test(g)}function h(g){for(var l in g)if(d.isFunction(g[l])&&l.substring(0,2)!=="on")g[l]=g[l].call(D);g.rel=g.rel||D.rel||M;g.href=g.href||d(D).attr("href");g.title=g.title||D.title;
return g}function j(g,l){l&&l.call(D);d.event.trigger(g)}function z(){var g,l=o+"Slideshow_",k="click."+o,t,H;if(e.slideshow&&u[1]){t=function(){ba.text(e.slideshowStop).unbind(k).bind(v,function(){if(s<u.length-1||e.loop)g=setTimeout(m.next,e.slideshowSpeed)}).bind(B,function(){clearTimeout(g)}).one(k+" "+I,H);A.removeClass(l+"off").addClass(l+"on");g=setTimeout(m.next,e.slideshowSpeed)};H=function(){clearTimeout(g);ba.text(e.slideshowStart).unbind([v,B,I,k].join(" ")).one(k,t);A.removeClass(l+"on").addClass(l+
"off")};e.slideshowAuto?t():H()}}function n(g){if(!ia){D=g;e=h(d.extend({},d.data(D,r)));u=d(D);s=0;if(e.rel!==M){u=d("."+ca).filter(function(){return(d.data(this,r).rel||this.rel)===e.rel});s=u.index(D);if(s===-1){u=u.add(D);s=u.length-1}}if(!N){N=X=q;A.show();if(e.returnFocus)try{D.blur();d(D).one(Y,function(){try{this.focus()}catch(k){}})}catch(l){}O.css({opacity:+e.opacity,cursor:e.overlayClose?"pointer":x}).show();e.w=c(e.initialWidth,F);e.h=c(e.initialHeight,w);m.position(0);la&&G.bind(p+ja+
" scroll."+ja,function(){O.css({width:G.width(),height:G.height(),top:G.scrollTop(),left:G.scrollLeft()})}).trigger("scroll."+ja);j(J,e.onOpen);ma.add(da).add(ea).add(ba).add(na).hide();oa.html(e.close).show()}m.load(q)}}var p="resize.",w="y",x="auto",q=true,M="nofollow",F="x",E={transition:"elastic",speed:300,width:false,initialWidth:"600",innerWidth:false,maxWidth:false,height:false,initialHeight:"450",innerHeight:false,maxHeight:false,scalePhotos:q,scrolling:q,inline:false,html:false,iframe:false,
photo:false,href:false,title:false,rel:false,opacity:0.9,preloading:q,current:" {current} / {total}",previous:"\u4e0a\u4e00\u4e2a",next:"\u4e0b\u4e00\u4e2a",close:"\u5173\u95ed",open:false,returnFocus:q,loop:q,slideshow:false,slideshowAuto:q,slideshowSpeed:2500,slideshowStart:"start slideshow",slideshowStop:"stop slideshow",onOpen:false,onLoad:false,onComplete:false,onCleanup:false,onClosed:false,overlayClose:q,escKey:q,arrowKey:q},r="colorbox",o="cbox",J=o+"_open",B=o+"_load",v=o+"_complete",I=o+"_cleanup",Y=o+"_closed",ka=o+"_purge",
ta=o+"_loaded",Z=d.browser.msie&&!d.support.opacity,la=Z&&d.browser.version<7,ja=o+"_IE6",O,A,R,L,pa,qa,ra,sa,u,G,C,fa,ga,na,ma,ba,ea,da,oa,S,V,P,Q,D,s,e,N,X,ia=false,m,ca=o+"Element";m=d.fn[r]=d[r]=function(g,l){var k=this,t;if(!k[0]&&k.selector)return k;g=g||{};if(l)g.onComplete=l;if(!k[0]||k.selector===undefined){k=d("<a/>");g.open=q}k.each(function(){d.data(this,r,d.extend({},d.data(this,r)||E,g));d(this).addClass(ca)});t=g.open;if(d.isFunction(t))t=t.call(k);t&&n(k[0]);return k};m.init=function(){G=
d(a);A=b().attr({id:r,"class":Z?o+"IE":""});O=b("Overlay",la?"position:absolute":"").hide();R=b("Wrapper");L=b("Content").append(C=b("LoadedContent","width:0; height:0; overflow:hidden"),ga=b("LoadingOverlay").add(b("LoadingGraphic")),na=b("Title"),ma=b("Current"),ea=b("Next"),da=b("Previous"),ba=b("Slideshow").bind(J,z),oa=b("Close"));R.append(b().append(b("TopLeft"),pa=b("TopCenter"),b("TopRight")),b(false,"clear:left").append(qa=b("MiddleLeft"),L,ra=b("MiddleRight")),b(false,"clear:left").append(b("BottomLeft"),
sa=b("BottomCenter"),b("BottomRight"))).children().children().css({"float":"left"});fa=b(false,"position:absolute; width:9999px; visibility:hidden; display:none");d("body").prepend(O,A.append(R,fa));L.children().hover(function(){d(this).addClass("hover")},function(){d(this).removeClass("hover")}).addClass("hover");S=pa.height()+sa.height()+L.outerHeight(q)-L.height();V=qa.width()+ra.width()+L.outerWidth(q)-L.width();P=C.outerHeight(q);Q=C.outerWidth(q);A.css({"padding-bottom":S,"padding-right":V}).hide();
ea.click(m.next);da.click(m.prev);oa.click(m.close);L.children().removeClass("hover");d("."+ca).live("click",function(g){if(!(g.button!==0&&typeof g.button!=="undefined"||g.ctrlKey||g.shiftKey||g.altKey)){g.preventDefault();n(this)}});O.click(function(){e.overlayClose&&m.close()});d(document).bind("keydown",function(g){if(N&&e.escKey&&g.keyCode===27){g.preventDefault();m.close()}if(N&&e.arrowKey&&!X&&u[1])if(g.keyCode===37&&(s||e.loop)){g.preventDefault();da.click()}else if(g.keyCode===39&&(s<u.length-
1||e.loop)){g.preventDefault();ea.click()}})};m.remove=function(){A.add(O).remove();d("."+ca).die("click").removeData(r).removeClass(ca)};m.position=function(g,l){function k(K){pa[0].style.width=sa[0].style.width=L[0].style.width=K.style.width;ga[0].style.height=ga[1].style.height=L[0].style.height=qa[0].style.height=ra[0].style.height=K.style.height}var t,H=Math.max(document.documentElement.clientHeight-e.h-P-S,0)/2+G.scrollTop(),y=Math.max(G.width()-e.w-Q-V,0)/2+G.scrollLeft();t=A.width()===e.w+
Q&&A.height()===e.h+P?0:g;R[0].style.width=R[0].style.height="9999px";A.dequeue().animate({width:e.w+Q,height:e.h+P,top:H,left:y},{duration:t,complete:function(){k(this);X=false;R[0].style.width=e.w+Q+V+"px";R[0].style.height=e.h+P+S+"px";l&&l()},step:function(){k(this)}})};m.resize=function(g){if(N){g=g||{};if(g.width)e.w=c(g.width,F)-Q-V;if(g.innerWidth)e.w=c(g.innerWidth,F);C.css({width:e.w});if(g.height)e.h=c(g.height,w)-P-S;if(g.innerHeight)e.h=c(g.innerHeight,w);if(!g.innerHeight&&!g.height){g=
C.wrapInner("<div style='overflow:auto'></div>").children();e.h=g.height();g.replaceWith(g.children())}C.css({height:e.h});m.position(e.transition==="none"?0:e.speed)}};m.prep=function(g){function l(H){var y,K,aa,W,ha=u.length,ua=e.loop;m.position(H,function(){function va(){Z&&A[0].style.removeAttribute("filter")}if(N){Z&&k&&C.fadeIn(100);C.show();j(ta);na.show().html(e.title);if(ha>1){typeof e.current==="string"&&ma.html(e.current.replace(/\{current\}/,s+1).replace(/\{total\}/,ha)).show();ea[ua||
s<ha-1?"show":"hide"]().html(e.next);da[ua||s?"show":"hide"]().html(e.previous);y=s?u[s-1]:u[ha-1];aa=s<ha-1?u[s+1]:u[0];e.slideshow&&ba.show();if(e.preloading){W=d.data(aa,r).href||aa.href;K=d.data(y,r).href||y.href;W=d.isFunction(W)?W.call(aa):W;K=d.isFunction(K)?K.call(y):K;if(f(W))d("<img/>")[0].src=W;if(f(K))d("<img/>")[0].src=K}}ga.hide();e.transition==="fade"?A.fadeTo(t,1,function(){va()}):va();G.bind(p+o,function(){m.position(0)});j(v,e.onComplete)}})}if(N){var k,t=e.transition==="none"?0:
e.speed;G.unbind(p+o);C.remove();C=b("LoadedContent").html(g);C.hide().appendTo(fa.show()).css({width:function(){e.w=e.w||C.width();e.w=e.mw&&e.mw<e.w?e.mw:e.w;return e.w}(),overflow:e.scrolling?x:"hidden"}).css({height:function(){e.h=e.h||C.height();e.h=e.mh&&e.mh<e.h?e.mh:e.h;return e.h}()}).prependTo(L);fa.hide();d("#"+o+"Photo").css({cssFloat:"none",marginLeft:x,marginRight:x});la&&d("select").not(A.find("select")).filter(function(){return this.style.visibility!=="hidden"}).css({visibility:"hidden"}).one(I,
function(){this.style.visibility="inherit"});e.transition==="fade"?A.fadeTo(t,0,function(){l(0)}):l(t)}};m.load=function(g){var l,k,t,H=m.prep;X=q;D=u[s];g||(e=h(d.extend({},d.data(D,r))));j(ka);j(B,e.onLoad);e.h=e.height?c(e.height,w)-P-S:e.innerHeight&&c(e.innerHeight,w);e.w=e.width?c(e.width,F)-Q-V:e.innerWidth&&c(e.innerWidth,F);e.mw=e.w;e.mh=e.h;if(e.maxWidth){e.mw=c(e.maxWidth,F)-Q-V;e.mw=e.w&&e.w<e.mw?e.w:e.mw}if(e.maxHeight){e.mh=c(e.maxHeight,w)-P-S;e.mh=e.h&&e.h<e.mh?e.h:e.mh}l=e.href;ga.show();
if(e.inline){b().hide().insertBefore(d(l)[0]).one(ka,function(){d(this).replaceWith(C.children())});H(d(l))}else if(e.iframe){A.one(ta,function(){var y=d("<iframe frameborder='0' style='width:100%; height:100%; border:0; display:block'/>")[0];y.name=o+ +new Date;y.src=e.href;if(!e.scrolling)y.scrolling="no";if(Z)y.allowtransparency="true";d(y).appendTo(C).one(ka,function(){y.src="//about:blank"})});H(" ")}else if(e.html)H(e.html);else if(f(l)){k=new Image;k.onload=function(){var y;k.onload=null;k.id=
o+"Photo";d(k).css({border:"none",display:"block",cssFloat:"left"});if(e.scalePhotos){t=function(){k.height-=k.height*y;k.width-=k.width*y};if(e.mw&&k.width>e.mw){y=(k.width-e.mw)/k.width;t()}if(e.mh&&k.height>e.mh){y=(k.height-e.mh)/k.height;t()}}if(e.h)k.style.marginTop=Math.max(e.h-k.height,0)/2+"px";u[1]&&(s<u.length-1||e.loop)&&d(k).css({cursor:"pointer"}).click(m.next);if(Z)k.style.msInterpolationMode="bicubic";setTimeout(function(){H(k)},1)};setTimeout(function(){k.src=l},1)}else l&&fa.load(l,
function(y,K,aa){H(K==="error"?"Request unsuccessful: "+aa.statusText:d(this).children())})};m.next=function(){if(!X){s=s<u.length-1?s+1:0;m.load()}};m.prev=function(){if(!X){s=s?s-1:u.length-1;m.load()}};m.close=function(){if(N&&!ia){ia=q;N=false;j(I,e.onCleanup);G.unbind("."+o+" ."+ja);O.fadeTo("fast",0);A.stop().fadeTo("fast",0,function(){j(ka);C.remove();A.add(O).css({opacity:1,cursor:x}).hide();setTimeout(function(){ia=false;j(Y,e.onClosed)},1)})}};m.element=function(){return d(D)};m.settings=
E;d(m.init)})(jQuery,this);
(function(d){d.fn.extend({jTab:function(a){a=d.extend({menutag:"",boxtag:"",cur:0,act:"click",fade:0,auto:false,autotime:2E3},a);this[0]&&this.each(function(){var b=this,c=a.cur,f=d(a.menutag,b),h=d(a.boxtag,b),j=a.boxtag;f.eq(c).addClass("current");h.eq(c).siblings(j).hide();f.bind(a.act,function(){d(this).addClass("current").siblings().removeClass("current");h.eq(d(this).index()).fadeIn(a.fade).siblings(j).hide()}).hover(function(){d(this).addClass("hover")},function(){d(this).removeClass("hover")});if(a.auto){var z=
f.length;d(b).hover(function(){clearTimeout(b._timer)},function(){b._timer=setTimeout(function n(){f.eq(c).addClass("current").siblings().removeClass("current");h.eq(c).fadeIn(a.fade).siblings(j).hide();c++;if(c==z)c=0;b._timer=setTimeout(n,parseInt(a.autotime))},parseInt(a.autotime))}).trigger("mouseleave")}})},jScroll:function(a){a=d.extend({auto:3E3,speed:800,vertical:false,scroll:1},a);var b=false,c=a.vertical?"height":"width",f=0,h=d(this),j=h.find("ul"),z=j.children("li");z.clone().prependTo(j);
h.css({overflow:"hidden"});for(i=0;i<=z.size()-1;i++){itemSize=a.vertical?z.eq(i).outerHeight():z.eq(i).outerWidth();f+=itemSize}var n=a.vertical?h.height():h.width();j.css(c,f*2+"px");if(f>=n)b=true;var p=h[0];h.hover(function(){clearTimeout(p._timer)},function(){if(b)p._timer=setTimeout(function w(){itemSize=scrollLen=0;z=j.children("li");for(i=0;i<=a.scroll-1;i++){itemSize=a.vertical?z.eq(i).outerHeight():z.eq(i).outerWidth();scrollLen+=itemSize}animCss=a.vertical?{marginTop:-scrollLen+"px"}:{marginLeft:-scrollLen+
"px"};j.animate(animCss,a.speed,function(){j.css(a.vertical?"margin-top":"margin-left","0");z.slice(0,a.scroll).appendTo(j)});p._timer=setTimeout(w,parseInt(a.auto+a.speed))},parseInt(a.auto+a.speed))}).trigger("mouseleave")},jSlide:function(a){a=d.extend({menutag:"",boxtag:"",cur:0,act:"click",speed:0,auto:false,timer:2E3},a);this[0]&&this.each(function(){var b=this,c=d(".con",b),f=d(".tab",b),h=d("li",f),j=d("> li",c).length,z=d("> li",c).outerHeight(),n=0;d(h).eq(n).addClass("current");showImg=
function(p){c.stop(true,false).animate({marginTop:-z*p},a.speed);h.eq(p).addClass("current").siblings().removeClass("current")};h.mouseover(function(){n=h.index(this);showImg(n)});d(b).hover(function(){b._timer&&clearTimeout(b._timer)},function(){b._timer=setTimeout(function p(){showImg(n);n++;if(n===j)n=0;b._timer=setTimeout(p,parseInt(a.timer))},parseInt(a.timer))}).mouseout()})}})})(jQuery);
$(function(){
$("#g-nav a").hover(function(){var d=$(this).parent(),a=d.index();a=$("#s-nav li").eq(a);d.addClass("current");a.is(":empty")||a.show().siblings().hide()},function(){$(this).parent().removeClass("current")});$("div.header,#s-nav").mouseleave(function(){$("#s-nav li:visible").hide()});$("#h-fav .l1").click(function(){addBookmark()});slideShowFn(".pList li",".animal-stars .prev",".animal-stars .next",6,1E3,true,2500,"left");slideShowFn(".pList2 li",".i-photos .prev",".i-photos .next",5,
1E3,true,5500,"left");$("a[rel='gGroup']").colorbox();
var pName = $('#popWin');//2011-03-03
if (pName[0]) {
	function showAd(time){setTimeout(function(){pName.show();},time);}
	function hideAd(time){setTimeout(function(){pName.hide();},time);}
	$('#popWin .close').click(function(){pName.hide();});
	showAd(1000);
	function scrollAd(){
		var offset = $(window).height() - pName.height() + $(document).scrollTop();
		pName.animate({top:offset},{duration:600,queue:false});
	}
	scrollAd();
	$(window).scroll(scrollAd);
}
});function addBookmark(d){switch(d){case 1:U="http://www.cszoo.com/";T="\u957f\u6c99\u751f\u6001\u52a8\u7269\u56ed";break;default:U=window.location;T=document.title}try{window.external.addFavorite(U,T)}catch(a){try{window.sidebar.addPanel(T,U,"")}catch(b){alert("\u60a8\u7684\u6d4f\u89c8\u5668\u4e0d\u652f\u6301\u76f4\u63a5\u6dfb\u52a0\u6536\u85cf\uff0c\u8bf7\u4f7f\u7528Ctrl+D\u8fdb\u884c\u6dfb\u52a0")}}}function toggleNode(d){$(d).toggle()}function rowInterlaceStyle(d,a){var b=a.length;$(d).each(function(c){$(this).css("background-color",a[c%b])})}
function slideShowFn(d,a,b,c,f,h,j,z){if(typeof d!="string"||typeof a!="string"&&typeof b!="string")return false;typeof $=="function"&&$(function(){var n=$(d),p=[],w=0,x,q=true;if(typeof f!="number")f=600;if(typeof c!="number")c=2;else c--;if(typeof h!="boolean")h=true;else if(h){if(typeof j!="number")j=1E3;q=z=="right"?false:true}n.each(function(J){x=$(this);p.push(x);x.hover(function(){r&&clearInterval(r)},function(){o()});J>c&&x.hide()});if(p.length>0){var M=false,F=false,E=p.length-1,r;typeof a==
"string"&&$(a).css("cursor","pointer").click(function(){M=true;if(!F){var J,B,v=w;if(w>0)w-=1;else w=E;J=v==0?E:v-1;B=v+c>E?v-E+c-1:v+c;$(p[v]).before(p[J]);p[J].show(f);p[B].hide(f,function(){M=false})}}).hover(function(){r&&clearInterval(r)},function(){o()});typeof b=="string"&&$(b).css("cursor","pointer").click(function(){F=true;if(!M){var J,B,v=w;if(w<E)w+=1;else w=0;B=v==0?E:v-1;J=v+c+1>E?v-E+c:v+c+1;p[v].hide(f,function(){p[B].after(p[v]);F=false});p[J].show(f)}}).hover(function(){r&&clearInterval(r)},
function(){o()});var o=function(){if(h)if(q&&typeof b=="string")r=setInterval(function(){$(b).trigger("click")},j);else if(typeof a=="string")r=setInterval(function(){$(a).trigger("click")},j)};o()}})}
function tipsWindown(d,a,b,c,f,h,j,z){$("#windown-box").remove();b=b>=950?this.width=950:this.width=b;c=c>=527?this.height=527:this.height=c;var n=new String;n='<div id="windownbg" style="height:'+$(document).height()+'px;filter:alpha(opacity=0);opacity:0;z-index: 999901"></div>';n+='<div id="windown-box">';n+='<div id="windown-title"><h2></h2><span id="windown-close">Close</span></div>';n+='<div id="windown-content-border"><div id="windown-content"></div></div>';n+="</div>";$("body").append(n);show=
false;contentType=a.substring(0,a.indexOf(":"));a=a.substring(a.indexOf(":")+1,a.length);switch(contentType){case "text":$("#windown-content").html(a);break;case "id":$("#windown-content").html($(a).html());break;case "img":$("#windown-content").ajaxStart(function(){$(this).html("loading")});$.ajax({error:function(){$("#windown-content").html("<p class='windown-error'>loading error...</p>")},success:function(){$("#windown-content").html("<img src="+a+" alt='' />")}});break;case "url":n=a.split("?");
$("#windown-content").ajaxStart(function(){$(this).html("loading")});$.ajax({type:n[0],url:n[1],data:n[2],error:function(){$("#windown-content").html("<p class='windown-error'>loading error...</p>")},success:function(B){$("#windown-content").html(B)}});break;case "iframe":$("#windown-content").ajaxStart(function(){$(this).html("loading")});$.ajax({error:function(){$("#windown-content").html("<p class='windown-error'>loading error...</p>")},success:function(){$("#windown-content").html('<iframe src="'+
a+'" width="100%" height="'+parseInt(c)+'px" scrolling="auto" frameborder="0" marginheight="0" marginwidth="0"></iframe>')}})}$("#windown-title h2").html(d);j==true?$("#windownbg").show():$("#windownbg").remove();$("#windownbg").animate({opacity:"0.5"},"normal");$("#windown-box").show();if(c>=527){$("#windown-title").css({width:parseInt(b)+22+"px"});$("#windown-content").css({width:parseInt(b)+17+"px",height:c+"px"})}else{$("#windown-title").css({width:parseInt(b)+10+"px"});$("#windown-content").css({width:b+
"px",height:c+"px"})}var p=document.documentElement.clientWidth,w=document.documentElement.clientHeight;d=document.documentElement.scrollTop;(IE6=$.browser.msie&&$.browser.version=="6.0")?$("#windown-box").css({left:"50%",top:parseInt(w/2)+d+"px",marginTop:-((parseInt(c)+53)/2)+"px",marginLeft:-((parseInt(b)+32)/2)+"px",zIndex:"999999"}):$("#windown-box").css({left:"50%",top:"50%",marginTop:-((parseInt(c)+53)/2)+"px",marginLeft:-((parseInt(b)+32)/2)+"px",zIndex:"999999"});var x=document.getElementById("windown-box"),
q=document.getElementById("windown-title"),M=0,F=0,E,r=false;E=IE6?d:0;var o=x.scrollWidth,J=x.scrollHeight;q.onmouseover=function(){q.style.cursor=f==true?"move":"default"};q.onmousedown=function(B){r=f==true?true:false;B=window.event?window.event:B;var v=x.offsetTop-E;M=B.clientX-x.offsetLeft;F=B.clientY-v;document.onmousemove=function(I){if(r){I=window.event?window.event:I;var Y=I.clientX-M;I=I.clientY-F;if(Y>0&&Y+o<p&&I>0&&I+J<w){x.style.left=Y+"px";x.style.top=parseInt(I+E)+"px";x.style.margin=
"auto"}}};document.onmouseup=function(){r=false};x.onselectstart=function(){return false}};$("#windown-content").attr("class","windown-"+z);b=function(){$("#windownbg").remove();$("#windown-box").fadeOut("slow",function(){$(this).remove()})};$("#windownbg").click(function(){$("#windownbg").remove();$("#windown-box").fadeOut("slow",function(){$(this).remove()})});h==""||typeof h=="undefined"?$("#windown-close").click(function(){$("#windownbg").remove();$("#windown-box").fadeOut("slow",function(){$(this).remove()})}):
setTimeout(b,h)}$(window).load(function(){try{ie6&&document.execCommand("BackgroundImageCache",false,true)}catch(d){}finally{ie6=$this=null}});

