/**
* Adjust diagram links so that they are ready for thickbox actions
* @author Sunil Jolly
* @version 1
**/
var DiagramPopUpCreator = function() {

	//initThickBox here instead of cwa.thickbox.js due to ie6 bug		
	function initThickBox() {
		tb_init('a.thickbox, area.thickbox, input.thickbox');//pass where to apply thickbox
		imgLoader = new Image();// preload image
		imgLoader.src = tb_pathToImage;	
	}

	return {

		init : function () {
			$("#map-knowing-the-learner").attr("href", "#TB_inline?height=300&width=300&inlineId=info-knowing-the-learner");
			$("#map-knowing-the-demands").attr("href", "#TB_inline?height=300&width=300&inlineId=info-knowing-the-demands");
			$("#map-knowing-what-to-do").attr("href", "#TB_inline?height=300&width=300&inlineId=info-knowing-what-to-do");				
			$("#info-knowing-the-learner").css("display", "none");			
			$("#info-knowing-what-to-do").css("display", "none");			
			$("#info-knowing-the-demands").css("display", "none");
			initThickBox();
		}
		
	};
	
}();