// JavaScript Document

YAHOO.namespace("TGN.container");

function showCamillaDuchessOfCornwall() {
	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("modalCamillaDuchessOfCornwall",  
												{ 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 showMadonna() {
	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("modalMadonna",  
												{ 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 showCelineDion() {
	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("modalCelineDion",  
												{ 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 showDrouin() {
	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("modalDrouin",  
												{ 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 showSSModal1() {
	if (!YAHOO.TGN.container.modal5) {
		// Initialize the temporary Panel to display while waiting for external content to load
		YAHOO.TGN.container.modal5 = 
				new YAHOO.widget.Panel("rebeccaCardinal",  
												{ fixedcenter: true, 
												  close: true, 
												  draggable: false, 
												  modal: true,
												  zindex: 4,
												  visible: false
												} 
											);    
		YAHOO.TGN.container.modal5.render(document.body);
	}   
	// Show the Panel
	YAHOO.TGN.container.modal5.show();       
}

function showSSModal2() {
	if (!YAHOO.TGN.container.modal6) {
		// Initialize the temporary Panel to display while waiting for external content to load
		YAHOO.TGN.container.modal6 = 
				new YAHOO.widget.Panel("loriEnglish",  
												{ fixedcenter: true, 
												  close: true, 
												  draggable: false, 
												  modal: true,
												  zindex: 4,
												  visible: false
												} 
											);    
		YAHOO.TGN.container.modal6.render(document.body);
	}   
	// Show the Panel
	YAHOO.TGN.container.modal6.show();       
}

function showSSModal3() {
	if (!YAHOO.TGN.container.modal7) {
		// Initialize the temporary Panel to display while waiting for external content to load
		YAHOO.TGN.container.modal7 = 
				new YAHOO.widget.Panel("francesLaChance",  
												{ fixedcenter: true, 
												  close: true, 
												  draggable: false, 
												  modal: true,
												  zindex: 4,
												  visible: false
												} 
											);    
		YAHOO.TGN.container.modal7.render(document.body);
	}   
	// Show the Panel
	YAHOO.TGN.container.modal7.show();       
}

function showSSModal4() {
	if (!YAHOO.TGN.container.modal8) {
		// Initialize the temporary Panel to display while waiting for external content to load
		YAHOO.TGN.container.modal8 = 
				new YAHOO.widget.Panel("kimberlyRose",  
												{ fixedcenter: true, 
												  close: true, 
												  draggable: false, 
												  modal: true,
												  zindex: 4,
												  visible: false
												} 
											);    
		YAHOO.TGN.container.modal8.render(document.body);
	}   
	// Show the Panel
	YAHOO.TGN.container.modal8.show();       
}

YAHOO.util.Event.on("camillaDuchessOfCornwall", "click", showCamillaDuchessOfCornwall);
YAHOO.util.Event.on("madonna", "click", showMadonna);
YAHOO.util.Event.on("celineDion", "click", showCelineDion);
YAHOO.util.Event.on("toggleDrouin", "click", showDrouin);
YAHOO.util.Event.on("ssModal1", "click", showSSModal1);
YAHOO.util.Event.on("ssModal2", "click", showSSModal2);
YAHOO.util.Event.on("ssModal3", "click", showSSModal3);
YAHOO.util.Event.on("ssModal4", "click", showSSModal4);