$().ready(function() {
$('div.illustration').each(function() {
$(this).addClass('maxIllustration');
});
$('div.illustration a img').each(function() {
$src = $(this).addClass('bigImg').attr('src');
$medium = $('#ix-cat .Cat[src="'+$src+'"]').eq(0).attr('title');
$title = $('#ix-cat .Cat[src="'+$src+'"]').eq(0).attr('alt');
$(this).attr('src', $medium).attr('title', $title);
});
$('.thumbnailCategories li').addClass('Juza-cat');
$('.description li').removeClass('Juza-cat');
$('.thumbnailCategory div.description').addClass('Juza-desc');
$('td.JS_active').show();
$nav = $('#content .navigationBar').html();
if ($nav == null) $nav = '';
$('#content .navigationBar').hide();
$('div.titrePage h2').after('
'+$nav);
$reltag = $('#menubar #mbTags').html();
if ($reltag == null) $reltag = '';
$reltag = '' + $reltag + '
';
$('#copyright').before('' + $reltag + '
');
$('span.wrap2 a img').click(function() {
$href = $(this).parent('a').attr('href');
$alt = $(this).attr('alt');
$(this).parent('h3 a').attr('href', '#Juza-Thumbs');
$temp = $href.substr($href.indexOf('/')+1);
$temp = $temp.substr(0,$temp.indexOf('/'));
$title = $('#ix-desc .Thumb-'+$temp).attr('title');
$src = $('#ix-desc .Medium-'+$temp).attr('title');
$('#jquery_local_img').fadeOut("slow").replaceWith(''+ $title +' -
Index' + $reltag + '
').fadeIn("slow");
$(this).hover(function() { },function() {
$(this).parent('h3 a').eq(0).attr('href', $href);
});
});
if ($reltag == '') $('#jquery_local_img').hide();
$('.thumbnailCategory .description h3 a').each(function() {
$cat_url = $(this).attr('href');
$cat_tree = $('#menu-cat ul li a[href="'+$cat_url+'"]').next('.menuInfoCatByChild').next().html();
if ($cat_tree == null) $cat_tree = '';
$(this).parent('h3').eq(0).next('.text').after('');
});
$('a.Juza_menu').click(function() {
$('#menubar').toggleClass('displayed');
});
var $c = $('#Juza_call').html();
$('#menubar a[href*="admin.php"]').parent('li').eq(0).after(''+$c+'');
$('#menubar form#Juza_action input.Juza_conf').hide();
$('#menubar form#Juza_action').hide();
$('#menubar a.Juza_conf').show();
$('a.Juza_conf').click(function(){
$('#menubar').toggleClass('displayed');
$('#JuzaBox').fadeIn('fast');
if($('body').height() > $('body').offset().height){
var sH = $('body').height();
}else{
var sH = $('body').offset().height;
}
$('#JuzaShade').css( {height:sH+'px'}).css('z-index',9998).fadeIn('fast');
$('#JuzaCloseBox').click(function(){
$('#JuzaBox').fadeOut('fast');
$('#JuzaShade').fadeOut('fast').css('z-index',-9998);
});
});
});