Home = {
	
	
	
	init : function( bg_filename ) {

        $('div.recent-work-title').bind('mouseover', function(e)
        {
            $(this).find('h1').css('color', '#44C8F5');
        });

        $('div.recent-work-title').bind('mouseout', function(e)
        {
            $(this).find('h1').css('color', '#fff');
        });

		Site.loadBackgroundImage('/site_media/img/home_backgrounds/'+bg_filename);
		
		//iPad checks
		var isiPad = false;
		navigator.userAgent.indexOf("iPad") != -1 ? isiPad = true : isiPad = false;
		if (isiPad)
		{
			$('#recent-work-container').css({
				'bottom' : '120px',
				'left' : '100px'
			})			
		}
		
		// Setup links
		
		$(".recent-work-row").bind('click', function(e)
		{
			var url = $(this).attr('rel');
			window.location.href = url;			
		});


		
	},

    mobileInit : function()
    {
        $('div.project-row').bind('click', function(e)
		{
			var url   = $(this).attr('rel');
			window.location.href = url;
		});
    }
	
}
