//* 플래시 링크 *//
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}('o 7R={7O:\'1.11\'};h $41(P){k(P!=7x)};h $r(P){m(!$41(P))k W;m(P.3i)k\'C\';o r=4u P;m(r==\'2J\'&&P.7T){28(P.5o){1c 1:k\'C\';1c 3:k(/\\S/).2s(P.6L)?\'7P\':\'7N\'}}m(r==\'2J\'||r==\'h\'){28(P.6T){1c 1G:k\'19\';1c 5b:k\'7Q\';1c 1a:k\'6V\'}m(4u P.R==\'3H\'){m(P.29)k\'7J\';m(P.7f)k\'Q\'}}k r};h $33(){o 3F={};E(o i=0;i<Q.R;i++){E(o B X Q[i]){o ap=Q[i][B];o 4F=3F[B];m(4F&&$r(ap)==\'2J\'&&$r(4F)==\'2J\')3F[B]=$33(4F,ap);14 3F[B]=ap}}k 3F};o $L=h(){o 12=Q;m(!12[1])12=[c,12[0]];E(o B X 12[1])12[0][B]=12[1][B];k 12[0]};o $3y=h(){E(o i=0,l=Q.R;i<l;i++){Q[i].L=h(1l){E(o 1q X 1l){m(!c.1k[1q])c.1k[1q]=1l[1q];m(!c[1q])c[1q]=$3y.4h(1q)}}}};$3y.4h=h(1q){k h(N){k c.1k[1q].3p(N,1G.1k.6r.1S(Q,1))}};$3y(4W,1G,5s,7o);h $1O(P){k!!(P||P===0)};h $5n(P,6A){k $41(P)?P:6A};h $5D(2X,22){k 15.8q(15.5D()*(22-2X+1)+2X)};h $2u(){k V 8p().8r()};h $5T(1X){8s(1X);8P(1X);k 1d};o 30=h(P){P=P||{};P.L=$L;k P};o 8J=V 30(T);o 8F=V 30(M);M.67=M.48(\'67\')[0];T.7E=!!(M.8G);m(T.8H)T.21=T[T.8I?\'7V\':\'6U\']=1e;14 m(M.6B&&!M.8o&&!8n.85)T.3f=T[T.7E?\'84\':\'4G\']=1e;14 m(M.86!=1d)T.52=1e;T.87=T.3f;88.L=$L;m(4u 3O==\'7x\'){o 3O=h(){};m(T.3f)M.6X("83");3O.1k=(T.3f)?T["[[7Z.1k]]"]:{}}3O.1k.3i=h(){};m(T.6U)5v{M.81("80",W,1e)}53(e){};o 1a=h(2a){o 3P=h(){k(Q[0]!==1d&&c.1s&&$r(c.1s)==\'h\')?c.1s.3p(c,Q):c};$L(3P,c);3P.1k=2a;3P.6T=1a;k 3P};1a.1L=h(){};1a.1k={L:h(2a){o 4D=V c(1d);E(o B X 2a){o 6S=4D[B];4D[B]=1a.7e(6S,2a[B])}k V 1a(4D)},4U:h(){E(o i=0,l=Q.R;i<l;i++)$L(c.1k,Q[i])}};1a.7e=h(2F,2W){m(2F&&2F!=2W){o r=$r(2W);m(r!=$r(2F))k 2W;28(r){1c\'h\':o 4V=h(){c.1m=Q.7f.1m;k 2W.3p(c,Q)};4V.1m=2F;k 4V;1c\'2J\':k $33(2F,2W)}}k 2W};o 6F=V 1a({8c:h(I){c.2P=c.2P||[];c.2P.1x(I);k c},7q:h(){m(c.2P&&c.2P.R)c.2P.5Y().1J(10,c)},8b:h(){c.2P=[]}});o 2f=V 1a({1V:h(r,I){m(I!=1a.1L){c.$O=c.$O||{};c.$O[r]=c.$O[r]||[];c.$O[r].5F(I)}k c},1u:h(r,12,1J){m(c.$O&&c.$O[r]){c.$O[r].1D(h(I){I.1Z({\'N\':c,\'1J\':1J,\'Q\':12})()},c)}k c},3G:h(r,I){m(c.$O&&c.$O[r])c.$O[r].2Z(I);k c}});o 4K=V 1a({3A:h(){c.t=$33.3p(1d,[c.t].L(Q));m(c.1V){E(o 3z X c.t){m($r(c.t[3z]==\'h\')&&(/^58[A-Z]/).2s(3z))c.1V(3z,c.t[3z])}}k c}});1G.L({4v:h(I,N){E(o i=0,j=c.R;i<j;i++)I.1S(N,c[i],i,c)},5G:h(I,N){o 3c=[];E(o i=0,j=c.R;i<j;i++){m(I.1S(N,c[i],i,c))3c.1x(c[i])}k 3c},2h:h(I,N){o 3c=[];E(o i=0,j=c.R;i<j;i++)3c[i]=I.1S(N,c[i],i,c);k 3c},4q:h(I,N){E(o i=0,j=c.R;i<j;i++){m(!I.1S(N,c[i],i,c))k W}k 1e},8d:h(I,N){E(o i=0,j=c.R;i<j;i++){m(I.1S(N,c[i],i,c))k 1e}k W},3r:h(29,G){o 3k=c.R;E(o i=(G<0)?15.22(0,3k+G):G||0;i<3k;i++){m(c[i]===29)k i}k-1},7r:h(17,R){17=17||0;m(17<0)17=c.R+17;R=R||(c.R-17);o 5J=[];E(o i=0;i<R;i++)5J[i]=c[17++];k 5J},2Z:h(29){o i=0;o 3k=c.R;5M(i<3k){m(c[i]===29){c.4l(i,1);3k--}14{i++}}k c},1b:h(29,G){k c.3r(29,G)!=-1},8f:h(1p){o P={},R=15.2X(c.R,1p.R);E(o i=0;i<R;i++)P[1p[i]]=c[i];k P},L:h(19){E(o i=0,j=19.R;i<j;i++)c.1x(19[i]);k c},33:h(19){E(o i=0,l=19.R;i<l;i++)c.5F(19[i]);k c},5F:h(29){m(!c.1b(29))c.1x(29);k c},8e:h(){k c[$5D(0,c.R-1)]||1d},5E:h(){k c[c.R-1]||1d}});1G.1k.1D=1G.1k.4v;1G.1D=1G.4v;h $A(19){k 1G.7r(19)};h $1D(2L,I,N){m(2L&&4u 2L.R==\'3H\'&&$r(2L)!=\'2J\'){1G.4v(2L,I,N)}14{E(o 1K X 2L)I.1S(N||2L,2L[1K],1K)}};1G.1k.2s=1G.1k.1b;5s.L({2s:h(4w,1T){k(($r(4w)==\'2m\')?V 5b(4w,1T):4w).2s(c)},23:h(){k 3I(c,10)},74:h(){k 3K(c)},5g:h(){k c.2H(/-\\D/g,h(2j){k 2j.5N(1).6s()})},6D:h(){k c.2H(/\\w[A-Z]/g,h(2j){k(2j.5N(0)+\'-\'+2j.5N(1).3Q())})},5S:h(){k c.2H(/\\b[a-z]/g,h(2j){k 2j.6s()})},7s:h(){k c.2H(/^\\s+|\\s+$/g,\'\')},5a:h(){k c.2H(/\\s{2,}/g,\' \').7s()},4a:h(19){o 1U=c.2j(/\\d{1,3}/g);k(1U)?1U.4a(19):W},4H:h(19){o 2U=c.2j(/^#?(\\w{1,2})(\\w{1,2})(\\w{1,2})$/);k(2U)?2U.6r(1).4H(19):W},1b:h(2m,s){k(s)?(s+c+s).3r(s+2m+s)>-1:c.3r(2m)>-1},8h:h(){k c.2H(/([.*+?^${}()|[\\]\\/\\\\])/g,\'\\\\$1\')}});1G.L({4a:h(19){m(c.R<3)k W;m(c.R==4&&c[3]==0&&!19)k\'8m\';o 2U=[];E(o i=0;i<3;i++){o 3h=(c[i]-0).8l(16);2U.1x((3h.R==1)?\'0\'+3h:3h)}k 19?2U:\'#\'+2U.2i(\'\')},4H:h(19){m(c.R!=3)k W;o 1U=[];E(o i=0;i<3;i++){1U.1x(3I((c[i].R==1)?c[i]+c[i]:c[i],16))}k 19?1U:\'1U(\'+1U.2i(\',\')+\')\'}});4W.L({1Z:h(t){o I=c;t=$33({\'N\':I,\'u\':W,\'Q\':1d,\'1J\':W,\'3v\':W,\'4o\':W},t);m($1O(t.Q)&&$r(t.Q)!=\'19\')t.Q=[t.Q];k h(u){o 12;m(t.u){u=u||T.u;12=[(t.u===1e)?u:V t.u(u)];m(t.Q)12.L(t.Q)}14 12=t.Q||Q;o 2p=h(){k I.3p($5n(t.N,I),12)};m(t.1J)k 8k(2p,t.1J);m(t.3v)k 8i(2p,t.3v);m(t.4o)5v{k 2p()}53(8j){k W};k 2p()}},8a:h(12,N){k c.1Z({\'Q\':12,\'N\':N})},4o:h(12,N){k c.1Z({\'Q\':12,\'N\':N,\'4o\':1e})()},N:h(N,12){k c.1Z({\'N\':N,\'Q\':12})},89:h(N,12){k c.1Z({\'N\':N,\'u\':1e,\'Q\':12})},1J:h(1J,N,12){k c.1Z({\'1J\':1J,\'N\':N,\'Q\':12})()},3v:h(7p,N,12){k c.1Z({\'3v\':7p,\'N\':N,\'Q\':12})()}});7o.L({23:h(){k 3I(c)},74:h(){k 3K(c)},1i:h(2X,22){k 15.2X(22,15.22(2X,c))},31:h(3R){3R=15.2q(10,3R||0);k 15.31(c*3R)/3R},7Y:h(I){E(o i=0;i<c;i++)I(i)}});o H=V 1a({1s:h(q,1l){m($r(q)==\'2m\'){m(T.21&&1l&&(1l.1K||1l.r)){o 1K=(1l.1K)?\' 1K="\'+1l.1K+\'"\':\'\';o r=(1l.r)?\' r="\'+1l.r+\'"\':\'\';4N 1l.1K;4N 1l.r;q=\'<\'+q+1K+r+\'>\'}q=M.6X(q)}q=$(q);k(!1l||!q)?q:q.2b(1l)}});o 2E=V 1a({1s:h(Y){k(Y)?$L(Y,c):c}});2E.L=h(1l){E(o 1q X 1l){c.1k[1q]=1l[1q];c[1q]=$3y.4h(1q)}};h $(q){m(!q)k 1d;m(q.3i)k 1I.3j(q);m([T,M].1b(q))k q;o r=$r(q);m(r==\'2m\'){q=M.7W(q);r=(q)?\'C\':W}m(r!=\'C\')k 1d;m(q.3i)k 1I.3j(q);m([\'2J\',\'7X\'].1b(q.6N.3Q()))k q;$L(q,H.1k);q.3i=h(){};k 1I.3j(q)};M.7z=M.48;h $$(){o Y=[];E(o i=0,j=Q.R;i<j;i++){o 3e=Q[i];28($r(3e)){1c\'C\':Y.1x(3e);1c\'82\':1M;1c W:1M;1c\'2m\':3e=M.7z(3e,1e);5r:Y.L(3e)}}k $$.4Q(Y)};$$.4Q=h(19){o Y=[];E(o i=0,l=19.R;i<l;i++){m(19[i].$4j)4E;o C=$(19[i]);m(C&&!C.$4j){C.$4j=1e;Y.1x(C)}}E(o n=0,d=Y.R;n<d;n++)Y[n].$4j=1d;k V 2E(Y)};2E.47=h(B){k h(){o 12=Q;o 4m=[];o Y=1e;E(o i=0,j=c.R,2p;i<j;i++){2p=c[i][B].3p(c[i],12);m($r(2p)!=\'C\')Y=W;4m.1x(2p)};k(Y)?$$.4Q(4m):4m}};H.L=h(2a){E(o B X 2a){3O.1k[B]=2a[B];H.1k[B]=2a[B];H[B]=$3y.4h(B);o 7I=(1G.1k[B])?B+\'2E\':B;2E.1k[7I]=2E.47(B)}};H.L({2b:h(1l){E(o 1q X 1l){o 3W=1l[1q];28(1q){1c\'73\':c.4X(3W);1M;1c\'O\':m(c.4L)c.4L(3W);1M;1c\'2a\':c.6R(3W);1M;5r:c.43(1q,3W)}}k c},2R:h(q,69){q=$(q);28(69){1c\'6h\':q.2x.5u(c,q);1M;1c\'60\':o 3T=q.6e();m(!3T)q.2x.5j(c);14 q.2x.5u(c,3T);1M;1c\'1g\':o 5t=q.4S;m(5t){q.5u(c,5t);1M}5r:q.5j(c)}k c},8K:h(q){k c.2R(q,\'6h\')},77:h(q){k c.2R(q,\'60\')},8O:h(q){k c.2R(q,\'3N\')},8N:h(q){k c.2R(q,\'1g\')},6m:h(){o Y=[];$1D(Q,h(5O){Y=Y.8L(5O)});$$(Y).2R(c);k c},2Z:h(){k c.2x.6Y(c)},8M:h(61){o q=$(c.8D(61!==W));m(!q.$O)k q;q.$O={};E(o r X c.$O)q.$O[r]={\'1p\':$A(c.$O[r].1p),\'1A\':$A(c.$O[r].1A)};k q.4i()},8C:h(q){q=$(q);c.2x.8t(q,c);k q},7h:h(2t){c.5j(M.8u(2t));k c},59:h(1v){k c.1v.1b(1v,\' \')},6J:h(1v){m(!c.59(1v))c.1v=(c.1v+\' \'+1v).5a();k c},6K:h(1v){c.1v=c.1v.2H(V 5b(\'(^|\\\\s)\'+1v+\'(?:\\\\s|$)\'),\'$1\').5a();k c},8v:h(1v){k c.59(1v)?c.6K(1v):c.6J(1v)},2o:h(B,J){28(B){1c\'1H\':k c.6k(3K(J));1c\'8w\':B=(T.21)?\'8B\':\'8A\'}B=B.5g();28($r(J)){1c\'3H\':m(![\'8z\',\'6v\'].1b(B))J+=\'3d\';1M;1c\'19\':J=\'1U(\'+J.2i(\',\')+\')\'}c.1f[B]=J;k c},4X:h(2w){28($r(2w)){1c\'2J\':H.4n(c,\'2o\',2w);1M;1c\'2m\':c.1f.4R=2w}k c},6k:h(1H){m(1H==0){m(c.1f.4A!="5K")c.1f.4A="5K"}14{m(c.1f.4A!="6q")c.1f.4A="6q"}m(!c.49||!c.49.8x)c.1f.6v=1;m(T.21)c.1f.5G=(1H==1)?\'\':"8y(1H="+1H*8Q+")";c.1f.1H=c.$2v.1H=1H;k c},1t:h(B){B=B.5g();o 1h=c.1f[B];m(!$1O(1h)){m(B==\'1H\')k c.$2v.1H;1h=[];E(o 1f X H.2G){m(B==1f){H.2G[1f].1D(h(s){o 1f=c.1t(s);1h.1x(3I(1f)?1f:\'5Q\')},c);m(B==\'2I\'){o 4q=1h.4q(h(3h){k(3h==1h[0])});k(4q)?1h[0]:W}k 1h.2i(\' \')}}m(B.1b(\'2I\')){m(H.2G.2I.1b(B)){k[\'5R\',\'5H\',\'57\'].2h(h(p){k c.1t(B+p)},c).2i(\' \')}14 m(H.6C.1b(B)){k[\'5V\',\'5Z\',\'6c\',\'6i\'].2h(h(p){k c.1t(\'2I\'+p+B.2H(\'2I\',\'\'))},c).2i(\' \')}}m(M.6o)1h=M.6o.7U(c,1d).7S(B.6D());14 m(c.49)1h=c.49[B]}m(T.21)1h=H.62(B,1h,c);m(1h&&B.2s(/42/i)&&1h.1b(\'1U\')){k 1h.6t(\'1U\').4l(1,4).2h(h(42){k 42.4a()}).2i(\' \')}k 1h},78:h(){k H.5d(c,\'1t\',Q)},3S:h(45,17){45+=\'7K\';o q=(17)?c[17]:c[45];5M(q&&$r(q)!=\'C\')q=q[45];k $(q)},7M:h(){k c.3S(\'2F\')},6e:h(){k c.3S(\'3T\')},7L:h(){k c.3S(\'3T\',\'4S\')},5E:h(){k c.3S(\'2F\',\'8g\')},9b:h(){k $(c.2x)},al:h(){k $$(c.6B)},56:h(q){k!!$A(c.48(\'*\')).1b(q)},4P:h(B){o 2n=H.4s[B];m(2n)k c[2n];o 5C=H.6H[B]||0;m(!T.21||5C)k c.am(B,5C);o 5B=c.an[B];k(5B)?5B.6L:1d},ak:h(B){o 2n=H.4s[B];m(2n)c[2n]=\'\';14 c.aj(B);k c},ag:h(){k H.5d(c,\'4P\',Q)},43:h(B,J){o 2n=H.4s[B];m(2n)c[2n]=J;14 c.ah(B,J);k c},6R:h(2w){k H.4n(c,\'43\',2w)},6f:h(){c.7t=$A(Q).2i(\'\');k c},ai:h(2t){o 2B=c.5l();m([\'1f\',\'44\'].1b(2B)){m(T.21){m(2B==\'1f\')c.7y.4R=2t;14 m(2B==\'44\')c.43(\'2t\',2t);k c}14{c.6Y(c.4S);k c.7h(2t)}}c[$41(c.5m)?\'5m\':\'70\']=2t;k c},ao:h(){o 2B=c.5l();m([\'1f\',\'44\'].1b(2B)){m(T.21){m(2B==\'1f\')k c.7y.4R;14 m(2B==\'44\')k c.4P(\'2t\')}14{k c.7t}}k($5n(c.5m,c.70))},5l:h(){k c.6N.3Q()},1L:h(){1I.4y(c.48(\'*\'));k c.6f(\'\')}});H.62=h(B,1h,C){m($1O(3I(1h)))k 1h;m([\'2C\',\'2e\'].1b(B)){o 1A=(B==\'2e\')?[\'1j\',\'3L\']:[\'1g\',\'3N\'];o 2V=0;1A.1D(h(J){2V+=C.1t(\'2I-\'+J+\'-2e\').23()+C.1t(\'5k-\'+J).23()});k C[\'2r\'+B.5S()]-2V+\'3d\'}14 m(B.2s(/2I(.+)5R|26|5k/)){k\'5Q\'}k 1h};H.2G={\'2I\':[],\'5k\':[],\'26\':[]};[\'5V\',\'5Z\',\'6c\',\'6i\'].1D(h(6E){E(o 1f X H.2G)H.2G[1f].1x(1f+6E)});H.6C=[\'aw\',\'ax\',\'av\'];H.5d=h(q,4t,1p){o 1h={};$1D(1p,h(1R){1h[1R]=q[4t](1R)});k 1h};H.4n=h(q,4t,5h){E(o 1R X 5h)q[4t](1R,5h[1R]);k q};H.4s=V 30({\'6V\':\'1v\',\'E\':\'ar\',\'as\':\'at\',\'af\':\'ae\',\'a2\':\'a3\',\'a4\':\'a1\',\'a0\':\'9X\',\'9Y\':\'9Z\',\'a5\':\'a6\',\'J\':\'J\',\'6n\':\'6n\',\'6x\':\'6x\',\'6y\':\'6y\',\'6I\':\'6I\'});H.6H={\'ac\':2,\'az\':2};H.2y={4z:{2D:h(r,I){m(c.5w)c.5w(r,I,W);14 c.ad(\'58\'+r,I);k c},3m:h(r,I){m(c.6G)c.6G(r,I,W);14 c.ab(\'58\'+r,I);k c}}};T.L(H.2y.4z);M.L(H.2y.4z);H.L(H.2y.4z);o 1I={Y:[],3j:h(q){m(!q.$2v){1I.Y.1x(q);q.$2v={\'1H\':1}}k q},4y:h(Y){E(o i=0,j=Y.R,q;i<j;i++){m(!(q=Y[i])||!q.$2v)4E;m(q.$O)q.1u(\'4y\').4i();E(o p X q.$2v)q.$2v[p]=1d;E(o d X H.1k)q[d]=1d;1I.Y[1I.Y.3r(q)]=1d;q.3i=q.$2v=q=1d}1I.Y.2Z(1d)},1L:h(){1I.3j(T);1I.3j(M);1I.4y(1I.Y)}};T.2D(\'7D\',h(){T.2D(\'4Z\',1I.1L);m(T.21)T.2D(\'4Z\',aa)});o 1Q=V 1a({1s:h(u){m(u&&u.$5X)k u;c.$5X=1e;u=u||T.u;c.u=u;c.r=u.r;c.2k=u.2k||u.a7;m(c.2k.5o==3)c.2k=c.2k.2x;c.5Y=u.a8;c.a9=u.ay;c.aD=u.aN;c.aO=u.aC;m([\'54\',\'3s\'].1b(c.r)){c.aB=(u.5U)?u.5U/aE:-(u.aH||0)/3}14 m(c.r.1b(\'1R\')){c.4p=u.66||u.aF;E(o 1K X 1Q.1p){m(1Q.1p[1K]==c.4p){c.1R=1K;1M}}m(c.r==\'7k\'){o 4x=c.4p-aR;m(4x>0&&4x<13)c.1R=\'f\'+4x}c.1R=c.1R||5s.aJ(c.4p).3Q()}14 m(c.r.2s(/(7g|2c|aP)/)){c.3l={\'x\':u.5q||u.64+M.1W.3E,\'y\':u.5p||u.65+M.1W.3C};c.aK={\'x\':u.5q?u.5q-T.6Q:u.64,\'y\':u.5p?u.5p-T.6P:u.65};c.aM=(u.66==3)||(u.aA==2);28(c.r){1c\'55\':c.1y=u.1y||u.aL;1M;1c\'51\':c.1y=u.1y||u.6O}c.7l()}k c},1r:h(){k c.4f().4e()},4f:h(){m(c.u.4f)c.u.4f();14 c.u.aG=1e;k c},4e:h(){m(c.u.4e)c.u.4e();14 c.u.8R=W;k c}});1Q.4d={1y:h(){m(c.1y&&c.1y.5o==3)c.1y=c.1y.2x},7m:h(){5v{1Q.4d.1y.1S(c)}53(e){c.1y=c.2k}}};1Q.1k.7l=(T.52)?1Q.4d.7m:1Q.4d.1y;1Q.1p=V 30({\'aQ\':13,\'aI\':38,\'9V\':40,\'1j\':37,\'3L\':39,\'9e\':27,\'9f\':32,\'9d\':8,\'9c\':9,\'4N\':46});H.2y.2f={1V:h(r,I){c.$O=c.$O||{};c.$O[r]=c.$O[r]||{\'1p\':[],\'1A\':[]};m(c.$O[r].1p.1b(I))k c;c.$O[r].1p.1x(I);o 4k=r;o 1B=H.2f[r];m(1B){m(1B.6Z)1B.6Z.1S(c,I);m(1B.2h)I=1B.2h;m(1B.r)4k=1B.r}m(!c.5w)I=I.1Z({\'N\':c,\'u\':1e});c.$O[r].1A.1x(I);k(H.4T.1b(4k))?c.2D(4k,I):c},3G:h(r,I){m(!c.$O||!c.$O[r])k c;o 1C=c.$O[r].1p.3r(I);m(1C==-1)k c;o 1R=c.$O[r].1p.4l(1C,1)[0];o J=c.$O[r].1A.4l(1C,1)[0];o 1B=H.2f[r];m(1B){m(1B.2Z)1B.2Z.1S(c,I);m(1B.r)r=1B.r}k(H.4T.1b(r))?c.3m(r,J):c},4L:h(2w){k H.4n(c,\'1V\',2w)},4i:h(r){m(!c.$O)k c;m(!r){E(o 4c X c.$O)c.4i(4c);c.$O=1d}14 m(c.$O[r]){c.$O[r].1p.1D(h(I){c.3G(r,I)},c);c.$O[r]=1d}k c},1u:h(r,12,1J){m(c.$O&&c.$O[r]){c.$O[r].1p.1D(h(I){I.1Z({\'N\':c,\'1J\':1J,\'Q\':12})()},c)}k c},7c:h(G,r){m(!G.$O)k c;m(!r){E(o 4c X G.$O)c.7c(G,4c)}14 m(G.$O[r]){G.$O[r].1p.1D(h(I){c.1V(r,I)},c)}k c}};T.L(H.2y.2f);M.L(H.2y.2f);H.L(H.2y.2f);H.2f=V 30({\'79\':{r:\'55\',2h:h(u){u=V 1Q(u);m(u.1y!=c&&!c.56(u.1y))c.1u(\'79\',u)}},\'76\':{r:\'51\',2h:h(u){u=V 1Q(u);m(u.1y!=c&&!c.56(u.1y))c.1u(\'76\',u)}},\'3s\':{r:(T.52)?\'54\':\'3s\'}});H.4T=[\'7g\',\'99\',\'5A\',\'5e\',\'3s\',\'54\',\'55\',\'51\',\'3t\',\'7k\',\'9a\',\'9W\',\'9g\',\'4Z\',\'7D\',\'9h\',\'9m\',\'9n\',\'9l\',\'63\',\'9k\',\'9i\',\'3a\',\'9j\',\'98\',\'97\',\'3w\'];4W.L({4J:h(N,12){k c.1Z({\'N\':N,\'Q\':12,\'u\':1Q})}});H.L({2K:h(x,y){c.3E=x;c.3C=y},5y:h(){k{\'3w\':{\'x\':c.3E,\'y\':c.3C},\'2V\':{\'x\':c.3U,\'y\':c.3V},\'5x\':{\'x\':c.4C,\'y\':c.4b}}},2Y:h(1w){1w=1w||[];o q=c,1j=0,1g=0;8W{1j+=q.8V||0;1g+=q.8S||0;q=q.8T}5M(q);1w.1D(h(C){1j-=C.3E||0;1g-=C.3C||0});k{\'x\':1j,\'y\':1g}},6j:h(1w){k c.2Y(1w).y},72:h(1w){k c.2Y(1w).x},4g:h(1w){o 1E=c.2Y(1w);o P={\'2e\':c.3U,\'2C\':c.3V,\'1j\':1E.x,\'1g\':1E.y};P.3L=P.1j+P.2e;P.3N=P.1g+P.2C;k P}});T.L({7w:h(){m(c.4G)k c.8U;m(c.7G)k M.4r.68;k M.1W.68},7B:h(){m(c.4G)k c.8Z;m(c.7G)k M.4r.71;k M.1W.71},7C:h(){m(c.21)k 15.22(M.1W.3U,M.1W.4C);m(c.3f)k M.4r.4C;k M.1W.4C},7F:h(){m(c.21)k 15.22(M.1W.3V,M.1W.4b);m(c.3f)k M.4r.4b;k M.1W.4b},7j:h(){k c.6Q||M.1W.3E},7n:h(){k c.6P||M.1W.3C},5y:h(){k{\'2V\':{\'x\':c.7w(),\'y\':c.7B()},\'5x\':{\'x\':c.7C(),\'y\':c.7F()},\'3w\':{\'x\':c.7j(),\'y\':c.7n()}}},2Y:h(){k{\'x\':0,\'y\':0}}});o U={};U.1Y=V 1a({t:{3X:1a.1L,34:1a.1L,5W:1a.1L,1n:h(p){k-(15.6d(15.5c*p)-1)/2},5z:90,1F:\'3d\',3u:1e,6b:50},1s:h(t){c.C=c.C||1d;c.3A(t);m(c.t.1s)c.t.1s.1S(c)},6a:h(){o 2u=$2u();m(2u<c.2u+c.t.5z){c.6M=c.t.1n((2u-c.2u)/c.t.5z);c.2O();c.2S()}14{c.1r(1e);c.2b(c.F);c.1u(\'34\',c.C,10);c.7q()}},2b:h(F){c.K=F;c.2S();k c},2O:h(){c.K=c.2T(c.G,c.F)},2T:h(G,F){k(F-G)*c.6M+G},17:h(G,F){m(!c.t.3u)c.1r();14 m(c.1X)k c;c.G=G;c.F=F;c.63=c.F-c.G;c.2u=$2u();c.1X=c.6a.3v(15.31(95/c.t.6b),c);c.1u(\'3X\',c.C);k c},1r:h(4B){m(!c.1X)k c;c.1X=$5T(c.1X);m(!4B)c.1u(\'5W\',c.C);k c},1B:h(G,F){k c.17(G,F)},96:h(4B){k c.1r(4B)}});U.1Y.4U(V 6F,V 2f,V 4K);U.2g={3a:h(B,F){m(B.2s(/42/i))k c.57;o r=$r(F);m((r==\'19\')||(r==\'2m\'&&F.1b(\' \')))k c.47;k c.6w},1P:h(q,B,3n){m(!3n.1x)3n=[3n];o G=3n[0],F=3n[1];m(!$1O(F)){F=G;G=q.1t(B)}o 18=c.3a(B,F);k{\'G\':18.1P(G),\'F\':18.1P(F),\'18\':18}}};U.2g.6w={1P:h(J){k 3K(J)},3b:h(G,F,3o){k 3o.2T(G,F)},3x:h(J,1F,B){m(1F==\'3d\'&&B!=\'1H\')J=15.31(J);k J+1F}};U.2g.47={1P:h(J){k J.1x?J:J.6t(\' \').2h(h(v){k 3K(v)})},3b:h(G,F,3o){o K=[];E(o i=0;i<G.R;i++)K[i]=3o.2T(G[i],F[i]);k K},3x:h(J,1F,B){m(1F==\'3d\'&&B!=\'1H\')J=J.2h(15.31);k J.2i(1F+\' \')+1F}};U.2g.57={1P:h(J){k J.1x?J:J.4H(1e)},3b:h(G,F,3o){o K=[];E(o i=0;i<G.R;i++)K[i]=15.31(3o.2T(G[i],F[i]));k K},3x:h(J){k\'1U(\'+J.2i(\',\')+\')\'}};U.5H=U.1Y.L({1s:h(q,B,t){c.C=$(q);c.B=B;c.1m(t)},7a:h(){k c.2b(0)},2O:h(){c.K=c.18.3b(c.G,c.F,c)},2b:h(F){c.18=U.2g.3a(c.B,F);k c.1m(c.18.1P(F))},17:h(G,F){m(c.1X&&c.t.3u)k c;o 1o=U.2g.1P(c.C,c.B,[G,F]);c.18=1o.18;k c.1m(1o.G,1o.F)},2S:h(){c.C.2o(c.B,c.18.3x(c.K,c.t.1F,c.B))}});H.L({94:h(B,t){k V U.5H(c,B,t)}});U.2G=U.1Y.L({1s:h(q,t){c.C=$(q);c.1m(t)},2O:h(){E(o p X c.G)c.K[p]=c.18[p].3b(c.G[p],c.F[p],c)},2b:h(F){o 1o={};c.18={};E(o p X F){c.18[p]=U.2g.3a(p,F[p]);1o[p]=c.18[p].1P(F[p])}k c.1m(1o)},17:h(P){m(c.1X&&c.t.3u)k c;c.K={};c.18={};o G={},F={};E(o p X P){o 1o=U.2g.1P(c.C,p,P[p]);G[p]=1o.G;F[p]=1o.F;c.18[p]=1o.18}k c.1m(G,F)},2S:h(){E(o p X c.K)c.C.2o(p,c.18[p].3x(c.K[p],c.t.1F,p))}});H.L({93:h(t){k V U.2G(c,t)}});U.2E=U.1Y.L({1s:h(Y,t){c.Y=$$(Y);c.1m(t)},2O:h(){E(o i X c.G){o 3Z=c.G[i],2A=c.F[i],2l=c.18[i],3B=c.K[i]={};E(o p X 3Z)3B[p]=2l[p].3b(3Z[p],2A[p],c)}},2b:h(F){o 1o={};c.18={};E(o i X F){o 2A=F[i],2l=c.18[i]={},6l=1o[i]={};E(o p X 2A){2l[p]=U.2g.3a(p,2A[p]);6l[p]=2l[p].1P(2A[p])}}k c.1m(1o)},17:h(P){m(c.1X&&c.t.3u)k c;c.K={};c.18={};o G={},F={};E(o i X P){o 5I=P[i],3Z=G[i]={},2A=F[i]={},2l=c.18[i]={};E(o p X 5I){o 1o=U.2g.1P(c.Y[i],p,5I[p]);3Z[p]=1o.G;2A[p]=1o.F;2l[p]=1o.18}}k c.1m(G,F)},2S:h(){E(o i X c.K){o 3B=c.K[i],2l=c.18[i];E(o p X 3B)c.Y[i].2o(p,2l[p].3x(3B[p],c.t.1F,p))}}});U.91=U.1Y.L({t:{1w:[],2r:{\'x\':0,\'y\':0},6z:1e},1s:h(C,t){c.K=[];c.C=$(C);c.1N={\'1r\':c.1r.N(c,W)};c.1m(t);m(c.t.6z){c.1V(\'3X\',h(){M.1V(\'3s\',c.1N.1r)}.N(c));c.1V(\'34\',h(){M.3G(\'3s\',c.1N.1r)}.N(c))}},2O:h(){E(o i=0;i<2;i++)c.K[i]=c.2T(c.G[i],c.F[i])},2K:h(x,y){m(c.1X&&c.t.3u)k c;o q=c.C.5y();o 1A={\'x\':x,\'y\':y};E(o z X q.2V){o 22=q.5x[z]-q.2V[z];m($1O(1A[z]))1A[z]=($r(1A[z])==\'3H\')?1A[z].1i(0,22):22;14 1A[z]=q.3w[z];1A[z]+=c.t.2r[z]}k c.17([q.3w.x,q.3w.y],[1A.x,1A.y])},92:h(){k c.2K(W,0)},9o:h(){k c.2K(W,\'6W\')},9p:h(){k c.2K(0,W)},9L:h(){k c.2K(\'6W\',W)},6O:h(q){o 1m=c.C.2Y(c.t.1w);o 2k=$(q).2Y(c.t.1w);k c.2K(2k.x-1m.x,2k.y-1m.y)},2S:h(){c.C.2K(c.K[0],c.K[1])}});U.9M=U.1Y.L({t:{1z:\'6g\'},1s:h(q,t){c.C=$(q);c.2M=V H(\'9K\',{\'73\':$L(c.C.78(\'26\'),{\'9J\':\'5K\'})}).77(c.C).6m(c.C);c.C.2o(\'26\',0);c.3A(t);c.K=[];c.1m(c.t);c.3Y=1e;c.1V(\'34\',h(){c.3Y=(c.K[0]===0)});m(T.4G)c.1V(\'34\',h(){m(c.3Y)c.C.2Z().2R(c.2M)})},2O:h(){E(o i=0;i<2;i++)c.K[i]=c.2T(c.G[i],c.F[i])},6g:h(){c.26=\'26-1g\';c.3M=\'2C\';c.2r=c.C.3V},9H:h(){c.26=\'26-1j\';c.3M=\'2e\';c.2r=c.C.3U},7d:h(1z){c[1z||c.t.1z]();k c.17([c.C.1t(c.26).23(),c.2M.1t(c.3M).23()],[0,c.2r])},7b:h(1z){c[1z||c.t.1z]();k c.17([c.C.1t(c.26).23(),c.2M.1t(c.3M).23()],[-c.2r,0])},7a:h(1z){c[1z||c.t.1z]();c.3Y=W;k c.2b([-c.2r,0])},9I:h(1z){c[1z||c.t.1z]();c.3Y=1e;k c.2b([0,c.2r])},9N:h(1z){m(c.2M.3V==0||c.2M.3U==0)k c.7d(1z);k c.7b(1z)},2S:h(){c.C.2o(c.26,c.K[0]+c.t.1F);c.2M.2o(c.3M,c.K[1]+c.t.1F)}});U.5i=h(1n,1T){1T=1T||[];m($r(1T)!=\'19\')1T=[1T];k $L(1n,{9O:h(1C){k 1n(1C,1T)},9T:h(1C){k 1-1n(1-1C,1T)},9U:h(1C){k(1C<=0.5)?1n(2*1C,1T)/2:(2-1n(2*(1-1C),1T))/2}})};U.2d=V 30({9S:h(p){k p}});U.2d.L=h(4M){E(o 1n X 4M){U.2d[1n]=V U.5i(4M[1n]);U.2d.5f(1n)}};U.2d.5f=h(1n){[\'9R\',\'9P\',\'9Q\'].1D(h(4O){U.2d[1n.3Q()+4O]=U.2d[1n][\'9G\'+4O]})};U.2d.L({9F:h(p,x){k 15.2q(p,x[0]||6)},9v:h(p){k 15.2q(2,8*(p-1))},9w:h(p){k 1-15.7v(15.9u(p))},9t:h(p){k 1-15.7v((1-p)*15.5c/2)},9q:h(p,x){x=x[0]||1.9r;k 15.2q(p,2)*((x+1)*p-x)},9s:h(p){o J;E(o a=0,b=1;1;a+=b,b/=2){m(p>=(7-4*a)/11){J=-15.2q((11-6*a-11*p)/4,2)+b*b;1M}}k J},9x:h(p,x){k 15.2q(2,10*--p)*15.6d(20*p*15.5c*(x[0]||1)/3)}});[\'9y\',\'9D\',\'9E\',\'9C\'].1D(h(1n,i){U.2d[1n]=V U.5i(h(p){k 15.2q(p,[i+2])});U.2d.5f(1n)});o 35={};35.1Y=V 1a({t:{3D:W,1F:\'3d\',3X:1a.1L,5P:1a.1L,34:1a.1L,7u:1a.1L,6p:1a.1L,1i:W,2z:{x:\'1j\',y:\'1g\'},36:W,7A:6},1s:h(q,t){c.3A(t);c.C=$(q);c.3D=$(c.t.3D)||c.C;c.2c={\'K\':{},\'1C\':{}};c.J={\'17\':{},\'K\':{}};c.1N={\'17\':c.17.4J(c),\'3q\':c.3q.4J(c),\'2Q\':c.2Q.4J(c),\'1r\':c.1r.N(c)};c.6u();m(c.t.1s)c.t.1s.1S(c)},6u:h(){c.3D.1V(\'5e\',c.1N.17);k c},9B:h(){c.3D.3G(\'5e\',c.1N.17);k c},17:h(u){c.1u(\'5P\',c.C);c.2c.17=u.3l;o 1i=c.t.1i;c.1i={\'x\':[],\'y\':[]};E(o z X c.t.2z){m(!c.t.2z[z])4E;c.J.K[z]=c.C.1t(c.t.2z[z]).23();c.2c.1C[z]=u.3l[z]-c.J.K[z];m(1i&&1i[z]){E(o i=0;i<2;i++){m($1O(1i[z][i]))c.1i[z][i]=($r(1i[z][i])==\'h\')?1i[z][i]():1i[z][i]}}}m($r(c.t.36)==\'3H\')c.t.36={\'x\':c.t.36,\'y\':c.t.36};M.2D(\'3t\',c.1N.3q);M.2D(\'5A\',c.1N.1r);c.1u(\'3X\',c.C);u.1r()},3q:h(u){o 7H=15.31(15.9z(15.2q(u.3l.x-c.2c.17.x,2)+15.2q(u.3l.y-c.2c.17.y,2)));m(7H>c.t.7A){M.3m(\'3t\',c.1N.3q);M.2D(\'3t\',c.1N.2Q);c.2Q(u);c.1u(\'7u\',c.C)}u.1r()},2Q:h(u){c.3J=W;c.2c.K=u.3l;E(o z X c.t.2z){m(!c.t.2z[z])4E;c.J.K[z]=c.2c.K[z]-c.2c.1C[z];m(c.1i[z]){m($1O(c.1i[z][1])&&(c.J.K[z]>c.1i[z][1])){c.J.K[z]=c.1i[z][1];c.3J=1e}14 m($1O(c.1i[z][0])&&(c.J.K[z]<c.1i[z][0])){c.J.K[z]=c.1i[z][0];c.3J=1e}}m(c.t.36[z])c.J.K[z]-=(c.J.K[z]%c.t.36[z]);c.C.2o(c.t.2z[z],c.J.K[z]+c.t.1F)}c.1u(\'6p\',c.C);u.1r()},1r:h(){M.3m(\'3t\',c.1N.3q);M.3m(\'3t\',c.1N.2Q);M.3m(\'5A\',c.1N.1r);c.1u(\'34\',c.C)}});35.1Y.4U(V 2f,V 4K);H.L({9A:h(t){k V 35.1Y(c,$33({2z:{x:\'2e\',y:\'2C\'}},t))}});35.7i=35.1Y.L({t:{4I:[],25:W,1w:[]},1s:h(q,t){c.3A(t);c.C=$(q);c.4I=$$(c.t.4I);c.25=$(c.t.25);c.1E={\'C\':c.C.1t(\'1E\'),\'25\':W};m(c.25)c.1E.25=c.25.1t(\'1E\');m(![\'4Y\',\'3g\',\'5L\'].1b(c.1E.C))c.1E.C=\'3g\';o 1g=c.C.1t(\'1g\').23();o 1j=c.C.1t(\'1j\').23();m(c.1E.C==\'3g\'&&![\'4Y\',\'3g\',\'5L\'].1b(c.1E.25)){1g=$1O(1g)?1g:c.C.6j(c.t.1w);1j=$1O(1j)?1j:c.C.72(c.t.1w)}14{1g=$1O(1g)?1g:0;1j=$1O(1j)?1j:0}c.C.4X({\'1g\':1g,\'1j\':1j,\'1E\':c.1E.C});c.1m(c.C)},17:h(u){c.24=1d;m(c.25){o 2N=c.25.4g();o q=c.C.4g();m(c.1E.C==\'3g\'&&![\'4Y\',\'3g\',\'5L\'].1b(c.1E.25)){c.t.1i={\'x\':[2N.1j,2N.3L-q.2e],\'y\':[2N.1g,2N.3N-q.2C]}}14{c.t.1i={\'y\':[0,2N.2C-q.2C],\'x\':[0,2N.2e-q.2e]}}}c.1m(u)},2Q:h(u){c.1m(u);o 24=c.3J?W:c.4I.5G(c.75,c).5E();m(c.24!=24){m(c.24)c.24.1u(\'8Y\',[c.C,c]);c.24=24?24.1u(\'8X\',[c.C,c]):1d}k c},75:h(q){q=q.4g(c.t.1w);o K=c.2c.K;k(K.x>q.1j&&K.x<q.3L&&K.y<q.3N&&K.y>q.1g)},1r:h(){m(c.24&&!c.3J)c.24.1u(\'au\',[c.C,c]);14 c.C.1u(\'aq\',c);c.1m();k c}});H.L({8E:h(t){k V 35.7i(c,t)}});',62,674,'||||||||||||this|||||function|||return||if||var||el|type||options|event|||||||property|element||for|to|from|Element|fn|value|now|extend|document|bind|events|obj|arguments|length||window|Fx|new|false|in|elements||||args||else|Math||start|css|array|Class|contains|case|null|true|style|top|result|limit|left|prototype|props|parent|transition|parsed|keys|prop|stop|initialize|getStyle|fireEvent|className|overflown|push|relatedTarget|mode|values|custom|pos|each|position|unit|Array|opacity|Garbage|delay|name|empty|break|bound|chk|parse|Event|key|call|params|rgb|addEvent|documentElement|timer|Base|create||ie|max|toInt|overed|container|margin||switch|item|properties|set|mouse|Transitions|width|Events|CSS|map|join|match|target|iCss|string|index|setStyle|returns|pow|offset|test|text|time|tmp|source|parentNode|Methods|modifiers|iTo|tag|height|addListener|Elements|previous|Styles|replace|border|object|scrollTo|iterable|wrapper|cont|setNow|chains|drag|inject|increase|compute|hex|size|current|min|getPosition|remove|Abstract|round||merge|onComplete|Drag|grid||||select|getNow|results|px|selector|webkit|absolute|bit|htmlElement|collect|len|page|removeListener|fromTo|fx|apply|check|indexOf|mousewheel|mousemove|wait|periodical|scroll|getValue|native|option|setOptions|iNow|scrollTop|handle|scrollLeft|mix|removeEvent|number|parseInt|out|parseFloat|right|layout|bottom|HTMLElement|klass|toLowerCase|precision|walk|next|offsetWidth|offsetHeight|val|onStart|open|iFrom||defined|color|setProperty|script|brother||Multi|getElementsByTagName|currentStyle|rgbToHex|scrollHeight|evType|fix|preventDefault|stopPropagation|getCoordinates|generic|removeEvents|included|realType|splice|items|setMany|attempt|code|every|body|Properties|method|typeof|forEach|regex|fKey|trash|Listeners|visibility|end|scrollWidth|proto|continue|mp|webkit419|hexToRgb|droppables|bindWithEvent|Options|addEvents|transitions|delete|easeType|getProperty|unique|cssText|firstChild|NativeEvents|implement|merged|Function|setStyles|relative|unload||mouseout|gecko|catch|DOMMouseScroll|mouseover|hasChild|Color|on|hasClass|clean|RegExp|PI|getMany|mousedown|compat|camelCase|pairs|Transition|appendChild|padding|getTag|innerText|pick|nodeType|pageY|pageX|default|String|first|insertBefore|try|addEventListener|scrollSize|getSize|duration|mouseup|node|flag|random|getLast|include|filter|Style|iProps|newArray|hidden|fixed|while|charAt|argument|onBeforeStart|0px|Width|capitalize|clear|wheelDelta|Top|onCancel|extended|shift|Right|after|contents|fixStyle|change|clientX|clientY|which|head|clientWidth|where|step|fps|Bottom|cos|getNext|setHTML|vertical|before|Left|getTop|setOpacity|iParsed|adopt|disabled|defaultView|onDrag|visible|slice|toUpperCase|split|attach|zoom|Single|checked|multiple|wheelStops|picked|childNodes|borderShort|hyphenate|direction|Chain|removeEventListener|PropertiesIFlag|selected|addClass|removeClass|nodeValue|delta|tagName|toElement|pageYOffset|pageXOffset|setProperties|pp|constructor|ie6|class|full|createElement|removeChild|add|textContent|clientHeight|getLeft|styles|toFloat|checkAgainst|mouseleave|injectAfter|getStyles|mouseenter|hide|slideOut|cloneEvents|slideIn|Merge|callee|click|appendText|Move|getScrollLeft|keydown|fixRelatedTarget|relatedTargetGecko|getScrollTop|Number|interval|callChain|copy|trim|innerHTML|onSnap|sin|getWidth|undefined|styleSheet|getElementsBySelector|snap|getHeight|getScrollWidth|beforeunload|xpath|getScrollHeight|opera|distance|elementsProperty|collection|Sibling|getFirst|getPrevious|whitespace|version|textnode|regexp|MooTools|getPropertyValue|nodeName|getComputedStyle|ie7|getElementById|embed|times|DOMElement|BackgroundImageCache|execCommand|boolean|iframe|webkit420|taintEnabled|getBoxObjectFor|khtml|Object|bindAsEventListener|pass|clearChain|chain|some|getRandom|associate|lastChild|escapeRegExp|setInterval|err|setTimeout|toString|transparent|navigator|all|Date|floor|getTime|clearTimeout|replaceChild|createTextNode|toggleClass|float|hasLayout|alpha|zIndex|cssFloat|styleFloat|replaceWith|cloneNode|makeDraggable|Document|evaluate|ActiveXObject|XMLHttpRequest|Window|injectBefore|concat|clone|injectTop|injectInside|clearInterval|100|returnValue|offsetTop|offsetParent|innerWidth|offsetLeft|do|over|leave|innerHeight|500|Scroll|toTop|effects|effect|1000|clearTimer|contextmenu|abort|dblclick|keypress|getParent|tab|backspace|esc|space|load|resize|reset|error|submit|blur|move|focus|toBottom|toLeft|Back|618|Bounce|Sine|acos|Expo|Circ|Elastic|Quad|sqrt|makeResizable|detach|Quint|Cubic|Quart|Pow|ease|horizontal|show|overflow|div|toRight|Slide|toggle|easeIn|Out|InOut|In|linear|easeOut|easeInOut|down|keyup|maxLength|readonly|readOnly|maxlength|tabIndex|accesskey|accessKey|tabindex|frameborder|frameBorder|srcElement|shiftKey|control|CollectGarbage|detachEvent|href|attachEvent|rowSpan|rowspan|getProperties|setAttribute|setText|removeAttribute|removeProperty|getChildren|getAttribute|attributes|getText||emptydrop|htmlFor|colspan|colSpan|drop|borderColor|borderWidth|borderStyle|ctrlKey|src|button|wheel|metaKey|alt|120|keyCode|cancelBubble|detail|up|fromCharCode|client|fromElement|rightClick|altKey|meta|menu|enter|111'.split('|'),0,{}))
//swf object
if(typeof deconcept=="undefined"){var deconcept=new Object();}if(typeof deconcept.util=="undefined"){deconcept.util=new Object();}if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object();}deconcept.SWFObject=function(_1,id,w,h,_5,c,_7,_8,_9,_a){if(!document.getElementById){return;}this.DETECT_KEY=_a?_a:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(_1){this.setAttribute("swf",_1);}if(id){this.setAttribute("id",id);}if(w){this.setAttribute("width",w);}if(h){this.setAttribute("height",h);}if(_5){this.setAttribute("version",new deconcept.PlayerVersion(_5.toString().split(".")));}this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){deconcept.SWFObject.doPrepUnload=true;}if(c){this.addParam("bgcolor",c);}var q=_7?_7:"high";this.addParam("quality",q);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var _c=(_8)?_8:window.location;this.setAttribute("xiRedirectUrl",_c);this.setAttribute("redirectUrl","");if(_9){this.setAttribute("redirectUrl",_9);}};deconcept.SWFObject.prototype={useExpressInstall:function(_d){this.xiSWFPath=!_d?"expressinstall.swf":_d;this.setAttribute("useExpressInstall",true);},setAttribute:function(_e,_f){this.attributes[_e]=_f;},getAttribute:function(_10){return this.attributes[_10];},addParam:function(_11,_12){this.params[_11]=_12;},getParams:function(){return this.params;},addVariable:function(_13,_14){this.variables[_13]=_14;},getVariable:function(_15){return this.variables[_15];},getVariables:function(){return this.variables;},getVariablePairs:function(){var _16=new Array();var key;var _18=this.getVariables();for(key in _18){_16[_16.length]=key+"="+_18[key];}return _16;},getSWFHTML:function(){var _19="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath);}_19="<embed type=\"application/x-shockwave-flash\" src=\""+this.getAttribute("swf")+"\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\" style=\""+this.getAttribute("style")+"\"";_19+=" id=\""+this.getAttribute("id")+"\" name=\""+this.getAttribute("id")+"\" ";var _1a=this.getParams();for(var key in _1a){_19+=[key]+"=\""+_1a[key]+"\" ";}var _1c=this.getVariablePairs().join("&");if(_1c.length>0){_19+="flashvars=\""+_1c+"\"";}_19+="/>";}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath);}_19="<object id=\""+this.getAttribute("id")+"\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\" style=\""+this.getAttribute("style")+"\">";_19+="<param name=\"movie\" value=\""+this.getAttribute("swf")+"\" />";var _1d=this.getParams();for(var key in _1d){_19+="<param name=\""+key+"\" value=\""+_1d[key]+"\" />";}var _1f=this.getVariablePairs().join("&");if(_1f.length>0){_19+="<param name=\"flashvars\" value=\""+_1f+"\" />";}_19+="</object>";}return _19;},write:function(_20){if(this.getAttribute("useExpressInstall")){var _21=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(_21)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title);}}if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){var n=(typeof _20=="string")?document.getElementById(_20):_20;n.innerHTML=this.getSWFHTML();return true;}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"));}}return false;}};deconcept.SWFObjectUtil.getPlayerVersion=function(){var _23=new deconcept.PlayerVersion([9,0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var x=navigator.plugins["Shockwave Flash"];if(x&&x.description){_23=new deconcept.PlayerVersion(x.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."));}}else{if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){var axo=1;var _26=3;while(axo){try{_26++;axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+_26);_23=new deconcept.PlayerVersion([_26,0,0]);}catch(e){axo=null;}}}else{try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");}catch(e){try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");_23=new deconcept.PlayerVersion([6,0,21]);axo.AllowScriptAccess="always";}catch(e){if(_23.major==6){return _23;}}try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");}catch(e){}}if(axo!=null){_23=new deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));}}}return _23;};deconcept.PlayerVersion=function(_29){this.major=_29[0]!=null?parseInt(_29[0]):0;this.minor=_29[1]!=null?parseInt(_29[1]):0;this.rev=_29[2]!=null?parseInt(_29[2]):0;};deconcept.PlayerVersion.prototype.versionIsValid=function(fv){if(this.major<fv.major){return false;}if(this.major>fv.major){return true;}if(this.minor<fv.minor){return false;}if(this.minor>fv.minor){return true;}if(this.rev<fv.rev){return false;}return true;};deconcept.util={getRequestParameter:function(_2b){var q=document.location.search||document.location.hash;if(_2b==null){return q;}if(q){var _2d=q.substring(1).split("&");for(var i=0;i<_2d.length;i++){if(_2d[i].substring(0,_2d[i].indexOf("="))==_2b){return _2d[i].substring((_2d[i].indexOf("=")+1));}}}return "";}};deconcept.SWFObjectUtil.cleanupSWFs=function(){var _2f=document.getElementsByTagName("OBJECT");for(var i=_2f.length-1;i>=0;i--){_2f[i].style.display="none";for(var x in _2f[i]){if(typeof _2f[i][x]=="function"){_2f[i][x]=function(){};}}}};if(deconcept.SWFObject.doPrepUnload){if(!deconcept.unloadSet){deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",deconcept.SWFObjectUtil.cleanupSWFs);};window.attachEvent("onbeforeunload",deconcept.SWFObjectUtil.prepUnload);deconcept.unloadSet=true;}}if(!document.getElementById&&document.all){document.getElementById=function(id){return document.all[id];};}var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject;

/*
* Slider.js #20070531
*
* Slider
*
* Date   : 2008-01-09
*/
Slider = Fx.Base.extend(
{
	initialize: function(el, options)
	{
		this.element = $(el).setStyle('margin', 0);
		this.wrapper = new Element('div').injectAfter(this.element).setStyle('overflow', 'hidden').adopt(this.element);
		this.setOptions({'mode': 'vertical'}, options);
		this.now = [];
		this.parent(options);
	},

	setNow: function()
	{
		for (var i = 0; i < 2; i++) this.now[i] = this.compute(this.from[i], this.to[i]);
	},

	vertical: function()
	{
		this.margin = 'top';
		this.layout = 'height';
		this.offset = this.element.offsetHeight;
		return [this.element.getStyle('margin-top').toInt(), this.wrapper.getStyle('height').toInt()];
	},

	horizontal: function()
	{
		this.margin = 'left';
		this.layout = 'width';
		this.offset = this.element.offsetWidth;

		return [this.element.getStyle('margin-left').toInt(), this.wrapper.getStyle('width').toInt()];
	},

/*
	Property: slideIn
	slides the elements in view horizontally or vertically, depending on the mode parameter or options.mode.
*/

	slideIn: function(start,end,mode)
	{
		return this.start(this[mode || this.options.mode](), [start, end]);
	},

/*
	Property: slideOut
	slides the elements out of the view horizontally or vertically, depending on the mode parameter or options.mode.
*/

	slideOut: function(start,end,mode)
	{
		return this.start(this[mode || this.options.mode](), [start, end]);
	},

	sliding: function(start,end,mode)
	{
		return this.start(this[mode || this.options.mode](), [start, end]);
	},

/*
	Property: hide
	Hides the element without a transition.
*/

	hide: function(mode)
	{
		this[mode || this.options.mode]();

		return this.set([-this.offset, 0]);
	},

/*
	Property: show
	Shows the element without a transition.
*/

	show: function(mode)
	{
		this[mode || this.options.mode]();

		return this.set([0, this.offset]);
	},

/*
	Property: toggle
	Slides in or Out the element, depending on its state
*/

	toggle: function(mode)
	{
		if (this.wrapper.offsetHeight == 0 || this.wrapper.offsetWidth == 0)
			return this.slideIn(mode);
		else
			return this.slideOut(mode);
	},

	increase: function()
	{
		this.element.setStyle('margin-'+this.margin, this.now[0]+this.options.unit);
		this.wrapper.setStyle(this.layout, this.now[1]+this.options.unit);
	}

});

var instances  = new Array();
function render_flash(swf_name,swf_width,swf_height){
	var text ='';
	text ='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="'+swf_width+'" height="'+swf_height+'">';
	text +='<param name="movie" value="'+swf_name+'">';
	text +='<param name="allowScriptAccess" value="always">';
	text +='<param name="quality" value="high">';
	text +='<embed src="'+swf_name+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+swf_width+'" height="'+swf_height+'">';
	text +='<param name="wmode" value="transparent">';
    	text +='</embed>';
	text +='</object>';
	document.write(text);
}
function flashCM(URL,width,height,vars,bgColor,winmode) {

	var id=URL.split("/")[URL.split("/").length-1].split(".")[0];
	if(vars==null) vars='';
	if(bgColor==null) bgColor='#FFFFFF';
	if(winmode==null) winmode='opaque';

	document.write("	<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0' ");
	document.write("		width='"+width+"' height='"+height+"' id='"+id+"' align='middle'> ");
	document.write("	<param name='allowScriptAccess' value='sameDomain' /> ");
	document.write("	<param name='movie' value='"+URL+"' /> ");
	document.write("	<param name='FlashVars' value='"+vars+"' /> ");
	document.write("	<param name='wmode' value='"+winmode+"' /> ");
	document.write("	<param name='menu' value='false' /> ");
	document.write("	<param name='quality' value='high' /> ");
	document.write("	<param name='bgcolor' value='"+bgColor+"' /> ");
	document.write("	<embed src='"+URL+"' flashVars='"+vars+"' wmode='"+winmode+"' menu='false' quality='high' ");
	document.write("		bgcolor='"+bgColor+"' width='"+width+"' height='"+height+"' name='"+id+"' align='middle' ");
	document.write("		allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' /> ");
	document.write("	</object> ");
}

function toggleD(obj)  {
if (obj.style.display == 'none')
obj.style.display = '';
else
obj.style.display = 'none';
}

// 메인 플래시 스크립 초기값
var defaultWidth = 950;

function JS_onResize() {
	var obj = document.getElementById("topDiv");
	obj.style.width = 'auto';
}

function JS_checkBrowser() {
	var obj = document.getElementById("topDiv");
	var width = document.documentElement.clientWidth;

	if(width > defaultWidth)
		JS_onResize();
	else
		obj.style.width = "950px";
}

// 풍선 도움말 스크립트

function JS_ShowLayer(id) {
	var obj = document.getElementById(id);
	obj.style.display = "block";

	var obj2 = document.getElementsByName("layer");

	for(var i = 1 ; i <= obj2.length ; i++) {
		var tempObj = document.getElementById("div"+i);
		if( tempObj == null ) {
			continue;
		}
		eval("document.all.div"+i+".style.display='none'");
	}
	eval("document.all."+id+".style.display='block'");

}
function JS_HideLayer(id) {
	var obj = document.getElementById(id);
	obj.style.display = "none";
}

function stringToXMLDoc(str)
{
	var xmlDoc = null;

	try
	{
		// Attempt to parse the string using the IE method.
		var xmlDOMObj = new ActiveXObject("Microsoft.XMLDOM");
		xmlDOMObj.async = false;
		xmlDOMObj.loadXML(str);
		xmlDoc = xmlDOMObj;
	}
	catch (e)
	{
		// The IE method didn't work. Try the Mozilla way.
		try
		{
			var domParser = new DOMParser;
			xmlDoc = domParser.parseFromString(str, 'text/xml');
		}
		catch (e)
		{
			xmlDoc = null;
		}
	}

	return xmlDoc;
}

// ajax
createXMLHttpRequest = function()
{
	try
    {
        return new XMLHttpRequest();
    }
    catch(e)
    {
        try
        {
            return new ActiveXObject("MSXML2.XMLHTTP");
        }
        catch(e)
        {
            try
            {
                return new ActiveXObject("Microsoft.XMLHTTP");
            }
            catch(e)
            {
                return null;
            }
        }
    }
}
//server reqeust
function sendRequest(header)
{
	var xhr = createXMLHttpRequest();
	xhr.onreadystatechange = function()
	{
		try
		{

			switch(xhr.readyState)
			{
				case 1 :
				case 2 :
				case 3 :
					if(header.invoke != undefined)
					{
						header.invoke();
					}
					break;

				case 4 :
					if(xhr.status == 200)
					{
						header.handler(xhr);
					}
					break;
			}
		}
		catch(e)
		{
			alert('연결을 사용할수 없습니다. 잠시후 다시 시도해주시기 바랍니다.')
		}
	};
	var async = true;
	if(header.async)
	{
		async = header.async;
	}
	xhr.open(header.method,header.url + "?" + header.data,async);
	xhr.send(null);
	delete xhr;
}

function getHtml(url)
{
	sendRequest({
		url : url,
		method : "GET",
		data : "",
		handler : resultToHtmlObject
	});
}

function getHtmlText(url)
{
	sendRequest({
		url : url,
		method : "GET",
		data : "",
		handler : resultToHtmlText
	});
}

function alertMessage(key,query)
{
	sendRequest({
		async : false,
		url : "/getMessage.do",
		method : "GET",
		data : "key=" + key + "&" + query,
		handler : resultToMessageText
	});
}

function resultToHtmlObject(xhr)
{
	return stringToXMLDoc(xhr.responseText);
}

function resultToHtmlText(xhr)
{
	return xhr.responseText;
}

function resultToMessageText(xhr)
{
	var data = xhr.responseXML.getElementsByTagName("message");
	alert(data[0].firstChild.nodeValue);
}
function callback() {

	which = Math.round(Math.random()*1);
	sendRequest({
			url : "/wapcallback.do",
			method : "GET",
			data : "ran=" + which,
			handler : callbackResultHandler
		});
}

function callbackResultHandler(xhr)
{
	var xml = xhr.responseXML;

	var resultTag = xml.getElementsByTagName("result");
	var result = resultTag[0].firstChild.nodeValue;

	var message1 = '로그인후 사용가능합니다.';
	var message2 = '핸드폰 번호가 없습니다.';
	var message3 = '발송되었습니다.';
	var message4 = '에러가 발생했습니다.';
	var message5 = '등록된 핸드폰이 없습니다.';

	if(result == 'login') {
		alert(message1);
	} else if(result == 'nophone') {
		alert(message2);
		location.href="/phoneUpdate.do";

	} else if (result == 'success'){
		alert(message3);
	} else if (result == 'error'){
		alert(message4);
	} else if (result == 'phone'){
		alert(message5);
		location.href="/phoneUpdate.do";
	}
}

/*
 * 피플 레이어 보이기
 * args (event,로긴유저,대상유저)
 * 사용 예)<a style="cursor:pointer;cursor:hand" onclick="javascript:showPeopleLayer(event,6,5);">친구</a>
 */

var layerhSeq = "";
var layermSeq = "";

document.write("<div id='peopleLayer'></div>");

var orgMouseDownAction;
function peopleLayerDown(e){	
	var IE = document.all ? true : false;
	var srcElement;
	
	if(IE){
		srcElement = event.srcElement;
		
	}else{
		srcElement = e.target;
	}
	if(srcElement.id != "peopleLayer" && srcElement.id != "userLayer" &&
		srcElement.id != "userLayer1" && srcElement.id != "userLayer2" &&
		srcElement.id != "userLayer3" && srcElement.id != "userLayer4" &&
		srcElement.id != "userLayer5"){
		hidePeopleLayer();
	}
}

function showPeopleLayerComm(e, memberSeq, targetSeq, popup){
	if(!memberSeq){
		memberSeq = 0;
	}
	var IE = document.all ? true : false;
	var posy = 0;
	var posx = 0;
	if(e){
		if(IE){
			posx = event.clientX + document.documentElement.scrollLeft;
			posy = event.clientY + document.documentElement.scrollTop;
		}else{
			posx = e.pageX;
			posy = e.pageY;
		}
	}else{
		posx = arguments[3];
		posy = arguments[4];
	}

	startNum = 1;
	endNum = 4;

	layerhSeq = targetSeq;
	layermSeq = memberSeq;
	

	var peopleLayer = document.getElementById("peopleLayer");
	var layer = document.getElementById("userLayer");

	var divLayer = "";
	if(popup){
		divLayer += "<div id=\"userLayer\" class=\"userpreinfo\" style=\"left:50%;top:580px;margin-left:-30px;\">";
		divLayer += "<ul id=\"userLayer1\">";
		divLayer += "<li id=\"userLayer2\"><a id=\"userLayer4\" href=\"javascript:hidePeopleLayer();opener.layerMovePeopleHome(" + layerhSeq + ")\">i’s box 가기</a></li>";
		divLayer += "<li id=\"userLayer3\"><a id=\"userLayer5\" href=\"javascript:hidePeopleLayer();opener.addFavPeople(" + layermSeq + "," + layerhSeq + ")\">관심피플 등록하기</a></li>";
		divLayer += "</div>";
	}else{
		divLayer += "<div id=\"userLayer\" class=\"userpreinfo\" style=\"left:50%;top:580px;margin-left:-30px;\">";
		divLayer += "<ul id=\"userLayer1\">";
		divLayer += "<li id=\"userLayer2\"><a id=\"userLayer4\" href=\"javascript:hidePeopleLayer();layerMovePeopleHome(" + layerhSeq + ")\">i’s box 가기</a></li>";
		divLayer += "<li id=\"userLayer3\"><a id=\"userLayer5\" href=\"javascript:hidePeopleLayer();addFavPeople(" + layermSeq + "," + layerhSeq + ")\">관심피플 등록하기</a></li>";
		divLayer += "</div>";
	}
	peopleLayer.innerHTML = divLayer;
	layer = document.getElementById("userLayer");
	

	layer.style.left = posx + "px";
	layer.style.top = posy + "px";

	layer.style.display = "block";
	peopleLayer.style.display = "block";
	
	orgMouseDownAction = document.onclick;
	document.onmousedown=peopleLayerDown;
}

function showPeopleLayerComm2(e, memberSeq, targetSeq, popup){
	if(!memberSeq){
		memberSeq = 0;
	}
	var IE = document.all ? true : false;
	var posy = 0;
	var posx = 0;
	if(e){
		if(IE){
			posx = event.clientX + document.documentElement.scrollLeft;
			posy = event.clientY + document.documentElement.scrollTop;
		}else{
			posx = e.pageX;
			posy = e.pageY;
		}
	}else{
		posx = arguments[3];
		posy = arguments[4];
	}

	startNum = 1;
	endNum = 4;

	layerhSeq = targetSeq;
	layermSeq = memberSeq;
	

	var peopleLayer = document.getElementById("peopleLayer");
	var layer = document.getElementById("userLayer");

	var divLayer = "";
	if(popup){
		divLayer += "<div id=\"userLayer\" class=\"userpreinfo\" style=\"left:50%;top:580px;margin-left:-30px;\">";
		divLayer += "<ul id=\"userLayer1\">";
		divLayer += "<li id=\"userLayer2\"><a id=\"userLayer4\" href=\"javascript:hidePeopleLayer();opener.layerMovePeopleHome2(" + layerhSeq + ")\">i’s box 가기</a></li>";
		divLayer += "<li id=\"userLayer3\"><a id=\"userLayer5\" href=\"javascript:hidePeopleLayer();opener.addFavPeople(" + layermSeq + "," + layerhSeq + ")\">관심피플 등록하기</a></li>";
		divLayer += "</div>";
	}else{
		divLayer += "<div id=\"userLayer\" class=\"userpreinfo\" style=\"left:50%;top:580px;margin-left:-30px;\">";
		divLayer += "<ul id=\"userLayer1\">";
		divLayer += "<li id=\"userLayer2\"><a id=\"userLayer4\" href=\"javascript:hidePeopleLayer();layerMovePeopleHome2(" + layerhSeq + ")\">i’s box 가기</a></li>";
		divLayer += "<li id=\"userLayer3\"><a id=\"userLayer5\" href=\"javascript:hidePeopleLayer();addFavPeople(" + layermSeq + "," + layerhSeq + ")\">관심피플 등록하기</a></li>";
		divLayer += "</div>";
	}
	peopleLayer.innerHTML = divLayer;
	layer = document.getElementById("userLayer");
	

	layer.style.left = posx + "px";
	layer.style.top = posy + "px";

	layer.style.display = "block";
	peopleLayer.style.display = "block";
	
	orgMouseDownAction = document.onclick;
	document.onmousedown=peopleLayerDown;
}

function showPeopleLayer(e,memberSeq,targetSeq){
	showPeopleLayerComm(e, memberSeq, targetSeq, false);
}

function showPeopleLayerPopup(e,memberSeq,targetSeq){
	showPeopleLayerComm(e, memberSeq, targetSeq, true);
}

function showPeopleLayerPopup2(e,memberSeq,targetSeq){
	showPeopleLayerComm2(e, memberSeq, targetSeq, true);
}

function hidePeopleLayer()
{
    var layer = document.getElementById("peopleLayer");
    if(layer != null)
    {
		layer.style.display = "none";
		document.onmousedown = orgMouseDownAction;
    }
}


function showPeopleLayer2(e,memberSeq,targetSeq)
{
	//if(memberSeq == targetSeq) return;
	if(!memberSeq)
	{
		memberSeq = 0;
	}
	var IE = document.all ? true : false;
	var posy = 0;
	var posx = 0;
	if(e)
	{
		if (IE)
		{
			posx = event.clientX + document.documentElement.scrollLeft;
			posy = event.clientY + document.documentElement.scrollTop;
		}
		else
		{
			posx = e.pageX;
			posy = e.pageY;
		}
	}
	else
	{
		posx = arguments[3];
		posy = arguments[4];
	}

	startNum = 1;
	endNum = 4;

	layerhSeq = targetSeq;
	layermSeq = memberSeq;

	var layer = document.getElementById("userLayer");
	if(!layer)
	{
		var divLayer = "<div id=\"userLayer\" style=\"display: none; position: absolute; z-index: 999;\">";
		divLayer += "			<div id=\"divp1\">";
		divLayer += "				<div id=\"people\" style=\"position:absolute;\">";
		divLayer += "					<div class=\"pb_lay02\">";
		divLayer += "						<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" class=\"pb_lay03\">";
		divLayer += "							<tr>";
		divLayer += "								<td>";
		divLayer += "									<div id=\"layerUser\" style=\"height:81px;\" >";
		divLayer += "									</div>";
		divLayer += "								</td>";
		divLayer += "							</tr>";
		divLayer += "							<tr>";
		divLayer += "								<td class=\"pstt01\"><img src=\"/images/public/main/stt_lay_01.gif\" alt=\"\" /></td>";
		divLayer += "							</tr>";
		divLayer += "							<tr>";
		divLayer += "								<td>";
		divLayer += "									<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" width=\"100%\" class=\"pb_tag\">";
		divLayer += "										<tr>";
		divLayer += "											<td valign=\"top\" class=\"prv_l\"><a href=\"javascript:layerUccPrePage();\"><img id=\"uccPre\" style=\"cursor: hand;\" src=\"/images/public/main/btn_prv_p.gif\" align=\"absmiddle\" alt=\"\" /></a></td>";
		divLayer += "											<td align=\"left\">";
		divLayer += "												<div id=\"layerUcc\" class=\"pimg\">";
		divLayer += "												</div>";
		divLayer += "											</td>";
		divLayer += "											<td valign=\"top\" class=\"prv_r\"><a href=\"#\"><a href=\"javascript:layerUccNextPage();\"><img id=\"uccNext\" style=\"cursor: hand;\" src=\"/images/public/main/btn_nxt_p.gif\" align=\"absmiddle\" alt=\"\" /></a></td>";
		divLayer += "										</tr>";
		divLayer += "									</table>";
		divLayer += "								</td>";
		divLayer += "							</tr>";
		divLayer += "							<tr>";
		divLayer += "								<td valign=\"bottom\" height=\"15\" class=\"pstt02\"><img src=\"/images/public/main/stt_lay_02.gif\" alt=\"\" /></td>";
		divLayer += "							</tr>";
		divLayer += "							<tr>";
		divLayer += "								<td>";
		divLayer += "									<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" width=\"100%\" class=\"pb_tag\">";
		divLayer += "										<tr>";
		divLayer += "											<td valign=\"bottom\" class=\"prv_l\"><img id=\"tagPre\" style=\"cursor: hand;\" onclick=\"layerTagPrePage();\" src=\"/images/public/main/btn_prv_t.gif\" align=\"absmiddle\" alt=\"\" /></td>";
		divLayer += "											<td class=\"ptxt\" valign=\"top\" >";
		divLayer += "												<div style=\"float:left; width: 204px; height:13px; position: relative; overflow: hidden;\">";
		divLayer += "													<div id=\"tagElement\" style=\"backgroundColor:#000000; height:13px;width: 204px; position: relative;\">";
		divLayer += "													</div>";
		divLayer += "												</div>";
		divLayer += "											</td>";
		divLayer += "											<td valign=\"bottom\" class=\"prv_r\"><img id=\"tagNext\" style=\"cursor: hand;\" onclick=\"layerTagNextPage();\" src=\"/images/public/main/btn_nxt_t.gif\" align=\"absmiddle\" alt=\"\" /></td>";
		divLayer += "										</tr>";
		divLayer += "									</table>";
		divLayer += "								</td>";
		divLayer += "							</tr>";
		divLayer += "						</table>";
		divLayer += "					</div>";
		divLayer += "					<div class=\"cb\"></div>";
		divLayer += "				</div>";
		divLayer += "			</div>";
		divLayer += "		</div>";

		
		var layerDiv = document.createElement("div");
		
		//var flexLayer = document.getElementById("main_top")!= null ? document.getElementById("main_top") : document.getElementById("rightLayer");
		//var flexLayer = document.getElementById("main_top")!= null ? document.getElementById("main_top") : document.getElementById("peopleLayer");
		//flexLayer.innerHTML += divLayer;
		document.body.innerHTML += divLayer;
		layer = document.getElementById("userLayer");

		getLayerUserInfo();
		getLayerUccInfo();
		getLayerUccTotalInfo();
		getLayerTagInfo();
		lyaerInit();
	}
	else
	{
		document.getElementById('tagPre').onclick = layerTagPrePage;
		document.getElementById('tagNext').onclick = layerTagNextPage;

		getLayerUserInfo();
		getLayerUccInfo();
		getLayerUccTotalInfo();
		getLayerTagInfo();
		lyaerInit();
	}

	layer.style.left = posx + "px";
	layer.style.top = posy + "px";

	layer.style.display = "block";
}

function hidePeopleLayer2()
{
	var layer = document.getElementById("userLayer");
	if(layer != null)
	{
		layer.style.display = "none";
	}
}

//I's Box 가기
function goPeopleHome(targetSeq)
{
	if(targetSeq == "" || targetSeq == "null" || targetSeq == null )
		loginProcess('/myUcc.do');
	else
		location.href = "/movePeopleHome.do?homeSeq=" + targetSeq;
}

var sessionMemberSeq = "0";
function getMemberSeqResult(url) {
	var xhr = createXMLHttpRequest();
	xhr.onreadystatechange = function() {
		if(xhr.readyState == 4) {
			if( xhr.status == 200) {
				getMemberSeqResultHandler(xhr);
			} else {

			}
		} else {
		}
	};

	xhr.open("GET", url, false);
	xhr.send(null);	
}

function getMemberSeqResultHandler(xhr) {
	var xml = xhr.responseXML;
	var resultTag = xml.getElementsByTagName("result");
	var result = resultTag[0].firstChild.nodeValue;
	sessionMemberSeq = result;
}

function getMemberSeq(handler) {
	sessionMemberSeq = "0";
	var url = "/getMemberSeq.do";
	getMemberSeqResult(url, handler);
	return sessionMemberSeq;
}

//관심 피플로 추가
function addFavPeople(memberSeq,targetSeq)
{
	sendRequest({
		url : "/getMemberSeq.do",
		data : "",
		method : "GET",
		async : true,
		handler : function(xhr){
			var xml = xhr.responseXML;
			var resultTag = xml.getElementsByTagName("result");
			var result = resultTag[0].firstChild.nodeValue;
			var sessionMemberSeq = result;
			if(sessionMemberSeq == undefined || sessionMemberSeq == "0"){
				loginProcess();
				return;
			}
			memberSeq = sessionMemberSeq;
			if(memberSeq == targetSeq){
				alert('본인을 관심피플로 등록할수 없습니다');
				return;
			}
			sendRequest({
				url : "/servlet/DataRouter",
				data : "__descriptor=personal&__function=myPeopleListCount&memberSeq=" + memberSeq,
				method : "GET",
				async : true,
				handler : function(xhr){
					var cnt = xhr.responseXML.getElementsByTagName("CNT");
					var count = cnt[0].firstChild.nodeValue;
					if ( count >= 100 ){
						alert('관심피플은 100명까지 등록 할 수 있습니다.');
						return;
					}else{
						sendRequest({
							url : "/servlet/DataRouter",
							data : "__descriptor=leftMenu&__function=select_concernpeople&memberSeq=" + memberSeq + "&targetSeq=" + targetSeq,
							method : "GET",
							async : true,
							handler : function(xhr){
								var users = xhr.responseXML.getElementsByTagName("USER_SEQ");
								if(users.length > 0)
								{
									alert('이미 등록된 피플입니다.');
									hidePeopleLayer();
								}
								else
								{
									window.open("/popInterestPeople.do?memberSeq=" + memberSeq + "&targetSeq=" + targetSeq ,"people","width=360,height=180");
								}
									
								//delete xhr;
							}
						});
					}
				}
			});
		}
	});
}

//->start 모바일 인증 및 vm 다운로드 전송
function doVmDownloadResult(url, parm, close) {
	var xhr = createXMLHttpRequest();
	xhr.onreadystatechange = function() {
		if(xhr.readyState == 4) {
			if( xhr.status == 200) {
				doVmDownloadResultHandler(xhr, close);
			} else {

			}
		} else {
		}
	};

	xhr.open("GET", url+"?"+parm);
	xhr.send(null);
}


function doVmDownloadResultHandler(xhr, close) {
	var message = "모바일 전용 프로그램을 전송하였습니다.";
	var message1 = "자동업로드 서비스를 지원하지 않는 폰을 가지고 계십니다.";
	var message2 = '모바일 전용 프로그램을 전송에 실패하였습니다.';

	var xml = xhr.responseXML;
	var resultTag = xml.getElementsByTagName("result");
	var result = resultTag[0].firstChild.nodeValue;;

	if(result == 'success') {
		alert(message);
	} else if(result == 'memberSmsAuth' ) {
		doMobileAuth();
	} else if(result == 'notAvailable') {
		alert(message1);
	} else if(result == 'fail') {
		alert(message2);
	}

	if(close == 1) {
		window.close();
	}
}

function doVmDownload(close) {
	var which = Math.round(Math.random()*1);
	var url = "/vmSmsSendXml.do";
	var parm = "where=1&ran=" + which;

	doVmDownloadResult(url, parm, close);
}

function doMobileAuth() {
	var which = Math.round(Math.random()*1);
	var url = "/memberSmsAuth.do";
	var parm = "?where=1&ran=" + which;

	var width=500;
	var height=550;

	window.open(url+parm,'','width='+width+',height='+height+',scrollbars=no,menubar=no,status=yes,location=no,toolbar=no');

}

//->end 모바일 인증 및 vm 다운로드 전송

function showMediaOrg(seq,type)
{
	if(arguments.length > 2)
	{
		type = arguments[2];
	}
	sendRequest({
		url : "/servlet/DataRouter",
		method : "GET",
		data : "__descriptor=viewer&__function=select_ucc_info&UCC_SEQ=" + seq,
		handler : mediaResultHandle,
		invoke : function()
		{
			if(!mediaLoader.preloading)
			{
				mediaLoader.preLoad();
			}
		}

	});
}

function showMedia(seq, type, homeSeq, folderSeq){
	if(homeSeq == "" || homeSeq == "0" || homeSeq == undefined){
		homeSeq = "0";
	}
	
	if(folderSeq == "" || folderSeq == "0" || folderSeq == undefined){
		folderSeq = "0";
	}
		
	location.href = "/PerContView.do?uccSeq=" + seq + "&homeSeq=" + homeSeq + "&folderSeq=" + folderSeq;
}

//관심피플 컨텐츠 선택시 팝업으로 띄우기
function showMedia_winOpen(seq, type, homeSeq, folderSeq){
	
	window.open("/PerContView.do?uccSeq=" + seq + "&homeSeq=" + homeSeq + "&folderSeq=" + folderSeq);

}

function showReply(seq)
{
	sendRequest
	(
		{
			url : "/viewerCommentSelect.do",
			method : "GET",
			data : "UCC_SEQ=" + seq+"&FIRST=true",
			handler : showReplyHandler
		}
	);
}

function showReplyHandler(xhr)
{
	//조회된 댓글들을 해당 테이블에 위치 시킨다.
	var result = xhr.responseXML.getElementsByTagName("result")[0].firstChild.nodeValue;
	var info = {};
	info.content = result;
	info.comment = "(" + xhr.responseXML.getElementsByTagName("COMMENT_COUNT")[0].firstChild.nodeValue + ")";

	if(xhr.responseXML.getElementsByTagName("UCC_SEQ")[0] != null)
	{
		var root = xhr.responseXML.documentElement;
		var seq = root.getElementsByTagName("UCC_SEQ")[0].firstChild.nodeValue;
		var url = root.getElementsByTagName("CONTENT_URL")[0].firstChild.nodeValue;
		info.title = root.getElementsByTagName("UCC_SUBJECT")[0].firstChild.nodeValue;
		info.nick = root.getElementsByTagName("NICK_NAME")[0].firstChild.nodeValue;
		info.memberSeq = root.getElementsByTagName("MEMBER_SEQ")[0].firstChild.nodeValue;
		info.type = root.getElementsByTagName("CONTENT_TYPE")[0].firstChild.nodeValue;
		info.count = root.getElementsByTagName("UCC_READ_COUNT")[0].firstChild.nodeValue;
	}
	replyLoader.openReply(info);

}

function mediaResultHandle(xhr)
{
	var info = {};
	var root = xhr.responseXML.documentElement;
	var seq = root.getElementsByTagName("UCC_SEQ")[0].firstChild.nodeValue;
	var url = root.getElementsByTagName("CONTENT_URL")[0].firstChild.nodeValue;
	var content = root.getElementsByTagName("UCC_CONTENT")[0].firstChild.nodeValue;
	while(content.match("\n"))
	{
		content = content.replace("\n","<br/>");
	}
	info.content = content;
	info.title = root.getElementsByTagName("UCC_SUBJECT")[0].firstChild.nodeValue;
	info.comment = "(" + root.getElementsByTagName("COMMENT_COUNT")[0].firstChild.nodeValue + ")";
	info.nick = root.getElementsByTagName("NICK_NAME")[0].firstChild.nodeValue;
	info.memberSeq = root.getElementsByTagName("MEMBER_SEQ")[0].firstChild.nodeValue;
	info.type = root.getElementsByTagName("CONTENT_TYPE")[0].firstChild.nodeValue;
	info.count = root.getElementsByTagName("UCC_READ_COUNT")[0].firstChild.nodeValue;
	var width = 500;
	var height = 434;
	switch(info.type)
	{
		case "101" :
			//width = 500;
			//height = 384;
			break;

		case "201" :
			width = root.getElementsByTagName("FILE_WIDTH")[0].firstChild.nodeValue;
			height = root.getElementsByTagName("FILE_HEIGHT")[0].firstChild.nodeValue;
			var exif = "";
			//파일이름 :
			//용량 :
			//크기  :
			//노출보정 :
			//exif += "" + root.getElementsByTagName("EXP_REVISION")[0].childNodes.length > 0 ? root.getElementsByTagName("EXP_REVISION")[0].firstChild.nodeValue : "";
			exif += "노출시간 : " + (root.getElementsByTagName("EXP_TIME")[0].childNodes.length > 0 ? root.getElementsByTagName("EXP_TIME")[0].firstChild.nodeValue : "") + "<br/>";
			exif += "플래시 : " + (root.getElementsByTagName("FLASH")[0].childNodes.length > 0 ? root.getElementsByTagName("FLASH")[0].firstChild.nodeValue : "") + "<br/>";
			exif += "초점거리 : " + (root.getElementsByTagName("FOCUS_LENGTH")[0].childNodes.length > 0 ? root.getElementsByTagName("FOCUS_LENGTH")[0].firstChild.nodeValue : "") + "<br/>";
			exif += "조리개값 : " + (root.getElementsByTagName("IRIS_VALUE")[0].childNodes.length > 0 ? root.getElementsByTagName("IRIS_VALUE")[0].firstChild.nodeValue : "") + "<br/>";
			exif += "ISO 감도 : " + (root.getElementsByTagName("ISO_NO")[0].childNodes.length > 0 ? root.getElementsByTagName("ISO_NO")[0].firstChild.nodeValue : "") + "<br/>";
			exif += "카메라 제조사 : " + (root.getElementsByTagName("MADE_CORP_NAME")[0].childNodes.length > 0 ? root.getElementsByTagName("MADE_CORP_NAME")[0].firstChild.nodeValue : "") + "<br/>";
			exif += "모델명 : " + (root.getElementsByTagName("MODEL_NAME")[0].childNodes.length > 0 ? root.getElementsByTagName("MODEL_NAME")[0].firstChild.nodeValue : "") + "<br/>";
			exif += "촬영시간 : " + (root.getElementsByTagName("SHOOT_TIME")[0].childNodes.length > 0 ? root.getElementsByTagName("SHOOT_TIME")[0].firstChild.nodeValue : "") + "<br/>";
			info.exif = exif;
			break;
	}
	mediaLoader.open(url,info,width,height);
	if(info.type != "101")
	{
		var pSeq = "";
		var parent_seq = root.getElementsByTagName("PARENT_UCC_SEQ")[0];
		if(parent_seq.childNodes.length > 0)
		{
			pSeq = parent_seq.firstChild.nodeValue;
			if(pSeq && pSeq != "" && pSeq != "null")
			{
				pSeq = "&UCC_SEQ=" + pSeq;
			}
		}
		sendRequest({
				url : "/updateReadCount.do",
				method : "GET",
				data : "contentType=" + info.type + "&UCC_SEQ=" + seq + pSeq,
				handler : function(xhr){}
			});
	}
}

var lastzIndex = 999;
var replyLoader = {
	initialize: function()
	{
		//main container with border
		this.container = new Element('div');
		this.container.setStyle("position","absolute");
		this.container.setStyle("background-color","#FFFFFF");
		this.container.setStyle("border","1px solid #ABABAB");
		this.container.setStyle("text-align","center");
		this.container.setStyle("width","512px");
		this.container.setStyle("height","290px");
		this.slideEffect = 0;

		// Defining title bar
		this.titleLeft = new Element('span');
		this.titleLeft.setStyle("float","left");
		this.titleLeft.setStyle("width","5px");
		this.blankImage = new Element('img',{src: '/images/common/layer_top_left.gif'});
		this.blankImage.inject(this.titleLeft);

		this.titleRight = new Element('span');
		this.titleRight.setStyle("float","right");
		this.titleRight.setStyle("text-align","right");
		this.titleRight.setStyle("width","23px");
		this.closeButton = new Element('img',{src: '/images/common/layer_top_right.gif'});
		this.closeButton.setStyle('cursor','pointer');
		this.closeButton.addEvent('click', this.close.bind(this));
		this.closeButton.inject(this.titleRight);

		this.title = new Element('div');
		this.title.setStyles("background:url(/images/common/layer_top_center.gif) repeat-x;");
		this.title.setStyle('padding', '0px');
		this.title.setStyle('cursor', 'move');
		this.title.setStyle('width', '100%');
		this.title.setStyle('height', '15px');

		this.titleLeft.inject(this.title);
		this.titleRight.inject(this.title);

		this.container.adopt(this.title);
		new Drag.Move(this.container,{
			handle: this.title,
			onDrag: this.makeTransparent.bind(this),
			onComplete: this.makeVisible.bind(this)});

		//Defining header block
		this.headerContainer = new Element("div");
		this.headerContainer.setStyle("height","24px");

		this.header = new Element("span");
		this.header.setStyle("float","left");
		this.header.setStyle("margin-top","8px");
		//this.header.setStyle("margin-bottom","5px");


		this.titleHeader = new Element("span");
		this.titleHeader.setStyles("color:#000000;font-weight:bold;padding-left:4px;padding-right : 2px;");
		this.titleHeader.inject(this.header);

		this.commentHeader = new Element("span");
		this.commentHeader.setStyle("color","#FF0000");
		this.commentHeader.inject(this.header);

		this.nickHeader = new Element("span");
		this.nickHeader.setStyles("font-size:11px;font-family:돋움; color:#898989;text-decoration:none;padding-left:2px;");
		this.nickHeader.setStyle("margin-left","7px");
		this.nickHeader.inject(this.header);

		this.header2 = new Element("span");
		this.header2.setStyle("float","right");
		this.header2.setStyle("margin-top","8px");
		//this.header2.setStyle("margin-bottom","5px");
		//header title container
		this.countHeader = new Element("span");
		this.countHeader.setStyles("font-size:11px;font-family:돋움; color:#999999;padding-right:5px;");
		this.countHeader.inject(this.header2);

		this.header.inject(this.headerContainer);
		this.header2.inject(this.headerContainer);

		//this.headerContainer.setStyle("border","1px solid #BCBCBC");
		this.headerContainer.inject(this.container);

		// Defining content block
		this.content = new Element('div');
		//this.content.setStyle("padding","0px 4px 4px 4px");
		this.content.setStyle("padding","0px");
		this.content.setStyle("text-align","center");
		this.content.setStyle("position","relative");
		//this.content.setStyle("border","1px solid #BCBCBC");
		this.container.adopt(this.content);

		this.container.addEvent('mousedown',this.bringToTop.bind(this));
		this.title.addEvent('mousedown',this.bringToTop.bind(this));
		this.container.inject($(document.body));
	},
	openReply : function(info)
	{
		if(!this.container)
		{
			this.initialize();
		}
		this.container.setStyle('z-index',++lastzIndex);
		//this.container.setStyle("width","512px");
		//this.container.setStyle("height","292px");
		this.container.setStyle("opacity",1);
		this.container.style.display = "block";
		this.content.setStyle("width","100%");
		this.content.setStyle("height","243px");
		this.content.setStyle("display","block");
		this.position(this.container.style.width,this.container.style.height);
		if(info.title) this.titleHeader.setText(info.title);
		if(info.memberSeq) this.nickHeader.setHTML("<span class='ovtxt'><a class='rollover2' href=\"javascript:goPeopleHome('" + info.memberSeq + "');\"><span>" + info.nick + "</span><img src=\"/images/common/ico_home_de.gif\" style=\"margin-left:3px;\" /><img src=\"/images/common/ico_home_ov.gif\" style=\"margin-left:3px;\"  class=\"rollover2\" /></a></span>");
		if(info.count)this.countHeader.setText("조회수 " + info.count);
		this.commentHeader.setText(info.comment);
		this.content.setHTML(info.content);
	},
	setCount : function (count)
	{
		this.commentHeader.setText("("+count+")");
		try
		{
			document.getElementById('PublicMain').setUCCCommentCount(count);
		}
		catch(e)
		{
			alert(count);
		}
	},
	position : function(w,h)
	{
		var width = 0;
		var height = 0;
		if(isNaN(w))
		{
			try
			{
				width = parseInt(w.replace("px",""));
				height = parseInt(h.replace("px",""));
			}
			catch(e)
			{
				alert(e);
			}
		}
		else
		{
			width = w;
			height = h;
		}
		var pointer = window.center({width : width,height : height});
		this.container.setStyle("left",pointer.x + "px");
		this.container.setStyle("top",pointer.y + "px");
	},
	close: function()
	{
		var selects = document.getElementsByName("selType");
		for(var i = 0; i < selects.length; i++)
		{
			selects[i].style.display = "block";
		}
		this.content.setHTML("");
		this.container.setStyle('display','none');
	},
	bringToTop: function()
	{
		lastzIndex++;
		this.container.setStyle('z-index',lastzIndex);
	},
	makeTransparent: function()
	{
		this.bringToTop();
	},
	makeVisible: function(){}
	};

var mediaLoader = {
	initialize: function()
	{
		//image resize flag
		this.resizedImage = false;
		this.exifEnabled = false;
		this.infoFlag = "";
		this.loaded = false;
		this.step = 0;
		this.contentInfo = {};
		this.options = $extend({
			resizeDuration: 400,
			resizeTransition: false,	// default transition
			initialWidth: 250,
			initialHeight: 250,
			animateCaption: true,
			showCounter: true
		});

		//main container with border
		this.container = new Element('div');
		this.container.setStyle("position","absolute");
		this.container.setStyle("background-color","#FFFFFF");
		this.container.setStyle("border","1px solid #ABABAB");
		this.container.setStyle("text-align","center");
		this.container.setStyle("width","510px");
		this.container.setStyle("height","467px");
		this.slideEffect = 0;

		// Defining title bar
		this.titleLeft = new Element('span');
		this.titleLeft.setStyle("float","left");
		this.titleLeft.setStyle("width","5px");
		this.blankImage = new Element('img',{src: '/images/common/layer_top_left.gif'});
		this.blankImage.inject(this.titleLeft);

		this.titleRight = new Element('span');
		this.titleRight.setStyle("float","right");
		this.titleRight.setStyle("text-align","right");
		this.titleRight.setStyle("width","23px");
		this.closeButton = new Element('img',{src: '/images/common/layer_top_right.gif'});
		//this.closeButton.setStyle('vertical-align','middle');
		this.closeButton.setStyle('cursor','pointer');
		this.closeButton.addEvent('click', this.close.bind(this));
		this.closeButton.inject(this.titleRight);

		this.title = new Element('div');
		this.title.setStyles("background:url(/images/common/layer_top_center.gif) repeat-x;");
		this.title.setStyle('padding', '0px');
		this.title.setStyle('cursor', 'move');
		this.title.setStyle('width', '100%');
		this.title.setStyle('height', '15px');

		this.titleLeft.inject(this.title);
		this.titleRight.inject(this.title);

		this.container.adopt(this.title);
		new Drag.Move(this.container,{
			handle: this.title,
			onDrag: this.makeTransparent.bind(this),
			onComplete: this.makeVisible.bind(this)});

		//Defining header block
		this.headerContainer = new Element("div");
		this.headerContainer.setStyle("height","29px");

		this.header = new Element("span");
		this.header.setStyle("float","left");
		this.header.setStyle("margin-top","5px");
		this.header.setStyle("margin-bottom","5px");

		//largeButton container
		this.buttonLayer = new Element("div");
		this.buttonLayer.setStyles("top:54px;left:10px;position:absolute;z-index:200;");
		this.buttonLayer.setStyle("display","none");

		this.largeButton = new Element('img',{src: '/images/btn/btn_vw_org.gif'});
		this.largeButton.setStyle('cursor','pointer');
		this.largeButton.setStyle('margin-right','4px');
		this.largeButton.addEvent('click', this.resize.bind(this));
		this.largeButton.inject(this.buttonLayer);


		//exifButton container
		this.exifButton = new Element('img',{src: '/images/btn/btn_exif.gif'});
		this.exifButton.setStyle('cursor','pointer');
		this.exifButton.setStyle('margin-right','4px');
		this.exifButton.addEvent('click', this.showInfo.bind(this));
		this.exifButton.inject(this.buttonLayer);

		//contentButton container

		this.contentButton = new Element('img',{src: '/images/btn/btn_vw_rep.gif'});
		this.contentButton.setStyle('cursor','pointer');
		this.contentButton.addEvent('click', this.showInfo.bind(this));
		this.contentButton.inject(this.buttonLayer);

		this.buttonLayer.inject(this.container);

		this.exifLayer = new Element("div");
		this.exifLayer.setStyles("width:100%;height:100%;display:none;position:absolute;background-color: #000000;color:#FFFFFF;line-height:18px;padding:35px 0px 0px 19px;text-align:left;");
		this.exifLayer.setStyle("opacity",0.8);
		this.exifLayer.addEvent('click', this.showInfo.bind(this));

		this.titleHeader = new Element("span");
		this.titleHeader.setStyles("color:#000000;font-weight:bold;padding-left:4px;padding-right : 2px;");
		this.titleHeader.inject(this.header);

		this.commentHeader = new Element("span");
		this.commentHeader.setStyle("color","#FF0000");
		this.commentHeader.inject(this.header);

		this.nickHeader = new Element("span");
		this.nickHeader.setStyles("font-size:11px;font-family:돋움; color:#999999;text-decoration:underline;padding-left:2px;");
		this.nickHeader.setStyle("margin-left","7px");
		this.nickHeader.inject(this.header);

		this.header2 = new Element("span");
		this.header2.setStyle("float","right");
		this.header2.setStyle("margin-top","5px");
		this.header2.setStyle("margin-bottom","5px");
		//header title container
		this.countHeader = new Element("span");
		this.countHeader.setStyles("font-size:11px;font-family:돋움; color:#999999;padding-right:5px;");
		this.countHeader.inject(this.header2);

		this.header.inject(this.headerContainer);
		this.header2.inject(this.headerContainer);

		//this.headerContainer.setStyle("border","1px solid #BCBCBC;");
		this.headerContainer.inject(this.container);

		// Defining content block
		this.content = new Element('div');
		this.content.setStyle("padding","0px 4px 4px 4px");
		this.content.setStyle("text-align","center");
		this.content.setStyle("position","relative");
		//this.content.setStyle("border","1px solid #BCBCBC;");
		this.container.adopt(this.content);

		var nextEffect = this.nextEffect.bind(this);
		this.fx = {
			overlay: this.container.effect('opacity', {duration: 500, onComplete: nextEffect}).hide(),
			resize: this.container.effect("height",{duration: this.options.resizeDuration, onComplete: nextEffect})
		};

		this.container.addEvent('mousedown',this.bringToTop.bind(this));
		this.title.addEvent('mousedown',this.bringToTop.bind(this));
		this.container.inject($(document.body));
	},
	resize : function()
	{
		var child = this.content.getFirst();
		if(!this.resizedImage)
		{
			var clientSize = window.size();

			this.largeButton.src = "/images/btn/btn_vw_norm.gif";
			if(this.exifEnabled)
			{
				this.exifLayer.setStyle("display","none");
				this.exifEnabled = false;
			}
			this.exifButton.setStyle("display","none");
			this.contentButton.setStyle("display","none");
			this.firstImageWidth = child.getStyle("width");
			this.firstImageHeight = child.getStyle("height");
			this.firstImageTop = child.getStyle("top");
			var containerWidth = parseInt(this.contentsWidth);
			var containerHeight = parseInt(this.contentsHeight) + 45;
			if(containerWidth > 640 || (containerHeight - 45) > 480)
			{
				if(containerWidth > clientSize.width)
				{
					containerWidth = clientSize.width;
					this.content.setStyle("overflow-x","scroll");
				}
				if(containerHeight > clientSize.height)
				{
					containerHeight = clientSize.height;
					this.content.setStyle("overflow-y","scroll");
				}
				this.container.setStyle("width",containerWidth + "px");
				this.container.setStyle("height",containerHeight + "px");
				this.position(containerWidth,containerHeight,true);
				this.content.setStyle("width",containerWidth + "px");
				this.content.setStyle("height",containerHeight - 45 + "px");

				child.style.width = this.contentsWidth;
				child.style.height = this.contentsHeight;
				child.style.top = "0%";
			}
			this.resizedImage = true;
		}
		else
		{
			this.content.setStyle("overflow-x","hidden");
			this.content.setStyle("overflow-y","hidden");
			this.position(640,524,true);
			this.container.setStyle("width",640);
			this.container.setStyle("height",524);
			this.content.setStyle("width","100%");
			this.content.setStyle("height",480);
			this.exifButton.setStyle("display","inline");
			this.contentButton.setStyle("display","inline");
			this.largeButton.src = "/images/btn/btn_vw_org.gif";
			child.setStyle("width",this.firstImageWidth);
			child.setStyle("height",this.firstImageHeight);
			child.setStyle("top",this.firstImageTop);
			this.resizedImage = false;
		}
	},
	preLoad : function()
	{
		if(!this.container)
		{
			this.initialize();
		}
		this.step = 0;
		this.preloading = true;
		this.position(this.container.style.width,this.container.style.height,false);
		this.container.setStyle("opacity",0.1);
		this.container.style.display = "block";
		this.content.style.background = "url(/images/common/loading.gif) no-repeat center";
		this.fx.overlay.start(1);
	},
	open : function(url,info,w,h)
	{
		if(!this.container)
		{
			this.initialize();
		}
		//ie 6 select태그 z-index 오류
		/*
		var selects = document.getElementsByName("selType");
		for(var i = 0; i < selects.length; i++)
		{
			selects[i].style.display = "none";
		}
		*/
		this.preloading = false;
		this.setup(url,info,w,h);
	},
	openReply : function(info)
	{
		if(!this.container)
		{
			this.initialize();
		}
		this.preloading = false;
		this.container.setStyle("width",510);
		this.container.setStyle("height",290);
		this.container.setStyle("opacity",1);
		this.container.style.display = "block";
		this.content.setStyle("width","100%");
		this.content.setStyle("height","100%");
		this.content.setStyle("display","block");
		this.buttonLayer.setStyle("display","none");
		this.position(this.container.style.width,this.container.style.height,false);
		if(info.title) this.titleHeader.setText(info.title);
		if(info.memberSeq) this.nickHeader.setHTML("<span class='ovtxt'><a class='rollover2' href=\"javascript:goPeopleHome('" + info.memberSeq + "');\"><span>" + info.nick + "</span><img src=\"/images/common/ico_home_de.gif\" style=\"margin-left:3px;\" /><img src=\"/images/common/ico_home_ov.gif\" style=\"margin-left:3px;\"  class=\"rollover2\" /></a></span>");
		if(info.count)this.countHeader.setText("조회수 " + info.count);
		this.commentHeader.setText(info.comment);
		this.content.setHTML(info.content);
		this.step = 0;
	},
	openWithoutTitle : function(url,w,h)
	{
		if(!this.container)
		{
			this.initialize();
		}
		this.step = 0;
		this.preloading = true;
		this.position(this.container.style.width,this.container.style.height,false);
		this.container.setStyle("opacity",0.1);
		this.container.style.display = "block";
		this.content.style.background = "url(/images/common/loading.gif) no-repeat center";
		this.fx.overlay.start(1);
		this.options.url = url;
		this.content.setHTML("");
		this.content.setStyle("overflow","hidden");
		this.resizedImage = false;
		this.contentsWidth = w;
		this.contentsHeight = h;
		this.container.setStyle("width",w + 10);
		this.container.setStyle("height",h + 49);
		var pointer = window.center({width : w+10,height : h+49});
		this.container.setStyle("left",pointer.x + "px");
		this.container.setStyle("top",pointer.y + "px");

		this.content.setStyle("padding","0px 4px 4px 4px");
		this.content.setStyle("width",w);
		this.content.setStyle("height",h);
		this.content.setStyle("display","block");
		this.headerContainer.setStyle("display","block");
		this.buttonLayer.setStyle("display","none");
		this.exifLayer.setStyle("width","0px");
		this.exifLayer.setStyle("height","0px");
		this.exifLayer.setStyle("display","none");
		this.exifEnabled = false;
		this.preloading = false;
		this.nextEffect();
	},
	setTitle : function(memberSeq,nickName,title,count)
	{
		this.titleHeader.setText(title.substring(0,title.indexOf("(")));
		this.commentHeader.setText(title.substring(title.indexOf("(")));
		//this.nickHeader.setHTML("<a class='u' onclick=\"javascript:goPeopleHome('" + memberSeq + "');\" style='cursor:pointer;cursor:hand;'>" + nickName + "</a>");
		this.nickHeader.setHTML("<span class='ovtxt'><a class='rollover2' href=\"javascript:goPeopleHome('" + memberSeq + "');\"><span>" + nickName + "</span><img src=\"/images/common/ico_home_de.gif\" style=\"margin-left:3px;\" /><img src=\"/images/common/ico_home_ov.gif\" style=\"margin-left:3px;\"  class=\"rollover2\" /></a></span>");
		this.countHeader.setText("조회수 " + count);
	},
	setCount : function (count)
	{
		this.commentHeader.setText("("+count+")");
		try
		{
			document.getElementById('PublicMain').setUCCCommentCount(count);
		}
		catch(e)
		{
			alert(count);
		}
	},
	setup : function(url,info,w,h)
	{
		this.contentInfo = info;
		this.options.url = url;
		this.content.setHTML("");
		this.content.setStyle("overflow-x","hidden");
		this.content.setStyle("overflow-y","hidden");
		this.resizedImage = false;
		this.contentsWidth = w;
		this.contentsHeight = h;
		this.headerContainer.setStyle("display","block");
		this.titleHeader.setText(info.title);
		this.commentHeader.setText(info.comment);
		//this.nickHeader.setHTML("<a class='u' onclick=\"javascript:goPeopleHome('" + info.memberSeq + "');\" style='cursor:pointer;cursor:hand;'>" + info.nick + "</a>");
		this.nickHeader.setHTML("<span class='ovtxt'><a class='rollover2' href=\"javascript:goPeopleHome('" + info.memberSeq + "');\"><span>" + info.nick + "</span><img src=\"/images/common/ico_home_de.gif\" style=\"margin-left:3px;\" /><img src=\"/images/common/ico_home_ov.gif\" style=\"margin-left:3px;\"  class=\"rollover2\" /></a></span>");
		this.countHeader.setText("조회수 " + info.count);


		if(info.type == "201" || info.type == "601")
		{
			this.position(640,524,true);
			this.container.setStyle("width",640);
			this.container.setStyle("height",524);
			this.content.setStyle("width",638);
			this.content.setStyle("height",480);
			this.content.setStyle("padding","0px");
			this.buttonLayer.setStyle("display","block");
			this.exifLayer.setHTML(info.exif);
		}
		else
		{
			this.position(w+10,h+49,true);
			this.container.setStyle("width",w+10);
			this.container.setStyle("height",h + 49);
			this.content.setStyle("width",w);
			this.content.setStyle("height",h);
			this.content.setStyle("padding","0px 4px 4px 4px");
			this.buttonLayer.setStyle("display","none");
			this.exifLayer.setStyle("width","0px");
			this.exifLayer.setStyle("height","0px");
			this.exifLayer.setStyle("display","none");
			this.exifEnabled = false;
		}
		this.nextEffect();

	},
	position : function(w,h,effectEnable)
	{
		var width = 0;
		var height = 0;
		if(isNaN(w))
		{
			try
			{
				width = parseInt(w.replace("px",""));
				height = parseInt(h.replace("px",""));
			}
			catch(e)
			{
				alert(e);
			}
		}
		else
		{
			width = w;
			height = h;
		}
		var pointer = window.center({width : width,height : height});
		if(effectEnable)
		{
			var leftStart = parseInt(this.container.style.left.replace("px",""));
			var topStart = parseInt(this.container.style.top.replace("px",""));
			this.fx.left = this.container.effect("left",{duration : 200}).start(leftStart,pointer.x + "px");
			this.fx.top = this.container.effect("top",{duration : 200}).start(topStart, pointer.y + "px");
		}
		else
		{
			this.container.setStyle("left",pointer.x + "px");
			this.container.setStyle("top",pointer.y + "px");
		}
	},
	nextEffect: function(){

		switch (this.step++){

		case 1:
			this.fx.overlay.start(1);
			break;

		case 2 :
			this.content.style.background = '';
			this.loadContent(url);
			this.step = 0;
		}
	},
	loadContent : function(url)
	{
		// YouTube
		if (url.match(/youtube\.com\/watch/i))
		{
			this.type = 'flash';
			var videoId = url.split('=');
			this.videoID = videoId[1];
			this.object = new SWFObject("http://www.youtube.com/v/"+this.videoID+"&autoplay=1", "sfwvideo", this.contentsWidth, this.contentsHeight, "9", "#FFFFFF", "wmode", "transparent");
		}
		// DailyMotion
		else if (url.match(/dailymotion\.com/i))
		{
			this.type = 'flash';
			this.object = new SWFObject(url, "sfwvideo", this.contentsWidth, this.contentsHeight, "9", "#000000");
		}
		// Metacafe
		else if (url.match(/metacafe\.com\/watch/i))
		{
			this.type = 'flash';
			var videoId = url.split('/');
			this.videoID = videoId[4];
			this.object = new SWFObject("http://www.metacafe.com/fplayer/"+this.videoID+"/.swf", "sfwvideo", this.contentsWidth, this.contentsHeight, "9", "#FFFFFF", "wmode", "transparent");
		}
		// Google Video
		else if (url.match(/google\.com\/videoplay/i))
		{
			this.type = 'flash';
			var videoId = url.split('=');
			this.videoID = videoId[1];
			this.object = new SWFObject("http://video.google.com/googleplayer.swf?docId="+this.videoID+"&autoplay=1&hl=en", "sfwvideo", this.contentsWidth, this.contentsHeight, "9", "#FFFFFF", "wmode", "transparent");
		}
		else if(url.match(/mgoon\.com\/video/i))
		{
			this.type = 'flash';
			this.object = new SWFObject(url, "sfwvideo", this.contentsWidth, this.contentsHeight, "9", "#FFFFFF", "wmode", "transparent");
		}
		else if(url.match(/flvr.pandora.tv\/flv2pan\/flvmovie.dll/i))
		{
			this.type = 'flash';
			this.object = new SWFObject(url, "sfwvideo", this.contentsWidth, this.contentsHeight, "9", "#FFFFFF", "wmode", "transparent");
		}
		// Flash			.swf
		else if (url.match(/\.swf/i))
		{
			this.type = 'flash';
			var flashvars = "";
			if(url.indexOf("?") != -1)
			{
				flashvars = url.substring(url.indexOf("?")+1);
				url = url.substring(0,url.indexOf("?"));
			}
			this.object = new SWFObject(url, "sfwvideo", this.contentsWidth, this.contentsHeight, "7", "#FFFFFF");
			this.object.addParam("allowFullScreen","true");
			//this.object.addParam("wmode", "transparent");
			this.object.addParam("flashvars",flashvars);
		}
		else if (url.match(/\.(bmp|jpeg|jpg|gif|png)/i))
		{
			this.type = 'image';
			var w = "";
			var h = this.contentsHeight;
			var top = 0;
			var scale = 1;
			if(640 < this.contentsWidth)
			{
				w = "width = \"640px\"";
				scale = Math.floor(640 / this.contentsWidth * 100) / 100;
				h = this.contentsHeight * scale;
			}
			if(480 < h)
			{
				h = "480px";
				scale = Math.floor(480 / this.contentsHeight * 100) / 100;
				w = "width = \"" + (this.contentsWidth * scale) + "px\"";
			}
			else
			{
				top = 240 - (h / 2);
				top = Math.floor((top/480)*100);
			}

			this.object = "<img id=\"mediabox\" src=\"" + url + "\" " + w + " height=\"" + h + "\" style=\"cursor:hand;position:relative;top:" + top + "%;\" onmousedown='mediaLoader.imageClick(event);'/>";
		}
		// iFrame content
		else
		{
			this.type = 'iframe';
			this.iframeId = "lbFrame_"+new Date().getTime();	// Safari would not update iframe content that has static id.
			this.object = new Element('iframe').setProperties({id: this.iframeId, width: this.contentsWidth, height: this.contentsHeight, frameBorder:0, scrolling:'auto', src:url});
		}

		if (this.type == 'flash')
		{
			this.object.write(this.content);
		}
		else if (this.type == 'iframe')
		{
			this.object.injectInside(this.content)
		}
		else if(this.type == "image")
		{
			this.content.setHTML(this.object);
			this.content.setStyle("width","640px");
			this.content.setStyle("height","480px");
			this.exifLayer.setStyle("width","621px");
			this.exifLayer.setStyle("height","445px");
			this.exifLayer.injectTop(this.container);
			var topPointer = parseInt(this.container.getStyle("top").replace("px",""));
			this.exifLayer.setStyle("top","43px");
			this.exifLayer.setStyle("z-index",lastzIndex);
			this.buttonLayer.setStyle("z-index",++lastzIndex);
		}
		this.show();
	},
	imageClick : function(event)
	{
		switch(event.button)
		{
			//좌클릭
			case 1 :
				mediaLoader.close();
				break;
			//우클릭
			case 2 :
				document.oncontextmenu = function(){return false;}
				break;
		}
	},
	close: function()
	{
		document.oncontextmenu = null;
		if (this.step < 0) return;
		this.step = 0;
		for (var f in this.fx) this.fx[f].stop();
		document.onkeydown = null;
		this.content.setHTML("");
		this.container.setStyle('display','none');
		this.exifLayer.setStyle("display","none");
		this.exifEnabled = false;
		this.largeButton.src = "/images/btn/btn_vw_org.gif";
		this.exifButton.setStyle("display","inline");
		this.contentButton.setStyle("display","inline");
		this.resizedImage = false;
		this.preloading = false;
	},
	show: function(){
	 	this.container.setStyle('display','block');
		this.bringToTop();
	},
	showInfo : function(event)
	{
		var element = event.target ? event.target : event.srcElement;
		if(this.exifEnabled)
		{
			if(element.src)
			{
				var flag = element.src.indexOf("/images/btn/btn_exif.gif") != -1 ? "exif": "content";
				if(flag == this.infoFlag)
				{
					this.exifLayer.setStyle("display","none");
					this.exifEnabled = false;
					this.infoFlag = "";
				}
				else
				{
					var content = flag == "exif" ? this.contentInfo.exif : this.contentInfo.content;
					this.exifLayer.setHTML(content);
					this.infoFlag = flag;
				}
			}
			else
			{
				this.exifLayer.setStyle("display","none");
				this.exifEnabled = false;
				this.infoFlag = "";
			}
		}
		else
		{
			this.infoFlag = element.src.indexOf("/images/btn/btn_exif.gif") != -1 ? "exif": "content";
			var content = this.infoFlag == "exif" ? this.contentInfo.exif : this.contentInfo.content;
			this.exifLayer.setHTML(content);
			this.exifEnabled = true;
			this.exifLayer.setStyle("height","445px");
			this.exifLayer.setStyle("width","621px");
			this.exifLayer.setStyle("display","block");
		}
	},
	bringToTop: function()
	{
		lastzIndex++;
		this.container.setStyle('z-index',lastzIndex);
	},
	makeTransparent: function()
	{
		this.bringToTop();
	},
	makeVisible: function(){}
};
window.size = function()
{
	var w = 0;
	var h = 0;

	//IE
	if(!window.innerWidth)
	{
		//strict mode
		if(!(document.documentElement.clientWidth == 0))
		{
			w = document.documentElement.clientWidth;
			h = document.documentElement.clientHeight;
		}
		//quirks mode
		else
		{
			w = document.body.clientWidth;
			h = document.body.clientHeight;
		}
	}
	//w3c
	else
	{
		w = window.innerWidth;
		h = window.innerHeight;
	}
	return {width:w,height:h};
}

window.center = function()
{
	var hWnd = (arguments[0] != null) ? arguments[0] : {width:0,height:0};

	var _x = 0;
	var _y = 0;
	var offsetX = 0;
	var offsetY = 0;

	//IE
	if(!window.pageYOffset)
	{
		//strict mode
		if(!(document.documentElement.scrollTop == 0))
		{
			offsetY = document.documentElement.scrollTop;
			offsetX = document.documentElement.scrollLeft;
		}
		//quirks mode
		else
		{
			offsetY = document.body.scrollTop;
			offsetX = document.body.scrollLeft;
		}
	}
	//w3c
	else
	{
		offsetX = window.pageXOffset;
		offsetY = window.pageYOffset;
	}

	_x = ((this.size().width-hWnd.width)/2)+offsetX;
	_y = ((this.size().height-hWnd.height)/2)+offsetY;

	return{x:_x,y:_y};
}


window.onload = loadComplete;
function loadComplete()
{
	for(var i = 0; i < instances.length; i++)
	{
		var instance = instances[i].instance;
		instance.addParam("wmode","transparent");
		instance.write(instances[i].target);
	}

}

function notInBeta() {
	alert('베타서비스에서는 제공하지 않는 기능입니다.');
}


function replyTextInputEvent(txt)
{
	if(event.type == "blur")
	{
		if(txt.value == "")
		{
			txt.value = " 댓글을 입력하세요. (최대100자)";
		}
	}
	else if(event.type == "click" || event.type == "focus")
	{
		if(txt.value == " 댓글을 입력하세요. (최대100자)")
		{
			txt.value = "";
		}
	}
}

function viewerCommentInsert(txt,uccSeq,commentSeq,commentDepth)
{
	if(txt.value != " 댓글을 입력하세요. (최대100자)" && txt.value != "")
	{
		sendRequest({
			url : "/viewerCommentInsert.do",
			method : "GET",
			data : "UCC_SEQ=" + uccSeq+"&COMMENT_CONTENT="+encodeURIComponent(txt.value)+"&COMMENT_DEPTH="+commentDepth+"&PARENT_COMMENT_SEQ="+commentSeq,
			handler : showReplyHandler
		});
	}
	else
	{
		alert("댓글을 등록하세요");
		txt.focus();
	}
}

function viewerCommentUpdate(txt,uccSeq,commentSeq,commentDepth)
{
	if(txt.value != " 댓글을 입력하세요. (최대100자)" && txt.value != "")
	{
		sendRequest
		(
			{
				url : "/viewerCommentUpdate.do",
				method : "GET",
				data : "UCC_SEQ="+uccSeq+"&COMMENT_SEQ="+commentSeq+"&COMMENT_CONTENT="+encodeURIComponent(txt.value),
				handler : showReplyHandler
			}
		);
	}
	else
	{
		alert("댓글을 등록하세요");
		txt.focus();
	}

}

function viewerCommentDelete(commentSeq,uccSeq)
{
	sendRequest({
		url : "/viewerCommentDelete.do",
		method : "GET",
		data : "COMMENT_SEQ=" + commentSeq+"&UCC_SEQ="+uccSeq,
		handler : showReplyHandler
	});
}

function viewerReplyComment(commentSeq,uccSeq,type)
{
	sendRequest
	(
		{
			url : "/viewerCommentSelect.do",
			method : "GET",
			data : "UCC_SEQ="+uccSeq+"&commentSeq="+commentSeq+"&replyType="+type,
			handler : showReplyHandler
		}
	);

}

function viewerCommentSelect(uccSeq,queryType)
{
	sendRequest
	(
		{
			url : "/viewerCommentSelect.do",
			method : "GET",
			data : "UCC_SEQ="+uccSeq+"&queryType="+queryType,
			handler : showReplyHandler
		}
	);
}

function viewerCommentKeyEvent(btImg)
{
	if(event.keyCode == 13)
	{
		btImg.focus();
		btImg.onclick();
	}
}

//Login Layer
function loginProcess()
{
	if(true){
		loginProcess2();
		return;
	}
	if(mediaLoader.container)
	{
		mediaLoader.close();
	}
	if(replyLoader.container)
	{
		replyLoader.close();
	}
	var divWidth = 400;
	var divHeight = 365;

	var client = window.size();
	var location = window.center({width : client.width,height : client.height});
	var loginDIV = document.getElementById('loginDIV');
	var centerDiv = document.getElementById('centerLoginLayer');
	if(!loginDIV)
	{
		loginDIV = document.createElement("div");
		loginDIV.id = 'loginDIV';
		loginDIV.style.width = (client.width-2)+"px";
		loginDIV.style.height = window.getHeight()+"px";
		loginDIV.style.position = "absolute";
		loginDIV.style.textAlign = "center";
		loginDIV.style.backgroundColor = "#FFFFFF";
		$(loginDIV).setStyle("opacity",0.5);
		loginDIV.onclick = clearLoginProcess;
		centerDiv = document.createElement("div");
		centerDiv.id = "centerLoginLayer";
		centerDiv.style.width = divWidth + "px";
		centerDiv.style.height = divHeight + "px";
		centerDiv.style.position = "absolute";
		//centerDiv.style.border = "1px solid #FF0000";
		document.body.appendChild(loginDIV);
		document.body.appendChild(centerDiv);
	}
	else
	{
		loginDIV.style.display = "block";
		centerDiv.style.display = "block";
	}
	loginDIV.style.top = location.y + "px";
	loginDIV.style.left = location.x + "px";
	var pointer = window.center({width : divWidth,height : divHeight});
	centerDiv.style.left = pointer.x + "px";
	centerDiv.style.top = pointer.y + "px";
	centerDiv.innerHTML = "<iframe src='/personal/common/pop_box_login.jsp?returnURL=" + (arguments[0] ? arguments[0] : "" ) + "' width='"+divWidth+"' height='"+divHeight+"' border='0' frameborder='no' framespacing='0' scrolling='no'/>";
}
function loginProcess1()
{
	if(true){
		loginProcess2();
		return;
	}
	if(mediaLoader.container)
	{
		mediaLoader.close();
	}
	if(replyLoader.container)
	{
		replyLoader.close();
	}
	var divWidth = 400;
	var divHeight = 395;

	var client = window.size();
	var location = window.center({width : client.width,height : client.height});
	var loginDIV = document.getElementById('loginDIV');
	var centerDiv = document.getElementById('centerLoginLayer');
	if(!loginDIV)
	{
		loginDIV = document.createElement("div");
		loginDIV.id = 'loginDIV';
		loginDIV.style.width = (client.width-2)+"px";
		loginDIV.style.height = window.getHeight()+"px";
		loginDIV.style.position = "absolute";
		loginDIV.style.textAlign = "center";
		loginDIV.style.backgroundColor = "#FFFFFF";
		$(loginDIV).setStyle("opacity",0.5);
		//loginDIV.onclick = clearLoginProcess;
		centerDiv = document.createElement("div");
		centerDiv.id = "centerLoginLayer";
		centerDiv.style.width = divWidth + "px";
		centerDiv.style.height = divHeight + "px";
		centerDiv.style.position = "absolute";
		//centerDiv.style.border = "1px solid #FF0000";
		document.body.appendChild(loginDIV);
		document.body.appendChild(centerDiv);
	}
	else
	{
		loginDIV.style.display = "block";
		centerDiv.style.display = "block";
	}
	loginDIV.style.top = location.y + "px";
	loginDIV.style.left = location.x + "px";
	var pointer = window.center({width : divWidth,height : divHeight});
	centerDiv.style.left = pointer.x + "px";
	centerDiv.style.top = pointer.y + "px";
	centerDiv.innerHTML = "<iframe src='/personal/common/pop_box_login3.jsp?returnURL=" + (arguments[0] ? arguments[0] : "" ) + "' width='"+divWidth+"' height='"+divHeight+"' border='0' frameborder='no' framespacing='0' scrolling='no'/>";
}
function loginProcess2()
{
	if(mediaLoader.container)
	{
		mediaLoader.close();
	}
	if(replyLoader.container)
	{
		replyLoader.close();
	}
	var divWidth = 493;
    var divHeight = 323;

	var client = window.size();
	var location = window.center({width : client.width,height : client.height});
	var loginDIV = document.getElementById('loginDIV');
	var centerDiv = document.getElementById('centerLoginLayer');
	if(!loginDIV)
	{
		loginDIV = document.createElement("div");
		loginDIV.id = 'loginDIV';
		loginDIV.style.width = (client.width-2)+"px";
		loginDIV.style.height = window.getHeight()+"px";
		loginDIV.style.position = "absolute";
		loginDIV.style.textAlign = "center";
		loginDIV.style.backgroundColor = "#FFFFFF";
		loginDIV.style.zIndex = 9999999999;
		$(loginDIV).setStyle("opacity",0);
		loginDIV.onclick = clearLoginProcess;
		centerDiv = document.createElement("div");
		centerDiv.id = "centerLoginLayer";
		centerDiv.style.width = divWidth + "px";
		centerDiv.style.height = divHeight + "px";
		centerDiv.style.position = "absolute";
		centerDiv.style.zIndex = 99999999999;
		//centerDiv.style.border = "1px solid #FF0000";
		document.body.appendChild(loginDIV);
		document.body.appendChild(centerDiv);
	}
	else
	{
		loginDIV.style.display = "block";
		centerDiv.style.display = "block";
	}
	loginDIV.style.top = location.y + "px";
	loginDIV.style.left = location.x + "px";
	var pointer = window.center({width : divWidth,height : divHeight});
	centerDiv.style.left = pointer.x + "px";
	centerDiv.style.top = pointer.y + "px";
	centerDiv.innerHTML = "<iframe src='/personal/common/pop_box_login2.jsp?returnURL=" + (arguments[0] ? arguments[0] : "" ) + "' width='"+divWidth+"' height='"+divHeight+"' border='0' frameborder='no' framespacing='0' scrolling='no' allowtransparency/>";
}


function clearLoginProcess()
{
	var loginDIV = document.getElementById('loginDIV');
	loginDIV.style.display = "none";
	var centerDiv = document.getElementById('centerLoginLayer');
	centerDiv.style.display = "none";
	centerDiv.innerHTML = "";
}

/**
 * Toggle Reply Image
 * @param oImage - img object
 * @param oToggle - boolean ( true - open / false - close )
 */
function toggleReplyImg( oImage ){
	if( oImage && oImage.src ){
		if( oImage.src.indexOf("ico_reply_01.gif") != -1 ){
			oImage.src = "/images/common/ico_reply_02.gif";
		} else {
			oImage.src = "/images/common/ico_reply_01.gif";
		}
	}
}
// layer functions..


var debug = true;
var mySlider;
var distance = (52*4);
var moveDistance = 0;
var tagDistance = 0;
var totalUccCount = 0;
var startNum = 1;
var endNum = 4;
// userinfo

function getLayerUserInfo()
{
	sendRequest({
				url 	: "/layerUserInfo.do",
				method 	: "GET",
				data	: "homeSeq=" + layerhSeq + "&memberSeq=" + layermSeq + "&debug=" + debug ,
				handler : userResult
				});
}
function userResult(xhr)
{
	var xml = xhr.responseXML;
	var resultTag = xml.getElementsByTagName("result");
	if ( resultTag.length > 0 )
	{
		var result;
		if (resultTag[0].childNodes[1])
			result = resultTag[0].childNodes[1].nodeValue;
		else
			result = resultTag[0].childNodes[0].nodeValue;

		document.getElementById('layerUser').innerHTML = result;
	}
}
function getLayerUccInfo()
{
	sendRequest({
				url 	: "/layerUccInfo.do",
				method 	: "GET",
				data	: "homeSeq=" + layerhSeq + "&startNum=" + startNum + "&endNum=" + endNum + "&debug=" + debug ,
				handler : uccResult
				});
}
function uccResult(xhr)
{
	var xml = xhr.responseXML;
	var resultTag = xml.getElementsByTagName("result");

	if ( resultTag.length > 0 )
	{
		var result;
		if (resultTag[0].childNodes[1])
			result = resultTag[0].childNodes[1].nodeValue;
		else
			result = resultTag[0].childNodes[0].nodeValue;

		document.getElementById('layerUcc').innerHTML = result;
	}
	else
	{
		document.getElementById('layerUcc').innerHTML = "<table width=\"204\"><tr ><td height=\"36\" align=\"center\" valign=\"middle\" style=\"font-size: 10px; font-family: 돋음;\">등록된 UCC가 없습니다.</td></tr></table>";
	}
}
function getLayerUccTotalInfo()
{
	sendRequest({
				url 	: "/layerUccTotalCount.do",
				method 	: "GET",
				data	: "homeSeq=" + layerhSeq,
				handler : uccTotalResult
				});
}
function uccTotalResult(xhr)
{
	var xml = xhr.responseXML;
	var resultTag = xml.getElementsByTagName("result");

	if ( resultTag.length > 0 )
	{
		var result;
		if (resultTag[0].childNodes[1])
			result = resultTag[0].childNodes[1].nodeValue;
		else
			result = resultTag[0].childNodes[0].nodeValue;

		totalUccCount = result;
	}
}
// mytag Info
function getLayerTagInfo()
{
	sendRequest({
				url 	: "/layerTagInfo.do",
				method 	: "GET",
				data	: "homeSeq=" + layerhSeq + "&debug=" + debug ,
				handler : tagResult
				});
}

function tagResult(xhr)
{
	var xml = xhr.responseXML;

	var resultTag = xml.getElementsByTagName("result");
	if ( resultTag.length > 0 )
	{
		var result;
		if (resultTag[0].childNodes[1])
			result = resultTag[0].childNodes[1].nodeValue;
		else
			result = resultTag[0].childNodes[0].nodeValue;
		document.getElementById('tagElement').innerHTML = result;
	}
	else
	{
		document.getElementById('tagElement').innerHTML = "<table width=\"204\"><tr ><td align=\"center\" valign=\"middle\" style=\"font-size: 10px; font-family: 돋음;\">등록된 관심태그가 없습니다.</td></tr></table>";

		document.getElementById('tagPre').onclick = null;
		document.getElementById('tagNext').onclick = null;
	}
}

function lyaerInit()
{
	tagSlider = new Slider( $('tagElement'), {
				duration: 500,
				wait: false,
				mode: 'horizontal',
				onComplete: function () {
					document.getElementById('tagPre').onclick = layerTagPrePage;
					document.getElementById('tagNext').onclick = layerTagNextPage;
				}
				});
}

function layerUccNextPage()
{

	if (  endNum < totalUccCount )
	{
		startNum += 4;
		endNum += 4;

		getLayerUccInfo();
	}
}

function layerUccPrePage()
{
	if ( startNum != 1 )
	{
		startNum -= 4;
		endNum -= 4;

		getLayerUccInfo();
	}
}

function layerTagNextPage()
{
	var spos = $('tagElement').getStyle('margin-left').toInt();

	tagDistance = spos - distance;

	var	tagTotalDistance = $('tagSpan').getStyle('width').toInt();

	if ( tagTotalDistance < (tagDistance*-1) )
	{
		return;
	}

	tagSlider.slideOut(tagDistance, 0);

	document.getElementById('tagPre').onclick = null;
	document.getElementById('tagNext').onclick = null;

}

function layerTagPrePage()
{
	var spos = $('tagElement').getStyle('margin-left').toInt();

	tagDistance = distance + spos;
	if ( tagDistance > 0 )
	{
		return;
	}
	tagSlider.slideOut(distance+spos, 0);

	document.getElementById('tagPre').onclick = null;
	document.getElementById('tagNext').onclick = null;
}

function layerMovePeopleHome(seq)
{
	document.location = "/movePeopleHome.do?homeSeq="+seq;
}

function layerMovePeopleHome2(seq)
{
	var url = "/movePeopleHome.do?homeSeq="+seq;
	window.open(url,'', 'width=1000,height=1000,scrollbars=yes,resizable=yes,status=yes,menubar=yes,titlebar=yes,location=yes');
}

function layerMoveTag(tagName)
{
	document.location = "/movePeopleTagList.do?tagName="+encodeURI(tagName)+"&homeSeq=" + layerhSeq;
	//document.location = "/personalTagList.do?sortType=alpha&menuType=uccTag&tagName="+encodeURI(tagName)+"&homeSeq=" + layerhSeq;
}


//makePCookie.js
function Nethru_getCookieVal(offset)
{
	var endstr = document.cookie.indexOf (";", offset);
	if (endstr == -1)
		endstr = document.cookie.length;
	return unescape(document.cookie.substring(offset, endstr));
}

function Nethru_SetCookie(name, value){
   var argv = Nethru_SetCookie.arguments;
   var argc = Nethru_SetCookie.arguments.length;
   var expires = (2 < argc) ? argv[2] : null;
   var path = (3 < argc) ? argv[3] : null;
   var domain = (4 < argc) ? argv[4] : null;
   var secure = (5 < argc) ? argv[5] : false;

  // alert("DOMAIN = " + domain);
   document.cookie = name + "=" + escape (value) +
        ((expires == null) ? "" : ("; expires="+expires.toGMTString())) +
     ((path == null) ? "" : ("; path=" + path)) +
     ((domain == null) ? "" : ("; domain=" + domain)) +
        ((secure == true) ? "; secure" : "");

//	alert(document.cookie);
}

function Nethru_GetCookie(name){
   var arg = name + "=";
   var alen = arg.length;
   var clen = document.cookie.length;
   var i = 0;
   while (i < clen)
      {
      var j = i + alen;
      if (document.cookie.substring(i, j) == arg)
         return Nethru_getCookieVal (j);
      i = document.cookie.indexOf(" ", i) + 1;
      if (i == 0)
         break;
      }
  return null;
}

function Nethru_makePersistentCookie(name,length,path,domain)
{
    var today = new Date();
    var expiredDate = new Date(2011,1,1);
    var cookie;
	var value;

    cookie = Nethru_GetCookie(name);
    if ( cookie ) {
//		alert(cookie);
        return 1;
	}

	var values = new Array();
	for ( i=0; i < length ; i++ ) {
		values[i] = "" + Math.random();
	}

	value = today.getTime();

	// use first decimal
	for ( i=0; i < length ; i++ ) {
		value += values[i].charAt(2);
	}

    Nethru_SetCookie(name,value,expiredDate,path,domain);
}

function Nethru_getDomain() {
	var _host   = document.domain;
	var so      = _host.split('.');
	var dm    = so[so.length-2] + '.' + so[so.length-1];
	return (so[so.length-1].length == 2) ? so[so.length-3] + '.' + dm : dm;
}

var Nethru_domain  = Nethru_getDomain();

Nethru_makePersistentCookie("PCID",10,"/",Nethru_domain);

var defaultWidth = 500;
var defaultHeight = 450;
var imageLoader = {
        initialize: function()
        {
                this.loaded = false;
                this.step = 0;
                this.contentInfo = {};
                this.options = $extend({
                        resizeDuration: 400,
                        resizeTransition: false,        // default transition
                        initialWidth: 250,
                        initialHeight: 250,
                        animateCaption: true,
                        showCounter: true
                });
                //main container with border
                this.container = new Element('div');
                //this.container.setStyle("position","absolute");
                this.container.setStyle("background-color","#FFFFFF");
                //this.container.setStyle("border","1px solid #ABABAB");
                this.container.setStyle("text-align","center");
                this.container.setStyle("width",defaultWidth + "px");
                this.container.setStyle("height",defaultHeight + "px");
                this.slideEffect = 0;

                // Defining content block
                this.content = new Element('div');
                this.content.setStyle("padding","0px 4px 4px 4px");
                this.content.setStyle("text-align","center");
                this.content.setStyle("position","relative");
                //this.content.setStyle("border","1px solid #BCBCBC;");
                this.container.adopt(this.content);
                var nextEffect = this.nextEffect.bind(this);
                this.fx = {
                        overlay: this.container.effect('opacity', {duration: 500, onComplete: nextEffect}).hide(),
                        resize: this.container.effect("height",{duration: this.options.resizeDuration, onComplete: nextEffect})
                };

                this.container.addEvent('mousedown',this.bringToTop.bind(this));
                var imageDiv = document.getElementById("imageDiv");
                this.container.inject($(imageDiv));
        },
		setScrap : function(isScrapForbibben)
		{
			this.isScrapForbibben = isScrapForbibben;
		},
        preLoad : function()
        {
                if(!this.container)
                {
                        this.initialize();
                }
                //this.loadContent(url);
                this.step = 0;
                this.preloading = true;
                this.position(this.container.style.width,this.container.style.height,false);
                this.container.setStyle("opacity",1);
                this.container.style.display = "block";
                this.content.style.background = "url(/images/common/loading.gif) no-repeat center";
                //this.fx.overlay.start(1);
        },
        open : function(url,info,w,h)
        {
                if(!this.container)
                {
                        this.initialize();
                }
                this.setup(url,info,w,h);
        },
        setup : function(url,info,w,h)
        {
                this.contentInfo = info;
                this.options.url = url;
                this.content.setHTML("");
                this.content.setStyle("overflow-x","hidden");
                this.content.setStyle("overflow-y","hidden");
                this.resizedImage = false;
                this.contentsWidth = w;
                this.contentsHeight = h;
                this.position(0,0,true);
                this.container.setStyle("width",defaultWidth);
                this.container.setStyle("height",defaultHeight);
                this.content.setStyle("width",defaultWidth);
                this.content.setStyle("height",defaultHeight);
                this.content.setStyle("padding","0px");
                this.nextEffect();
        },
        position : function(w,h,effectEnable)
        {
                var width = 0;
                var height = 0;
                if(isNaN(w))
                {
                        try
                        {
                                width = parseInt(w.replace("px",""));
                                height = parseInt(h.replace("px",""));
                        }
                        catch(e)
                        {
                                alert(e);
                        }
                }
                else
                {
                        width = w;
                        height = h;
                }
                var pointer = window.center({width : width,height : height});
                pointer.x = 0;
                pointer.y = 0;
                if(effectEnable)
                {
                        var leftStart = parseInt(this.container.style.left.replace("px",""));
                        var topStart = parseInt(this.container.style.top.replace("px",""));
                        this.fx.left = this.container.effect("left",{duration : 200}).start(leftStart,pointer.x + "px");
                        this.fx.top = this.container.effect("top",{duration : 200}).start(topStart, pointer.y + "px");
                }
                else
                {
                        this.container.setStyle("left", pointer.x + "px");
                        this.container.setStyle("top", pointer.y + "px");
                }
        },
        nextEffect: function(){
                //switch (this.step++){

                //case 1 :
                        this.content.style.background = '';
                        this.loadContent(url);
                        this.step = 0;
                //case 2:
                //      this.fx.overlay.start(1);
                //      break;

                //}
        },
        loadContent : function(url)
        {
                // YouTube
                if (url.match(/youtube\.com\/watch/i))
                {
                        this.type = 'flash';
                        var videoId = url.split('=');
                        this.videoID = videoId[1];
                        this.object = new SWFObject("http://www.youtube.com/v/"+this.videoID+"&autoplay=1", "sfwvideo", this.contentsWidth, this.contentsHeight, "9", "#FFFFFF", "wmode", "transparent");
                }
                // DailyMotion
                else if (url.match(/dailymotion\.com/i))
                {
                        this.type = 'flash';
                        this.object = new SWFObject(url, "sfwvideo", this.contentsWidth, this.contentsHeight, "9", "#000000");
                }
                // Metacafe
                else if (url.match(/metacafe\.com\/watch/i))
                {
                        this.type = 'flash';
                        var videoId = url.split('/');
                        this.videoID = videoId[4];
                        this.object = new SWFObject("http://www.metacafe.com/fplayer/"+this.videoID+"/.swf", "sfwvideo", this.contentsWidth, this.contentsHeight, "9", "#FFFFFF", "wmode", "transparent");
                }
                // Google Video
                else if (url.match(/google\.com\/videoplay/i))
                {
                        this.type = 'flash';
                        var videoId = url.split('=');
                        this.videoID = videoId[1];
                        this.object = new SWFObject("http://video.google.com/googleplayer.swf?docId="+this.videoID+"&autoplay=1&hl=en", "sfwvideo", this.contentsWidth, this.contentsHeight, "9", "#FFFFFF", "wmode", "transparent");
                }
                else if(url.match(/mgoon\.com\/video/i))
                {
                        this.type = 'flash';
                        this.object = new SWFObject(url, "sfwvideo", this.contentsWidth, this.contentsHeight, "9", "#FFFFFF", "wmode", "transparent");
                }
                else if(url.match(/flvr.pandora.tv\/flv2pan\/flvmovie.dll/i))
                {
                        this.type = 'flash';
                        this.object = new SWFObject(url, "sfwvideo", this.contentsWidth, this.contentsHeight, "9", "#FFFFFF", "wmode", "transparent");
                }
                // Flash                        .swf
                else if (url.match(/\.swf/i))
                {
                        this.type = 'flash';
                        var flashvars = "";
                        if(url.indexOf("?") != -1)
                        {
                                flashvars = url.substring(url.indexOf("?")+1);
                                url = url.substring(0,url.indexOf("?"));
                        }
						if(this.isScrapForbibben){
							flashvars += "&takeYN=Y";
						}
                        this.object = new SWFObject(url, "sfwvideo", this.contentsWidth, this.contentsHeight, "7", "#FFFFFF");
                        this.object.addParam("allowFullScreen","true");
                        this.object.addParam("wmode", "transparent");
                        this.object.addParam("flashvars",flashvars);
                }
                else if (url.match(/\.(bmp|jpeg|jpg|gif|png)/i))
                {
                        this.type = 'image';
                        var w = "";
                        var h = this.contentsHeight;
                        var top = 0;
                        var scale = 1;
                        if(defaultWidth < this.contentsWidth)
                        {
                                w = "width = \"" + defaultWidth + "px\"";
                                scale = Math.floor(defaultWidth / this.contentsWidth * 100) / 100;
                                h = this.contentsHeight * scale;
                        }
                        if(defaultHeight < h)
                        {
                                h = defaultHeight + "px";
                                scale = Math.floor(defaultHeight / this.contentsHeight * 100) / 100;
                                w = "width = \"" + (this.contentsWidth * scale) + "px\"";
                        }
                        else
                        {
                                top = (defaultHeight/2) - (h / 2);
                                top = Math.floor((top/defaultHeight)*100);
                        }
						this.object = "<img style=\"cursor:pointer\" id=\"mediabox\" src=\"" + url + "\" " + w + " height=\"" + h + "\" style=\"cursor:hand;position:relative;top:" + top + "%;\" onclick=\"imageLoaderClick('" + this.options.url + "',"+this.contentsWidth+","+this.contentsHeight+")\"/>";
                }
                // iFrame content
                else
                {
                        this.type = 'iframe';
                        this.iframeId = "lbFrame_"+new Date().getTime();        // Safari would not update iframe content that has static id.
                        this.object = new Element('iframe').setProperties({id: this.iframeId, width: this.contentsWidth, height: this.contentsHeight, frameBorder:0, scrolling:'auto', src:url});
                }

                if (this.type == 'flash')
                {
                        this.object.write(this.content);
                }
                else if (this.type == 'iframe')
                {
                        this.object.injectInside(this.content)
                }
                else if(this.type == "image")
                {
                        this.content.setHTML(this.object);
                        this.content.setStyle("width","500px");
                        this.content.setStyle("height","450px");
                        var topPointer = parseInt(this.container.getStyle("top").replace("px",""));
                }
                this.show();
        },
        imageClick : function()
        {
				//alert('imageClick');
                //switch(event.button)
                //{
                //        case 1 : 
				//				var clientSize = window.size();
				//				var scrollYN = "no";
				//				if(clientSize.width > (eval(this.contentsWidth) + 30) ||
				//					clientSize.height > (eval(this.contentsHeight) + 35)){
				//						scrollYN = "yes";
				//					}
				//				var winObj = window.open("/common/viewImage.jsp?imageName=" + this.options.url,"image","menubar=0,resizable=no,scrollbars="+scrollYN+",status=0,width=" + (eval(this.contentsWidth) + 30) + ",height=" + (eval(this.contentsHeight) + 35));
				//				winObj.focus();
               //                 break;
               //         case 2 :
                //                document.oncontextmenu = function(){return false;}
               //                 break;
               // }
        },
        show: function(){
                this.container.setStyle('display','block');
                this.bringToTop();
        },
        bringToTop: function()
        {
                lastzIndex++;
                this.container.setStyle('z-index',lastzIndex);
        },
        makeTransparent: function()
        {
                this.bringToTop();
        },
        makeVisible: function(){}
};

function requestImage(seq, isScrapForbibben){
        sendRequest({
                url: "/servlet/DataRouter",
                method: "GET",
                data: "__descriptor=viewer&__function=select_ucc_info&UCC_SEQ=" + seq,
                handler: imageLoaderResultHandle,
                invoke: function(){
						imageLoader.setScrap(isScrapForbibben);
                        if (!imageLoader.preloading) {
                                imageLoader.preLoad();
                        }
                }

        });
}

function requestImageInfo(seq){
        sendRequest({
                url: "/servlet/DataRouter",
                method: "GET",
                data: "__descriptor=viewer&__function=select_ucc_info&UCC_SEQ=" + seq,
                handler: imageInfoResultHandle,
                invoke: function(){
                }
        });
}

function imageInfoResultHandle(xhr){
        var info = {};
        var root = xhr.responseXML.documentElement;
        var seq = root.getElementsByTagName("UCC_SEQ")[0].firstChild.nodeValue;
        var url = root.getElementsByTagName("CONTENT_URL")[0].firstChild.nodeValue;
		document.getElementById("imageURL").value = "http://isbox.nate.com" + url;
}

function imageLoaderClick(url,width,height){
	var clientSizeW = window.screen.width;
	var clientSizeH = window.screen.height;
	var scrollYN = "no";
	var fixWidth = (eval(width) + 30);
	var fixHeight = (eval(height) + 35);

	if(clientSizeW< (eval(width) + 30)){
			fixWidth = clientSizeW;
			scrollYN = "yes";
	}
	if(clientSizeH < (eval(height) + 35)){
			fixHeight = clientSizeH;
			scrollYN = "yes";
	}
	var winObj = window.open("/common/viewImage.jsp?imageName=" + url,"image","menubar=0,resizable=no,scrollbars="+scrollYN+",status=0,width=" + fixWidth + ",height=" + fixHeight);
	winObj.focus();
    document.oncontextmenu = function(){return false;}
}

function imageLoaderResultHandle(xhr){
        var info = {};
        var root = xhr.responseXML.documentElement;
        var seq = root.getElementsByTagName("UCC_SEQ")[0].firstChild.nodeValue;
        var url = root.getElementsByTagName("CONTENT_URL")[0].firstChild.nodeValue;
        var content = root.getElementsByTagName("UCC_CONTENT")[0];
		var temp = "";
		if(content && content.childNodes.length > 0){
			temp = content.firstChild.nodeValue;
			if(temp && temp != "" && temp != "null"){
				while(temp.match("\n"))
				{
					temp = temp.replace("\n","<br/>");
				}
			}
		}
		info.content = temp;

        info.title = root.getElementsByTagName("UCC_SUBJECT")[0].firstChild.nodeValue;
        info.comment = "(" + root.getElementsByTagName("COMMENT_COUNT")[0].firstChild.nodeValue + ")";
        info.nick = root.getElementsByTagName("NICK_NAME")[0].firstChild.nodeValue;
        info.memberSeq = root.getElementsByTagName("MEMBER_SEQ")[0].firstChild.nodeValue;
        info.type = root.getElementsByTagName("CONTENT_TYPE")[0].firstChild.nodeValue;
        info.count = root.getElementsByTagName("UCC_READ_COUNT")[0].firstChild.nodeValue;
        var width = 500;
        var height = 450;
        if(info.type == "201"){
                width = root.getElementsByTagName("FILE_WIDTH")[0].firstChild.nodeValue;
                height = root.getElementsByTagName("FILE_HEIGHT")[0].firstChild.nodeValue;
        }
        imageLoader.open(url,info,width,height);
        if(info.type != "101")
        {
                var pSeq = "";
                var parent_seq = root.getElementsByTagName("PARENT_UCC_SEQ")[0];
                if(parent_seq.childNodes.length > 0)
                {
                        pSeq = parent_seq.firstChild.nodeValue;
                        if(pSeq && pSeq != "" && pSeq != "null")
                        {
                                pSeq = "&UCC_SEQ=" + pSeq;
                        }
                }
        }
}
// Trace 메서드 (Optimized for Microsoft Internet Explorer all round version)
var ___traceWindow ;
function traceTest(_traceStr) {
	_traceStr = String(_traceStr) ;
	if (!___traceWindow) ___traceWindow = window.open("about:blank", "", "left=0,top=0,width=500,height=500,scrollbars=yes,resizable=yes,status=yes") ;
	___traceWindow.document.writeln(
			'<html>\n' +
			'<body style="margin:0;padding:5px;font-family:Verdana;font-size:12px;">\n' +
			_traceStr.replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/\n/g, "<br/>").replace(/\t/g, "&nbsp;&nbsp;") + '<br/>\n' +
			'</body>\n' +
			'</html>\n' +
		'') ;
	___traceWindow.scrollTo(0, ___traceWindow.document.documentElement.scrollHeight) ;
}

/********************************************************************************************
+ 이름 : createFlash - 플래시를 삽입하고 플래시 객체를 반환합니다
+ 사용 : createFlash({movie:String, id:String, option1, option2, ...}) : Object
+ 환경 : Microsoft Windows XP(SP2) / Internet Explorer 6.0 / JScript Version 5.6 Build 8834
+ 작성일 : 2008-08-01
+ 작성자 : 이선협 (Dungboy)
+ E-mail : dungboy@idenvi.com
********************************************************************************************/
function createFlash(_options) {
	var flashHTML = new String("") ;
	var sOptions = new Object() ;
	var dOptions = new Object() ;
	var uOptions = new Object() ;

	// Default Properties
	dOptions = {
		movie:"null" ,
		allowScriptAccess : "always" ,
		quality : "high" ,
		menu : "false" ,
		bgcolor : "#FFFFFF"
	} ;

	sOptions = {
		classID : "d27cdb6e-ae6d-11cf-96b8-444553540000" , // Class ID
		codeBase : "http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" , // Code base
		plugIn : "http://www.macromedia.com/go/getflashplayer" , // Plug in page (Netscape)
		type : "application/x-shockwave-flash" , // ActiveX type (Netscape)
		id:"null" ,
		width : "0" ,
		height : "0" ,
		align : "middle"
	}
	for (pName in _options) {
		if (sOptions[pName]) sOptions[pName] = (_options[pName]) ? _options[pName] : sOptions[pName] ;
		else if (dOptions[pName]) dOptions[pName] = (_options[pName]) ? _options[pName] : dOptions[pName] ;
		else uOptions[pName] = _options[pName] ;
	}
	if (dOptions.movie != "null" && sOptions.width != "0" && sOptions.height != "0") {
		flashHTML += '<object classid="clsid:'+sOptions.classID+'" codebase="'+sOptions.codeBase+'" width="'+sOptions.width+'" height="'+sOptions.height+'" id="'+sOptions.id+'" align="'+sOptions.align+'">\n' ;
		for (pName in dOptions) {
			flashHTML += '<param name="'+pName+'" value="'+dOptions[pName]+'" />\n' ;
		}
		for (pName in uOptions) {
			flashHTML += '<param name="'+pName+'" value="'+uOptions[pName]+'" />\n' ;
		}
		flashHTML += '<embed src="'+dOptions.movie+'" quality="'+dOptions.quality+'" bgcolor="'+dOptions.bgcolor+'" width="'+sOptions.width+'" height="'+sOptions.height+'" name="'+sOptions.id+'" align="'+sOptions.align+'" allowScriptAccess="'+dOptions.allowScriptAccess+'" type="'+sOptions.type+'" pluginspage="'+sOptions.plugIn+'" ' ;
		for (pName in uOptions) {
			flashHTML += ' '+pName+'="'+uOptions[pName]+'"' ;
		}
		flashHTML += '></embed>' ;
		flashHTML += '</object>' ;
		document.writeln(flashHTML) ;
		return document.getElementById(sOptions.id) ;
	} else {
		return null ;
	}
}

function setSwapImage(targetObj) {
	var _default = "_off" ;
	var _over = "_on" ;
	if (targetObj) {
		targetObj.onmouseover = function() {this.src = this.src.replace(_default, _over) ;} ;
		targetObj.onmouseout = function() {this.src = this.src.replace(_over, _default) ;} ;
		targetObj.onmouseover() ;
	}
}

/* 브라우져 정보를 가져옵니다.
getBrowserInfo(_returnType:Number) : String
- _returnType : 2 이상이면 브라우져 이름과 버젼정보를, 1 이면 브라우져 버젼정보를 가져옵니다. 기본으로 브라우져 이름만 가져옵니다.
________________________________________________________________________________________________*/
function getBrowserInfo(_returnType) {
	var browserName = window.navigator.appName
	var browserVersion ;
	if (parseInt(_returnType) > 0) {
		if (browserName == "Microsoft Internet Explorer") {
			browserVersion = window.navigator.appVersion.split("; ")[1].split("MSIE ")[1] ;
		} else {
			browserVersion = window.navigator.appVersion.substring(0, window.navigator.appVersion.indexOf(" ")) ;
		}
		return (parseInt(_returnType) == 1) ? browserVersion : browserName+";"+browserVersion ;
	} else {
		return browserName ;
	}
}

/* 도움말 툴팁을 보여줍니다.
__________________________________________________*/
function showToolTip(_id) {
	var targetObject ;
	try {
		targetObject = document.getElementById(_id) ;
	} catch(_error) {
		targetObject = null ;
	}
	if (targetObject) targetObject.style.display = (targetObject.style.display != "block") ? "block" : "none" ;
}

/* GNB 를 토글합니다.
__________________________________________________*/
function GnbControll(_element, _key) {
	var targetObject ;
	var imagePath ;
	_key = parseInt(_key) ;
	_key = (_key > 0) ? _key : 0 ;
	try {
		targetObject = _element.parentNode.parentNode.getElementsByTagName("img")[0] ;
		imagePath = targetObject.src.substr(0, targetObject.src.lastIndexOf("/")) + "/" ;
		targetObject.src = imagePath + "gnav_0" + _key + ".gif" ;
	} catch(_error) {
		return false ;
	}
}

/* 지난이벤트 리스트를 보여줍니다 */
function showOtherEvents() {
	var targetObject ;
	try {
		targetObject = document.getElementById("otherEventList") ;
		targetObject.style.display = (targetObject.style.display != "block") ? "block" : "none" ;
	} catch(_err) {
		return false ;
	}
}
