window.addEvent('domready', function(){
    $$('a[href='+window.location.pathname+']').addClass('active');
    window.location.pathname.split("/").each(function(e){
        try{
            document.getElementById('menu_'+e).addClass('active');
        }
        catch(e){}
    })
    var main_acco = new Accordion(
        $$('h2.acco_head'),
        $$('div.acco_cont'),
        {
            display:-1,
            alwaysHide:true
        });
    var menu_active=-1;
    $$('#left_menu .acco_cont').each(function(e,i){
        if(e.getElement('a').hasClass('active')){
            menu_active=i;
        }
    })
    var menu_acco = new Accordion(
        $$('#left_menu .acco_head'),
        $$('#left_menu .acco_cont'),
        {
            display:menu_active,
            alwaysHide:true
        });
    if($('formcheck'))
        var formcheck = new FormCheck('form1', {
            display: {
                errorsLocation: 1,
                showErrors: 1,
                titlesInsteadNames: 0,
                indicateErrors: 2,
                indicateErrorsInit: 0,
                keepFocusOnError: 1,
                checkValueIfEmpty: 1
            }
        });
    ReMooz.assign('a.photo', {
        'origin': 'img',
        'cutOut': false
    });
})

