$(function() {
x = $('.main-content').get();
$('.main-head').prepend('');
for (i = 0; i < x.length; i++) {
x[i].id='cat_'+i;
if (my_getcookie(x[i].id)=='contracted') {
o = $('.main-head').get();
$(x[i]).hide();
$(o[i]).find('.tog-img')[0].src='https://i.servimg.com/u/f23/16/53/38/44/12910.png';
}
};
$('.tog-img').click(function() {
if ($(this).parent().next('.main-content').is(':visible')) {
$(this).parent().next('.main-content').slideUp('fast');
this.src='https://i.servimg.com/u/f23/16/53/38/44/12910.png';
my_setcookie($(this).parent().next('.main-content')[0].id, 'contracted');
}
else {
$(this).parent().next('.main-content').slideDown('fast');
this.src='https://i.servimg.com/u/f23/16/53/38/44/13010.png';
my_setcookie($(this).parent().next('.main-content')[0].id, null);
}
});
});
$(function() {
$('').load('profile?mode=editprofile&page_profil=avatars dd img', function() {
$(this).hide()
.appendTo('.user-avatar-js')
.fadeIn(1);
});
return false;
});