// JavaScript Document

YAHOO.namespace("TGN.container");
function init() {
	if (!YAHOO.TGN.container.modal1) {
		// Initialize the temporary Panel to display while waiting for external content to load
		YAHOO.TGN.container.modal1 = 
				new YAHOO.widget.Panel("modalTL",  
												{ fixedcenter: true, 
												  close: true, 
												  draggable: false, 
												  modal: true,
												  zindex: 4,
												  visible: false
												} 
											);    
		YAHOO.TGN.container.modal1.render(document.body);
	}   
	// Show the Panel
	YAHOO.TGN.container.modal1.show();       
}
function init2() {
	if (!YAHOO.TGN.container.modal2) {
		// Initialize the temporary Panel to display while waiting for external content to load
		YAHOO.TGN.container.modal2 = 
				new YAHOO.widget.Panel("modalTR",  
												{ fixedcenter: true, 
												  close: true, 
												  draggable: false, 
												  modal: true,
												  zindex: 4,
												  visible: false
												} 
											);    
		YAHOO.TGN.container.modal2.render(document.body);
	}   
	// Show the Panel
	YAHOO.TGN.container.modal2.show();       
}  
function init3() {
	if (!YAHOO.TGN.container.modal3) {
		// Initialize the temporary Panel to display while waiting for external content to load
		YAHOO.TGN.container.modal3 = 
				new YAHOO.widget.Panel("modalBL",  
												{ fixedcenter: true, 
												  close: true, 
												  draggable: false, 
												  modal: true,
												  zindex: 4,
												  visible: false
												} 
											);    
		YAHOO.TGN.container.modal3.render(document.body);
	}   
	// Show the Panel
	YAHOO.TGN.container.modal3.show();  
}
function init4() {
	if (!YAHOO.TGN.container.modal4) {
		// Initialize the temporary Panel to display while waiting for external content to load
		YAHOO.TGN.container.modal4 = 
				new YAHOO.widget.Panel("modalBR",  
												{ fixedcenter: true, 
												  close: true, 
												  draggable: false, 
												  modal: true,
												  zindex: 4,
												  visible: false
												} 
											);    
		YAHOO.TGN.container.modal4.render(document.body);
	}   
	// Show the Panel
	YAHOO.TGN.container.modal4.show();       
}
function init5() {
	if (!YAHOO.TGN.container.viewer) {
		// Initialize the temporary Panel to display while waiting for external content to load
		YAHOO.TGN.container.viewer = 
				new YAHOO.widget.Panel("modalSV",  
												{ fixedcenter: true, 
												  close: true, 
												  draggable: false, 
												  modal: true,
												  zindex: 4,
												  visible: false
												} 
											);    
		YAHOO.TGN.container.viewer.render(document.body);
	}   
	// Show the Panel
	YAHOO.TGN.container.viewer.show();       
}   

YAHOO.util.Event.on("enlargeTL", "click", init);
YAHOO.util.Event.on("enlargeTR", "click", init2);
YAHOO.util.Event.on("enlargeBL", "click", init3);
YAHOO.util.Event.on("enlargeBR", "click", init4);
YAHOO.util.Event.on("showSV", "click", init5);

