/**
 * @author _nec
 */
function max(a, b){
	return (a>b)?a:b;
}
function getRandomInt(min, max)
{
  return Math.floor(Math.random() * (max - min + 1)) + min;
}


var Site = function(){
	
	$(document).ready(function(){
		Site.initialize();
	});

	
	return {
		
		initialize: function(){
			



			
			
/**
 * cim korrigalas
 */					
			$('.blocktext, div#Headline p, div#Title h2 a, div#Headline span.date strong,div#Title span.date strong').each(function(){
				$(this).html(
				jQuery.map(
					jQuery.trim( $(this).html()).split(' '),
					function(element, index){
						return ['<b>',element,'</b>'].join('');
					}).join('')				
				)
			})
			





/**
 * 
 */
			$('div#Media h3 a').hover(
				function(){					
					$(this).find('span').stop().animate({
						top: 0
					},'fast').end().siblings('span').find('b').stop().animate({
						opacity: .4						
					},'fast')					
				},
				function(){
					$(this).find('span').stop().animate({
						top: -85
					},'slow').end().siblings('span').find('b').stop().animate({
						opacity: 1						
					},'slow')
				}
			)


		}
	}
}();
