// $Id$
if (typeof(sik) == 'undefined') { var sik = {}; }

sik.kid_reporter = function(){
	// thickbox properties
	var width = 365, height = 515, inline_id_prefix = 'sifk_kid_reporter_bio', modal = 'true', scrolling = 'no';
	
	return {
		load : function(){
			$('.thickbox_bio').each(function(index, domElement){
				// setup each bio anchor with the proper properties for the thickbox by iterating through each one
				$(this).attr('href','#TB_inline?width=' + width + '&height=' + height + '&inlineId=' + inline_id_prefix + (index + 1) + '&modal=' + modal + '&scrolling=' + scrolling);
			});
			$('.thickbox_headshot').each(function(index, domElement){
				// setup each headshot anchor with the proper properties for the thickbox by iterating through each one
				$(this).attr('href','#TB_inline?width=' + width + '&height=' + height + '&inlineId=' + inline_id_prefix + (index + 1) + '&modal=' + modal + '&scrolling=' + scrolling);
			});
			// set close buttons to close thickbox on click
			$('.bio > a').click(function(){ tb_remove(); return false; });
		}
	};
}();

$(document).ready(function(){
	sik.kid_reporter.load();
});
