var item_list = new Array();
$(document).ready(function(){

	
	if (item_list.length)
	{
		
		for (var i=0; i < item_list.length; i++)
		{
			$('.email-'+i).each(function(index, obj){
				var tmp_href = $(this).attr("href");
				$(this).attr("href",'mailto:'+item_list[i].a+'@'+item_list[i].b+tmp_href)
				if ($(this).html() == "")
					$(this).html(item_list[i].a+'@'+item_list[i].b)
			});		
		}
	}
	
	if ($("#slides").size())
	{
		$("#slides").slides({
			play: 5000,
			pause: 2500,
			slideSpeed: 600,
			generateNextPrev: false,
			hoverPause: true,
			pagination:false
		});
	}
	
	if ($('#first-p-only').size())
	{
		var cnt_p = 0;
		$('#first-p-only .item p').each(function(index, obj){
			if (cnt_p > 0)
				$(this).css("margin-top","1.12em");
			cnt_p++;
		});		
	}
	
	if ($('span').size())
	{
		if ($('span').attr("style"))
		{
			var tmp_style = $('span').attr("style").replace("text-decoration:underline","border-bottom:1px solid white");
			$('span').attr("style",tmp_style)
		}
	}	
	
	if ($('.films-rest').size())
	{
		$('.films-rest').mouseenter(function() {

			$(this).find('.thumb-bw').hide();
			$(this).find('.thumb-color').show();			
		});
		
		$('.films-rest').mouseleave(function() {
			$(this).find('.thumb-bw').show();
			$(this).find('.thumb-color').hide();			
		});
		
	}

});
