var slogan = function(wrap)
{
	str = wrap.find('div').text();
	if( str != '' )
	{
		var size = { w : wrap.width() , h : wrap.height() };
		txt = wrap.find('div'); txt.hide();
		wrap.css({ width : 0, height : size.h, overflow : 'hidden', opacity : 0.8 });
		wrap.animate({ width : size.w } , 'slow', function(){ txt.fadeIn('slow'); });
	}
	else
	{
		wrap.hide();
	}
}
$(function(){
	slogan($('#content_slogan'));
	slogan($('.intro-slogan'));
});
