/**
 * @author Bizon
 */

$(window).load(function(){
	$('#content').fadeIn('slow', function(){
		if ($('.download-girls').length > 0)
			$('.download-girls').fadeIn('slow');
		
		if ($('.content-downloads .profile').length > 0)
			$('.content-downloads .profile').fadeIn('slow');
		
		
		if ($('.girl').length > 0)
		{
			$('.girls').fadeIn('slow');
			$('.download-girls').fadeIn('slow');
			
			if (!$('.download-girls').length > 0 && $('.scrollable').length > 0)
				$('.scrollable').jScrollPane();
			
			$('.hover-state').css({
				'left' : '0px',
				'display' : 'none'
			});
			$('.girl').mouseenter(function(){
				$(this).children('.hover-state').fadeIn('slow');
			});
			$('.girl').mouseleave(function(){
				$(this).children('.hover-state').fadeOut('slow');
			});
			
			if (typeof lady != "undefined")
			{
				if (lady)
				{
					$('.girl a').each(function(){
						if (this.id.indexOf(lady) > -1)
							$('#' + this.id).click();
					});
				}
			}
		};
	});
});

$(document).ready(function(){
	Cufon.replace('.universLt-bold', { fontFamily: 'Univers LT Std' });
	Cufon.replace('.universLt-light', { fontFamily: 'Univers LT Std' });
	/*Cufon.replace('a.universLt-bold', { hover: true });*/
});

