
function comments(id) {
	$.ajax({
		type: "GET",
		url: "get-comments.php",
		data: 'id=' + id,
		cache: false,
		success: function (html) {
			if (html) {
				$("#profile_blog_entries").html(html);
			}
		}
	});
}


function gallery(uid,num) {
	image = 'resources/baby/photo/' + uid + '-' + num + '.jpg';
	$(".profile_photos_hero img").attr({ 
    	src: image
    });
}

$(document).ready(function() {
	
	$("input.file").filestyle({
		image: "images/btnBrowse.gif",
		imageheight : 19,
		imagewidth : 62,
		width : 108
	});

		
	/* Button Hover Effect */
	$('.buttons .top').hover(function() {
		
		menuTop = $(this).offset().top + $(this).height();

		menuLeft = $('#topNav .buttons').offset().left + $('#topNav .buttons .back').width() + 2;
		overClass = $(this).find('a').attr('rel') + 'Over';
		
		
		$('div.' + $(this).find('a').attr('rel')).css({'top': menuTop,'left': menuLeft});

		$(this).children('a').addClass(overClass);

		$('div.' + $(this).find('a').attr('rel')).removeClass('hideMenu');
	},
	
	function () {
		$(this).children('a').removeClass(overClass);
		$('div.' + $(this).find('a').attr('rel')).addClass('hideMenu');
	}).click(function () {
		$(this).children('a').removeClass(overClass);
		$('div.' + $(this).find('a').attr('rel')).addClass('hideMenu');	
	});


	/* Submenu hover effect */
	$('.second li').hover(function() {

		$(this).addClass('hover');

	},
	function () {
		
		$(this).removeClass('hover');
		
	});
	
	
	
});



function loadPage(page, landing) {

return false;
	
}








