

$(document).ready(function() {

	$(".tab > div").hide();
	$(".tabDefault").show();
	//
	var tabIndex = $(".tab > div");
	var tabNum = $(tabIndex).length-1;
	//
	$(".tablist > li > a").click(function() {
		var targetID = $(this).attr("href");
		for (i=0; i<=tabNum; i++) {
			$(tabIndex[i]).hide();
		}
		$(targetID).show();
		return false;
	});
	
	$("#container1").pwi({
        username: 'cocodestuff',
        maxResults: 5,
		popupExt: function(photos){ photos.fancybox(); }
    });

    $("#container2").pwi({
        username: 'cocodestuff',
		maxResults: 9,
		mode: 'latest',
		thumbSize: 160,
        mode: 'latest',
		popupExt: function(photos){ photos.fancybox(); }
	});

	$("#container3").pwi({
        username: 'cocodestuff',
		mode: 'album',
		album: 'cocode_photo',
		thumbSize: 160,
		maxResults: 15,
		albumMaxResults: 5,
		showAlbumDescription: true,
		showSlideshowLink: false,
		popupExt: function(photos){ photos.fancybox(); }
	});//*/
});
