var box = 1;
function changeObj( num ) {
	$('#box'+box).css({display:'none'});
	$('#box'+num).css({display:'block'});

    box = num;
}

var desc = 1;
function changeDesc( num ) {
	$('#desc'+desc).css({display:'none'});
	$('#desc'+desc+'tab').removeClass('actual');

    $('#desc'+num).css({display:'block'});
	$('#desc'+num+'tab').addClass('actual');

    desc = num;
}


function catTreeCloseAll() {
    $('#catTree div:not(.keepOpen)').css({'display':'none'});
}

function catTreeOpen( id, parent ) {
    if ( typeof parent == 'undefined' ) {
        parent = 'glex';
    }

    $('#catTree div:visible').not('#catTree_'+parent+', #catTree_'+parent+' div').slideUp('fast');
    $('#catTree_'+id).slideDown('fast');
}

function calcEuroPrice( price ) {
    return (parseInt(price) / euroRate).toFixed(2);
}

function changeIPP( obj, url, order ){
	window.location = url+obj.value+'/'+order;
}

function changePO( url, order ){
	window.location = url+order;
}
