// jQuery 1.1.3.pack.js
/*
 * jQuery 1.1.3 - New Wave Javascript
 *
 * Copyright (c) 2007 John Resig (jquery.com)
 * Dual licensed under the MIT (MIT-LICENSE.txt)
 * and GPL (GPL-LICENSE.txt) licenses.
 *
 * $Date: 2007-07-01 08:54:38 -0400 (Sun, 01 Jul 2007) $
 * $Rev: 2200 $
 */
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('7(1e 12.6=="J"){12.J=12.J;u 6=q(a,c){7(12==9||!9.3Z)v 17 6(a,c);v 9.3Z(a,c)};7(1e $!="J")6.1I$=$;u $=6;6.11=6.8r={3Z:q(a,c){a=a||P;7(6.14(a))v 17 6(P)[6.11.1D?"1D":"1X"](a);7(1e a=="1v"){u m=/^[^<]*(<(.|\\s)+>)[^>]*$/.1Q(a);7(m)a=6.2Y([m[1]]);B v 17 6(c).1H(a)}v 9.4A(a.18==23&&a||(a.3B||a.C&&a!=12&&!a.1r&&a[0]!=J&&a[0].1r)&&6.2K(a)||[a])},3B:"1.1.3",7Y:q(){v 9.C},C:0,1L:q(a){v a==J?6.2K(9):9[a]},1W:q(a){u b=6(a);b.5l=9;v b},4A:q(a){9.C=0;[].R.O(9,a);v 9},F:q(a,b){v 6.F(9,a,b)},2m:q(a){u b=-1;9.F(q(i){7(9==a)b=i});v b},1b:q(f,d,e){u c=f;7(f.18==31)7(d==J)v 9.C&&6[e||"1b"](9[0],f)||J;B{c={};c[f]=d}v 9.F(q(a){E(u b T c)6.1b(e?9.Y:9,b,6.4D(9,c[b],e,a,b))})},1c:q(b,a){v 9.1b(b,a,"2q")},2R:q(e){7(1e e=="1v")v 9.2V().3m(P.67(e));u t="";6.F(e||9,q(){6.F(9.2S,q(){7(9.1r!=8)t+=9.1r!=1?9.5R:6.11.2R([9])})});v t},8c:q(){u a,1Z=1g;v 9.F(q(){7(!a)a=6.2Y(1Z,9.2N);u b=a[0].3r(K);9.L.2J(b,9);1q(b.1a)b=b.1a;b.4h(9)})},3m:q(){v 9.2F(1g,K,1,q(a){9.4h(a)})},5s:q(){v 9.2F(1g,K,-1,q(a){9.2J(a,9.1a)})},5p:q(){v 9.2F(1g,M,1,q(a){9.L.2J(a,9)})},5n:q(){v 9.2F(1g,M,-1,q(a){9.L.2J(a,9.1U)})},2E:q(){v 9.5l||6([])},1H:q(t){u b=6.3h(9,q(a){v 6.1H(t,a)});v 9.1W(/[^+>] [^+>]/.16(t)||t.I("..")>-1?6.5c(b):b)},7z:q(e){u d=9.1A(9.1H("*"));d.F(q(){9.1I$19={};E(u a T 9.$19)9.1I$19[a]=6.1f({},9.$19[a])}).3C();u r=9.1W(6.3h(9,q(a){v a.3r(e!=J?e:K)}));d.F(q(){u b=9.1I$19;E(u a T b)E(u c T b[a])6.S.1A(9,a,b[a][c],b[a][c].W);9.1I$19=H});v r},1j:q(t){v 9.1W(6.14(t)&&6.2x(9,q(b,a){v t.O(b,[a])})||6.2w(t,9))},4V:q(t){v 9.1W(t.18==31&&6.2w(t,9,K)||6.2x(9,q(a){v(t.18==23||t.3B)?6.2s(a,t)<0:a!=t}))},1A:q(t){v 9.1W(6.1R(9.1L(),t.18==31?6(t).1L():t.C!=J&&(!t.Q||t.Q=="71")?t:[t]))},33:q(a){v a?6.2w(a,9).C>0:M},6T:q(a){v a==J?(9.C?9[0].2t:H):9.1b("2t",a)},3K:q(a){v a==J?(9.C?9[0].26:H):9.2V().3m(a)},2F:q(f,d,g,e){u c=9.C>1,a;v 9.F(q(){7(!a){a=6.2Y(f,9.2N);7(g<0)a.6G()}u b=9;7(d&&6.Q(9,"1s")&&6.Q(a[0],"3k"))b=9.3V("1x")[0]||9.4h(P.55("1x"));6.F(a,q(){e.O(b,[c?9.3r(K):9])})})}};6.1f=6.11.1f=q(){u c=1g[0],a=1;7(1g.C==1){c=9;a=0}u b;1q((b=1g[a++])!=H)E(u i T b)c[i]=b[i];v c};6.1f({6o:q(){7(6.1I$)$=6.1I$;v 6},14:q(a){v!!a&&1e a!="1v"&&!a.Q&&a.18!=23&&/q/i.16(a+"")},43:q(a){v a.4x&&a.2N&&!a.2N.4w},Q:q(b,a){v b.Q&&b.Q.1S()==a.1S()},F:q(a,b,c){7(a.C==J)E(u i T a)b.O(a[i],c||[i,a[i]]);B E(u i=0,4v=a.C;i<4v;i++)7(b.O(a[i],c||[i,a[i]])===M)1E;v a},4D:q(c,b,d,e,a){7(6.14(b))b=b.3D(c,[e]);u f=/z-?2m|5Y-?8p|1d|5U|8i-?1u/i;v b&&b.18==3x&&d=="2q"&&!f.16(a)?b+"4p":b},V:{1A:q(b,c){6.F(c.2Q(/\\s+/),q(i,a){7(!6.V.3v(b.V,a))b.V+=(b.V?" ":"")+a})},1B:q(b,c){b.V=c!=J?6.2x(b.V.2Q(/\\s+/),q(a){v!6.V.3v(c,a)}).5K(" "):""},3v:q(t,c){v 6.2s(c,(t.V||t).3s().2Q(/\\s+/))>-1}},4n:q(e,o,f){E(u i T o){e.Y["2M"+i]=e.Y[i];e.Y[i]=o[i]}f.O(e,[]);E(u i T o)e.Y[i]=e.Y["2M"+i]},1c:q(e,p){7(p=="1u"||p=="28"){u b={},3q,3p,d=["85","83","82","80"];6.F(d,q(){b["7X"+9]=0;b["7W"+9+"7V"]=0});6.4n(e,b,q(){7(6(e).33(\':4g\')){3q=e.7S;3p=e.7Q}B{e=6(e.3r(K)).1H(":4c").5r("2D").2E().1c({49:"1y",3i:"7N",15:"2j",7M:"0",7K:"0"}).5j(e.L)[0];u a=6.1c(e.L,"3i")||"3n";7(a=="3n")e.L.Y.3i="7I";3q=e.7G;3p=e.7F;7(a=="3n")e.L.Y.3i="3n";e.L.3t(e)}});v p=="1u"?3q:3p}v 6.2q(e,p)},2q:q(e,a,d){u g;7(a=="1d"&&6.N.1h){g=6.1b(e.Y,"1d");v g==""?"1":g}7(a.3w(/3u/i))a=6.1T;7(!d&&e.Y[a])g=e.Y[a];B 7(P.3d&&P.3d.40){7(a.3w(/3u/i))a="3u";a=a.1o(/([A-Z])/g,"-$1").2T();u b=P.3d.40(e,H);7(b)g=b.52(a);B 7(a=="15")g="1G";B 6.4n(e,{15:"2j"},q(){u c=P.3d.40(9,"");g=c&&c.52(a)||""})}B 7(e.3U){u f=a.1o(/\\-(\\w)/g,q(m,c){v c.1S()});g=e.3U[a]||e.3U[f]}v g},2Y:q(a,c){u r=[];c=c||P;6.F(a,q(i,b){7(!b)v;7(b.18==3x)b=b.3s();7(1e b=="1v"){u s=6.2p(b).2T(),1z=c.55("1z"),1K=[];u a=!s.I("<2z")&&[1,"<2y>","</2y>"]||!s.I("<7i")&&[1,"<4Y>","</4Y>"]||(!s.I("<7e")||!s.I("<1x")||!s.I("<7d")||!s.I("<7a"))&&[1,"<1s>","</1s>"]||!s.I("<3k")&&[2,"<1s><1x>","</1x></1s>"]||(!s.I("<77")||!s.I("<76"))&&[3,"<1s><1x><3k>","</3k></1x></1s>"]||!s.I("<75")&&[2,"<1s><4U>","</4U></1s>"]||[0,"",""];1z.26=a[1]+b+a[2];1q(a[0]--)1z=1z.1a;7(6.N.1h){7(!s.I("<1s")&&s.I("<1x")<0)1K=1z.1a&&1z.1a.2S;B 7(a[1]=="<1s>"&&s.I("<1x")<0)1K=1z.2S;E(u n=1K.C-1;n>=0;--n)7(6.Q(1K[n],"1x")&&!1K[n].2S.C)1K[n].L.3t(1K[n])}b=6.2K(1z.2S)}7(0===b.C&&(!6.Q(b,"35")&&!6.Q(b,"2y")))v;7(b[0]==J||6.Q(b,"35")||b.73)r.R(b);B r=6.1R(r,b)});v r},1b:q(c,d,a){u e=6.43(c)?{}:6.3J;7(e[d]){7(a!=J)c[e[d]]=a;v c[e[d]]}B 7(a==J&&6.N.1h&&6.Q(c,"35")&&(d=="72"||d=="70"))v c.6X(d).5R;B 7(c.4x){7(d=="1d"&&6.N.1h){7(a!=J){c.5U=1;c.1j=(c.1j||"").1o(/4J\\([^)]*\\)/,"")+(34(a).3s()=="6S"?"":"4J(1d="+a*4Q+")")}v c.1j?(34(c.1j.3w(/1d=([^)]*)/)[1])/4Q).3s():""}7(a!=J)c.6Q(d,a);7(6.N.1h&&/4I|2r/.16(d)&&!6.43(c))v c.2Z(d,2);v c.2Z(d)}B{d=d.1o(/-([a-z])/6M,q(z,b){v b.1S()});7(a!=J)c[d]=a;v c[d]}},2p:q(t){v t.1o(/^\\s+|\\s+$/g,"")},2K:q(a){u r=[];7(1e a!="6K")E(u i=0,25=a.C;i<25;i++)r.R(a[i]);B r=a.4X(0);v r},2s:q(b,a){E(u i=0,25=a.C;i<25;i++)7(a[i]==b)v i;v-1},1R:q(a,b){E(u i=0;b[i];i++)a.R(b[i]);v a},5c:q(a){u r=[],3F=6.1m++;E(u i=0,4C=a.C;i<4C;i++)7(3F!=a[i].1m){a[i].1m=3F;r.R(a[i])}v r},1m:0,2x:q(c,b,d){7(1e b=="1v")b=17 3S("a","i","v "+b);u a=[];E(u i=0,30=c.C;i<30;i++)7(!d&&b(c[i],i)||d&&!b(c[i],i))a.R(c[i]);v a},3h:q(c,b){7(1e b=="1v")b=17 3S("a","v "+b);u d=[];E(u i=0,30=c.C;i<30;i++){u a=b(c[i],i);7(a!==H&&a!=J){7(a.18!=23)a=[a];d=d.6x(a)}}v d}});17 q(){u b=6w.6v.2T();6.N={6u:b.3w(/.+(?:6t|6r|6p|6n)[\\/: ]([\\d.]+)/)[1],2g:/5g/.16(b),2k:/2k/.16(b),1h:/1h/.16(b)&&!/2k/.16(b),3g:/3g/.16(b)&&!/(6i|5g)/.16(b)};6.6h=!6.N.1h||P.6g=="6d";6.1T=6.N.1h?"1T":"5t",6.3J={"E":"69","68":"V","3u":6.1T,5t:6.1T,1T:6.1T,26:"26",V:"V",2t:"2t",2B:"2B",2D:"2D",66:"64",2H:"2H",62:"5Z"}};6.F({5E:"a.L",4r:"6.4r(a)",8o:"6.21(a,2,\'1U\')",8n:"6.21(a,2,\'4t\')",8k:"6.4q(a.L.1a,a)",8h:"6.4q(a.1a)"},q(i,n){6.11[i]=q(a){u b=6.3h(9,n);7(a&&1e a=="1v")b=6.2w(a,b);v 9.1W(b)}});6.F({5j:"3m",8g:"5s",2J:"5p",8f:"5n"},q(i,n){6.11[i]=q(){u a=1g;v 9.F(q(){E(u j=0,25=a.C;j<25;j++)6(a[j])[n](9)})}});6.F({5r:q(a){6.1b(9,a,"");9.8e(a)},8d:q(c){6.V.1A(9,c)},8b:q(c){6.V.1B(9,c)},8a:q(c){6.V[6.V.3v(9,c)?"1B":"1A"](9,c)},1B:q(a){7(!a||6.1j(a,[9]).r.C)9.L.3t(9)},2V:q(){1q(9.1a)9.3t(9.1a)}},q(i,n){6.11[i]=q(){v 9.F(n,1g)}});6.F(["5Q","5P","5M","5L"],q(i,n){6.11[n]=q(a,b){v 9.1j(":"+n+"("+a+")",b)}});6.F(["1u","28"],q(i,n){6.11[n]=q(h){v h==J?(9.C?6.1c(9[0],n):H):9.1c(n,h.18==31?h:h+"4p")}});6.1f({4o:{"":"m[2]==\'*\'||6.Q(a,m[2])","#":"a.2Z(\'24\')==m[2]",":":{5P:"i<m[3]-0",5M:"i>m[3]-0",21:"m[3]-0==i",5Q:"m[3]-0==i",2P:"i==0",2O:"i==r.C-1",5J:"i%2==0",5G:"i%2","2P-2X":"a.L.3V(\'*\')[0]==a","2O-2X":"6.21(a.L.5F,1,\'4t\')==a","88-2X":"!6.21(a.L.5F,2,\'4t\')",5E:"a.1a",2V:"!a.1a",5L:"(a.5D||a.87||\'\').I(m[3])>=0",4g:\'"1y"!=a.G&&6.1c(a,"15")!="1G"&&6.1c(a,"49")!="1y"\',1y:\'"1y"==a.G||6.1c(a,"15")=="1G"||6.1c(a,"49")=="1y"\',86:"!a.2B",2B:"a.2B",2D:"a.2D",2H:"a.2H||6.1b(a,\'2H\')",2R:"\'2R\'==a.G",4c:"\'4c\'==a.G",5C:"\'5C\'==a.G",4m:"\'4m\'==a.G",5B:"\'5B\'==a.G",4l:"\'4l\'==a.G",5A:"\'5A\'==a.G",5z:"\'5z\'==a.G",1J:\'"1J"==a.G||6.Q(a,"1J")\',5y:"/5y|2y|84|1J/i.16(a.Q)"},"[":"6.1H(m[2],a).C"},5x:[/^\\[ *(@)([\\w-]+) *([!*$^~=]*) *(\'?"?)(.*?)\\4 *\\]/,/^(\\[)\\s*(.*?(\\[.*?\\])?[^[]*?)\\s*\\]/,/^(:)([\\w-]+)\\("?\'?(.*?(\\(.*?\\))?[^(]*?)"?\'?\\)/,17 3o("^([:.#]*)("+(6.2I="(?:[\\\\w\\81-\\7Z*1I-]|\\\\\\\\.)")+"+)")],2w:q(a,c,b){u d,1O=[];1q(a&&a!=d){d=a;u f=6.1j(a,c,b);a=f.t.1o(/^\\s*,\\s*/,"");1O=b?c=f.r:6.1R(1O,f.r)}v 1O},1H:q(t,l){7(1e t!="1v")v[t];7(l&&!l.1r)l=H;l=l||P;7(!t.I("//")){l=l.4i;t=t.2G(2,t.C)}B 7(!t.I("/")&&!l.2N){l=l.4i;t=t.2G(1,t.C);7(t.I("/")>=1)t=t.2G(t.I("/"),t.C)}u b=[l],2a=[],2O;1q(t&&2O!=t){u r=[];2O=t;t=6.2p(t).1o(/^\\/\\//,"");u k=M;u g=17 3o("^[/>]\\\\s*("+6.2I+"+)");u m=g.1Q(t);7(m){u o=m[1].1S();E(u i=0;b[i];i++)E(u c=b[i].1a;c;c=c.1U)7(c.1r==1&&(o=="*"||c.Q==o.1S()))r.R(c);b=r;t=t.1o(g,"");7(t.I(" ")==0)7T;k=K}B{g=/^((\\/?\\.\\.)|([>\\/+~]))\\s*([a-z]*)/i;7((m=g.1Q(t))!=H){r=[];u o=m[4],1m=6.1m++;m=m[1];E(u j=0,2b=b.C;j<2b;j++)7(m.I("..")<0){u n=m=="~"||m=="+"?b[j].1U:b[j].1a;E(;n;n=n.1U)7(n.1r==1){7(m=="~"&&n.1m==1m)1E;7(!o||n.Q==o.1S()){7(m=="~")n.1m=1m;r.R(n)}7(m=="+")1E}}B r.R(b[j].L);b=r;t=6.2p(t.1o(g,""));k=K}}7(t&&!k){7(!t.I(",")){7(l==b[0])b.4f();2a=6.1R(2a,b);r=b=[l];t=" "+t.2G(1,t.C)}B{u h=17 3o("^("+6.2I+"+)(#)("+6.2I+"+)");u m=h.1Q(t);7(m){m=[0,m[2],m[3],m[1]]}B{h=17 3o("^([#.]?)("+6.2I+"*)");m=h.1Q(t)}m[2]=m[2].1o(/\\\\/g,"");u f=b[b.C-1];7(m[1]=="#"&&f&&f.4e){u p=f.4e(m[2]);7((6.N.1h||6.N.2k)&&p&&1e p.24=="1v"&&p.24!=m[2])p=6(\'[@24="\'+m[2]+\'"]\',f)[0];b=r=p&&(!m[3]||6.Q(p,m[3]))?[p]:[]}B{E(u i=0;b[i];i++){u a=m[1]!=""||m[0]==""?"*":m[2];7(a=="*"&&b[i].Q.2T()=="7R")a="2C";r=6.1R(r,b[i].3V(a))}7(m[1]==".")r=6.4d(r,m[2]);7(m[1]=="#"){u e=[];E(u i=0;r[i];i++)7(r[i].2Z("24")==m[2]){e=[r[i]];1E}r=e}b=r}t=t.1o(h,"")}}7(t){u d=6.1j(t,r);b=r=d.r;t=6.2p(d.t)}}7(t)b=[];7(b&&l==b[0])b.4f();2a=6.1R(2a,b);v 2a},4d:q(r,m,a){m=" "+m+" ";u b=[];E(u i=0;r[i];i++){u c=(" "+r[i].V+" ").I(m)>=0;7(!a&&c||a&&!c)b.R(r[i])}v b},1j:q(t,r,h){u d;1q(t&&t!=d){d=t;u p=6.5x,m;E(u i=0;p[i];i++){m=p[i].1Q(t);7(m){t=t.7P(m[0].C);m[2]=m[2].1o(/\\\\/g,"");1E}}7(!m)1E;7(m[1]==":"&&m[2]=="4V")r=6.1j(m[3],r,K).r;B 7(m[1]==".")r=6.4d(r,m[2],h);B 7(m[1]=="@"){u g=[],G=m[3];E(u i=0,2b=r.C;i<2b;i++){u a=r[i],z=a[6.3J[m[2]]||m[2]];7(z==H||/4I|2r/.16(m[2]))z=6.1b(a,m[2]);7((G==""&&!!z||G=="="&&z==m[5]||G=="!="&&z!=m[5]||G=="^="&&z&&!z.I(m[5])||G=="$="&&z.2G(z.C-m[5].C)==m[5]||(G=="*="||G=="~=")&&z.I(m[5])>=0)^h)g.R(a)}r=g}B 7(m[1]==":"&&m[2]=="21-2X"){u e=6.1m++,g=[],16=/(\\d*)n\\+?(\\d*)/.1Q(m[3]=="5J"&&"2n"||m[3]=="5G"&&"2n+1"||!/\\D/.16(m[3])&&"n+"+m[3]||m[3]),2P=(16[1]||1)-0,d=16[2]-0;E(u i=0,2b=r.C;i<2b;i++){u j=r[i],L=j.L;7(e!=L.1m){u c=1;E(u n=L.1a;n;n=n.1U)7(n.1r==1)n.4b=c++;L.1m=e}u b=M;7(2P==1){7(d==0||j.4b==d)b=K}B 7((j.4b+d)%2P==0)b=K;7(b^h)g.R(j)}r=g}B{u f=6.4o[m[1]];7(1e f!="1v")f=6.4o[m[1]][m[2]];4a("f = q(a,i){v "+f+"}");r=6.2x(r,f,h)}}v{r:r,t:t}},4r:q(c){u b=[];u a=c.L;1q(a&&a!=P){b.R(a);a=a.L}v b},21:q(a,e,c,b){e=e||1;u d=0;E(;a;a=a[c])7(a.1r==1&&++d==e)1E;v a},4q:q(n,a){u r=[];E(;n;n=n.1U){7(n.1r==1&&(!a||n!=a))r.R(n)}v r}});6.S={1A:q(d,e,c,b){7(6.N.1h&&d.3l!=J)d=12;7(!c.1M)c.1M=9.1M++;7(b!=J){u f=c;c=q(){v f.O(9,1g)};c.W=b;c.1M=f.1M}7(!d.$19)d.$19={};7(!d.$1p)d.$1p=q(){u a;7(1e 6=="J"||6.S.48)v a;a=6.S.1p.O(d,1g);v a};u g=d.$19[e];7(!g){g=d.$19[e]={};7(d.47)d.47(e,d.$1p,M);B d.7O("5m"+e,d.$1p)}g[c.1M]=c;7(!9.U[e])9.U[e]=[];7(6.2s(d,9.U[e])==-1)9.U[e].R(d)},1M:1,U:{},1B:q(b,c,a){u d=b.$19,1V,2m;7(d){7(c&&c.G){a=c.46;c=c.G}7(!c){E(c T d)9.1B(b,c)}B 7(d[c]){7(a)3j d[c][a.1M];B E(a T b.$19[c])3j d[c][a];E(1V T d[c])1E;7(!1V){7(b.45)b.45(c,b.$1p,M);B b.7L("5m"+c,b.$1p);1V=H;3j d[c];1q(9.U[c]&&((2m=6.2s(b,9.U[c]))>=0))3j 9.U[c][2m]}}E(1V T d)1E;7(!1V)b.$1p=b.$19=H}},1t:q(c,b,d){b=6.2K(b||[]);7(!d)6.F(9.U[c]||[],q(){6.S.1t(c,b,9)});B{u a,1V,11=6.14(d[c]||H);b.5k(9.44({G:c,1N:d}));7(6.14(d.$1p)&&(a=d.$1p.O(d,b))!==M)9.48=K;7(11&&a!==M&&!6.Q(d,\'a\'))d[c]();9.48=M}},1p:q(b){u a;b=6.S.44(b||12.S||{});u c=9.$19&&9.$19[b.G],1Z=[].4X.3D(1g,1);1Z.5k(b);E(u j T c){1Z[0].46=c[j];1Z[0].W=c[j].W;7(c[j].O(9,1Z)===M){b.2d();b.2L();a=M}}7(6.N.1h)b.1N=b.2d=b.2L=b.46=b.W=H;v a},44:q(c){u a=c;c=6.1f({},a);c.2d=q(){7(a.2d)v a.2d();a.7J=M};c.2L=q(){7(a.2L)v a.2L();a.7H=K};7(!c.1N&&c.5i)c.1N=c.5i;7(6.N.2g&&c.1N.1r==3)c.1N=a.1N.L;7(!c.42&&c.4k)c.42=c.4k==c.1N?c.7E:c.4k;7(c.5h==H&&c.5f!=H){u e=P.4i,b=P.4w;c.5h=c.5f+(e&&e.5I||b.5I);c.7D=c.7C+(e&&e.5b||b.5b)}7(!c.3f&&(c.5a||c.5O))c.3f=c.5a||c.5O;7(!c.59&&c.58)c.59=c.58;7(!c.3f&&c.1J)c.3f=(c.1J&1?1:(c.1J&2?3:(c.1J&4?2:0)));v c}};6.11.1f({3e:q(c,a,b){v c=="3z"?9.41(c,a,b):9.F(q(){6.S.1A(9,c,b||a,b&&a)})},41:q(d,b,c){v 9.F(q(){6.S.1A(9,d,q(a){6(9).3C(a);v(c||b).O(9,1g)},c&&b)})},3C:q(a,b){v 9.F(q(){6.S.1B(9,a,b)})},1t:q(a,b){v 9.F(q(){6.S.1t(a,b,9)})},1P:q(){u a=1g;v 9.57(q(e){9.3O=0==9.3O?1:0;e.2d();v a[9.3O].O(9,[e])||M})},7y:q(f,g){q 3Y(e){u p=e.42;1q(p&&p!=9)2c{p=p.L}2h(e){p=9};7(p==9)v M;v(e.G=="3X"?f:g).O(9,[e])}v 9.3X(3Y).54(3Y)},1D:q(f){7(6.3c)f.O(P,[6]);B 6.2o.R(q(){v f.O(9,[6])});v 9}});6.1f({3c:M,2o:[],1D:q(){7(!6.3c){6.3c=K;7(6.2o){6.F(6.2o,q(){9.O(P)});6.2o=H}7(6.N.3g||6.N.2k)P.45("53",6.1D,M);7(!12.7x.C)6(12).1X(q(){6("#3W").1B()})}}});17 q(){6.F(("7w,7v,1X,7u,7t,3z,57,7s,"+"7r,7q,7p,3X,54,7o,2y,"+"4l,7n,7m,7l,29").2Q(","),q(i,o){6.11[o]=q(f){v f?9.3e(o,f):9.1t(o)}});7(6.N.3g||6.N.2k)P.47("53",6.1D,M);B 7(6.N.1h){P.7k("<7j"+"7h 24=3W 7g=K "+"2r=//:><\\/3a>");u a=P.4e("3W");7(a)a.7f=q(){7(9.39!="1n")v;6.1D()};a=H}B 7(6.N.2g)6.3R=3l(q(){7(P.39=="7c"||P.39=="1n"){3P(6.3R);6.3R=H;6.1D()}},10);6.S.1A(12,"1X",6.1D)};7(6.N.1h)6(12).41("3z",q(){u a=6.S.U;E(u b T a){u c=a[b],i=c.C;7(i&&b!=\'3z\')79 c[i-1]&&6.S.1B(c[i-1],b);1q(--i)}});6.11.1f({78:q(c,b,a){9.1X(c,b,a,1)},1X:q(g,d,c,e){7(6.14(g))v 9.3e("1X",g);c=c||q(){};u f="3M";7(d)7(6.14(d)){c=d;d=H}B{d=6.2C(d);f="4W"}u h=9;6.37({1C:g,G:f,W:d,2v:e,1n:q(a,b){7(b=="27"||!e&&b=="4T")h.1b("26",a.36).3L().F(c,[a.36,b,a]);B c.O(h,[a.36,b,a])}});v 9},74:q(){v 6.2C(9)},3L:q(){v 9.1H("3a").F(q(){7(9.2r)6.4S(9.2r);B 6.3H(9.2R||9.5D||9.26||"")}).2E()}});6.F("4R,4E,4P,4O,4N,4F".2Q(","),q(i,o){6.11[o]=q(f){v 9.3e(o,f)}});6.1f({1L:q(e,c,a,d,b){7(6.14(c)){a=c;c=H}v 6.37({G:"3M",1C:e,W:c,27:a,3I:d,2v:b})},6Y:q(d,b,a,c){v 6.1L(d,b,a,c,1)},4S:q(b,a){v 6.1L(b,H,a,"3a")},6W:q(c,b,a){v 6.1L(c,b,a,"4L")},6V:q(d,b,a,c){7(6.14(b)){a=b;b={}}v 6.37({G:"4W",1C:d,W:b,27:a,3I:c})},6U:q(a){6.32.20=a},6Z:q(a){6.1f(6.32,a)},32:{U:K,G:"3M",20:0,4K:"6R/x-6P-35-6O",4M:K,2W:K,W:H},38:{},37:q(s){s=6.1f({},6.32,s);7(s.W){7(s.4M&&1e s.W!="1v")s.W=6.2C(s.W);7(s.G.2T()=="1L"){s.1C+=((s.1C.I("?")>-1)?"&":"?")+s.W;s.W=H}}7(s.U&&!6.3G++)6.S.1t("4R");u f=M;u h=12.4H?17 4H("6N.6L"):17 4G();h.7b(s.G,s.1C,s.2W);7(s.W)h.3N("6J-6I",s.4K);7(s.2v)h.3N("6H-3Q-6F",6.38[s.1C]||"6E, 6D 6C 6B 3T:3T:3T 6A");h.3N("X-6z-6y","4G");7(s.5e)s.5e(h);7(s.U)6.S.1t("4F",[h,s]);u g=q(d){7(h&&(h.39==4||d=="20")){f=K;7(i){3P(i);i=H}u c;2c{c=6.56(h)&&d!="20"?s.2v&&6.4B(h,s.1C)?"4T":"27":"29";7(c!="29"){u b;2c{b=h.3E("50-3Q")}2h(e){}7(s.2v&&b)6.38[s.1C]=b;u a=6.4Z(h,s.3I);7(s.27)s.27(a,c);7(s.U)6.S.1t("4N",[h,s])}B 6.3b(s,h,c)}2h(e){c="29";6.3b(s,h,c,e)}7(s.U)6.S.1t("4P",[h,s]);7(s.U&&!--6.3G)6.S.1t("4E");7(s.1n)s.1n(h,c);7(s.2W)h=H}};u i=3l(g,13);7(s.20>0)51(q(){7(h){h.6s();7(!f)g("20")}},s.20);2c{h.6q(s.W)}2h(e){6.3b(s,h,H,e)}7(!s.2W)g();v h},3b:q(s,a,b,e){7(s.29)s.29(a,b,e);7(s.U)6.S.1t("4O",[a,s,e])},3G:0,56:q(r){2c{v!r.1Y&&7A.7B=="4m:"||(r.1Y>=5d&&r.1Y<6m)||r.1Y==5q||6.N.2g&&r.1Y==J}2h(e){}v M},4B:q(a,c){2c{u b=a.3E("50-3Q");v a.1Y==5q||b==6.38[c]||6.N.2g&&a.1Y==J}2h(e){}v M},4Z:q(r,b){u c=r.3E("6l-G");u a=!b&&c&&c.I("4z")>=0;a=b=="4z"||a?r.6k:r.36;7(b=="3a")6.3H(a);7(b=="4L")a=4a("("+a+")");7(b=="3K")6("<1z>").3K(a).3L();v a},2C:q(a){u s=[];7(a.18==23||a.3B)6.F(a,q(){s.R(2e(9.6j)+"="+2e(9.2t))});B E(u j T a)7(a[j]&&a[j].18==23)6.F(a[j],q(){s.R(2e(j)+"="+2e(9))});B s.R(2e(j)+"="+2e(a[j]));v s.5K("&")},3H:q(a){7(12.4y)12.4y(a);B 7(6.N.2g)12.51(a,0);B 4a.3D(12,a)}});6.11.1f({1k:q(b,a){v b?9.1w({1u:"1k",28:"1k",1d:"1k"},b,a):9.1j(":1y").F(q(){9.Y.15=9.2f?9.2f:"";7(6.1c(9,"15")=="1G")9.Y.15="2j"}).2E()},1i:q(b,a){v b?9.1w({1u:"1i",28:"1i",1d:"1i"},b,a):9.1j(":4g").F(q(){9.2f=9.2f||6.1c(9,"15");7(9.2f=="1G")9.2f="2j";9.Y.15="1G"}).2E()},5o:6.11.1P,1P:q(a,b){v 6.14(a)&&6.14(b)?9.5o(a,b):a?9.1w({1u:"1P",28:"1P",1d:"1P"},a,b):9.F(q(){6(9)[6(9).33(":1y")?"1k":"1i"]()})},6f:q(b,a){v 9.1w({1u:"1k"},b,a)},6e:q(b,a){v 9.1w({1u:"1i"},b,a)},6c:q(b,a){v 9.1w({1u:"1P"},b,a)},6b:q(b,a){v 9.1w({1d:"1k"},b,a)},6a:q(b,a){v 9.1w({1d:"1i"},b,a)},7U:q(c,a,b){v 9.1w({1d:a},c,b)},1w:q(d,h,f,g){v 9.1l(q(){u c=6(9).33(":1y"),2z=6.5v(h,f,g),5u=9;E(u p T d)7(d[p]=="1i"&&c||d[p]=="1k"&&!c)v 6.14(2z.1n)&&2z.1n.O(9);9.2i=6.1f({},d);6.F(d,q(a,b){u e=17 6.2A(5u,2z,a);7(b.18==3x)e.2U(e.1O(),b);B e[b=="1P"?c?"1k":"1i":b](d)})})},1l:q(a,b){7(!b){b=a;a="2A"}v 9.F(q(){7(!9.1l)9.1l={};7(!9.1l[a])9.1l[a]=[];9.1l[a].R(b);7(9.1l[a].C==1)b.O(9)})}});6.1f({5v:q(b,a,c){u d=b&&b.18==65?b:{1n:c||!c&&a||6.14(b)&&b,1F:b,2u:c&&a||a&&a.18!=3S&&a||(6.2u.4j?"4j":"5w")};d.1F=(d.1F&&d.1F.18==3x?d.1F:{63:61,60:5d}[d.1F])||89;d.2M=d.1n;d.1n=q(){6.5N(9,"2A");7(6.14(d.2M))d.2M.O(9)};v d},2u:{5w:q(p,n,b,a){v b+a*p},4j:q(p,n,b,a){v((-5H.5X(p*5H.5W)/2)+0.5)*a+b}},1l:{},5N:q(b,a){a=a||"2A";7(b.1l&&b.1l[a]){b.1l[a].4f();u f=b.1l[a][0];7(f)f.O(b)}},3y:[],2A:q(h,e,j){u z=9;u y=h.Y;7(j=="1u"||j=="28"){u f=6.1c(h,"15");u g=y.4u;y.4u="1y"}z.a=q(){7(e.3A)e.3A.O(h,[z.2l]);7(j=="1d")6.1b(y,"1d",z.2l);B{y[j]=8m(z.2l)+"4p";y.15="2j"}};z.5V=q(){v 34(6.1c(h,j))};z.1O=q(){u r=34(6.2q(h,j));v r&&r>-8l?r:z.5V()};z.2U=q(c,b){z.4s=(17 5T()).5S();z.2l=c;z.a();6.3y.R(q(){v z.3A(c,b)});7(6.3y.C==1){u d=3l(q(){u a=6.3y;E(u i=0;i<a.C;i++)7(!a[i]())a.8j(i--,1);7(!a.C)3P(d)},13)}};z.1k=q(){7(!h.22)h.22={};h.22[j]=6.1b(h.Y,j);e.1k=K;z.2U(0,9.1O());7(j!="1d")y[j]="8q";6(h).1k()};z.1i=q(){7(!h.22)h.22={};h.22[j]=6.1b(h.Y,j);e.1i=K;z.2U(9.1O(),0)};z.3A=q(a,c){u t=(17 5T()).5S();7(t>e.1F+z.4s){z.2l=c;z.a();7(h.2i)h.2i[j]=K;u b=K;E(u i T h.2i)7(h.2i[i]!==K)b=M;7(b){7(f!=H){y.4u=g;y.15=f;7(6.1c(h,"15")=="1G")y.15="2j"}7(e.1i)y.15="1G";7(e.1i||e.1k)E(u p T h.2i)6.1b(y,p,h.22[p])}7(b&&6.14(e.1n))e.1n.O(h);v M}B{u n=t-9.4s;u p=n/e.1F;z.2l=6.2u[e.2u](p,n,a,(c-a),e.1F);z.a()}v K}}})}',62,524,'||||||jQuery|if||this|||||||||||||||||function||||var|return||||||else|length||for|each|type|null|indexOf|undefined|true|parentNode|false|browser|apply|document|nodeName|push|event|in|global|className|data||style|||fn|window||isFunction|display|test|new|constructor|events|firstChild|attr|css|opacity|typeof|extend|arguments|msie|hide|filter|show|queue|mergeNum|complete|replace|handle|while|nodeType|table|trigger|height|string|animate|tbody|hidden|div|add|remove|url|ready|break|duration|none|find|_|button|tb|get|guid|target|cur|toggle|exec|merge|toUpperCase|styleFloat|nextSibling|ret|pushStack|load|status|args|timeout|nth|orig|Array|id|al|innerHTML|success|width|error|done|rl|try|preventDefault|encodeURIComponent|oldblock|safari|catch|curAnim|block|opera|now|index||readyList|trim|curCSS|src|inArray|value|easing|ifModified|multiFilter|grep|select|opt|fx|disabled|param|checked|end|domManip|substr|selected|chars|insertBefore|makeArray|stopPropagation|old|ownerDocument|last|first|split|text|childNodes|toLowerCase|custom|empty|async|child|clean|getAttribute|el|String|ajaxSettings|is|parseFloat|form|responseText|ajax|lastModified|readyState|script|handleError|isReady|defaultView|bind|which|mozilla|map|position|delete|tr|setInterval|append|static|RegExp|oWidth|oHeight|cloneNode|toString|removeChild|float|has|match|Number|timers|unload|step|jquery|unbind|call|getResponseHeader|num|active|globalEval|dataType|props|html|evalScripts|GET|setRequestHeader|lastToggle|clearInterval|Modified|safariTimer|Function|00|currentStyle|getElementsByTagName|__ie_init|mouseover|handleHover|init|getComputedStyle|one|relatedTarget|isXMLDoc|fix|removeEventListener|handler|addEventListener|triggered|visibility|eval|nodeIndex|radio|classFilter|getElementById|shift|visible|appendChild|documentElement|swing|fromElement|submit|file|swap|expr|px|sibling|parents|startTime|previousSibling|overflow|ol|body|tagName|execScript|xml|setArray|httpNotModified|fl|prop|ajaxStop|ajaxSend|XMLHttpRequest|ActiveXObject|href|alpha|contentType|json|processData|ajaxSuccess|ajaxError|ajaxComplete|100|ajaxStart|getScript|notmodified|colgroup|not|POST|slice|fieldset|httpData|Last|setTimeout|getPropertyValue|DOMContentLoaded|mouseout|createElement|httpSuccess|click|ctrlKey|metaKey|charCode|scrollTop|unique|200|beforeSend|clientX|webkit|pageX|srcElement|appendTo|unshift|prevObject|on|after|_toggle|before|304|removeAttr|prepend|cssFloat|self|speed|linear|parse|input|reset|image|password|checkbox|textContent|parent|lastChild|odd|Math|scrollLeft|even|join|contains|gt|dequeue|keyCode|lt|eq|nodeValue|getTime|Date|zoom|max|PI|cos|font|maxLength|fast|600|maxlength|slow|readOnly|Object|readonly|createTextNode|class|htmlFor|fadeOut|fadeIn|slideToggle|CSS1Compat|slideUp|slideDown|compatMode|boxModel|compatible|name|responseXML|content|300|ie|noConflict|ra|send|it|abort|rv|version|userAgent|navigator|concat|With|Requested|GMT|1970|Jan|01|Thu|Since|reverse|If|Type|Content|array|XMLHTTP|ig|Microsoft|urlencoded|www|setAttribute|application|NaN|val|ajaxTimeout|post|getJSON|getAttributeNode|getIfModified|ajaxSetup|method|FORM|action|options|serialize|col|th|td|loadIfModified|do|colg|open|loaded|tfoot|thead|onreadystatechange|defer|ipt|leg|scr|write|keyup|keypress|keydown|change|mousemove|mouseup|mousedown|dblclick|scroll|resize|focus|blur|frames|hover|clone|location|protocol|clientY|pageY|toElement|clientWidth|clientHeight|cancelBubble|relative|returnValue|left|detachEvent|right|absolute|attachEvent|substring|offsetWidth|object|offsetHeight|continue|fadeTo|Width|border|padding|size|uFFFF|Left|u0128|Right|Bottom|textarea|Top|enabled|innerText|only|400|toggleClass|removeClass|wrap|addClass|removeAttribute|insertAfter|prependTo|children|line|splice|siblings|10000|parseInt|prev|next|weight|1px|prototype'.split('|'),0,{}))


//jquery.cookie.pack.js , you can download from here:http://jqueryjs.googlecode.com/svn/trunk/plugins/cookie/
/*
 * use like this
	$.cookie('the_cookie'); // get cookie
	$.cookie('the_cookie', 'the value'); // set cookie
	$.cookie('the_cookie', 'the value', {expires: 7}); // set cookie with an expiration date seven days in the future
	$.cookie('the_cookie', '', {expires: -1}); // delete cookie
*/
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?"":e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('j.5=u(9,a,2){6(h a!=\'v\'){2=2||{};6(a===m){a=\'\';2.3=-1}4 3=\'\';6(2.3&&(h 2.3==\'n\'||2.3.k)){4 7;6(h 2.3==\'n\'){7=w C();7.B(7.z()+(2.3*A*o*o*E))}l{7=2.3}3=\'; 3=\'+7.k()}4 8=2.8?\'; 8=\'+2.8:\'\';4 b=2.b?\'; b=\'+2.b:\'\';4 c=2.c?\'; c\':\'\';d.5=[9,\'=\',q(a),3,8,b,c].t(\'\')}l{4 g=m;6(d.5&&d.5!=\'\'){4 e=d.5.x(\';\');D(4 i=0;i<e.f;i++){4 5=j.r(e[i]);6(5.p(0,9.f+1)==(9+\'=\')){g=y(5.p(9.f+1));s}}}F g}};',42,42,'||options|expires|var|cookie|if|date|path|name|value|domain|secure|document|cookies|length|cookieValue|typeof||jQuery|toUTCString|else|null|number|60|substring|encodeURIComponent|trim|break|join|function|undefined|new|split|decodeURIComponent|getTime|24|setTime|Date|for|1000|return'.split('|'),0,{}))



//DatePicker

var datePickerDivID = "datepicker";
var iFrameDivID = "datepickeriframe";

var dayArrayShort = new Array('Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa');
var dayArrayMed = new Array('Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat');
var dayArrayLong = new Array('Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday');
var monthArrayShort = new Array('Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec');
var monthArrayMed = new Array('Jan', 'Feb', 'Mar', 'Apr', 'May', 'June', 'July', 'Aug', 'Sept', 'Oct', 'Nov', 'Dec');
var monthArrayLong = new Array('January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December');
 
// these variables define the date formatting we're expecting and outputting.
// If you want to use a different format by default, change the defaultDateSeparator
// and defaultDateFormat variables either here or on your HTML page.
var defaultDateSeparator = "-";        // common values would be "/" or "."
var defaultDateFormat = "ymd"    // valid values are "mdy", "dmy", and "ymd"
var dateSeparator = defaultDateSeparator;
var dateFormat = defaultDateFormat;


function displayDatePicker(dateFieldName, displayBelowThisObject, dtFormat, dtSep)
{
  var targetDateField = document.getElementsByName (dateFieldName).item(0);
 
  // if we weren't told what node to display the datepicker beneath, just display it
  // beneath the date field we're updating
  if (!displayBelowThisObject)
    displayBelowThisObject = targetDateField;
 
  // if a date separator character was given, update the dateSeparator variable
  if (dtSep)
    dateSeparator = dtSep;
  else
    dateSeparator = defaultDateSeparator;
 
  // if a date format was given, update the dateFormat variable
  if (dtFormat)
    dateFormat = dtFormat;
  else
    dateFormat = defaultDateFormat;
 
  var x = displayBelowThisObject.offsetLeft;
  var y = displayBelowThisObject.offsetTop + displayBelowThisObject.offsetHeight ;
 
  // deal with elements inside tables and such
  var parent = displayBelowThisObject;
  while (parent.offsetParent) {
    parent = parent.offsetParent;
    x += parent.offsetLeft;
    y += parent.offsetTop ;
  }
 
  drawDatePicker(targetDateField, x, y);
}


/**
Draw the datepicker object (which is just a table with calendar elements) at the
specified x and y coordinates, using the targetDateField object as the input tag
that will ultimately be populated with a date.

This function will normally be called by the displayDatePicker function.
*/
function drawDatePicker(targetDateField, x, y)
{
  var dt = getFieldDate(targetDateField.value );
 
  // the datepicker table will be drawn inside of a <div> with an ID defined by the
  // global datePickerDivID variable. If such a div doesn't yet exist on the HTML
  // document we're working with, add one.
  if (!document.getElementById(datePickerDivID)) {
    // don't use innerHTML to update the body, because it can cause global variables
    // that are currently pointing to objects on the page to have bad references
    //document.body.innerHTML += "<div id='" + datePickerDivID + "' class='dpDiv'></div>";
    var newNode = document.createElement("div");
    newNode.setAttribute("id", datePickerDivID);
    newNode.setAttribute("class", "dpDiv");
    newNode.setAttribute("style", "visibility: hidden;");
    document.body.appendChild(newNode);
  }
 
  // move the datepicker div to the proper x,y coordinate and toggle the visiblity
  var pickerDiv = document.getElementById(datePickerDivID);
  pickerDiv.style.position = "absolute";
  pickerDiv.style.left = x + "px";
  pickerDiv.style.top = y + "px";
  pickerDiv.style.visibility = (pickerDiv.style.visibility == "visible" ? "hidden" : "visible");
  pickerDiv.style.display = (pickerDiv.style.display == "block" ? "none" : "block");
  pickerDiv.style.zIndex = 10000;
 
  // draw the datepicker table
  refreshDatePicker(targetDateField.name, dt.getFullYear(), dt.getMonth(), dt.getDate());
}


/**
This is the function that actually draws the datepicker calendar.
*/
function refreshDatePicker(dateFieldName, year, month, day)
{
  // if no arguments are passed, use today's date; otherwise, month and year
  // are required (if a day is passed, it will be highlighted later)
  var thisDay = new Date();
 
  if ((month >= 0) && (year > 0)) {
    thisDay = new Date(year, month, 1);
  } else {
    day = thisDay.getDate();
    thisDay.setDate(1);
  }
 
  // the calendar will be drawn as a table
  // you can customize the table elements with a global CSS style sheet,
  // or by hardcoding style and formatting elements below
  var crlf = "\r\n";
  var TABLE = "<table cols=7 class='dpTable'>" + crlf;
  var xTABLE = "</table>" + crlf;
  var TR = "<tr class='dpTR'>";
  var TR_title = "<tr class='dpTitleTR'>";
  var TR_days = "<tr class='dpDayTR'>";
  var TR_todaybutton = "<tr class='dpTodayButtonTR'>";
  var xTR = "</tr>" + crlf;
  var TD = "<td class='dpTD' onMouseOut='this.className=\"dpTD\";' onMouseOver=' this.className=\"dpTDHover\";' ";    // leave this tag open, because we'll be adding an onClick event
  var TD_title = "<td colspan=5 class='dpTitleTD'>";
  var TD_buttons = "<td class='dpButtonTD'>";
  var TD_todaybutton = "<td colspan=7 class='dpTodayButtonTD'>";
  var TD_days = "<td class='dpDayTD'>";
  var TD_selected = "<td class='dpDayHighlightTD' onMouseOut='this.className=\"dpDayHighlightTD\";' onMouseOver='this.className=\"dpTDHover\";' ";    // leave this tag open, because we'll be adding an onClick event
  var xTD = "</td>" + crlf;
  var DIV_title = "<div class='dpTitleText'>";
  var DIV_selected = "<div class='dpDayHighlight'>";
  var xDIV = "</div>";
 
  // start generating the code for the calendar table
  var html = TABLE;
 
  // this is the title bar, which displays the month and the buttons to
  // go back to a previous month or forward to the next month
  html += TR_title;
  html += TD_buttons + getButtonCode(dateFieldName, thisDay, -1, "&lt;") + xTD;
  html += TD_title + DIV_title + monthArrayLong[ thisDay.getMonth()] + " " + thisDay.getFullYear() + xDIV + xTD;
  html += TD_buttons + getButtonCode(dateFieldName, thisDay, 1, "&gt;") + xTD;
  html += xTR;
 
  // this is the row that indicates which day of the week we're on
  html += TR_days;
  for(i = 0; i < dayArrayShort.length; i++)
    html += TD_days + dayArrayShort[i] + xTD;
  html += xTR;
 
  // now we'll start populating the table with days of the month
  html += TR;
 
  // first, the leading blanks
  for (i = 0; i < thisDay.getDay(); i++)
    html += TD + "&nbsp;" + xTD;
 
  // now, the days of the month
  do {
    dayNum = thisDay.getDate();
    TD_onclick = " onclick=\"updateDateField('" + dateFieldName + "', '" + getDateString(thisDay) + "');\">";
    
    if (dayNum == day)
      html += TD_selected + TD_onclick + DIV_selected + dayNum + xDIV + xTD;
    else
      html += TD + TD_onclick + dayNum + xTD;
    
    // if this is a Saturday, start a new row
    if (thisDay.getDay() == 6)
      html += xTR + TR;
    
    // increment the day
    thisDay.setDate(thisDay.getDate() + 1);
  } while (thisDay.getDate() > 1)
 
  // fill in any trailing blanks
  if (thisDay.getDay() > 0) {
    for (i = 6; i > thisDay.getDay(); i--)
      html += TD + "&nbsp;" + xTD;
  }
  html += xTR;
 
  // add a button to allow the user to easily return to today, or close the calendar
  var today = new Date();
  var todayString = "Today is " + dayArrayMed[today.getDay()] + ", " + monthArrayMed[ today.getMonth()] + " " + today.getDate();
  html += TR_todaybutton + TD_todaybutton;
  html += "<button class='dpTodayButton' onClick='refreshDatePicker(\"" + dateFieldName + "\");'>this month</button> ";
  html += "<button class='dpTodayButton' onClick='updateDateField(\"" + dateFieldName + "\");'>close</button>";
  html += xTD + xTR;
 
  // and finally, close the table
  html += xTABLE;
 
  document.getElementById(datePickerDivID).innerHTML = html;
  // add an "iFrame shim" to allow the datepicker to display above selection lists
  adjustiFrame();
}


/**
Convenience function for writing the code for the buttons that bring us back or forward
a month.
*/
function getButtonCode(dateFieldName, dateVal, adjust, label)
{
  var newMonth = (dateVal.getMonth () + adjust) % 12;
  var newYear = dateVal.getFullYear() + parseInt((dateVal.getMonth() + adjust) / 12);
  if (newMonth < 0) {
    newMonth += 12;
    newYear += -1;
  }
 
  return "<button class='dpButton' onClick='refreshDatePicker(\"" + dateFieldName + "\", " + newYear + ", " + newMonth + ");'>" + label + "</button>";
}


/**
Convert a JavaScript Date object to a string, based on the dateFormat and dateSeparator
variables at the beginning of this script library.
*/
function getDateString(dateVal)
{
  var dayString = "00" + dateVal.getDate();
  var monthString = "00" + (dateVal.getMonth()+1);
  dayString = dayString.substring(dayString.length - 2);
  monthString = monthString.substring(monthString.length - 2);
 
  switch (dateFormat) {
    case "dmy" :
      return dayString + dateSeparator + monthString + dateSeparator + dateVal.getFullYear();
    case "ymd" :
      return dateVal.getFullYear() + dateSeparator + monthString + dateSeparator + dayString;
    case "mdy" :
    default :
      return monthString + dateSeparator + dayString + dateSeparator + dateVal.getFullYear();
  }
}


/**
Convert a string to a JavaScript Date object.
*/
function getFieldDate(dateString)
{
  var dateVal;
  var dArray;
  var d, m, y;
 
  try {
    dArray = splitDateString(dateString);
    if (dArray) {
      switch (dateFormat) {
        case "dmy" :
          d = parseInt(dArray[0], 10);
          m = parseInt(dArray[1], 10) - 1;
          y = parseInt(dArray[2], 10);
          break;
        case "ymd" :
          d = parseInt(dArray[2], 10);
          m = parseInt(dArray[1], 10) - 1;
          y = parseInt(dArray[0], 10);
          break;
        case "mdy" :
        default :
          d = parseInt(dArray[1], 10);
          m = parseInt(dArray[0], 10) - 1;
          y = parseInt(dArray[2], 10);
          break;
      }
      dateVal = new Date(y, m, d);
    } else if (dateString) {
      dateVal = new Date(dateString);
    } else {
      dateVal = new Date();
    }
  } catch(e) {
    dateVal = new Date();
  }
 
  return dateVal;
}


/**
Try to split a date string into an array of elements, using common date separators.
If the date is split, an array is returned; otherwise, we just return false.
*/
function splitDateString(dateString)
{
  var dArray;
  if (dateString.indexOf("/") >= 0)
    dArray = dateString.split("/");
  else if (dateString.indexOf(".") >= 0)
    dArray = dateString.split(".");
  else if (dateString.indexOf("-") >= 0)
    dArray = dateString.split("-");
  else if (dateString.indexOf("\\") >= 0)
    dArray = dateString.split("\\");
  else
    dArray = false;
 
  return dArray;
}


function updateDateField(dateFieldName, dateString)
{
  var targetDateField = document.getElementsByName (dateFieldName).item(0);
  if (dateString)
    targetDateField.value = dateString;
 
  var pickerDiv = document.getElementById(datePickerDivID);
  pickerDiv.style.visibility = "hidden";
  pickerDiv.style.display = "none";
 
  adjustiFrame();
  targetDateField.focus();
 
  // after the datepicker has closed, optionally run a user-defined function called
  // datePickerClosed, passing the field that was just updated as a parameter
  // (note that this will only run if the user actually selected a date from the datepicker)
  if ((dateString) && (typeof(datePickerClosed) == "function"))
    datePickerClosed(targetDateField);
}

function adjustiFrame(pickerDiv, iFrameDiv)
{
  // we know that Opera doesn't like something about this, so if we
  // think we're using Opera, don't even try
  var is_opera = (navigator.userAgent.toLowerCase().indexOf("opera") != -1);
  if (is_opera)
    return;
  
  // put a try/catch block around the whole thing, just in case
  try {
    if (!document.getElementById(iFrameDivID)) {
      // don't use innerHTML to update the body, because it can cause global variables
      // that are currently pointing to objects on the page to have bad references
      //document.body.innerHTML += "<iframe id='" + iFrameDivID + "' src='javascript:false;' scrolling='no' frameborder='0'>";
      var newNode = document.createElement("iFrame");
      newNode.setAttribute("id", iFrameDivID);
      newNode.setAttribute("src", "javascript:false;");
      newNode.setAttribute("scrolling", "no");
      newNode.setAttribute ("frameborder", "0");
      document.body.appendChild(newNode);
    }
    
    if (!pickerDiv)
      pickerDiv = document.getElementById(datePickerDivID);
    if (!iFrameDiv)
      iFrameDiv = document.getElementById(iFrameDivID);
    
    try {
      iFrameDiv.style.position = "absolute";
      iFrameDiv.style.width = pickerDiv.offsetWidth;
      iFrameDiv.style.height = pickerDiv.offsetHeight ;
      iFrameDiv.style.top = pickerDiv.style.top;
      iFrameDiv.style.left = pickerDiv.style.left;
      iFrameDiv.style.zIndex = pickerDiv.style.zIndex - 1;
      iFrameDiv.style.visibility = pickerDiv.style.visibility ;
      iFrameDiv.style.display = pickerDiv.style.display;
    } catch(e) {
    }
 
  } catch (ee) {
  }
 
}





// common.js

//focus
 function setfocus(boxid)
 {
    document.getElementById(boxid).focus();
 } 
 
  /** common **/
function hide (id) 
{	
		var e = document.getElementById(id); if (e!=null) e.style.display = "none";
}
function show (id) 
{
		var e = document.getElementById(id); if (e!=null) e.style.display = "";
}

/* close window */
function closeIt() {
		self.close();
	}
function doClose() {
		setTimeout("closeIt()", 1800);
	}

/* close tip */
function close_tip()
{
document.getElementById("userad_tip").className="hidden";
    dazaza.DataAccess.MyAjax.Close_Tip();
    
}

function emitEmotion(em)
{
		var t=document.getElementById("Story_view1_tbRe");
		if(t!=null)t.value+=" "+em+" ";
		
		var tb=document.getElementById("_ctl0__ctl0_tbRe");
		if(tb!=null)tb.value+=" "+em+" ";
}

function Search(key)
{
    if (key!="") {
        window.location = "http://www.diglog.com/search.aspx?key="+key;
    }
}


function RegCheckName() 
{
	var name=document.getElementById("Register_box1_tbName").value;
	
	$("#msg_name").html("<img src=http://img.diglog.com/images/snake.gif>");
		$.ajax({
				type:"post",
				url:"/ajax.aspx?act=regcheckname",
				dataType:"html",
				data:"name="+name,
				success:function(result)
				{
						$("#msg_name").html(result);
				}
				});
}


function showHeaderLoginForm()
{
	$("#headerLogin").show("slow");
}



function bookmark(url, title)
{
	if(window.sidebar)
	{ // Mozilla Firefox Bookmark
		window.sidebar.addPanel(title, url,"");
	}
	else if(window.external)
	{ // IE Favorite
		window.external.AddFavorite(url, title);
	}
}


function check_english(input)
{
	for(var i=0;i<input.value.length;++i)
	{
		var c = input.value.charAt(i);
		if(	(c>='a' && c<='z') || (c>='A' && c<='Z') || (c>='0' && c<='9') )
			continue;
		if( c=='_' )
			continue;
		return false;
	}
	return true;
}


function checkEmail(input)
{
	var ret = false;
	if(input.value.indexOf(" ")<=0)
	{
		var at_index = input.value.indexOf("@");
		var c_index = input.value.lastIndexOf(".");
		ret = (at_index>0 && c_index>2 && (at_index+1)<c_index && c_index<input.value.length-1);
	}
	return ret;
}


function bk_delicious()
{
	return 'http://del.icio.us/post?v=4&title='+encodeURIComponent(document.title)+'&url='+encodeURIComponent(location.href);
}							

function showprofile(id)
{
	$('#tip'+id).cluetip({sticky: true});
}

//************************************************************
// mark.js
//************************************************************

//display state from the cookie




function mark_up(infoid)
 {
		$("#up"+infoid).html('<img src=http://img.diglog.com/images/snake.gif width=16 height=16>');
		//$("#mark"+infoid).html('<img border=0 src=http://img.diglog.com/images/snake.gif width=16 height=16>');
		$("#mark"+infoid).fadeOut("slow");
		//validate the cookie
		if($.cookie('MarkedInfoID')!=null && $.cookie('MarkedInfoID')!='')
		{
			var a=$.cookie('MarkedInfoID').split('|');
			for(var i=0;i<a.length;i++)
			{
				if(a[i]!='' && a[i]==infoid)
				{
								$("#mark"+infoid).toggleClass("digg_over");
								$("#mark"+infoid).fadeIn("slow");
								//$("#mark"+infoid).html(result);
								$("#up"+infoid).html("");	
								return;
				}
			}
		}

		$.ajax({
				type:"post",
				url:"/ajax.aspx?act=mark",
				dataType:"html",
				data:"infoid="+infoid,
				success:function(result)
				{
							if(result=="login")
							{
								window.location="http://www.diglog.com/signin.aspx";
							}
							else
							{
								$("#mark"+infoid).toggleClass("digg_over");
								$("#mark"+infoid).fadeIn("slow");
								$("#mark"+infoid).html(result);
								$("#up"+infoid).html("");								
							}

				}
				});
}
function bury(infoid)
 {
	$("#bury_span"+infoid).html("<img border=0 src=http://img.diglog.com/images/snake.gif width=16 height=16>");
	$("#item"+infoid).fadeOut("slow");
	$("#item"+infoid).toggleClass("item_blocked");
	$("#item"+infoid).fadeIn("slow");
	
			//validate the cookie
		if($.cookie('BuriedInfoID')!=null && $.cookie('BuriedInfoID')!='')
		{
			var a=$.cookie('BuriedInfoID').split('|');
			for(var i=0;i<a.length;i++)
			{
				if(a[i]!='' && a[i]==infoid)
				{
								$("#bury_span"+infoid).html(" <img border=0 src=http://www.diglog.com/images/success.gif width=10 height=10> ");
								return;
				}
			}
		}
	
	$.ajax({
				type:"post",
				url:"/ajax.aspx?act=bury",
				dataType:"html",
				data:"infoid="+infoid,
				success:function(result)
				{
					$("#bury_span"+infoid).html(result);
				}
				});
}
function unbury(infoid)
{
	$("#bury_span"+infoid).html("<img border=0 src=http://img.diglog.com/images/snake.gif width=16 height=16>");
	$("#item"+infoid).fadeOut("slow");
	$("#item"+infoid).toggleClass("item");
	$("#item"+infoid).fadeIn("slow");
	$.ajax({
				type:"post",
				url:"/ajax.aspx?act=unbury",
				dataType:"html",
				data:"infoid="+infoid,
				success:function(result)
				{
					$("#bury_span"+infoid).html(result);
				}
				});
}
function info_save(infoid)
{
	$("#save_span"+infoid).html("<img border=0 src=http://img.diglog.com/images/snake.gif width=16 height=16>");
	$.ajax({
				type:"post",
				url:"/ajax.aspx?act=save",
				dataType:"html",
				data:"infoid="+infoid,
				success:function(result)
				{
						$("#save_span"+infoid).html(result);
				}
				});
	
}
function info_unsave(infoid)
{
	$("#save_span"+infoid).html("<img src=http://img.diglog.com/images/snake.gif width=16 height=16>");
	$.ajax({
				type:"post",
				url:"/ajax.aspx?act=unsave",
				dataType:"html",
				data:"infoid="+infoid,
				success:function(result)
				{
						$("#save_span"+infoid).html(result);
				}
				});
}
function block_user(postername,infoid)
{
		$("#block-user_span"+infoid).html("<img src=http://img.diglog.com/images/snake.gif width=16 height=16>");
		$.ajax({
				type:"post",
				url:"/ajax.aspx?act=blockuser",
				dataType:"html",
				data:"postername="+postername,
				success:function(result)
				{
						$("#block-user_span"+infoid).html(result);
				}
				});
}

function RemoveBlocUser(name)
{
		$("#block-user_span"+name).html("<img src=http://img.diglog.com/images/snake.gif width=16 height=16>");
		$.ajax({
				type:"post",
				url:"/ajax.aspx?act=blockuser_remove",
				dataType:"html",
				data:"name="+name,
				success:function(result)
				{
						$("#blockuseritem-"+name).slideUp("slow");
				}
				});
}


//**************************************************************
//comment mark
//*************************************************************
function Comment_Mark_Up(CommentID,InfoPoster)
{
		$("#Comment_digg_button"+CommentID).html("<img src=http://img.diglog.com/images/snake.gif width=16 height=16>");
		$.ajax({
				type:"post",
				url:"/ajax.aspx?act=commentmarkup",
				dataType:"html",
				data:"commentid="+CommentID+"&infoposter"+InfoPoster,
				success:function(result)
				{
					$("#C_Mark_Span"+CommentID).html(result);
					$("#Comment_digg_button"+CommentID).html("");
					$("#Comment_digg_button"+CommentID).hide();
				}
				});
}

function Comment_Mark_Down(CommentID,InfoPoster)
{
		$("#Comment_digg_button"+CommentID).html("<img src=http://img.diglog.com/images/snake.gif width=16 height=16>");
		$.ajax({
				type:"post",
				url:"/ajax.aspx?act=commentmarkdown",
				dataType:"html",
				data:"commentid="+CommentID+"&infoposter"+InfoPoster,
				success:function(result)
				{
					$("#C_Mark_Span"+CommentID).html(result);
					$("#Comment_digg_button"+CommentID).html("");
					$("#Comment_digg_button"+CommentID).hide();
				}
				});
}

function EditComment(KeyID)
{
	var EditCommentBox=document.getElementById("EditCommentBox"+KeyID);
	var DisplayCommentBox=document.getElementById("DisplayCommentBox"+KeyID);
	var EditCommentLink=document.getElementById("EditCommentLink"+KeyID);
	var EditCommentTextarea=document.getElementById("EditCommentTextarea"+KeyID);
	hide("EditCommentLink"+KeyID);
	show("EditCommentBox"+KeyID);
	EditCommentBox.className="text";
	
	$("#EditCommentLink"+KeyID).hide("slow");
	$("#EditCommentBox"+KeyID).slideDown("slow");
	$("#EditCommentBox"+KeyID).addClass("text");
	$.ajax({
				type:"post",
				url:"/ajax.aspx?act=editcomment",
				dataType:"html",
				data:"keyid="+KeyID,
				success:function(result)
				{
					DisplayCommentBox.style.display="none";
					EditCommentTextarea.value=result;
				}
				});
}

function EditComment_Post(KeyID)
{
	var EditCommentBox=document.getElementById("EditCommentBox"+KeyID);
	var EditCommentTextarea=document.getElementById("EditCommentTextarea"+KeyID);
	var comment=EditCommentTextarea.value;
	var DisplayCommentBox=document.getElementById("DisplayCommentBox"+KeyID);
	var EditCommentLink=document.getElementById("EditCommentLink"+KeyID);
	$.ajax({
				type:"post",
				url:"/ajax.aspx?act=editcommentpost",
				dataType:"html",
				data:"keyid="+KeyID+"&comment="+comment,
				success:function(result)
				{
					EditCommentLink.style.display="";
					EditCommentBox.style.display="none";
					DisplayCommentBox.style.display="";
					DisplayCommentBox.className="text";
					DisplayCommentBox.innerHTML=result;
				}
				});
}

function EditComment_Cancel(KeyID)
{
	var EditCommentBox=document.getElementById("EditCommentBox"+KeyID);
	var DisplayCommentBox=document.getElementById("DisplayCommentBox"+KeyID);
	var EditCommentLink=document.getElementById("EditCommentLink"+KeyID);
	EditCommentLink.style.display="";
	EditCommentBox.style.display="none";
	DisplayCommentBox.style.display="";
	DisplayCommentBox.className="text";
}

//************************* 
function RefershCodeImage(guid)
{
	$("#codeImage").attr("src","/code-comment.aspx?guid="+guid);
}

function commentSubmit()
{
	//validate
	var IsSignin=$("#commentIsSignin").attr("value");
	var commentName=$("#commentName").attr("value");
	var commentBlog=$("#commentBlog").attr("value");
	var comment=$("#Story_view1_tbRe").attr("value");
	var commentCode=$("#commentCode").attr("value");
	var commentInfoID=$("#commentInfoID").attr("value");
	var mycode=$("#myCode").attr("value");
	var infoCategory=$("#infoCategory").attr("value");
	var reid=$("#reID").attr("value");
	var PageType=$("#PageType").attr("value");
	
	if(PageType==null)
	{
		PageType="view";
	}
	
	
	if(mycode==null)
	{
		mycode="";
	}
	
	if(reid==null)reid="";
	
	
	
	
	if(IsSignin==null)
	{
		IsSignin="0";
	}
	
	if(commentCode==null)
	{
		commentCode="";
	}
	
	if(commentName==null)
	{
		commentName="";
	}
	commentName=commentName.replace(/(^\s*)|(\s*$)/g, "");
	if(commentName=="")
	{
		$("#commentName").css("background-color","#FFFF78");
		$("#commentName").fadeOut();
		$("#commentName").fadeIn();
		return;
	}
	
	if(comment==null)
	{
		comment="";
	}
	comment=comment.replace(/(^\s*)|(\s*$)/g, "");
	
	if(comment=="")
	{
		$("#Story_view1_tbRe").css("background-color","#FFFF78");
		$("#Story_view1_tbRe").fadeOut();
		$("#Story_view1_tbRe").fadeIn();
		return;
	}
	
	if(IsSignin=="0" && PageType=="view")
	{
		if(commentCode=="")
		{
			$("#commentCode").css("background-color","#FFFF78");
			$("#commentCode").fadeOut();
			$("#commentCode").fadeIn();
			return;
		}
	}


	$("#commentLoading").show("slow");
	
	$.ajax({
				type:"post",
				url:"/ajax.aspx?act=postcomment",
				dataType:"html",
				data:"name="+commentName+"&blog="+commentBlog+"&comment="+comment+"&code="+commentCode+"&infoid="+commentInfoID+"&mycode="+mycode+"&reid="+reid+"&pagetype="+PageType,
				success:function(result)
				{
					
					if(!isNaN(result.substring(0,1)))
					{
						if(PageType=="view")
						{
							$("#commentList").slideUp("slow");
							$("#commentLoading").hide("slow");
							$("#Story_view1_tbRe").attr("value","");
							//$("#commentSbtBtn").attr("disabled","true");
							//window.location="http://www.diglog.com/story-go.aspx?category="+infoCategory+"&infoid="+commentInfoID+"&commentid="+result;
							$("#commentList").html(result);
							$("#commentList").slideDown("slow");
						}
						else
						{
							if(PageType=="default")
							{
								$("#GoBox"+commentInfoID).fadeOut("slow");
								$("#QCM"+commentInfoID).html("<img src=/images/success.gif border=0>");
							}
						}

					}
					else
					{
						$("#commentLoading").html(result);
					}
				}
				});
}

function reComment(keyid,postername)
{
	$("#reID").attr("value",keyid);
	$("#rePosterName").html(postername);
	$("#reCommentContent").html($("#DisplayCommentBox"+keyid).html());
	$("#reComment").slideDown("slow");
}

function reCommentCancel()
{
	$("#reComment").slideUp("slow");
	$("#reID").attr("value","");
}

function signinGo()
{
	var name=$("#signinName").attr("value");
	var pass=$("#signinPass").attr("value");
	var isRemember=$("#signinCbRemember").attr("checked");
	if(name==null)name="";
	if(pass==null)pass="";
	if(isRemember==null)isRemember="false";
	
	if(name=="" || pass=="")
	{
		return;
	}
	$("#message").html("<img src=http://img.diglog.com/images/snake.gif border=0 width=16 height=16>");

	$.ajax({
				type:"post",
				url:"/ajax.aspx?act=signin",
				dataType:"html",
				data:"name="+name+"&pass="+pass+"&isremember="+isRemember,
				success:function(result)
				{
					if (result=="ok") 
					{
						window.location="http://www.diglog.com";
					}
					else
					{
						$("#message").html("<br/><font color=red>"+result+"</font>");
					}
				}
				});

}

function SubmitCheckURL()
{

	
}

function ContinueSubmit()
{

}

// member-set.aspx
function CategoryFilterSelectAll()
{
			$("#CategoryFilterBox").find("input").attr("checked","true");
}

function AnchorDig(infoid)
{
		$.ajax({
				type:"post",
				url:"/ajax.aspx?act=anchordig",
				dataType:"html",
				data:"infoid="+infoid,
				success:function(result)
				{
					$("#anchor-dig-"+infoid).html(result);
				}
				});
}

function AnchorDigCancel(infoid)
{
		$.ajax({
				type:"post",
				url:"/ajax.aspx?act=anchordigcancel",
				dataType:"html",
				data:"infoid="+infoid,
				success:function(result)
				{
					$("#anchor-dig-"+infoid).html(result);
				}
				});
}

function GetDigMostUsers()
{
	$("#HotUsersTab").attr("class","");
	$("#DigMostTab").attr("class","current");
	$("#members-hot").slideUp("fast");
	if($("#members-digmost").html()=="")
	{
			$("#members-digmost").html("<img src=http://img.diglog.com/images/loading-tab.gif width=16 height=16>");
			$.ajax({
				type:"post",
				url:"/ajax.aspx?act=getdigmostusers",
				dataType:"html",
				data:"",
				success:function(result)
				{
					$("#members-digmost").html(result);
				}
				});
	}
	else
	{
		$("#members-digmost").slideDown("fast");
	}

}
function GetHotUsers()
{
	$("#HotUsersTab").attr("class","current");
	$("#DigMostTab").attr("class","");
	$("#members-digmost").slideUp("fast");
	$("#members-hot").slideDown("fast");
}

function GetHotUpcoming()
{
	$("#tab-HotUpcoming").attr("class","current");
	$("#tab-HotTagsList").attr("class","");
	$("#HotTagsList").slideUp("fast");
	$("#HotUpcoming").slideDown("fast");
}

function GetHotTagsList()
{
	$("#tab-HotUpcoming").attr("class","");
	$("#tab-HotTagsList").attr("class","current");
	$("#HotUpcoming").slideUp("fast");
	$("#HotTagsList").slideDown("fast");
}

function ShowPoster()
{
	$("#TabPosterOtherInfo").attr("class","");
	$("#TabPoster").attr("class","current");
	$("#posterotherinfo").slideUp("fast");
	$("#posterinfo").slideDown("fast");
}

function ShowPosterOtherInfo()
{
	$("#TabPosterOtherInfo").attr("class","current");
	$("#TabPoster").attr("class","");
	$("#posterinfo").slideUp("fast");
	$("#posterotherinfo").slideDown("fast");
}

var tempID;
function QuickComment(infoid)
{

		tempID=infoid;
		$("#GoBox"+infoid).html($("#QuickCommentForm").attr("value"));
		$("#commentInfoID").attr("value",infoid);
		$("#GoBox"+infoid).fadeIn();

}
function QuickCommentCancel()
{
	$("#GoBox"+tempID).fadeOut();
}

function GroupIt(infoid)
{
	$("#GoBox"+infoid).show();
	$("#GoBox"+infoid).html("<img src=http://img.diglog.com/images/snake.gif border=0 width=16 height=16>");
	$.ajax({
				url:"/ajax.aspx?act=getgroupit&infoid="+infoid,
				dataType:"html",
				data:"",
				success:function(result)
				{
					$("#GoBox"+infoid).html(result);
				}
				});
}

function GroupItCancel(infoid)
{
		$("#GoBox"+infoid).fadeOut();
}

function SaveGroupIt(groupname,infoid)
{
		$.ajax({
				type:"post",
				url:"/ajax.aspx?act=savegroupit",
				dataType:"html",
				data:"infoid="+infoid+"&groupname="+groupname,
				success:function(result)
				{
					$("#GoBox"+infoid).html(result);
				}
				});
}


function GenMyDiglog()
{
				var name=$("#name").attr("value");
				var startdate=$("#startdate").attr("value");
				var enddate=$("#enddate").attr("value");
				var istitle=$("#istitle").attr("value");
				var count =$("#count").attr("value");
				
				$.ajax({
				type:"post",
				url:"/ajax.aspx?act=genmydiglog",
				dataType:"html",
				data:"name="+name+"&startdate="+startdate+"&enddate="+enddate+"&istitle="+istitle+"&count="+count,
				success:function(result)
				{
					$("#mydiglog").slideDown();
					$("#code").attr("value",result);
					$("#perView").html(result);
				}
				});
}