//oknotify custom (mytable)                              
(function($){function addContainer(opts){var $container=$("."+opts.containerClass+"."+opts.position),styles={'top-left':{left:0,top:0},'top-right':{right:0,top:0},'bottom-right':{right:0,bottom:0},'bottom-left':{left:0,bottom:0},'center':{top:0,width:"50%",left:"25%"},'top-center':{top:0,width:"50%",left:"25%"}};if($container.length===0){$container=$('<div></div>').addClass(opts.containerClass).addClass(opts.position).css($.extend({position:opts.fixed?'fixed':'absolute',padding:'10px',zIndex:9999},styles[opts.position])).appendTo('body')}if(opts.position=='center'){$container.center(true)}return $container}function uniqueId(){return"notice_"+parseInt(new Date().getTime()+Math.random(),10)}$.fn.center=function(absolute){return this.each(function(){var self=$(this);self.css({position:absolute?'absolute':'fixed',left:'50%',top:'50%',zIndex:'99'}).css({marginLeft:'-'+(self.outerWidth()/2)+'px',marginTop:'-'+(self.outerHeight()/2)+'px'});if(absolute){self.css({marginTop:parseInt(self.css('marginTop'),10)+$(window).scrollTop(),marginLeft:parseInt(self.css('marginLeft'),10)+$(window).scrollLeft()})}})};$.extend({noticeAdd:function(opts){opts=typeof(opts)=="string"?{text:opts}:opts;opts=$.extend(true,{inEffect:{opacity:'show'},inEffectDuration:600,duration:3000,text:'',title:'',stay:false,type:'notice',position:'top-right',containerClass:'ui-notification-container',template:'standard',fixed:false},opts);var $container,$notice=$($.noticeAdd.templates[opts.template]),text=$.trim(opts.text);$notice.attr('id',uniqueId());$.noticeAdd.notices=$.noticeAdd.notices.add($notice);$container=addContainer(opts);$('.ui-notification-title',$notice).append(opts.title);$('.ui-notification-content',$notice).append(text[0]=="<"?text:'<p>'+text+'</p>');$notice.hide().addClass(opts.type).appendTo($container).animate(opts.inEffect,opts.inEffectDuration);$('.ui-notification-close',$notice).click(function(e){e.preventDefault();$.noticeRemove($notice)});if(!opts.stay){setTimeout(function(){$.noticeRemove($notice)},opts.duration)}return $notice},noticeRemove:function(obj){if(obj){obj=typeof(obj)=="string"?$(obj):obj;obj.animate({opacity:'0'},600,function(){obj.animate({height:'0px'},300,function(){$.noticeAdd.notices.splice($.noticeAdd.notices.index(obj),1);obj.parent().children().length<=0?obj.parent().remove():obj.remove()})})}else{$.noticeAdd.notices.fadeOut(function(){$(this).parent().remove();$.noticeAdd.notices=$([])})}}});$.noticeAdd.templates={standard:"<div class='ui-notification'><div class='ow'><div class='iw'><div class='ui-notification-titlebar'><span class='ui-notification-title'></span><a class='ui-notification-close' href='#'>x</a></div> <div class='ui-notification-content'> </div></div></div></div>"};$.noticeAdd.notices=$([])})(jQuery);

//custom tipsy
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('(8($){$.J.3=8(d){d=$.x({p:q,y:\'n\'},d||{});9 e=K,L=q;4.M(8(){$.f(4,\'r.3\',N);9 a=$.f(4,\'t.3\');g(!a){a=$(\'<h z="3"><h z="3-O">\'+$(4).A(\'B\')+\'</h></h>\');a.7({P:\'Q\',R:S});$(4).A(\'B\',\'\');$.f(4,\'t.3\',a)}9 b=$.x({},$(4).T(),{i:4.C,j:4.D});a.u().7({5:0,6:0,v:\'U\',E:\'F\'}).V(W.X);9 c=a[0].C,k=a[0].D;Y(d.y.Z(0)){l\'n\':a.7({5:b.5+b.j,6:b.6+b.i/2-c/2}).m(\'3-10\');o;l\'s\':a.7({5:b.5-k,6:b.6+b.i/2-c/2}).m(\'3-11\');o;l\'e\':a.7({5:b.5+b.j/2-k/2,6:b.6-c}).m(\'3-12\');o;l\'w\':a.7({5:b.5+b.j/2-k/2,6:b.6+b.i}).m(\'3-13\');o}g(d.p){a.7({G:0,E:\'F\',v:\'H\'}).14({G:1})}I{a.7({v:\'H\'})}},8(){$.f(4,\'r.3\',q);9 b=4;15(8(){g($.f(4,\'r.3\'))16;9 a=$.f(b,\'t.3\');g(d.p){a.17().18(8(){$(4).u()})}I{a.u()}},19)})}})(1a);',62,73,'|||tipsy|this|top|left|css|function|var||||||data|if|div|width|height|actualHeight|case|addClass||break|fade|false|cancel||active|remove|visibility||extend|gravity|class|attr|title|offsetWidth|offsetHeight|display|block|opacity|visible|else|fn|null|cancelHide|hover|true|inner|position|absolute|zIndex|100000|offset|hidden|appendTo|document|body|switch|charAt|north|south|east|west|animate|setTimeout|return|stop|fadeOut|100|jQuery'.split('|'),0,{}));

//jquery-haml
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('(4($){7 h=[],z={};4 k(t,c){3(t===q){5 c===\'q\'}3(t===A){5 c===\'A\'}5 t.17.18().B(19 1a(c,\'i\'))!==A}4 P(a,b){3(!a||!a[b]){5 q}7 c=a[b];1b a[b];5 c}4 Y(a){3(1c a!=="1d"||a.j<2){5 Z}7 c=a.1e(0);3(!(c===\'.\'||c===\'#\'||c===\'%\')){5 Z}5 1f}4 Q(c,d){7 e,C,8,r,D,E,l,9,s;8=m.F.G.n(d,0);4 R(a,b){3(b===q||b===A){5}3(b.1g||b.1h){a.u(b);5}3(k(b,\'1i\')&&b.j>0){3(b[0]===\'\\\\\'){b=b.H(1)}a.u(v.10(b));5}3(k(b,\'1j\')){a.u(v.10(b));5}3(k(b,\'m\')&&b.j>0){Q(a,b);5}}3(8.j&&8.j>0){3(Y(8[0])){r=8.11();D=r.B(/\\.[^\\.#]+/g);E=r.B(/#[^\\.#]+/g);l=r.B(/^%([^\\.#]+)/g);l=l?l[0].H(1):\'I\';9=$(v.S(l));3(8.j>0&&k(8[0],\'1k\')){s=8.11();e=P(s,\'12\');C=P(s,\'$\');9.J(s)}3(E){$.o(E,4(){7 a,K;a=6.H(1);K=9.J(\'T\');3(K){9.J(\'T\',K+" "+a)}w{9.J(\'T\',a)}})}3(D){$.o(D,4(){9.1l(6.H(1))})}3(e){9.12(e)}c.u(9);c=9;3(C){$.o(C,4(a){h.1m({L:c,U:a,p:6})})}}$.o(8,4(){R(c,6)})}w{R(c,8)}}4 V(){$.o(h,4(){3(6.U===\'$\'){6.p.x(6.L,[])}w{3(!k(6.p,\'m\')){6.p=[6.p]}6.L[6.U].x(6.L,6.p)}});h=[]}4 W(a){7 b;b=$(v.S("I"));Q(b,a);6.u(b.X());3(6.1n(\'1o\').j>0){V()}5 b.X()}$.13.1p=4(){5 W.n(6,m.F.G.n(y,0))};$.13.M=4(){W.n(6,m.F.G.n(y,0));5 6};$.M={14:4(b){7 c;4 N(){7 a=$(v.S("I"));a.M(b.x(6,y));c=a.X();5 c}4 O(){$.o(c,4(i,a){3(i===0){$(a).1q(N.x(6,y))}w{$(a).1r()}});V()}5{N:N,O:O}},1s:4(e,f){7 g;f=["%I",{1t:"1u-1v: 1w; 1x: 1y"},f||"1z..."];5 4(c){7 d=m.F.G.n(y,1);4 15(){7 b=1A.1B(d);3(z[b]!==q){5 c(z[b])}w{4 16(a){z[b]=a;g.O()}e.x(6,[16].1C(d));5 f}}g=$.M.14(15);5 g}}}}(1D));',62,102,'|||if|function|return|this|var|input|newnode||||||||||length|isTypeOf|tag|Array|call|each|params|undefined|selector|attributes||append|document|else|apply|arguments|data_cache|null|match|actions|classes|ids|prototype|slice|substr|div|attr|old_id|node|haml|inject|update|extractor|exec_haml|apply_haml|createElement|id|method|flush_queue|real_haml|children|is_selector|false|createTextNode|shift|css|fn|placeholder|render_haml|on_data|constructor|toString|new|RegExp|delete|typeof|string|charAt|true|nodeType|jquery|String|Number|Object|addClass|push|closest|body|insertHaml|replaceWith|remove|onDemand|style|text|align|center|cursor|wait|Loading|Util|stringify|concat|jQuery'.split('|'),0,{}));

//jquery-hotkeys
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('(t(j){j.q.F=j.q.V;j.q.W=j.q.X;j.q.Y=j.q.Z;m k={1l:\'0.7.9\',P:/1m|1n|1o/g,p:{},G:{27:\'1p\',9:\'1q\',1r:\'1s\',13:\'r\',8:\'1t\',1u:\'1v\',20:\'1w\',1x:\'1y\',19:\'1z\',1A:\'1B\',1C:\'1D\',1E:\'1F\',1G:\'1H\',1I:\'1J\',1K:\'1L\',1M:\'1N\',1O:\'1P\',1Q:\'1R\',1S:\'1T\',10:\'-\',1U:\'1V\',1W:\'1X\',1Y:\'1Z\',21:\'22\',23:\'24\',25:\'26\',28:\'29\',2a:\'2b\',2c:\'2d\',2e:\'2f\',2g:\'2h\',2i:\'2j\',2k:\'/\'},Q:{"`":"~","1":"!","2":"@","3":"#","4":"$","5":"%","6":"^","7":"&","8":"*","9":"(","0":")","-":"2l","=":"+",";":":","\'":"\\"",",":"<",".":">","/":"?","\\\\":"|"},11:t(a,b,c){m d={};d[a]={};d[a][b]={12:c,H:14};r d}};k.G=j.2m(k.G,{2n:\'0\',2o:\'1\',2p:\'2\',2q:\'3\',2r:\'4\',2s:\'5\',2t:\'6\',2u:\'7\',2v:\'8\',2w:\'9\',2x:\'*\',2y:\'+\',10:\'-\',2z:\'.\',2A:\'/\'});j.q.Z=t(a){n.R=a;r j.q.Y.15(n,2B)};j.q.X=t(a,b,c){l(j.16(b)){c=b;b=S}l(b&&17 b===\'18\'){m d=((n.I&&n.I.R)||(n[0].J&&n[0].J)||n[0]).1a();m e=a.1b(\' \');K(m x=0;x<e.B;x++){2C k.p[d][e[x]][b]}}r n.W(a,c)};j.q.V=t(b,c,d){m e=b.2D(k.P);l(j.16(c)||!e){r n.F(b,c,d)}C{m f=S,T=j.2E(b.2F(k.P,\'\'));l(T){f=n.F(T,c,d)}l(17 c==="18"){c={\'U\':c}}l(c.U){K(m x=0;x<e.B;x++){m g=e[x];m h=c.U.1c(),z=k.11(g,h,d),o=((n.I&&n.I.R)||(n[0].J&&n[0].J)||n[0]).1a();z[g][h].H=c.H;l(!k.p[o]){k.p[o]=z}C l(!k.p[o][g]){k.p[o][g]=z[g]}m i=k.p[o][g][h];l(!i){k.p[o][g][h]=[z[g][h]]}C l(i.2G!==2H){k.p[o][g][h]=[i]}C{k.p[o][g][h][i.B]=z[g][h]}n.2I(t(){m a=j(n);l(a.u(\'v\')&&a.u(\'v\')!==o){o=a.u(\'v\')+";"+o}a.u(\'v\',o)});f=n.F(e.2J(\' \'),c,k.1d)}}r f}};k.1e=t(a){l(!j(a).u(\'v\')){l(j.1f.2K||j.1f.2L){2M(!j(a).u(\'v\')&&a.1g){a=a.1g}}}r a};k.1d=t(a){m b=k.1e(a.2N),D=j(b),w=D.u(\'v\');l(w){w=w.1b(\';\');m c=a.2O,L=a.L,M=k.G[c],y=!M&&2P.2Q(c).1c(),E=a.2R,N=a.2S,O=a.1h||a.2T.1h,s=S;K(m x=0;x<w.B;x++){l(k.p[w[x]][L]){s=k.p[w[x]][L];2U}}l(s){m d;l(!E&&!N&&!O){d=s[M]||(y&&s[y])}C{m e=\'\';l(O)e+=\'O+\';l(N)e+=\'N+\';l(E)e+=\'E+\';d=s[e+M];l(!d){l(y){d=s[e+y]||s[e+k.Q[y]]||(e===\'E+\'&&s[k.Q[y]])}}}l(d){m f=14;K(m x=0;x<d.B;x++){l(d[x].H){m g=j(a.2V);l(D.A("1i")||D.A("1j")||D.A("1k")||g.A("1i")||g.A("1j")||g.A("1k")){r 2W}}f=f||d[x].12.15(n,[a])}r f}}}};2X.2Y=k;r j})(2Z);',62,186,'|||||||||||||||||||||if|var|this|selectorId|triggersMap|fn|return|mapPoint|function|attr|hkId|ids||character|trigger|is|length|else|jTarget|shift|__bind__|specialKeys|disableInInput|prevObject|id|for|type|special|ctrl|alt|override|shiftNums|query|null|pass2jq|combi|bind|__unbind__|unbind|__find__|find|109|newTrigger|cb||false|apply|isFunction|typeof|string||toString|split|toLowerCase|handler|findElement|browser|parentNode|altKey|input|textarea|select|version|keypress|keydown|keyup|esc|tab|32|space|backspace|145|scroll|capslock|144|numlock|pause|45|insert|36|home|46|del|35|end|33|pageup|34|pagedown|37|left|38|up|39|right|40|down|112|f1|113|f2|114|f3||115|f4|116|f5|117|f6||118|f7|119|f8|120|f9|121|f10|122|f11|123|f12|191|_|extend|96|97|98|99|100|101|102|103|104|105|106|107|110|111|arguments|delete|match|trim|replace|constructor|Array|each|join|opera|safari|while|currentTarget|which|String|fromCharCode|shiftKey|ctrlKey|originalEvent|break|target|true|window|hotkeys|jQuery'.split('|'),0,{}));

//jquery-cycle
(function(D){var A="Lite-1.0";D.fn.cycle=function(E){return this.each(function(){E=E||{};if(this.cycleTimeout){clearTimeout(this.cycleTimeout)}this.cycleTimeout=0;this.cyclePause=0;var I=D(this);var J=E.slideExpr?D(E.slideExpr,this):I.children();var G=J.get();if(G.length<2){if(window.console&&window.console.log){window.console.log("terminating; too few slides: "+G.length)}return }var H=D.extend({},D.fn.cycle.defaults,E||{},D.metadata?I.metadata():D.meta?I.data():{});H.before=H.before?[H.before]:[];H.after=H.after?[H.after]:[];H.after.unshift(function(){H.busy=0});var F=this.className;H.width=parseInt((F.match(/w:(\d+)/)||[])[1])||H.width;H.height=parseInt((F.match(/h:(\d+)/)||[])[1])||H.height;H.timeout=parseInt((F.match(/t:(\d+)/)||[])[1])||H.timeout;if(I.css("position")=="static"){I.css("position","relative")}if(H.width){I.width(H.width)}if(H.height&&H.height!="auto"){I.height(H.height)}var K=0;J.css({position:"absolute",top:0,left:0}).hide().each(function(M){D(this).css("z-index",G.length-M)});D(G[K]).css("opacity",1).show();if(D.browser.msie){G[K].style.removeAttribute("filter")}if(H.fit&&H.width){J.width(H.width)}if(H.fit&&H.height&&H.height!="auto"){J.height(H.height)}if(H.pause){I.hover(function(){this.cyclePause=1},function(){this.cyclePause=0})}D.fn.cycle.transitions.fade(I,J,H);J.each(function(){var M=D(this);this.cycleH=(H.fit&&H.height)?H.height:M.height();this.cycleW=(H.fit&&H.width)?H.width:M.width()});J.not(":eq("+K+")").css({opacity:0});if(H.cssFirst){D(J[K]).css(H.cssFirst)}if(H.timeout){if(H.speed.constructor==String){H.speed={slow:600,fast:200}[H.speed]||400}if(!H.sync){H.speed=H.speed/2}while((H.timeout-H.speed)<250){H.timeout+=H.speed}}H.speedIn=H.speed;H.speedOut=H.speed;H.slideCount=G.length;H.currSlide=K;H.nextSlide=1;var L=J[K];if(H.before.length){H.before[0].apply(L,[L,L,H,true])}if(H.after.length>1){H.after[1].apply(L,[L,L,H,true])}if(H.click&&!H.next){H.next=H.click}if(H.next){D(H.next).bind("click",function(){return C(G,H,H.rev?-1:1)})}if(H.prev){D(H.prev).bind("click",function(){return C(G,H,H.rev?1:-1)})}if(H.timeout){this.cycleTimeout=setTimeout(function(){B(G,H,0,!H.rev)},H.timeout+(H.delay||0))}})};function B(J,E,I,K){if(E.busy){return }var H=J[0].parentNode,M=J[E.currSlide],L=J[E.nextSlide];if(H.cycleTimeout===0&&!I){return }if(I||!H.cyclePause){if(E.before.length){D.each(E.before,function(N,O){O.apply(L,[M,L,E,K])})}var F=function(){if(D.browser.msie){this.style.removeAttribute("filter")}D.each(E.after,function(N,O){O.apply(L,[M,L,E,K])})};if(E.nextSlide!=E.currSlide){E.busy=1;D.fn.cycle.custom(M,L,E,F)}var G=(E.nextSlide+1)==J.length;E.nextSlide=G?0:E.nextSlide+1;E.currSlide=G?J.length-1:E.nextSlide-1}if(E.timeout){H.cycleTimeout=setTimeout(function(){B(J,E,0,!E.rev)},E.timeout)}}function C(E,F,I){var H=E[0].parentNode,G=H.cycleTimeout;if(G){clearTimeout(G);H.cycleTimeout=0}F.nextSlide=F.currSlide+I;if(F.nextSlide<0){F.nextSlide=E.length-1}else{if(F.nextSlide>=E.length){F.nextSlide=0}}B(E,F,1,I>=0);return false}D.fn.cycle.custom=function(K,H,I,E){var J=D(K),G=D(H);G.css({opacity:0});var F=function(){G.animate({opacity:1},I.speedIn,I.easeIn,E)};J.animate({opacity:0},I.speedOut,I.easeOut,function(){J.css({display:"none"});if(!I.sync){F()}});if(I.sync){F()}};D.fn.cycle.transitions={fade:function(F,G,E){G.not(":eq(0)").css("opacity",0);E.before.push(function(){D(this).show()})}};D.fn.cycle.ver=function(){return A};D.fn.cycle.defaults={timeout:4000,speed:1000,next:null,prev:null,before:null,after:null,height:"auto",sync:1,fit:0,pause:0,delay:0,slideExpr:null}})(jQuery);

//jquery-stars
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}(';5(29.1j)(7($){5($.1L.1J)1I{1t.1H("1K",J,H)}1M(e){};$.n.3=7(i){5(4.Q==0)k 4;5(A I[0]==\'1h\'){5(4.Q>1){8 j=I;k 4.W(7(){$.n.3.y($(4),j)})};$.n.3[I[0]].y(4,$.1T(I).1U(1)||[]);k 4};8 i=$.12({},$.n.3.1s,i||{});$.n.3.K++;4.2a(\'.9-3-1f\').o(\'9-3-1f\').W(7(){8 a,l=$(4);8 b=(4.23||\'21-3\').1v(/\\[|\\]/g,\'Z\').1v(/^\\Z+|\\Z+$/g,\'\');8 c=$(4.1X||1t.1W);8 d=c.6(\'3\');5(!d||d.18!=$.n.3.K)d={z:0,18:$.n.3.K};8 e=d[b];5(e)a=e.6(\'3\');5(e&&a)a.z++;x{a=$.12({},i||{},($.1b?l.1b():($.1S?l.6():s))||{},{z:0,F:[],v:[]});a.w=d.z++;e=$(\'<1R V="9-3-1Q"/>\');l.1P(e);e.o(\'3-15-T-17\');5(l.S(\'R\'))a.m=H;e.1c(a.E=$(\'<P V="3-E"><a 14="\'+a.E+\'">\'+a.1d+\'</a></P>\').1g(7(){$(4).3(\'O\');$(4).o(\'9-3-N\')}).1i(7(){$(4).3(\'u\');$(4).G(\'9-3-N\')}).1l(7(){$(4).3(\'r\')}).6(\'3\',a))};8 f=$(\'<P V="9-3 q-\'+a.w+\'"><a 14="\'+(4.14||4.1p)+\'">\'+4.1p+\'</a></P>\');e.1c(f);5(4.11)f.S(\'11\',4.11);5(4.1r)f.o(4.1r);5(a.1F)a.t=2;5(A a.t==\'1u\'&&a.t>0){8 g=($.n.10?f.10():0)||a.1w;8 h=(a.z%a.t),Y=1y.1z(g/a.t);f.10(Y).1A(\'a\').1B({\'1C-1D\':\'-\'+(h*Y)+\'1E\'})};5(a.m)f.o(\'9-3-1o\');x f.o(\'9-3-1G\').1g(7(){$(4).3(\'1n\');$(4).3(\'D\')}).1i(7(){$(4).3(\'u\');$(4).3(\'C\')}).1l(7(){$(4).3(\'r\')});5(4.L)a.p=f;l.1q();l.1N(7(){$(4).3(\'r\')});f.6(\'3.l\',l.6(\'3.9\',f));a.F[a.F.Q]=f[0];a.v[a.v.Q]=l[0];a.q=d[b]=e;a.1O=c;l.6(\'3\',a);e.6(\'3\',a);f.6(\'3\',a);c.6(\'3\',d)});$(\'.3-15-T-17\').3(\'u\').G(\'3-15-T-17\');k 4};$.12($.n.3,{K:0,D:7(){8 a=4.6(\'3\');5(!a)k 4;5(!a.D)k 4;8 b=$(4).6(\'3.l\')||$(4.U==\'13\'?4:s);5(a.D)a.D.y(b[0],[b.M(),$(\'a\',b.6(\'3.9\'))[0]])},C:7(){8 a=4.6(\'3\');5(!a)k 4;5(!a.C)k 4;8 b=$(4).6(\'3.l\')||$(4.U==\'13\'?4:s);5(a.C)a.C.y(b[0],[b.M(),$(\'a\',b.6(\'3.9\'))[0]])},1n:7(){8 a=4.6(\'3\');5(!a)k 4;5(a.m)k;4.3(\'O\');4.1a().19().X(\'.q-\'+a.w).o(\'9-3-N\')},O:7(){8 a=4.6(\'3\');5(!a)k 4;5(a.m)k;a.q.1V().X(\'.q-\'+a.w).G(\'9-3-1k\').G(\'9-3-N\')},u:7(){8 a=4.6(\'3\');5(!a)k 4;4.3(\'O\');5(a.p){a.p.6(\'3.l\').S(\'L\',\'L\');a.p.1a().19().X(\'.q-\'+a.w).o(\'9-3-1k\')}x $(a.v).1m(\'L\');a.E[a.m||a.1Y?\'1q\':\'1Z\']();4.20()[a.m?\'o\':\'G\'](\'9-3-1o\')},r:7(a,b){8 c=4.6(\'3\');5(!c)k 4;5(c.m)k;c.p=s;5(A a!=\'B\'){5(A a==\'1u\')k $(c.F[a]).3(\'r\',B,b);5(A a==\'1h\')$.W(c.F,7(){5($(4).6(\'3.l\').M()==a)$(4).3(\'r\',B,b)})}x c.p=4[0].U==\'13\'?4.6(\'3.9\'):(4.22(\'.q-\'+c.w)?4:s);4.6(\'3\',c);4.3(\'u\');8 d=$(c.p?c.p.6(\'3.l\'):s);5((b||b==B)&&c.1e)c.1e.y(d[0],[d.M(),$(\'a\',c.p)[0]])},m:7(a,b){8 c=4.6(\'3\');5(!c)k 4;c.m=a||a==B?H:J;5(b)$(c.v).S("R","R");x $(c.v).1m("R");4.6(\'3\',c);4.3(\'u\')},1x:7(){4.3(\'m\',H,H)},24:7(){4.3(\'m\',J,J)}});$.n.3.1s={E:\'25 26\',1d:\'\',t:0,1w:16};$(7(){$(\'l[27=28].9\').3()})})(1j);',62,135,'|||rating|this|if|data|function|var|star|||||||||||return|input|readOnly|fn|addClass|current|rater|select|null|split|draw|inputs|serial|else|apply|count|typeof|undefined|blur|focus|cancel|stars|removeClass|true|arguments|false|calls|checked|val|hover|drain|div|length|disabled|attr|be|tagName|class|each|filter|spw|_|width|id|extend|INPUT|title|to||drawn|call|andSelf|prevAll|metadata|append|cancelValue|callback|applied|mouseover|string|mouseout|jQuery|on|click|removeAttr|fill|readonly|value|hide|className|options|document|number|replace|starWidth|disable|Math|floor|find|css|margin|left|px|half|live|execCommand|try|msie|BackgroundImageCache|browser|catch|change|context|before|control|span|meta|makeArray|slice|children|body|form|required|show|siblings|unnamed|is|name|enable|Cancel|Rating|type|radio|window|not'.split('|'),0,{}));

//jquery-emposhaautocompletefcbk
jQuery(function($){$.fn.fcbkcomplete=function(opt){return this.each(function(){function init(){createFCBK();preSet();addInput(0);}function createFCBK(){element.hide();element.attr("multiple","multiple");if(element.attr("name").indexOf("[]")==-1){element.attr("name",element.attr("name")+"[]");}holder=$(document.createElement("ul"));holder.attr("class","holder");element.after(holder);complete=$(document.createElement("div"));complete.addClass("facebook-auto");complete.append('<div class="default">'+options.complete_text+"</div>");if(browser_msie){complete.append('<iframe class="ie6fix" scrolling="no" frameborder="0"></iframe>');browser_msie_frame=complete.children('.ie6fix');}feed=$(document.createElement("ul"));feed.attr("id",elemid+"_feed");complete.prepend(feed);holder.after(complete);feed.css("width",complete.width());}function preSet(){element.children("option").each(function(i,option){option=$(option);if(option.hasClass("selected")||option.is(':selected')){addItem(option.text(),option.val(),true,option.hasClass("locked"));option.attr("selected","selected");}else{option.removeAttr("selected");}cache.push({caption:option.text(),value:option.val()});search_string+=""+(cache.length-1)+":"+option.text()+";";});}$(this).bind("addItem",function(event,data){addItem(data.title,data.value,0,0,0);});function addItem(title,value,preadded,locked,focusme){if(!maxItems()){return false;}var li=document.createElement("li");var txt=document.createTextNode(title);var aclose=document.createElement("a");var liclass="bit-box"+(locked?" locked":"");$(li).attr({"class":liclass,"rel":value});$(li).prepend(txt);$(aclose).attr({"class":"closebutton","href":"#"});li.appendChild(aclose);holder.append(li);$(aclose).click(function(){removeItem($(this).parent("li"));return false;});if(!preadded){$("#"+elemid+"_annoninput").remove();var _item;addInput(focusme);if(element.children("option[value="+value+"]").length){_item=element.children("option[value="+value+"]");_item.get(0).setAttribute("selected","selected");if(!_item.hasClass("selected")){_item.addClass("selected");}}else{var _item=$(document.createElement("option"));_item.attr("value",value).get(0).setAttribute("selected","selected");_item.attr("value",value).addClass("selected");_item.text(title);element.append(_item);}if(options.onselect.length){funCall(options.onselect,_item)}element.change();}holder.children("li.bit-box.deleted").removeClass("deleted");feed.hide();browser_msie?browser_msie_frame.hide():'';}function removeItem(item){if(!item.hasClass('locked')){item.fadeOut("fast");if(options.onremove.length){var _item=element.children("option[value="+item.attr("rel")+"]");funCall(options.onremove,_item)}element.children('option[value="'+item.attr("rel")+'"]').removeAttr("selected").removeClass("selected");item.remove();element.change();deleting=0;}}function addInput(focusme){var li=$(document.createElement("li"));var input=$(document.createElement("input"));var getBoxTimeout=0;li.attr({"class":"bit-input","id":elemid+"_annoninput"});input.attr({"type":"text","class":"maininput","size":"1"});holder.append(li.append(input));input.focus(function(){complete.fadeIn("fast");});input.blur(function(){complete.fadeOut("fast");});holder.click(function(){input.focus();if(feed.length&&input.val().length){feed.show();}else{feed.hide();browser_msie?browser_msie_frame.hide():'';complete.children(".default").show();}});input.keypress(function(event){if(event.keyCode==13||event.keyCode==9){return false;}input.attr("size",input.val().length+1);});input.keydown(function(event){if(event.keyCode==191){event.preventDefault();return false;}});input.keyup(function(event){var etext=xssPrevent(input.val());if(event.keyCode==8&&etext.length==0){feed.hide();browser_msie?browser_msie_frame.hide():'';if(!holder.children("li.bit-box:last").hasClass('locked')){if(holder.children("li.bit-box.deleted").length==0){holder.children("li.bit-box:last").addClass("deleted");return false;}else{if(deleting){return;}deleting=1;holder.children("li.bit-box.deleted").fadeOut("fast",function(){removeItem($(this));return false;});}}}if(event.keyCode!=40&&event.keyCode!=38&&etext.length!=0){counter=0;if(options.json_url){if(options.cache&&json_cache){addMembers(etext);bindEvents();}else{getBoxTimeout++;var getBoxTimeoutValue=getBoxTimeout;setTimeout(function(){if(getBoxTimeoutValue!=getBoxTimeout)return;$.getJSON(options.json_url+(options.json_url.indexOf("?")>-1?"&":"?")+"tag="+etext,null,function(data){addMembers(etext,data);json_cache=true;bindEvents();});},options.delay);}}else{addMembers(etext);bindEvents();}complete.children(".default").hide();feed.show();}});if(focusme){setTimeout(function(){input.focus();complete.children(".default").show();},1);}}function addMembers(etext,data){feed.html('');if(!options.cache&&data!=null){cache=new Array();search_string="";}addTextItem(etext);if(data!=null&&data.length){$.each(data,function(i,val){cache.push({caption:val.caption,value:val.value});search_string+=""+(cache.length-1)+":"+val.caption+";";});}var maximum=options.maxshownitems<cache.length?options.maxshownitems:cache.length;var filter="i";if(options.filter_case){filter="";}var myregexp,match;try{myregexp=eval('/(?:^|;)\\s*(\\d+)\\s*:[^;]*?'+etext+'[^;]*/g'+filter);match=myregexp.exec(search_string);}catch(ex){};var content='';while(match!=null&&maximum>0){var id=match[1];var object=cache[id];if(options.filter_selected&&element.children("option[value="+object.value+"]").hasClass("selected")){}else{content+='<li rel="'+object.value+'">'+itemIllumination(object.caption,etext)+'</li>';counter++;maximum--;}match=myregexp.exec(search_string);}feed.append(content);if(options.firstselected){focuson=feed.children("li:visible:first");focuson.addClass("auto-focus");}if(counter>options.height){feed.css({"height":(options.height*24)+"px","overflow":"auto"});if(browser_msie){browser_msie_frame.css({"height":(options.height*24)+"px","width":feed.width()+"px"}).show();}}else{feed.css("height","auto");if(browser_msie){browser_msie_frame.css({"height":feed.height()+"px","width":feed.width()+"px"}).show();}}}function itemIllumination(text,etext){if(options.filter_case){try{eval("var text = text.replace(/(.*)("+etext+")(.*)/gi,'$1<em>$2</em>$3');");}catch(ex){};}else{try{eval("var text = text.replace(/(.*)("+etext.toLowerCase()+")(.*)/gi,'$1<em>$2</em>$3');");}catch(ex){};}return text;}function bindFeedEvent(){feed.children("li").mouseover(function(){feed.children("li").removeClass("auto-focus");$(this).addClass("auto-focus");focuson=$(this);});feed.children("li").mouseout(function(){$(this).removeClass("auto-focus");focuson=null;});}function removeFeedEvent(){feed.children("li").unbind("mouseover");feed.children("li").unbind("mouseout");feed.mousemove(function(){bindFeedEvent();feed.unbind("mousemove");});}function bindEvents(){var maininput=$("#"+elemid+"_annoninput").children(".maininput");bindFeedEvent();feed.children("li").unbind("mousedown");feed.children("li").mousedown(function(){var option=$(this);addItem(option.text(),option.attr("rel"));feed.hide();browser_msie?browser_msie_frame.hide():'';complete.hide();});maininput.unbind("keydown");maininput.keydown(function(event){if(event.keyCode==191){event.preventDefault();return false;}if(event.keyCode!=8){holder.children("li.bit-box.deleted").removeClass("deleted");}if((event.keyCode==13||event.keyCode==9)&&checkFocusOn()){var option=focuson;addItem(option.text(),option.attr("rel"));complete.hide();event.preventDefault();focuson=null;return false;}if((event.keyCode==13||event.keyCode==9)&&!checkFocusOn()){if(options.newel){var value=xssPrevent($(this).val());addItem(value,value);complete.hide();event.preventDefault();focuson=null;}return false;}if(event.keyCode==40){removeFeedEvent();if(focuson==null||focuson.length==0){focuson=feed.children("li:visible:first");feed.get(0).scrollTop=0;}else{focuson.removeClass("auto-focus");focuson=focuson.nextAll("li:visible:first");var prev=parseInt(focuson.prevAll("li:visible").length,10);var next=parseInt(focuson.nextAll("li:visible").length,10);if((prev>Math.round(options.height/2)||next<=Math.round(options.height/2))&&typeof(focuson.get(0))!="undefined"){feed.get(0).scrollTop=parseInt(focuson.get(0).scrollHeight,10)*(prev-Math.round(options.height/2));}}feed.children("li").removeClass("auto-focus");focuson.addClass("auto-focus");}if(event.keyCode==38){removeFeedEvent();if(focuson==null||focuson.length==0){focuson=feed.children("li:visible:last");feed.get(0).scrollTop=parseInt(focuson.get(0).scrollHeight,10)*(parseInt(feed.children("li:visible").length,10)-Math.round(options.height/2));}else{focuson.removeClass("auto-focus");focuson=focuson.prevAll("li:visible:first");var prev=parseInt(focuson.prevAll("li:visible").length,10);var next=parseInt(focuson.nextAll("li:visible").length,10);if((next>Math.round(options.height/2)||prev<=Math.round(options.height/2))&&typeof(focuson.get(0))!="undefined"){feed.get(0).scrollTop=parseInt(focuson.get(0).scrollHeight,10)*(prev-Math.round(options.height/2));}}feed.children("li").removeClass("auto-focus");focuson.addClass("auto-focus");}});}function maxItems(){if(options.maxitems!=0){if(holder.children("li.bit-box").length<options.maxitems){return true;}else{return false;}}}function addTextItem(value){if(options.newel&&maxItems()){feed.children("li[fckb=1]").remove();if(value.length==0){return;}var li=$(document.createElement("li"));li.attr({"rel":value,"fckb":"1"}).html(value);feed.prepend(li);counter++;}else{return;}}function funCall(func,item){var _object="";for(i=0;i<item.get(0).attributes.length;i++){if(item.get(0).attributes[i].nodeValue!=null){_object+="\"_"+item.get(0).attributes[i].nodeName+"\": \""+item.get(0).attributes[i].nodeValue+"\",";}}_object="{"+_object+" notinuse: 0}";func.call(func,_object);}function checkFocusOn(){if(focuson==null){return false;}if(focuson.length==0){return false;}return true;}function xssPrevent(string){string=string.replace(/[\"\'][\s]*javascript:(.*)[\"\']/g,"\"\"");string=string.replace(/script(.*)/g,"");string=string.replace(/eval\((.*)\)/g,"");string=string.replace('/([\x00-\x08,\x0b-\x0c,\x0e-\x19])/','');return string;}var options=$.extend({json_url:null,cache:false,height:"10",newel:false,firstselected:false,filter_case:false,filter_hide:false,complete_text:"Start to type...",maxshownitems:30,maxitems:10,onselect:"",onremove:"",delay:350},opt);var holder=null;var feed=null;var complete=null;var counter=0;var cache=new Array();var json_cache=false;var search_string="";var focuson=null;var deleting=0;var browser_msie="\v"=="v";var browser_msie_frame;var element=$(this);var elemid=element.attr("id");init();return this;});};});

//needs Base64 econde/decode
var Base64={
	_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",
	
	encode:function(a){var b="";var c,chr2,chr3,enc1,enc2,enc3,enc4;var i=0;a=Base64._utf8_encode(a);while(i<a.length){c=a.charCodeAt(i++);chr2=a.charCodeAt(i++);chr3=a.charCodeAt(i++);enc1=c>>2;enc2=((c&3)<<4)|(chr2>>4);enc3=((chr2&15)<<2)|(chr3>>6);enc4=chr3&63;if(isNaN(chr2)){enc3=enc4=64}else if(isNaN(chr3)){enc4=64}b=b+this._keyStr.charAt(enc1)+this._keyStr.charAt(enc2)+this._keyStr.charAt(enc3)+this._keyStr.charAt(enc4)}return b},
	decode:function(a){var b="";var c,chr2,chr3;var d,enc2,enc3,enc4;var i=0;a=a.replace(/[^A-Za-z0-9\+\/\=]/g,"");while(i<a.length){d=this._keyStr.indexOf(a.charAt(i++));enc2=this._keyStr.indexOf(a.charAt(i++));enc3=this._keyStr.indexOf(a.charAt(i++));enc4=this._keyStr.indexOf(a.charAt(i++));c=(d<<2)|(enc2>>4);chr2=((enc2&15)<<4)|(enc3>>2);chr3=((enc3&3)<<6)|enc4;b=b+String.fromCharCode(c);if(enc3!=64){b=b+String.fromCharCode(chr2)}if(enc4!=64){b=b+String.fromCharCode(chr3)}}b=Base64._utf8_decode(b);return b},
	
	_utf8_encode:function(a){a=a.replace(/\r\n/g,"\n");var b="";for(var n=0;n<a.length;n++){var c=a.charCodeAt(n);if(c<128){b+=String.fromCharCode(c)}else if((c>127)&&(c<2048)){b+=String.fromCharCode((c>>6)|192);b+=String.fromCharCode((c&63)|128)}else{b+=String.fromCharCode((c>>12)|224);b+=String.fromCharCode(((c>>6)&63)|128);b+=String.fromCharCode((c&63)|128)}}return b},
	_utf8_decode:function(a){var b="";var i=0;var c=c1=c2=0;while(i<a.length){c=a.charCodeAt(i);if(c<128){b+=String.fromCharCode(c);i++}else if((c>191)&&(c<224)){c2=a.charCodeAt(i+1);b+=String.fromCharCode(((c&31)<<6)|(c2&63));i+=2}else{c2=a.charCodeAt(i+1);c3=a.charCodeAt(i+2);b+=String.fromCharCode(((c&15)<<12)|((c2&63)<<6)|(c3&63));i+=3}}return b}
}

