var $jQuery = jQuery.noConflict();
$jQuery(function() { 
	
	// Modal popup
	$jQuery("#image_gallery a").fancybox({
		'titleShow'		: true,
		'titlePosition'	: 'inside',
		'overlayOpacity': 0.75,
		'overlayColor'	: '#000',
		'transitionIn'	: 'fade',
		'transitionOut'	: 'fade',
		'cyclic'			: true,
		'autoScale'		: true,
		'titleFormat'       : function(title, currentArray, currentIndex, currentOpts) {
		    return '<span class="gallery_image_count">' + (currentIndex + 1) + ' / ' + currentArray.length + '</span>' + title;
		}
	});
	
	
	// Target listing bigtarget
	$jQuery("#target_list td.target_list_photo a").bigTarget({
		hoverClass: 'over'
	});
	
	
	// UUSI stripe
	$jQuery('.home #content .thumb-apartment').append('<div class="stripe"></div>');
	
	
	// Stripes
	$jQuery('table.target_info_list tr:nth-child(odd), table#target_list tr:nth-child(odd)').addClass("odd");
	
	// Image gallery - home
	$jQuery('#photo_carousel').cycle({
		timeout	: 5000
	});
	
	// Image gallery
	$jQuery('#image_gallery').cycle({
		pause	: true,
		prev		: '#prev',
		next		: '#next'
	});
	// Prev + Next hover
	$jQuery('#prev, #next').hover(function() {
		$jQuery(this).addClass('hover');
	}, function() {
		$jQuery(this).removeClass('hover');
	});
	
	
	/* Add hover class
    $jQuery('table.target_info_list tr').hover(function() {
		$jQuery(this).addClass('hover');
	}, function() {
		$jQuery(this).removeClass('hover');
	});*/

});

