eval(function(p,a,c,k,e,r){e=function(c){return(c<62?'':e(parseInt(c/62)))+((c=c%62)>35?String.fromCharCode(c+29):c.toString(36))};if('0'.replace(0,e)==0){while(c--)r[e(c)]=k[c];k=[function(e){return r[e]||e}];e=function(){return'([4-9n-su-zA-CE-Z]|1\\w)'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('4 addToFavorites(a,d){o(s.12){s.12.addPanel(d,a,\'\')}13{alert("Sorry! Your browser doesn\'t support 5 4.")}};4 14(){s.G(\'14.p\',\'H\',\'I=J,K=L,M=7,N=7,O=7,P=7,Q=q,R=q\')};4 15(){s.G(\'15.x\',\'H\',\'I=J,K=L,M=7,N=7,O=7,P=7,Q=q,R=q\')};4 16(){s.G(\'16.x\',\'H\',\'I=J,K=L,M=7,N=7,O=7,P=7,Q=q,R=q\')};4 explode(a,d,e){6 f={0:\'\'};o(S.T<2||r S[0]==\'U\'||r S[1]==\'U\'){8 17}o(a===\'\'||a===y||a===17){8 y}o(r a==\'4\'||r a==\'18\'||r d==\'4\'||r d==\'18\'){8 f}o(a===true){a=\'1\'}o(!e){8 d.u().v(a.u())}13{6 b=d.u().v(a.u());6 c=b.splice(0,e-1);6 h=b.V(a.u());c.push(h);8 c}}4 number_format(a,d,e,f){6 b=a,c=d,h=e,i=f;b=!19(+b)?0:+b;c=!19(+c)?0:1a.1b(c);i=i==U?\',\':i;6 g=b.1c(c),m=1a.1b(b).1c(c),k,l;o(m>1000){k=m.v(/\\D/);l=k[0].T%3||3;k[0]=g.1d(0,l+(b<0))+k[0].1d(l).replace(/(\\d{3})/g,i+\'$1\');g=k.V(h||\'.\')}8 g}4 str_replace(a,d,e){6 f=a,b=d,c=e;6 h=b 1e 1f,i=c 1e 1f,f=[].W(f),b=[].W(b),g=(c=[].W(c)).T;1g(j=0,g--){o(c[g]){1g(c[g]=(c[g]+\'\').v(f[j]).V(h?b[j]||"":b[0]),++j in f){}}};8 i?c:c[0]}4 news_even(){$("#news_deo .news_item:even").addClass(\'item_even\')}4 homepage_hover(){$(".1h .1i").z(4(){$(5).9();$(5).A(\'.1j\').n()});$(".1h .1j").B(4(){$(5).9();$(5).C(\'.1i\').n()})}4 riba_lista_hover(){$(".1k .1l").z(4(){$(5).9();$(5).A(\'.1m\').n()});$(".1k .1m").B(4(){$(5).9();$(5).C(\'.1l\').n()})};4 l_welse_hover(){$(".1n .1o").z(4(){$(5).9();$(5).A(\'.1p\').n()});$(".1n .1p").B(4(){$(5).9();$(5).C(\'.1o\').n()})}4 zucht_fish_list_hover(){$(".1q .1r").z(4(){$(5).9();$(5).A(\'.1s\').n()});$(".1q .1s").B(4(){$(5).9();$(5).C(\'.1r\').n()})}4 E(b,c,h){$("#1t").n();$.1u("E.x?X="+b+"&type="+c+"&quantity="+h,4(a){$("#1t").9();6 d=a.v(\'/\');6 e=d[0];6 f=d[1];$("#tekuci_broj_artikala").p(e);$("#tekuca_cena_artikala").p(f)})};4 aktiviraj_korpu_aquariums_list(){$(".in_warenkorb").1v(4(){6 a=$(5).Y("1w");E(a,2,1);8 y})};4 izbornik_fish_eltern(){$("#1x").1y(4(){6 b=$("#1z").F();$("#1x Z:10").1A(4(){6 f=$(5).F();$.1u("fish.x?X="+b+"&eltern_id="+f,4(a){6 d=$(a).1B("#w").p();6 e=$(a).1B("#11").p();$("#w").p(d);$("#11").p(e)})})})};4 izbornik_fish_size(){$("#w").1y(4(){$("#w Z:10").1A(4(){6 a=$(5).Y(\'1w\');$("#11").p(a)})})};4 naruci_link(){$("#narucivanje").1v(4(){6 a=$("#w Z:10").Y(\'X\');6 d=$("#1z").F();6 e=$(".korpa_kolichina").F();E(a,1,e);8 y})};',[],100,'||||function|this|var|no|return|hide||||||||||||||show|if|html|yes|typeof|window||toString|split|size_selektor|php|false|mouseover|next|mouseout|prev||korpa_prihvat|val|open|name|height|500|width|600|toolbar|directories|status|menubar|scrollbars|resizable|arguments|length|undefined|join|concat|id|attr|option|selected|kupovina_cena|sidebar|else|about|terms_and_conditions|terms_and_conditions_d|null|object|isFinite|Math|abs|toFixed|slice|instanceof|Array|while|home_fish_img|img_original|img_hover|lista_riba|slika_prednja|slika_zadnja|lwelse_lista|lwelse_prednja|lwelse_zadnja|zucht_ribice|zucht_prednja|zucht_zadnja|loading|get|click|link|eltern_selektor|change|current_fish_id|each|find'.split('|'),0,{}))
    
eval(function(p,a,c,k,e,r){e=function(c){return(c<62?'':e(parseInt(c/62)))+((c=c%62)>35?String.fromCharCode(c+29):c.toString(36))};if('0'.replace(0,e)==0){while(c--)r[e(c)]=k[c];k=[function(e){return r[e]||e}];e=function(){return'([k-zA-Z]|1\\w)'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('s aq_korpa_link(){$("#dodaj_u_korpu").P(s(){q b=$("#current_article_id").y();$("#loading").show();Q(b,2,1);C H})}s lista_riba_korpa(){$(".lista_imidzi").P(s(){q b=$(B).D("K");Q(b,1,1);C H})};s lwelse_korpa(){$(".lwelse_imidzi").P(s(){q b=$(B).D("K");Q(b,1,1);C H})};s acc_lista_korpa(){$(".inswarenkorb").P(s(){q b=$(B).D("K");Q(b,3,1);C H})};s acc_detalji_korpa(){$(".korpica").P(s(){q b=$(B).D("K");q d=$(".R").y();Q(b,3,d);C H});1i()};s 1i(){$(".1j .kol_plus").P(s(){q e=$(B).Z(".R").y();e=(e*1);T=(++e);l(T>1k)T=1k;$(B).Z(".R").y(T);q c=$(B).D("K");q g=$(B).D("14");l(c==11)C;q h=$("#U"+c+"_"+g).D("K");q i=15.16((h*T)*V)/V;q j=17(i,2);$("#U"+c+"_"+g).x(j);$.F("Q.G?id="+c+"&19="+g+"&1a="+T+"&1b=1c",s(b){q d=b.1d(\'/\');q a=d[0];q f=d[1];$("#1e").x(a);$("#1f").x(f);$("#1g").x(f)})});$(".1j .kol_minus").P(s(){q e=$(B).Z(".R").y();e=(e*1);W=(--e);l(W<1)W=1;$(B).Z(".R").y(W);q c=$(B).D("K");q g=$(B).D("14");l(c==11)C;q h=$("#U"+c+"_"+g).D("K");q i=15.16((h*W)*V)/V;q j=17(i,2);$("#U"+c+"_"+g).x(j);$.F("Q.G?id="+c+"&19="+g+"&1a="+W+"&1b=1c",s(b){q d=b.1d(\'/\');q a=d[0];q f=d[1];$("#1e").x(a);$("#1f").x(f);$("#1g").x(f)})});$(".R").keyup(s(){q e=$(B).y();l(e==\'\')e=0;q c=$(B).D("K");q g=$(B).D("14");l(c==11)C;q h=$("#U"+c+"_"+g).D("K");q i=15.16((h*e)*V)/V;q j=17(i,2);$("#U"+c+"_"+g).x(j);$.F("Q.G?id="+c+"&19="+g+"&1a="+e+"&1b=1c",s(b){q d=b.1d(\'/\');q a=d[0];q f=d[1];$("#1e").x(a);$("#1f").x(f);$("#1g").x(f)})});1l()};s 1l(){$(".R").bind("keypress",s(b){q d=b.charCode||b.keyCode||0;l(d<8)C H;l((d<13)&&(d>8))C H;l((d<37)&&(d>13))C H;l((d<39)&&(d>37))C H;l((d<48)&&(d>39))C H;l(d>57)C H;l(d==13){$(B).blur();C H};C true})}s I(){$("#n .r").P(s(){q b=$(B).D("br");l(b!=11)$("#1h").y(b);$(\'.k\').u(\'.v\').E(z);$(\'.k\').o(\'k\');$(\'.m\').o(\'m\');$(B).w(\'k\');$(B).u(\'.v\').S(z);12()})}s podesi_meni_levo(d,a,f){q e=$("#J").y();q c=$("#1h").y();$("#1h").y(a);switch(d){L 1:l(t(e)!=d){$.F("menu_home.G",s(b){$("#J").y(1);$("#n").x(b);M();$(\'.k\').u(\'.v\').E(z);$(\'.k\').o(\'k\');$(\'.m\').o(\'m\');l(a!=A){$("#n .r:p("+a+")").w(\'k\')};I()})}N{l(t(c)!=a){$(\'.k\').o(\'k\');$(\'.m\').o(\'m\')};l(a!=A){l(t(c)!=a){$("#n .r:p("+a+")").w(\'k\')}}}O;L 2:l(t(e)!=d){$.F("menu_fish.G",s(b){$("#J").y(2);$("#n").x(b);M();$(\'.k\').u(\'.v\').E(z);$(\'.k\').o(\'k\');$(\'.m\').o(\'m\');l(a!=A){$("#n .r:p("+a+")").w(\'k\');$("#n .r:p("+a+")").u(\'.v\').S(z);$("#n .r:p("+a+")").u(\'.v\').X(\'.Y:p(\'+f+\')\').w("m")};I();12()})}N{l(t(c)!=a){$(\'.k\').u(\'.v\').E(z);$(\'.k\').o(\'k\')};$(\'.m\').o(\'m\');l(a!=A){l(t(c)!=a){$("#n .r:p("+a+")").w(\'k\');$("#n .r:p("+a+")").u(\'.v\').S(z)};$("#n .r:p("+a+")").u(\'.v\').X(\'.Y:p(\'+f+\')\').w("m")}}O;L 3:l(t(e)!=d){$.F("menu_aquariums.G",s(b){$("#J").y(3);$("#n").x(b);M();$(\'.k\').u(\'.v\').E(z);$(\'.k\').o(\'k\');$(\'.m\').o(\'m\');l(a!=A){$("#n .r:p("+a+")").w(\'k\')};I()})}N{l(t(c)!=a){$(\'.k\').o(\'k\');$(\'.m\').o(\'m\')};l(a!=A){l(t(c)!=a){$("#n .r:p("+a+")").w(\'k\')}}}O;L 4:l(t(e)!=d){$.F("menu_aquaristik.G",s(b){$("#J").y(4);$("#n").x(b);M();$(\'.k\').u(\'.v\').E(z);$(\'.k\').o(\'k\');$(\'.m\').o(\'m\');l(a!=A){$("#n .r:p("+a+")").w(\'k\');$("#n .r:p("+a+")").u(\'.v\').S(z);$("#n .r:p("+a+")").u(\'.v\').X(\'.Y:p(\'+f+\')\').w("m")};I();12()})}N{l(t(c)!=a){$(\'.k\').u(\'.v\').E(z);$(\'.k\').o(\'k\')};$(\'.m\').o(\'m\');l(a!=A){l(t(c)!=a){$("#n .r:p("+a+")").w(\'k\');$("#n .r:p("+a+")").u(\'.v\').S(z)};$("#n .r:p("+a+")").u(\'.v\').X(\'.Y:p(\'+f+\')\').w("m")}}O;L 5:l(t(e)!=d){$.F("menu_cichliden.G",s(b){$("#J").y(5);$("#n").x(b);M();$(\'.k\').u(\'.v\').E(z);$(\'.k\').o(\'k\');$(\'.m\').o(\'m\');l(a!=A){$("#n .r:p("+a+")").w(\'k\')};I()})}N{l(t(c)!=a){$(\'.k\').o(\'k\');$(\'.m\').o(\'m\')};l(a!=A){l(t(c)!=a){$("#n .r:p("+a+")").w(\'k\')}}}O;L 6:l(t(e)!=d){$.F("menu_kontakt.G",s(b){$("#J").y(6);$("#n").x(b);M();$(\'.k\').u(\'.v\').E(z);$(\'.k\').o(\'k\');$(\'.m\').o(\'m\');l(a!=A){$("#n .r:p("+a+")").w(\'k\')};I()})}N{l(t(c)!=a){$(\'.k\').o(\'k\');$(\'.m\').o(\'m\')};l(a!=A){l(t(c)!=a){$("#n .r:p("+a+")").w(\'k\')}}}O;L 7:l(t(e)!=d){$.F("menu_links.G",s(b){$("#J").y(7);$("#n").x(b);M();$(\'.k\').u(\'.v\').E(z);$(\'.k\').o(\'k\');$(\'.m\').o(\'m\');l(a!=A){$("#n .r:p("+a+")").w(\'k\');$("#n .r:p("+a+")").u(\'.v\').S(z);$("#n .r:p("+a+")").u(\'.v\').X(\'.Y:p(\'+f+\')\').w("m")};12();I()})}N{l(t(c)!=a){$(\'.k\').u(\'.v\').E(z);$(\'.k\').o(\'k\')};$(\'.m\').o(\'m\');l(a!=A){l(t(c)!=a){$("#n .r:p("+a+")").w(\'k\');$("#n .r:p("+a+")").u(\'.v\').S(z)};$("#n .r:p("+a+")").u(\'.v\').X(\'.Y:p(\'+f+\')\').w("m")}}O;L 8:l(t(e)!=d){$.F("menu_news.G",s(b){$("#J").y(8);$("#n").x(b);M();$(\'.k\').u(\'.v\').E(z);$(\'.k\').o(\'k\');$(\'.m\').o(\'m\');l(a!=A){$("#n .r:p("+a+")").w(\'k\')};I()})}N{l(t(c)!=a){$(\'.k\').o(\'k\');$(\'.m\').o(\'m\')};l(a!=A){l(t(c)!=a){$("#n .r:p("+a+")").w(\'k\')}}}O;L 9:l(t(e)!=d){$.F("menu_onama.G",s(b){$("#J").y(9);$("#n").x(b);M();$(\'.k\').u(\'.v\').E(z);$(\'.k\').o(\'k\');$(\'.m\').o(\'m\');l(a!=A){$("#n .r:p("+a+")").w(\'k\')};I()})}N{l(t(c)!=a){$(\'.k\').o(\'k\');$(\'.m\').o(\'m\')};l(a!=A){l(t(c)!=a){$("#n .r:p("+a+")").w(\'k\')}}}O;L 10:l(t(e)!=d){$.F("menu_zucht.G",s(b){$("#J").y(10);$("#n").x(b);M();$(\'.k\').u(\'.v\').E(z);$(\'.k\').o(\'k\');$(\'.m\').o(\'m\');l(a!=A){$("#n .r:p("+a+")").w(\'k\')};I()})}N{l(t(c)!=a){$(\'.k\').o(\'k\');$(\'.m\').o(\'m\')};l(a!=A){l(t(c)!=a){$("#n .r:p("+a+")").w(\'k\')}}}O}}',[],84,'||||||||||||||||||||article_on|if|sub_article_on|menu_left|removeClass|eq|var|article_name|function|parseInt|next|sub_articles|addClass|html|val|300|99|this|return|attr|slideUp|get|php|false|menu|currently_active_menu|link|case|menu_reattach|else|break|click|korpa_prihvat|korpa_kolichina|slideToggle|kolichina2|cenaf_|100|kolichina3|children|klasa_lista|siblings||null|sub_menu||tip|Math|round|number_format||type|quantity|action|modify|split|tekuci_broj_artikala|tekuca_cena_artikala|konachna_cena|currently_active_submenu|promena_kolichine_u_korpi|cart_kolichina|999|provera_unosa_kolicine'.split('|'),0,{}))
        
eval(function(p,a,c,k,e,r){e=function(c){return c.toString(36)};if('0'.replace(0,e)==0){while(c--)r[e(c)]=k[c];k=[function(e){return r[e]||e}];e=function(){return'[0b-h]'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('g sub_menu(){$(".sub_articles a").click(g(){$(\'.h\').0(\'h\');$(this).b(\'h\')})}g tabs_pocetno_stanje(a){$(\'.c\').0().b(\'d\');if(a!=99){switch(a){e 1:$("#home").0("d").b(\'c\');f;e 2:$("#fische").0("d").b(\'c\');f;e 3:$("#zucht").0("d").b(\'c\');f;e 4:$("#aquaristik").0("d").b(\'c\');f;e 5:$("#aquarien").0("d").b(\'c\');f;e 6:$("#cichliden").0("d").b(\'c\');f;e 7:$("#news").0("d").b(\'c\');f;e 8:$("#uber_uns").0("d").b(\'c\');f;e 9:$("#kontakt").0("d").b(\'c\');f}}};',[],18,'removeClass|||||||||||addClass|tab_on|tab_off|case|break|function|sub_article_on'.split('|'),0,{}))
        
eval(function(p,a,c,k,e,r){e=function(c){return(c<62?'':e(parseInt(c/62)))+((c=c%62)>35?String.fromCharCode(c+29):c.toString(36))};if('0'.replace(0,e)==0){while(c--)r[e(c)]=k[c];k=[function(e){return r[e]||e}];e=function(){return'[3-9f-zA-K]'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('3 activate_on_click(){$(".n").p(3(){$(\'.q\').9().o(\'n\');$(this).9("n").o(\'q\')})};3 z(){$.r("korpa_prihvat.f?action=initiate",3(a){$("#4").5();6 b=a.split(\'/\');6 c=b[0];6 d=b[1];$("#tekuci_broj_artikala").7(c);$("#tekuca_cena_artikala").7(d)})};3 pokreni_standardno_logovanje(){6 b=$("#g").8();6 c=$("#s").8();$("#4").h();$.A("login.f",{t:b,B:c},3(a){i(a==\'u:2 B problem\'){$("#g").j("k","l m #v");$("#s").j("k","l m C").w();$("#4").5()}x i(a==\'u:1 user does not exist\'){$("#g").j("k","l m C").w();$("#4").5()}x{$("#g").j("k","l m #v");$("#s").j("k","l m #v");$("#4").5();$("#D").5();$("#prijava").9("logovanje_left").9("E").o("E");$("#logout").h();$("#dobrodoshli a").7(a);$("#login_registracija").5();z();$("#currently_active_menu").8(0);window.location.reload()}})}3 posalji_lozinku(){$("#4").h();$.r("loginerror.f",3(c){$("#4").5();$("#D").5();6 d=$(c).F("#G").7();$("#y").7(d);6 e=$("#g").8();$("#H").8(e).w();$("#send_pass").p(3(){6 b=$("#H").8();$("#4").h();$.A("send_password.f",{t:b},3(a){$("#4").5();i(a!=\'data sent!\')$("#I").7("There was an u executing request! Please check i Your t is valid");x $("#I").7("Requested email should arrive shortly!")})})})}3 J(c){$("#y").empty();$(\'.q\').9().o(\'n\');$("#4").h();$.r("J.f",3(a){6 b=$(a).F("#G").7();$("#y").7(b);$("#4").5();$("#K").p(3(){K();return false});i(c==1)$("#registracija_dugme").8("Zahlung");validacija_forma_za_registraciju(c)})}',[],47,'|||function|loading|hide|var|html|val|removeClass||||||php|login_username|show|if|css|border|1px|solid|tab_off|addClass|click|tab_on|get|login_password|username|error|03507C|select|else|main_action|osvezavanje_male_korpe|post|password|red|logovanje|logovanje_right|find|sadrzaj|email_vergessen|request_result|registracija|terms_and_conditions'.split('|'),0,{}))
        
function validacija_forma_za_registraciju(mode)
        {
                                    $("#registracija55").validate({
                                rules: {
                                    firstname: "required",
                                    email: {
                                        required: true,
                                        email: true
                                    },
                                    password: {
                                        required: true,
                                        minlength: 5
                                    },
                                    password_check: {
                                        required: true,
                                        minlength: 5,
                                        equalTo: "#password"
                                    },
                                    lastname: "required",
                                    address: "required",
                                    city: "required",
                                    poshtanski_broj: "required",
                                    country: "required",
                                    polje_telefon: "required", 
                                    agree: "required"
                                },
                                messages: {
                                    firstname: "<div>Please enter your firstname</div>",
                                    lastname: "<div>Please enter your lastname</div>", 
                                    address: "<div>Please enter your address</div>", 
                                    city: "<div>Please enter your city</div>", 
                                    poshtanski_broj: "<div>Please enter your zip</div>", 
                                    country: "<div>Please enter your country</div>", 
                                    polje_telefon: "<div>Please enter your telephone number</div>", 
                                    password: {
                                        required: "<div>Please provide a password</div>",
                                        minlength: "<div>Your password must be at least 5 characters long</div>"
                                    },
                                    password_check: {
                                        required: "<div>Please provide a password</div>",
                                        minlength: "<div>Your password must be at least 5 characters long</div>",
                                        equalTo: "<div>Please enter the same password as above</div>"
                                    },
                                    email: "<div>Please enter a valid email address</div>", 
                                    agree: "<div>You must accept terms and conditions</div>"
                                },   
                                submitHandler: function(form) {
                                var options = {
                                beforeSubmit:  function()
                                                    {
                                                        $("#loading").show();
                                                    },
                               success: function (data)
                                                               {
                                                                $("#loading").hide();
                                                                $("#logovanje").hide();
                                                                $("#prijava").removeClass("logovanje_left").removeClass("logovanje_right").addClass("logovanje_right");
                                                               pokreni_odgovor_na_registraciju(data, mode);
                                                            }
                                        
                                }
                                
                                $(form).ajaxSubmit(options);
                                           }
                                });
        }
        
eval(function(p,a,c,k,e,r){e=function(c){return(c<62?'':e(parseInt(c/62)))+((c=c%62)>35?String.fromCharCode(c+29):c.toString(36))};if('0'.replace(0,e)==0){while(c--)r[e(c)]=k[c];k=[function(e){return r[e]||e}];e=function(){return'([679i-qs-zA-DF-Z]|[12]\\w)'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('6 pokreni_odgovor_na_registraciju(c,d){o(c==\'D already in use!\'){$("#1e").n()}q{$("#logout").n();$("#1e").l();$("#dobrodoshli a").9(c);$("#login_registracija").l();1f();o(d==1){$("#7").n();$.m("zavrsetak.j",6(a){$("#7").l();i b=$(a).L("#X").9();$("#k").9(b);1f()})}q{$("#currently_active_menu").s(0);window.location.reload()}}}6 call_home(){$(\'.1g\').O().A(\'1h\');$("#Y").O(\'1h\').A(\'1g\');$("#k").Z();$("#7").n();$.m("Y.j",6(a){$("#k").9(a);1i();1j();p();$("#7").l()});$.m("1k.j",6(a){$("#menu_left").9(a);$("#1k").A(\'article_on\');menu_reattach();menu()})};6 call_home_no_menu(){$("#k").Z();$("#7").n();$.m("Y.j",6(a){$("#k").9(a);1i();1j();p();$("#7").l()})};6 pokreni_artikal(a,b){M(a){t 1:1l(b);u;t 2:1m(b);u;t 3:1n(b);u}}6 1l(b){$("#7").n();$.m("fish.j?B="+b,6(a){$("#k").9(a);$("#7").l();11();$("#7").l();$("#fish_kupovina tr:even").A(\'kupovina_even\');izbornik_fish_eltern();izbornik_fish_size();naruci_link();p()})};6 1m(b){$("#7").n();$.m("aquariums.j?B="+b,6(a){$("#k").9(a);aq_korpa_link();p();$("#7").l()})};6 1n(d){$("#7").n();$.m("aquaristik_details.j?B="+d,6(c){$("#k").9(c);$(".korpica").y(6(){i a=$(F).v("1o");i b=$(".korpa_kolichina").s();1p(a,3,b);13 G});11();$("#7").l()})};6 fish_video_gallery(c){$.m("fish_vids.j?fish_id="+c,6(a){i b=$(a).L("#X").9();$("#k").9(b);1q("a.player","1r/1q-3.0.3.1r",{clip:{autoPlay:G}})})};6 prikazi_vest_sa_home(c,d){$("#7").n();o(c==null)c=\'\';o(d<\'1\'){$.m("news.j?B="+c,6(a){i b=$(a).L("#1s").9();$("#k").9(b);p();$("#7").l()})}q{$.m("site_updates.j?B="+c,6(a){i b=$(a).L("#1s").9();$("#k").9(b);p();$("#7").l()})}}6 fische_start_page(){$("#7").n();$.m("stockliste.j",6(a){$("#k").9(a);p();$("#7").l()})}6 stocklist_ribe(b,c){i d="P.j";M(b){t 1:d="P.j?origin="+c;u;t 2:d="P.j?size="+c;u;t 3:d="P.j?eltern="+c;u;t 4:d="lwelse.j";u}$("#7").n();$.m(d,6(a){$("#k").9(a);p();$("#7").l();o(b<4){riba_lista_hover();lista_riba_korpa()}q{l_welse_hover();lwelse_korpa()}})};6 1t(b){M(b){t 0:$("#7").n();$.m("1t.j",6(a){$("#k").9(a);$("#7").l();p()});u;t 1:$("#7").n();$.m("zucht_fishe.j",6(a){$("#k").9(a);$("#7").l();zucht_fish_list_hover();p()});u;t 2:$("#7").n();$.m("zuchtanlage.j",6(a){$("#k").9(a);$("#7").l()});u;t 3:$("#7").n();$.m("zuchtziel.j",6(a){$("#k").9(a);$("#7").l()});u}};6 14(b){i c=H(b);o(b==0){$("#7").n();$.m("14.j",6(a){$("#7").l();$("#k").9(a);p();1u()})}q{$("#7").n();$.m("14.j?br="+c,6(a){$("#7").l();$("#k").9(a);p();1u()})}}6 aquarien(b){i c=H(b);o(b==0){$("#7").n();$.m("1v.j",6(a){$("#7").l();$("#k").9(a);$(".lista_akvarijuma tbody tr:odd").A(\'aq_list_even\');1w();p()})}q{$("#7").n();$.m("1v.j?1x="+c,6(a){$("#7").l();$("#k").9(a);1w();p()})}}6 1y(b){i c=H(b);o(b==0){$("#7").n();$.m("cichliden_start.j",6(a){$("#7").l();$("#k").9(a);p()})}q{$("#7").n();$.m("1y.j?B="+c,6(a){$("#7").l();$("#k").9(a);p()})}}6 1z(b){i b=H(b);M(b){t 0:$("#7").n();$.m("1z.j",6(a){$("#7").l();$("#k").9(a);p()});u;t 1:$("#7").n();$.m("zucht_name.j",6(a){$("#7").l();$("#k").9(a);p()});u;t 2:$("#7").n();$.m("zucht_logo.j",6(a){$("#7").l();$("#k").9(a);p()});u}};6 1A(b){i b=H(b);M(b){t 0:$("#7").n();$.m("1A.j",6(a){$("#7").l();$("#k").9(a);1B();p()});u;t 1:$("#7").n();$.m("mapa.j",6(a){$("#k").9(a);1C();$("#7").l()});u}};6 1C(){$(\'#1D\').1E(\'init\',{\'mapType\':\'hybrid\',\'mapCenter\':[47.1F,8.1G],\'mapZoom\':17,\'mapEnableType\':\'1H\'});$(\'#1D\').1E(\'AddMarker\',{\'pointLatLng\':[47.1F,8.1G],\'pointHTML\':\'<1I><1J color="#273F5C">Callistus Cichliden</1J></1I>\'})};6 1B(){$("#kontakt_submit").y(6(){i b=$("#1K").s();i c=$("#D").s();i d=$("#1L").s();i e=$("#kontakt_comment").s();o(b==\'\')w(\'Q x 1M\');q o(c==\'\')w(\'Q x E-R\');q o(d==\'\')w(\'Q x E-R-Titel\');q o(e==\'\')w(\'Q x E-R-Text\');q $.1N("comment_submit.j",{1K:b,D:c,1L:d,body:e},6(a){w(\'1O\')});13 G})};6 1P(){$("#k").Z();$("#7").n();$.m("1P.j",6(h){$("#k").9(h);p();$("#7").l();$("#placanje").y(6(){registracija(1)});$("#nastavak_kupovine").y(6(){history.back()});$(".lupa").cluetip({tracking:1H,cluezIndex:22222,showTitle:G,width:300,height:\'auto\',topOffset:-10,leftOffset:0,positionBy:\'mouse\',shadow:G});$(".ukloni 15").y(6(){i e=$(F).v("1o");i f=$(F).v("tip");$.m("1p.j?action=obrisi&B="+e+"&1x="+f,6(a){i b=a.split(\'/\');i c=b[0];i d=b[1];$("#tekuci_broj_artikala").9(c);$("#tekuca_cena_artikala").9(d);$("#konachna_cena").9(d)});$(F).1Q().1Q().1R();i g=$("#1S"+f).next("tr").v("16");o(g!=\'proizvod_kategorije\')$("#1S"+f).1R()});11()})}6 uslovi(){$("#7").n();$.m("lieferbedingung.j",6(a){$("#k").9(a);$("#7").l()})}6 1T(){$("#7").n();$.m("1T.j",6(a){$("#k").9(a);$("#7").l();1U();$("#18").autogrow();1V()})};6 1V(){$("#guest_submit").y(6(){i b=$("#S").s();i c=$("#19").s();i d=$("#D").s();i e=$("#T").s();i f=$("#18").s();i g=$("#C").9();i g=H(g);$.1N("guestbook_prihvat.j",{S:b,19:c,D:d,T:e,1W:f,ocena:g},6(a){o(a==\'grade our site!\'){w("N bewerten x unsere Website")}q o(a==\'U:0 invalid mail format\'){w("N V x gültige E-R")}q o(a==\'U:1 S 1a\'){w("N V x Ihren 1M")}q o(a==\'U:2 T 1a\'){w("N V x Name der Stadt")}q o(a==\'U:3 1W 1a\'){w("N V x Kommentar")}q{w("1O, ist Ihre Anmerkung für Zustimmung eingereicht worden.");$("#S").s(\'\');$("#19").s(\'\');$("#D").s(\'\');$("#T").s(\'\');$("#18").s(\'\')}})})};6 1U(){$(".1X 15").hover(6(){i a=$("#C").9();$("#1Y").s(a);i b=$(F).v(\'1Z\');$("#C").9(b+\'.0\');1b(i c=5;c>=1;c--){i d=\'#zv\'+c;o(c>b){$(d).v(\'I\',\'J/1d.K\')}q{$(d).v(\'I\',\'J/z.K\')}}},6(){1b(i a=5;a>=1;a--){i b=\'#zv\'+a;i c=$(b).v(\'16\');o(c==\'z\'){$(b).v(\'I\',\'J/z.K\')}q{$(b).v(\'I\',\'J/1d.K\')}}o($("#C").is(\'.W\')){$("#C").O(\'W\')}q{i d=$("#1Y").s();$("#C").9(d)}});$(".1X 15").y(6(){i a=$(F).v(\'1Z\');$("#C").A(\'W\');$(".W").9(a+\'.0\');1b(i b=5;b>=1;b--){i c=\'#zv\'+b;o(b>a){$(c).v(\'I\',\'J/1d.K\');i d=$(c).v(\'16\');o(d==\'\')d=1;o(d=="z"){$(c).O(\'z\')}}q{$(c).v(\'I\',\'J/z.K\');o(d!="z"){$(c).A(\'z\')}}}})}6 dileri(){$("#7").n();$.m("dealer.j",6(a){i b=$(a).L("#X").9();$("#k").9(b);$("#7").l();$("#20").y(6(){20();13 G});validacija_forma_za_dilere()})};',[],125,'||||||function|loading||html|||||||||var|php|main_action|hide|get|show|if|history_reattach|else||val|case|break|attr|alert|Sie|click|star_blue|addClass|id|vasha_ocena|email||this|false|parseInt|src|images|png|find|switch|Bitte|removeClass|ribe_list|Geben|Mail|name|wohnort|error|geben|kliknuta_ocena|sadrzaj|home|empty||promena_kolichine_u_korpi||return|aquaristik|img|class||guest_comment|homepage|missing|for||star_0_0|username_not_available|osvezavanje_male_korpe|tab_on|tab_off|homepage_hover|news_even|menu_home|fish_details_page_display|pokreni_aquarium_details|pokreni_aquaristik_details|link|korpa_prihvat|flowplayer|swf|spisak|zucht|acc_lista_korpa|aquariums_list|aktiviraj_korpu_aquariums_list|type|cichliden|uber_uns|kontakt|aktiviraj_kontakt_stranu|gmaps|map1|jmap|582178|214908|true|strong|font|ime|subject|Namen|post|Danke|korpa|parent|remove|kategorija_|guestbook|bojenje_zvezdica|aktiviraj_guestbook|comment|ocena_zvezdice|skrivena_ocena|alt|terms_and_conditions_d'.split('|'),0,{}))
    
function validacija_forma_za_dilere()
    {
                                $("#registracija55").validate({
                                rules: {
                                    firstname: "required",
                                    email: {
                                        required: true,
                                        email: true
                                    },
                                    password: {
                                        required: true,
                                        minlength: 5
                                    },
                                    password_check: {
                                        required: true,
                                        minlength: 5,
                                        equalTo: "#password"
                                    },
                                    lastname: "required",
                                    address: "required",
                                    city: "required",
                                    poshtanski_broj: "required",
                                    country: "required",
                                    polje_telefon: "required", 
                                    firma: "required",
                                    agree: "required"
                                },
                                messages: {
                                    firstname: "<div>Please enter your firstname</div>",
                                    lastname: "<div>Please enter your lastname</div>", 
                                    address: "<div>Please enter your address</div>", 
                                    city: "<div>Please enter your city</div>", 
                                    poshtanski_broj: "<div>Please enter your zip</div>", 
                                    country: "<div>Please enter your country</div>", 
                                    polje_telefon: "<div>Please enter your telephone number</div>",
                                    firma: "<div>Please enter your company name</div>", 
                                    password: {
                                        required: "<div>Please provide a password</div>",
                                        minlength: "<div>Your password must be at least 5 characters long</div>"
                                    },
                                    password_check: {
                                        required: "<div>Please provide a password</div>",
                                        minlength: "<div>Your password must be at least 5 characters long</div>",
                                        equalTo: "<div>Please enter the same password as above</div>"
                                    },
                                    email: "<div>Please enter a valid email address</div>", 
                                    agree: "<div>You must accept terms and conditions</div>"
                                },   
                                submitHandler: function(form) {
                                var options = {
                                beforeSubmit:  function()
                                                    {
                                                        $("#loading").show();
                                                    },
                               success: function (data)
                                                               {
                                                                $("#loading").hide();
                                                                zavrsi_dilera(data);
                                                            }
                                        
                                }
                                
                                $(form).ajaxSubmit(options);
                                           }
                                });

    };
    
eval(function(p,a,c,k,e,r){e=String;if('0'.replace(0,e)==0){while(c--)r[e(c)]=k[c];k=[function(e){return r[e]||e}];e=function(){return'[0-4]'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('0 zavrsi_dilera(a){1(a==\'email already in use!\'){$("#username_not_available").2()}3 1(a==\'changed!\'){call_home()}3{$("#4").2();$.get("obavestenje_za_dilere.php",0(b){$("#main_action").html(b);$("#4").hide()})}};',[],5,'function|if|show|else|loading'.split('|'),0,{}))
    
eval(function(p,a,c,k,e,r){e=String;if('0'.replace(0,e)==0){while(c--)r[e(c)]=k[c];k=[function(e){return r[e]||e}];e=function(){return'[0-8]'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('0 links(){$("#1").3();$("#2").empty();$.4("promote.5",0(a){$("#2").6(a);$("#1").7()})};0 8(){$("#1").3();$.4("8.5",0(a){$("#2").6(a);$("#1").7();$("#impressum_table_two tbody tr:even").addClass(\'impessum_odd\')})};0 suche(b){$("#1").3();$(".pretraga_po_chemu").val(b);$.4("search.5?pretraga="+b,0(a){if(a==\'\')a="Keine Ergebnisse gefunden";$("#2").6(a);$("#1").7();history_reattach()})}',[],9,'function|loading|main_action|show|get|php|html|hide|impressum'.split('|'),0,{}))
        
eval(function(p,a,c,k,e,r){e=function(c){return(c<62?'':e(parseInt(c/62)))+((c=c%62)>35?String.fromCharCode(c+29):c.toString(36))};if('0'.replace(0,e)==0){while(c--)r[e(c)]=k[c];k=[function(e){return r[e]||e}];e=function(){return'[7-9k-zA-R]'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('m pageload(e){o(e){l c=explode(\'/\',e);l f=t(c[0]);l d=t(c[1]);l g=t(c[2]);l h=t(c[3]);l i=c[4];l a=c[5];l j=c[6];o(f==u)n;o(d==u)n;o(g==u)n;o(h==u)n;podesi_meni_levo(f,d,g);tabs_pocetno_stanje(h);switch(i){7\'fish_details\':v(1,a);8;7\'aquarium_details\':v(2,a);8;7\'aquaristics_details\':v(3,a);8;7\'foto-G\':$.get("foto_gallery.php?fish_id="+a,m(b){$("#p").html(b)});8;7\'video-G\':fish_video_gallery(a);8;7\'news\':prikazi_vest_sa_home(a,d);8;7\'home\':call_home_no_menu();8;7\'fische_int\':fische_start_page();8;7\'q\':r(0,0);8;7\'q-herkunftsort\':r(1,a);8;7\'q-groesse\':r(2,a);8;7\'q-eltern\':r(3,a);8;7\'q-lwelse\':r(4,0);8;7\'s\':s(0);8;7\'zuchtfische\':s(1);8;7\'zuchtanlage\':s(2);8;7\'zuchtziel\':s(3);8;7\'H\':H(a);8;7\'I\':I(a);8;7\'J\':J(a);8;7\'uber-uns\':uber_uns(a);8;7\'K\':K(a);8;7\'warenkorb\':korpa();8;7\'registrieren\':registracija(a);8;7\'Lieferbedingung\':uslovi();8;7\'L\':L();8;7\'haendler\':dileri();8;7\'M\':M();8;7\'N\':N();8;7\'O\':O(a);8}}else{call_home()}};m history_tracking(){$("a[@9=\'k\'], w[@9=\'k\'], x[@9=\'k\'], P[@9=\'k\'], input[@9=\'k\']").y(m(){l b=$(z).A("B");b=b.C(/^.*#/,\'\');Q.R=b;$.D(b);n E})};m history_reattach(){$("#p a[@9=\'k\'], #p w[@9=\'k\'], #p x[@9=\'k\'], #p P[@9=\'k\']").y(m(){l b=$(z).A("B");b=b.C(/^.*#/,\'\');Q.R=b;$.D(b);n E})};m menu_reattach(){$("#F a[@9=\'k\'], #F w[@9=\'k\'], #F x[@9=\'k\']").y(m(){l b=$(z).A("B");b=b.C(/^.*#/,\'\');$.D(b);n E})};',[],54,'|||||||case|break|rel|||||||||||history|var|function|return|if|main_action|stockliste|stocklist_ribe|zucht|parseInt|null|pokreni_artikal|img|div|click|this|attr|href|replace|historyLoad|false|menu_left|gallery|aquaristik|aquarien|cichliden|kontakt|guestbook|links|impressum|suche|span|location|hash'.split('|'),0,{}))
        

//////////////////////////////////////// ON DOM READY /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
$(document).ready(function()
{

$("#show_info").click(function()
    {
        about();
        return false;
    });
    
$("#currently_active_menu").val(99);
    
$('#bookmarken').click(function()
                {
                addToFavorites('http://www.callistus-cichliden.ch', 'Callistus Cichliden');
                    return false;   
                });

$('.Seite_bookmarken').click(function()
                {
                    var thash = location.hash;
                    thash = thash.replace(/^.*#/, '');
                    var defaulturl = $('#bookmarken').attr("href");
                    var burl = defaulturl + '#' + thash;
                    addToFavorites(burl, 'Callistus Cichliden')
                    return false;   
                });


$('#make_homepage').click(function() {
$.setHomepage('http://www.callistus-cichliden.ch');
});

$(".pretraga_dugme").click(function()
        {
                    var search_string = $(".pretraga_po_chemu").val();
                    var hash = "1/99/99/99/suche/" + search_string + "/";
                    location.hash = hash; 
                    $.historyLoad(hash);
                
        return false;
        });
        
$(".pretraga_po_chemu").bind("keypress", function(e) {
                                       var key = e.charCode || e.keyCode || 0;
                                       if (key == 13) 
                                       {
                                       var search_string = $(".pretraga_po_chemu").val();
                                        var hash = "1/99/99/99/suche/" + search_string + "/";
                                        location.hash = hash; 
                                        $.historyLoad(hash);
                                       return false;
                                       }
                                       });
                                       

    $.historyInit(pageload);
    history_tracking();
    
    $("#logovanje_dugme").click(function()
            {
            pokreni_standardno_logovanje();
            return false;
            });
            
    $(".logovanje_forma").bind("keypress", function(e) {
                                       var key = e.charCode || e.keyCode || 0;
                                       if (key == 13) pokreni_standardno_logovanje();
    });
    
    $("#pass_ret").click(function()
            {
                posalji_lozinku();
                return false;
            });  

    $("#logout").click(function()
        {
            $("#loading").show();
            $.get("logout.php", function()
                {
                  $("#loading").hide();
                  $("#dobrodoshli a").html("Gast");
                  $("#logout").hide();
                  $("#login_registracija").show();
                  osvezavanje_male_korpe();
                  $("#currently_active_menu").val(0);
                  //location.hash="#1/0/0/1/home/0/0";
                  window.location.reload();        
                  //call_home();
                });
            return false;
        });
        
    /*$("#dobrodoshli a").click(function()
        {
          registracija(0);
          return false;
        });*/
        
    /*$("#desni_deo").click(function()
        {
          registracija(1);
          return false;
        });*/

    $("#levi_deo").corners("13px top-left");
    $("#desni_deo").corners("13px bottom-right");
    
    $("#english_flag").fadeTo(1, 0.5);
    
    $("#english_flag").click(function()
                                         {
                                             $("#german_flag").fadeTo(200, 0.4);
                                             $("#english_flag").fadeTo(200, 1);
                                             var tekuci_hash = location.hash;
                                             var tekuca_lokacija = location.href.toUpperCase();
                                             var count = tekuca_lokacija.indexOf('/ENG/');
                                             if (count == -1) self.location.href="eng/index.php" + tekuci_hash;
                                         });
    $("#german_flag").click(function()
                                         {
                                             $("#english_flag").fadeTo(200, 0.4);
                                             $("#german_flag").fadeTo(200, 1);
                                             var tekuci_hash = location.hash;
                                             var tekuca_lokacija = location.href.toUpperCase();
                                             var count = tekuca_lokacija.indexOf('/ENG/');
                                             if (count != -1) 
                                                {
                                                    var nova_lokacija = str_replace('/ENG/', '/', tekuca_lokacija);
                                                    nova_lokacija = nova_lokacija.toLowerCase();
                                                    self.location.href = nova_lokacija;
                                                };
                                         });
    
    $("#logovanje").corners('6px bottom');
    
    $("#prijava .login").click(function()
                                                {
                                                    $("#logovanje").slideToggle(200);
                                                    return false;
                                                });
    
    /*$("#prijava .register").click(function()
                                           {
                                               registracija(0);
                                               return false;
                                           });*/
    
    $("#home").corners("5px bottom");
    
    $("#fische").corners("5px bottom");
    
    $("#zucht").corners("5px bottom");
    
    $("#aquaristik").corners("5px bottom");
    
    $("#aquarien").corners("5px bottom");
    
    $("#cichliden").corners("5px bottom");
    
    $("#news").corners("5px bottom");
    
    $("#uber_uns").corners("5px bottom");
    
    $("#kontakt").corners("5px bottom");
    
    
    /*$("#levi_deo img").click(function()
                                      {
                                         korpa();
                                         
                                      }); */
    
    $("#desni_tab img").hover(function()
                                   {
                                       $(this).fadeTo(200, 0.6);
                                   },
                              function()
                                   {
                                       $(this).fadeTo(200, 1);
                                   });
    
    $("#main_action").empty();
    
    $("#menu_left").empty();
    
    activate_on_click(); // aktivacija tabova
    
    //korpica pocetak
    
// velika korpa pocetak
    
    $.get("korpa_prihvat.php?action=initiate", function(data)
                    {
                    $("#loading").hide();
                        var return_value = data.split('/');
                        var kolicina = return_value[0];
                        var cena = return_value[1];
                    
                        $("#tekuci_broj_artikala").html(kolicina);
                        $("#tekuca_cena_artikala").html(cena);
                        
                    });
    

});
