﻿//Declare the varibale name outside the function so it is global. 
var TabbedPanels1;
function InitPage()
{
	TabbedPanels1 = new Spry.Widget.TabbedPanels("TabbedPanels1");
	Spry.Utils.addEventListener("grandS", "click", function(){TabbedPanels1.showPanel(0);}, false);
	Spry.Utils.addEventListener("grandS", "focus", function(){this.style.color ='#e62119';}, false);
	Spry.Utils.addEventListener("grandS", "blur", function(){this.style.color ='#1a3399';}, false);

	Spry.Utils.addEventListener("midS", "click", function(){TabbedPanels1.showPanel(1);}, false);
	Spry.Utils.addEventListener("midS", "focus", function(){this.style.color ='#e62119';}, false);
	Spry.Utils.addEventListener("midS", "blur", function(){this.style.color ='#1a3399';}, false);

	Spry.Utils.addEventListener("S", "click", function(){TabbedPanels1.showPanel(2);}, false);
	Spry.Utils.addEventListener("S", "focus", function(){this.style.color ='#e62119';}, false);
	Spry.Utils.addEventListener("S", "blur", function(){this.style.color ='#1a3399';}, false);

	Spry.Utils.addEventListener("rdy", "click", function(){TabbedPanels1.showPanel(3);}, false);
	Spry.Utils.addEventListener("rdy", "focus", function(){this.style.color ='#e62119';}, false);
	Spry.Utils.addEventListener("rdy", "blur", function(){this.style.color ='#1a3399';}, false);

	Spry.Utils.addEventListener("op", "click", function(){TabbedPanels1.showPanel(4);}, false);
	Spry.Utils.addEventListener("op", "focus", function(){this.style.color ='#e62119';}, false);
	Spry.Utils.addEventListener("op", "blur", function(){this.style.color ='#1a3399';}, false);

	Spry.Utils.addEventListener("club", "click", function(){TabbedPanels1.showPanel(5);}, false);
	Spry.Utils.addEventListener("club", "focus", function(){this.style.color ='#e62119';}, false);
	Spry.Utils.addEventListener("club", "blur", function(){this.style.color ='#1a3399';}, false);

	Spry.Utils.addEventListener("sp", "click", function(){TabbedPanels1.showPanel(6);}, false);
	Spry.Utils.addEventListener("sp", "focus", function(){this.style.color ='#e62119';}, false);
	Spry.Utils.addEventListener("sp", "blur", function(){this.style.color ='#1a3399';}, false);

}
Spry.Utils.addLoadListener(InitPage);