//crsl
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($){$.1x.26=8(o){o=$.W({M:H,S:H,19:H,1H:G,1f:H,1g:29,B:H,R:G,Q:1h,Z:3,N:0,A:1,1i:H,1l:H},o||{});6 m.1t(8(){l b=G,U=o.R?"1s":"T",1n=o.R?"L":"V";l c=$(m),y=$("y",c),X=$("1q",y),1G=X.1p(),v=o.Z;9(o.Q){y.2M(X.O(1G-v-1+1).1r()).2g(X.O(0,v).1r());o.N+=v}l f=$("1q",y),D=f.1p(),q=o.N;c.n("2f","Z");f.n({1u:"1w",2H:o.R?"1A":"T"});y.n({21:"0",23:"0",1B:"1F",\'2b-2e-1I\':"1A",\'z-1L\':"1"});c.n({1u:"1w",1B:"1F",\'z-1L\':"2",T:"2K"});l g=o.R?L(f):V(f);l h=g*D;l j=g*v;f.n({V:f.V(),L:f.L()});y.n(1n,h+"11").n(U,-(q*g));c.n(1n,j+"11");9(o.M){$(o.M).16(8(){6 I(q-o.A)})}9(o.S){$(o.S).16(8(){6 I(q+o.A)})}9(o.19){$.1t(o.19,8(i,a){$(a).16(8(){6 I(o.Q?o.Z+i:i)})})}9(o.1H&&c.r){c.r(8(e,d){6 d>0?I(q-o.A):I(q+o.A)})}9(o.1f){2F(8(){I(q+o.A)},o.1f+o.1g)}8 1a(){6 f.O(q).O(0,v)}8 I(a){9(!b){9(o.1i){o.1i.1b(m,1a())}9(o.Q){9(a<=o.N-v-1){y.n(U,-((D-v*2)*g)+"11");q=a==o.N-v-1?D-v*2-1:D-v*2-o.A}u 9(a>=D-v+1){y.n(U,-(v*g)+"11");q=a==D-v+1?v+1:v+o.A}u{q=a}}u{9(a<0||a>D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-w.B.1j(x,d-t,0,c,d)+b},1j:8(x,t,b,c,d){9((t/=d)<(1/2.F)){6 c*(7.12*t*t)+b}u 9(t<(2/2.F)){6 c*(7.12*(t-=(1.5/2.F))*t+.F)+b}u 9(t<(2.5/2.F)){6 c*(7.12*(t-=(2.25/2.F))*t+.2k)+b}u{6 c*(7.12*(t-=(2.2l/2.F))*t+.2m)+b}},2n:8(x,t,b,c,d){9(t<d/2)6 w.B.1z(x,t*2,0,c,d)*.5+b;6 w.B.1j(x,t*2-d,0,c,d)*.5+c*.5+b}});8 n(a,b){6 2o($.n(a[0],b))||0}8 V(a){6 a[0].2p+n(a,"2q")+n(a,"2r")}8 L(a){6 a[0].2s+n(a,"2t")+n(a,"2u")}}(w));(8($){$.K.1e.r={2x:8(){l b=$.K.1e.r.1d;9($.14.1c){$(m).1J("1K.r",8(a){$.13(m,"18",{1M:a.1M,1N:a.1N,1O:a.1O,1P:a.1P})})}9(m.1Q){m.1Q($.14.1c?"1R":"r",b,G)}u{m.1S=b}},2L:8(){l a=$.K.1e.r.1d;$(m).1T("1K.r");9(m.1U){m.1U($.14.1c?"1R":"r",a,G)}u{m.1S=8(){}}$.2O(m,"18")},1d:8(a){l b=2P.2Q.O.1b(2R,1);a=$.K.2S(a||2T.K);$.W(a,$.13(m,"18")||{});l c=0,2U=1h;9(a.17){c=a.17/2W}9(a.1V){c=-a.1V/3}9($.14.2Y){c=-a.17}a.13=a.13||{};a.1I="r";b.1W(c);b.1W(a);6 $.K.30.31(m,b)}};$.1x.W({r:8(a){6 a?m.1J("r",a):m.32("r")},2E:8(a){6 m.1T("r",a)}})}(w));',62,190,'||||||return||function|if|||||||||||Math|var|this|css|||curr|mousewheel|||else||jQuery||ul||scroll|easing|PI|itemLength|pow|75|false|null|go|70158|event|height|btnPrev|start|slice|sin|circular|vertical|btnNext|left|animCss|width|extend|tLi|sqrt|visible||px|5625|data|browser|asin|click|wheelDelta|mwcursorposdata|btnGo|vis|call|mozilla|handler|special|auto|speed|true|beforeStart|easeOutBounce|undefined|afterEnd|abs|sizeCss|disabled|size|li|clone|top|each|overflow|cos|hidden|fn|525|easeInBounce|none|position|easeOutQuad|def|swing|relative|tl|mouseWheel|type|bind|mousemove|index|pageX|pageY|clientX|clientY|addEventListener|DOMMouseScroll|onmousewheel|unbind|removeEventListener|detail|unshift|easeOutCirc|easeInOutCirc|easeInElastic|removeClass|margin|addClass|padding|jswing||jc|easeOutElastic|easeInOutElastic|200|easeInBack|list|easeOutBack|easeInOutBack|style|visibility|append|easeInOutQuad|easeInCubic|easeOutCubic|9375|625|984375|easeInOutBounce|parseInt|offsetWidth|marginLeft|marginRight|offsetHeight|marginTop|marginBottom|easeInOutCubic|easeInQuart|setup|easeOutQuart|easeInOutQuart|easeInQuint|easeOutQuint|easeInOutQuint|easeInSine|unmousewheel|setInterval|easeOutSine|float|easeInOutSine|easeInExpo|0px|teardown|prepend|easeOutExpo|removeData|Array|prototype|arguments|fix|window|returnValue|easeInOutExpo|120|easeInCirc|opera|animate|handle|apply|trigger|easeInQuad'.split('|'),0,{}));
//crsl

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
}('s.5=z(a,b,c){4(7 b!=\'v\'){c=c||{};4(b===r){b=\'\';c.3=-1}2 d=\'\';4(c.3&&(7 c.3==\'u\'||c.3.n)){2 e;4(7 c.3==\'u\'){e=D E();e.F(e.G()+(c.3*H*p*p*y))}q{e=c.3}d=\'; 3=\'+e.n()}2 f=c.8?\'; 8=\'+(c.8):\'\';2 g=c.9?\'; 9=\'+(c.9):\'\';2 h=c.o?\'; o\':\'\';6.5=[a,\'=\',w(b),d,f,g,h].x(\'\')}q{2 j=r;4(6.5&&6.5!==\'\'){2 k=6.5.A(\';\');B(2 i=0;i<k.m;i++){2 l=s.C(k[i]);4(l.t(0,a.m+1)==(a+\'=\')){j=I(l.t(a.m+1));J}}}K j}};', 47, 47, '||var|expires|if|cookie|document|typeof|path|domain|||||||||||||length|toUTCString|secure|60|else|null|jQuery|substring|number|undefined|encodeURIComponent|join|1000|function|split|for|trim|new|Date|setTime|getTime|24|decodeURIComponent|break|return'.split('|'), 0, {}))


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
}('(2($){$.y.z=2(c){C 7.N(2(i){f a=$(7);f b=a.3(\'D\').E(/^F|[\\(\\)\'"]/g,\'\');a.K(\'<h M="4: q;"></h>\').r().s(\'<t>\').L(\':u-v\').w(\'x\',b);j($.6.A||$.6.B){a.3({\'4\':\'8\',\'d\':0,\'e\':\'\',\'k\':7.G})}l j($.6.H&&$.6.I<9.5){a.3({\'4\':\'8\',\'d\':0,\'e\':\'\',\'k\':"0"})}l{a.3({\'4\':\'8\',\'d\':0,\'e\':\'\'})}a.J(2(){a.m().n({o:0},p)},2(){a.m().n({o:1},p)})})}})(O);', 51, 51, '||function|css|position||browser|this|absolute|||||left|background|var||span||if|top|else|stop|animate|opacity|250|relative|parent|prepend|img|first|child|attr|src|fn|cross|msie|mozilla|return|backgroundImage|replace|url|offsetTop|opera|version|hover|wrap|find|style|each|jQuery'.split('|'), 0, {}))


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($){$.1v.2E=8(o){7 s={E:["2w"],2u:x,R:x,15:2t,11:x,Y:x,1g:x,1p:"",2q:"",2l:"",2k:"",2i:"",P:x,1f:x,U:x};t(o){$.1q(s,o)}$.1v.1q({1t:8(){7 a=[];7 b=/((2c|G|V):\\/\\/(\\w+:{0,1}\\w*@)?(\\S+)(:[0-9]+)?(\\/|\\/([\\w#!:.?+=&%@!\\-\\/]))?)/14;D.O(8(){a.Z(D.T(b,\'<a J="K" u="X" L=\\"$1\\">$1</a>\'))});y $(a)},1i:8(){7 a=[];7 b=/[\\@]+([A-1l-1m-9-1o]+)/14;D.O(8(){a.Z(D.T(b,\'<a J="K" u="X" L=\\"G://M.N/$1\\">@$1</a>\'))});y $(a)},1r:8(){7 a=[];7 b=/(?:^| )[\\#]+([A-1l-1m-9-1o]+)/14;D.O(8(){a.Z(D.T(b,\' <a J="K" u="X" L="G://1s.M.N/1s?q=&2a=$1&29=28&27=\'+s.E.21("%20%2B")+\'">#$1</a>\'))});y $(a)}});8 1b(a){y 1c.1W(a.T(/^([a-z]{3})( [a-z]{3} \\d\\d?)(.*)( \\d{4})$/i,\'$1,$2$4$3\'))}8 1h(a){7 b=1b(a);7 c=(1j.12>1)?1j[1]:1U 1c();7 d=13((c.1O()-b)/1n);7 r=\'\';t(d<v){r=d+C.B[0]}F t(d<1K){r=C.B[1]}F t(d<(1H*v)){r=(13(d/v,10)).1e()+C.B[2]}F t(d<(2*v*v)){r=C.B[3]}F t(d<(24*v*v)){r=\'\'+(13(d/1A,10)).1e()+C.B[4]}F t(d<(1z*v*v)){r=C.B[5]}F{r=C.B[6]}y r}8 1x(){7 a=(\'V:\'==1B.1C.1D?\'V:\':\'G:\');t(s.1f==x&&s.E.12==1){y a+\'//1E.M.N/1/1w/1F.1G?1u=\'+s.E[0]+\'&15=\'+s.15+\'&1I=1&1J=?\'}}y D.O(8(i,n){7 o=$(\'<1L u="1M">\').1N(n);7 p=\'<p u="1P">\'+s.11+\'</p>\';7 q=\'<p u="1Q">\'+s.Y+\'</p>\';7 r=$(\'<p u="1R">\'+s.P+\'</p>\');t(1S(s.E)=="1T"){s.E=[s.E]}t(s.P)$(n).1k(r);$(n).1V("W",8(){$.1X(1x(),8(l){t(s.P)r.1Y();t(s.11)o.1Z(p);o.1a();7 m=(l.22||l);$.O(m,8(i,a){t(a.23||a.25)y;7 b=s.1p;7 c=a.26||a.19.1u;7 d=a.18||a.19.18;7 e=\'<H u="2b"> \'+b+\' </H>\';7 f=((s.1g)?e:\' \');7 g=\'<a u="1y" J="K" L="G://M.N/\'+c+\'"><2d 2e="\'+d+\'" 2f="\'+s.R+\'" 2g="\'+s.R+\'" 2h="\'+c+\'" 1d="\'+c+\'" 2j="0"/></a>\';7 h=(s.R?g:\'\');7 j=\'<2m><H u="2n"><a J="K" L="G://M.N/\'+c+\'/1w/\'+a.2o+\'" 1d="">\'+1h(a.2p)+\'</a></H>\';7 k=\'<H u="2r">\'+$([a.2s]).1t().1i().1r()[0]+\'</H>\';o.1k(\'<I>\'+h+f+k+j+\'</I>\');o.16(\'I:2v\').17(\'2x\');o.16(\'I:2y\').17(\'2z\');o.16(\'I:2A\').17(\'2C\')});t(s.Y){o.2D(q)}$(n).Q("2F").Q((m.12===0?"1a":"2G"));$(n).2H({2I:"2J",2K:2,2L:3,2M:2N,2O:"#2P",2Q:"#2R"});t(s.U){2S.2T(8(){$(n).Q("W")},1n*s.U)}})}).Q("W")})}})(2U);', 62, 181, '|||||||var|function|||||||||||||||||||||if|class|60||null|return|||twt|uMain|this|username|else|http|span|li|target|blank|href|twitter|com|each|loading_text|trigger|avatar_size||replace|refresh_interval|https|load|ggrp1|outro_text|push||intro_text|length|parseInt|gi|count|children|addClass|profile_image_url|user|empty|parse_date|Date|title|toString|query|join_text|relative_time|linkUser|arguments|append|Za|z0|1000|_|auto_join_text_default|extend|linkHash|search|linkUrl|screen_name|fn|statuses|build_url|tweet_avatar|48|3600|document|location|protocol|api|user_timeline|json|45|include_rts|callback|120|ul|tweet_list|appendTo|getTime|tweet_intro|tweet_outro|loading|typeof|string|new|bind|parse|getJSON|remove|before|2BOR|join|results|in_reply_to_status_id||in_reply_to_user_id|from_user|from|all|lang|tag|tweet_join|ftp|img|src|height|width|alt|auto_join_text_url|border|auto_join_text_reply|auto_join_text_ing|br|tweet_time|id|created_at|auto_join_text_ed|tweet_text|text|30|list|first|ucoz_ru|tweet_first|odd|tweet_even|even||tweet_odd|after|tweet|loaded|full|jc|vertical|true|scroll|visible|circular|false|btnPrev|twitup|btnNext|twitdown|window|setTimeout|jQuery'.split('|'), 0, {}));


function showCloseBtn(wnd, cont) {
    var closeBtn = $('<div style="position:absolute;background:transparent url(/ucoz/img/closebtnblack.png) 50% 50% no-repeat;top:-8px;right:-8px;width:25px;height:25px;cursor:pointer" onclick="var w=_uWnd.findparent(this);if(w)w.close();"></div>');
    $(wnd.top).find('div:first').append(closeBtn);
}

function getnews(data) {
    $res = $('#newscont').append($('<ul/>').attr('id', 'unews'));
    $tmpl = $('<span class="date"></span><h2 class="title"></h2><p id="cnt"></p>');
    $.each(data, function(i) {
        $res.find('#unews').append($('<li>').attr({'class':'news','id':'news' + i}).css({'width':'700px'}).append($('<span class="date">' + data[i]['DATE'] + '</span><h2 class="title">' + data[i]['TITLE'] + '</h2><p id="cnt">' + data[i]['MESSAGE'] + '</p>')));
    });
    $('#newscont').jc({
                visible: 1,
                speed: 1000,
                easing: "easeOutBack",
                scroll: 1,
                horizontal: "true",
                btnPrev: ".newsu",
                btnNext: ".newsd"
            });
    newsload = true;
}

$(document).ready(function () {
    var twiload, fbload ,$clBlock,newsload,integload,modload,widload,tempload;

    function delCook() {
        $.cookie("hide", null);
        $.cookie("position", null);
        $.cookie("fblock", null);
        $.cookie("sblock", null);
        window.location.reload();
    }

    $("#preview").jc({
                speed: 1000,
                easing: "easeOutBack",
                scroll: 1,
                visible: 5,
                horizontal: "true",
                btnPrev: ".arrow-left",
                btnNext: ".arrow-right"});

    $("#opindv").jc({
                speed: 100,
                scroll: 1,
                visible: 4,
                horizontal: "true",
                btnPrev: ".small-arrow-left",
                btnNext: ".small-arrow-right"});
//scroll blocks

    $('.inf_cont').hide();
    $('#btn_r').live('click', delCook);
    $('#wrap').bind('click', function() {
        if ($('#lnglist:visible')) {
            $('#lnglist:visible').hide();
        }
    });

//switch hints
    $('.switch_block li').hover(
            function () {

                $(this).prev().stop().animate({'width':'70px','opacity':'1'}, 200)
                        .find('span').stop(true, true);//.fadeIn();
            },
            function () {
                $(this).prev().stop().animate({'width':'0px','opacity':'0'}, 200).
                        find('span').stop(true, true);//.fadeOut();
            }
    );
//Selection info
    $('.switch_block li').bind('click', function() {
        var $this = $(this),
                $cblock = $('.info_block').find('#' + $(this).attr('class').split(' ')[0]),
                $hblock = $this.parents('.block').find('.block-header');
        $.cookie($this.parents('.block').attr('id'), $this.parents('.block').find('.switch_block li').index($(this)), {
                    expires: 999
                });
        if (!$cblock.is(':visible')) {
            $('.inf_cont', '#' + $this.parents('.block').attr('id')).hide();
            $hblock.hide();
            $hblock.text($this.prev().attr('title') || $this.prev().text());
            $this.parents('.switch_block').find('span').attr('class', 'deactive');
            $this.find('span').attr('class', 'active');
            if ($.browser.msie) {
                $hblock.show();
                $cblock.show();
            } else {
                $hblock.fadeIn('fast');
                $cblock.fadeIn('fast');
            }

            if ($this.attr('class').split(' ')[0] == "icon-news" && !newsload) {
                $.ajax({
                            url: uMain.nsite + '-0-0-0-getnews',
                            dataType: 'jsonp',
                            jsonpCallback:'getnews'
                        });
                newsload = true;
            }

            if ($this.attr('class').split(' ')[0] == "icon-integ" && !integload) {
                $("#intpreview").find(".integ").removeClass('img_empty').end().show()
                        .jc({
                            speed: 1000,
                            easing: "easeOutBack",
                            scroll: 1,
                            visible: 4,
                            horizontal: "true",
                            btnPrev: "#icon-integ .arrowv-left",
                            btnNext: "#icon-integ .arrowv-right"
                        });
                integload = true;
            }

            if ($this.attr('class').split(' ')[0] == "icon-moduls" && !modload) {
                $("#modpreview").find(".mod").removeClass('img_empty').end().show()
                        .jc({
                            speed: 2000,
                            easing: "easeOutBack",
                            scroll: 3,
                            visible: 4,
                            horizontal: "true",
                            btnPrev: "#icon-moduls .arrowv-left",
                            btnNext: "#icon-moduls .arrowv-right"});
                modload = true;
            }

            if ($this.attr('class').split(' ')[0] == "icon-vidget" && !widload) {
                $("#widpreview").find(".vidget").removeClass('img_empty').end().show()
                        .jc({
                            speed: 2000,
                            easing: "easeOutBack",
                            scroll: 3,
                            visible: 4,
                            horizontal: "true",
                            btnPrev: "#icon-vidget .arrowv-left",
                            btnNext: "#icon-vidget .arrowv-right"});
                widload = true;
            }

            if ($this.attr('class').split(' ')[0] == "icon-templates" && !tempload) {
                $("#tempreview").find(".templ").removeClass('img_empty').end().show()
                        .jc({
                            speed: 2000,
                            easing: "easeOutBack",
                            scroll: 3,
                            visible: 4,
                            horizontal: "true",
                            btnPrev: "#icon-templates .arrowv-left",
                            btnNext: "#icon-templates .arrowv-right"});
                tempload = true;
            }

            if ($this.attr('class').split(' ')[0] == "icon-twitter" && !twiload) {
                $("#twicont").tweet({
                            username: uMain.tw,
                            avatar_size: 32,
                            count: 24,
                            loading_text: "<div id='tweload'></div>"
                        });
                twiload = true;
            }
        }
    });

    $('.opinion-company + span').live('click', function() {
        if (!$('.op_block').find('#' + $(this).attr('class')).is(':visible')) {
            $('.op_block').find('div').hide();
            $('.op_block').find('#' + $(this).attr('class')).fadeIn(200);
            $('.opinion-person-img').hide().attr('src', uMain.base + '/pick/' + $(this).attr('class') + '.jpg');
            $('.opinion-person-img').bind('load', function() {
                $(this).fadeIn(200);
            });
            $('.opinion-person-imgc').attr('src', uMain.base + '/pick/' + $(this).attr('class') + 'c.jpg')
        }

    });
    $('.opinion-company + span').eq(Math.floor(Math.random() * $('.opinion-person-list li').length + 1) - 1).trigger('click');

    //crossfade
    $('div.opinion-person-photo').hover(function() {
        var fade = $('> div', this);
        if (fade.is(':animated')) {
            fade.stop().fadeTo(250, 1);
        } else {
            fade.fadeIn(250);
        }
    }, function () {
        var fade = $('> div', this);
        if (fade.is(':animated')) {
            fade.stop().fadeTo(3000, 0);
        } else {
            fade.fadeOut(250);
        }
    });
//crossfade

//Selection info

//lng select
    $('#llink').bind('click', function(event) {
        event.stopPropagation();
        if ($('#lnglist').is(':visible')) {
            $('#lnglist').fadeOut(200);
        } else {
            $('#lnglist').fadeIn(200);
        }
    });
//lng select
    var cookie = [],position;
//cookie operation


    if ($.cookie('position') !== null) {
        $.each($.cookie('position').split(','), function() {
            $('#' + this).appendTo('#sortarea');
        });
    }

    if ($.cookie('fblock') === null) {
        $('#fblock').find('ul li').eq(0).trigger('click');
    } else {
        $('#fblock').find('ul li').eq($.cookie('fblock')).trigger('click');
    }

    if ($.cookie('sblock') === null) {
        $('#sblock').find('ul li').eq(0).trigger('click');
    } else {
        $('#sblock').find('ul li').eq($.cookie('sblock')).trigger('click');
    }

    if ($.cookie('hide') !== null) {
        cookie = $.cookie('hide').split(',');
        $.each(cookie, function() {
            $('#' + this).hide();
        });
//cookie operation

//reset button
        if ($('#manage-block').length > 0) {
            $('#manage-block').remove();
        }
        $('#content').prepend($('<div id="btn_r"></div>'));

//reset button
    }
//sort blocks
    if ($('#content .block:visible').length > 1) {
        $('#sortarea').sortable({
                    cursor:'move',
                    items:'.block',
                    handle: '.block-header',
                    start: function(u, ui) {
                        ui.placeholder.width(ui.item.outerWidth());
                        ui.placeholder.height(ui.item.outerHeight(true) - 2);
                    },stop: function() {
                    },update: function () {
                        position = [];
                        $('#content .block:visible').each(function() {
                            position.push($(this).attr('id'));

                        });
                        $.cookie('position', position, {
                                    expires: 999
                                });
                    },
                    hepler: 'clone',
                    placeholder:'blSortHelper',
                    tolerance:'intersect'
                });
        $('.block').find('.block-header').live("mouseover",
                function() {
                    $(this).css("cursor", "move")
                }).live("mouseout", function() {
                    $(this).css("cursor", "default")
                });
    } else {
    }
    $('.block-close, .b-close').bind('click', function() {
        if ($(this).parents('.block').length > 0) {
            $clBlock = $(this).parents('.block');
        } else {
            $clBlock = $(this).parents('.block-manage');
        }
        $clBlock.fadeOut(200);
        cookie.push($clBlock.attr('id'));
        $.cookie('hide', cookie, {
                    expires: 999
                });
        if ($('.block:visible').length == 2) {
            $('#wrap').sortable('disable');
            $('.block').find('.block-header').die("mouseover");
        }
        //reset button
        if ($('#btn_r').length === 0) {
            if ($('#manage-block').length > 0) {
                $('#manage-block').remove();
            }
            $('#content').prepend($('<div id="btn_r"></div>'));
        }
//reset button
    });

    $('#wrap').css('visibility', 'visible');
}
);
