jQuery.noConflict();
jQuery(document).ready(function() {
	jQuery('#hide-nav').click(function() {
		jQuery('#nav').slideUp('slow', function() { jQuery('#nav2').show() });
		return false;
	});

	jQuery('#show-nav').click(function() {
		jQuery('#nav2').hide();
		jQuery('#nav').slideDown('slow');
		return false;
	});
});

function loadChangeCommunityLogo()
{
    if(document.getElementById('community_logo_id'))
      var timer=setInterval("changeCommunityLogo()", 1000);
}

function changeCommunityLogo(url)
{
     //change le logo
     if(document.getElementById('community_logo_id').style.display=='none')
     {
        document.getElementById('community_logo_id').style.display = 'block';
        document.getElementById('community_logo2_id').style.display = 'none';
     }
     else
     {
        document.getElementById('community_logo_id').style.display = 'none';
        document.getElementById('community_logo2_id').style.display = 'block';
     }
}

var killSearch = function (location) {
	jQuery.ajax({
		   type: "GET",
		   url: location + "/categories/killsearch",
		   success: function(msg){
				window.location.replace(location);
     		}
	});
	return false;
}

