//var myAjax = new Ajax('http://glh.ruggle.tar/photoalbum/action/ajax_get_category_list', {method: 'get'}).request();
/*var imgCount = 0;
var addImage = function(container, image) {
	var el     = new Element('div', {'class': 'preview'});
	var name   = new Element('h3').setHTML(++imgCount +'. '+ image.name).injectInside(el);
	var desc   = new Element('span').setHTML(image.description).injectAfter(name);
	var img    = new Element('img', {'src': '/demos/Chain.Periodical/img/' + image.src}).injectAfter(desc);
	var footer = new Element('span').injectAfter(img);
	if (image.views > 250) footer.setHTML('Super Popular!').addClass('SUPERpopular');
    else if (image.views > 50) footer.setHTML('Popular').addClass('popular');
	else footer.addClass('normal');
	el.injectTop($(container));	
}*/

function hideBodyHeader()
{
	var bodyHeader = $('body-header');
	var fx = new Fx.Styles(bodyHeader, {
			duration: 1000,
			wait: true,
			transition: Fx.Transitions.Expo.easeOut
		});
		fx.start({
			'height': 0,
			'opacity': [0, 0]
		});
}

function hideHeader()
{
	var header = $('header');
	var fx = new Fx.Styles(header, {
			duration: 1000,
			wait: true,
			transition: Fx.Transitions.Expo.easeOut
		});
		fx.start({
			'height': (header.getStyle('height').toInt() == 105 ? 0 : 105),
			'opacity': (header.getStyle('height').toInt() == 105 ? [0, 0] : 1)
		});
}
