var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
try {
var pageTracker = _gat._getTracker("UA-4477008-2");
pageTracker._trackPageview();
} catch(err) {}

/**
* Find a member
*/
function find_username(url)
{
	popup(url, 760, 570, '_usersearch');
	return false;
}

/**
* New function for handling multiple calls to window.onload and window.unload by pentapenguin
*/
window.onload = function()
{
	for (var i = 0; i < onload_functions.length; i++)
	{
		eval(onload_functions[i]);
	}
}

window.onunload = function()
{
	for (var i = 0; i < onunload_functions.length; i++)
	{
		eval(onunload_functions[i]);
	}
}

function showGifs(type)
{
    
   	if(type)
   	{
		var url = './posting.php?mode=smilies&f=3';
   	}
	else
	{
		url = '/html/images/gifs/a.htm';
	}
    Modalbox.show(url, {title: 'Les gifs', 
							width: 1015, 
							height: 500, 
							overlayOpacity:0,
							overlayClose:false,
							autoFocusing: true, 							 
							slideDownDuration:0.7,
							slideUpDuration:0.5
							}
					);
}
function showGif(img)
{
	
	var name = img.name;
	img.name = img.src;
	img.src = name;
}

function showGifsCategorie(div)
{
	$$('div.categories_gifs div').each(function(div_cat)
		{
			$('gifs_'+div_cat.id).hide();
			div_cat.removeClassName('selected');
		}
	);
	$('gifs_'+div.id).show();
	div.addClassName('selected');
}
