
// TABLE Reference: http://developer.yahoo.com/yui/datatable/
// PANEL Reference: http://developer.yahoo.com/yui/container/panel/


   YAHOO.namespace("example.container");


   function init() {

        this.myCustomFormatter = function(elLiner, oRecord, oColumn, oData) {

	    if ( oColumn.field == "col3Mo" ) { pos = 0; }
	    else if ( oColumn.field == "col6Mo" ) { pos = 1; }
	    else if ( oColumn.field == "col1Yr" ) { pos = 2; }
	    else if ( oColumn.field == "col2Yr" ) { pos = 3; }
	    else if ( oColumn.field == "colAlltime" ) { pos = 4; }

	    else if ( oColumn.field == "colB1" ) { pos = 0; }
	    else if ( oColumn.field == "colB2" ) { pos = 1; }
	    else if ( oColumn.field == "colB3" ) { pos = 2; }
	    else if ( oColumn.field == "colB4" ) { pos = 3; }
	    else if ( oColumn.field == "colB5" ) { pos = 4; }
	    else if ( oColumn.field == "colB6" ) { pos = 5; }
	    else if ( oColumn.field == "colB7" ) { pos = 6; }
	    else if ( oColumn.field == "colB8" ) { pos = 7; }
	    else if ( oColumn.field == "colB9" ) { pos = 8; }
	    else if ( oColumn.field == "colB10" ) { pos = 9; }


	    whichcolor = oRecord.getData("wbColor").substring(pos,pos+1);


 	    elLiner.innerHTML = oData;
            if(whichcolor == "6" ) {
		    YAHOO.util.Dom.addClass(elLiner.parentNode, "hot","cold");
            }
            if(whichcolor == "5" ) {
		    YAHOO.util.Dom.addClass(elLiner.parentNode, "warm","cold");
            }
            if(whichcolor == "2" ) {
		    YAHOO.util.Dom.addClass(elLiner.parentNode, "cool","hot");
            }
            if(whichcolor == "1" ) {
		    YAHOO.util.Dom.addClass(elLiner.parentNode, "cold","hot");
            }
 
        };
        YAHOO.widget.DataTable.Formatter.myCustom = this.myCustomFormatter;
  

	// Panel 1 - Data Definitions
	YAHOO.example.hotcoldData = {
	   Whiteballs: [
		{colNum:"01", col3Mo:2, col6Mo:4, col1Yr:20, col2Yr:35, colAlltime:143, colEvenOdd:"Odd", colType:"Hot", wbColor:"33555"},
{colNum:"02", col3Mo:0, col6Mo:3, col1Yr:8, col2Yr:18, colAlltime:128, colEvenOdd:"Even", colType:"Cold", wbColor:"22223"},
{colNum:"03", col3Mo:3, col6Mo:4, col1Yr:8, col2Yr:25, colAlltime:127, colEvenOdd:"Odd", colType:"", wbColor:"33233"},
{colNum:"04", col3Mo:3, col6Mo:5, col1Yr:13, col2Yr:32, colAlltime:122, colEvenOdd:"Even", colType:"", wbColor:"33353"},
{colNum:"05", col3Mo:5, col6Mo:8, col1Yr:16, col2Yr:25, colAlltime:120, colEvenOdd:"Odd", colType:"", wbColor:"44432"},
{colNum:"06", col3Mo:2, col6Mo:6, col1Yr:14, col2Yr:30, colAlltime:136, colEvenOdd:"Even", colType:"", wbColor:"33444"},
{colNum:"07", col3Mo:6, col6Mo:10, col1Yr:14, col2Yr:25, colAlltime:113, colEvenOdd:"Odd", colType:"", wbColor:"55432"},
{colNum:"08", col3Mo:4, col6Mo:9, col1Yr:16, col2Yr:28, colAlltime:128, colEvenOdd:"Even", colType:"", wbColor:"44443"},
{colNum:"09", col3Mo:5, col6Mo:10, col1Yr:19, col2Yr:29, colAlltime:138, colEvenOdd:"Odd", colType:"Hot", wbColor:"45544"},
{colNum:"10", col3Mo:3, col6Mo:8, col1Yr:14, col2Yr:22, colAlltime:119, colEvenOdd:"Even", colType:"", wbColor:"34432"},
{colNum:"11", col3Mo:2, col6Mo:6, col1Yr:13, col2Yr:32, colAlltime:133, colEvenOdd:"Odd", colType:"", wbColor:"33354"},
{colNum:"12", col3Mo:1, col6Mo:4, col1Yr:14, col2Yr:30, colAlltime:133, colEvenOdd:"Even", colType:"", wbColor:"23444"},
{colNum:"13", col3Mo:1, col6Mo:5, col1Yr:9, col2Yr:23, colAlltime:125, colEvenOdd:"Odd", colType:"Cold", wbColor:"23233"},
{colNum:"14", col3Mo:2, col6Mo:6, col1Yr:14, col2Yr:34, colAlltime:136, colEvenOdd:"Even", colType:"", wbColor:"33454"},
{colNum:"15", col3Mo:6, col6Mo:7, col1Yr:11, col2Yr:24, colAlltime:154, colEvenOdd:"Odd", colType:"Hot", wbColor:"54335"},
{colNum:"16", col3Mo:6, col6Mo:10, col1Yr:23, col2Yr:26, colAlltime:155, colEvenOdd:"Even", colType:"Hot", wbColor:"55636"},
{colNum:"17", col3Mo:6, col6Mo:9, col1Yr:13, col2Yr:27, colAlltime:133, colEvenOdd:"Odd", colType:"", wbColor:"54344"},
{colNum:"18", col3Mo:6, col6Mo:11, col1Yr:17, col2Yr:31, colAlltime:149, colEvenOdd:"Even", colType:"Hot", wbColor:"55445"},
{colNum:"19", col3Mo:3, col6Mo:8, col1Yr:13, col2Yr:27, colAlltime:139, colEvenOdd:"Odd", colType:"", wbColor:"34344"},
{colNum:"20", col3Mo:2, col6Mo:5, col1Yr:9, col2Yr:22, colAlltime:113, colEvenOdd:"Even", colType:"Cold", wbColor:"33232"},
{colNum:"21", col3Mo:5, col6Mo:9, col1Yr:17, col2Yr:35, colAlltime:141, colEvenOdd:"Odd", colType:"", wbColor:"44454"},
{colNum:"22", col3Mo:5, col6Mo:11, col1Yr:15, col2Yr:34, colAlltime:135, colEvenOdd:"Even", colType:"Hot", wbColor:"45454"},
{colNum:"23", col3Mo:3, col6Mo:6, col1Yr:8, col2Yr:20, colAlltime:111, colEvenOdd:"Odd", colType:"Cold", wbColor:"33222"},
{colNum:"24", col3Mo:2, col6Mo:8, col1Yr:16, col2Yr:24, colAlltime:125, colEvenOdd:"Even", colType:"", wbColor:"34433"},
{colNum:"25", col3Mo:2, col6Mo:3, col1Yr:17, col2Yr:28, colAlltime:132, colEvenOdd:"Odd", colType:"", wbColor:"32444"},
{colNum:"26", col3Mo:1, col6Mo:1, col1Yr:5, col2Yr:23, colAlltime:139, colEvenOdd:"Even", colType:"Cold", wbColor:"21134"},
{colNum:"27", col3Mo:1, col6Mo:1, col1Yr:5, col2Yr:18, colAlltime:116, colEvenOdd:"Odd", colType:"Cold", wbColor:"21122"},
{colNum:"28", col3Mo:5, col6Mo:8, col1Yr:16, col2Yr:22, colAlltime:138, colEvenOdd:"Even", colType:"", wbColor:"44434"},
{colNum:"29", col3Mo:3, col6Mo:5, col1Yr:14, col2Yr:26, colAlltime:124, colEvenOdd:"Odd", colType:"", wbColor:"33433"},
{colNum:"30", col3Mo:4, col6Mo:8, col1Yr:12, col2Yr:26, colAlltime:120, colEvenOdd:"Even", colType:"", wbColor:"44332"},
{colNum:"31", col3Mo:2, col6Mo:3, col1Yr:11, col2Yr:22, colAlltime:122, colEvenOdd:"Odd", colType:"", wbColor:"32333"},
{colNum:"32", col3Mo:1, col6Mo:6, col1Yr:17, col2Yr:33, colAlltime:147, colEvenOdd:"Even", colType:"", wbColor:"23455"},
{colNum:"33", col3Mo:3, col6Mo:7, col1Yr:11, col2Yr:29, colAlltime:138, colEvenOdd:"Odd", colType:"", wbColor:"34344"},
{colNum:"34", col3Mo:5, col6Mo:7, col1Yr:12, col2Yr:24, colAlltime:136, colEvenOdd:"Even", colType:"", wbColor:"44334"},
{colNum:"35", col3Mo:3, col6Mo:6, col1Yr:10, col2Yr:23, colAlltime:117, colEvenOdd:"Odd", colType:"", wbColor:"33332"},
{colNum:"36", col3Mo:3, col6Mo:7, col1Yr:12, col2Yr:23, colAlltime:125, colEvenOdd:"Even", colType:"", wbColor:"34333"},
{colNum:"37", col3Mo:2, col6Mo:8, col1Yr:12, col2Yr:24, colAlltime:141, colEvenOdd:"Odd", colType:"", wbColor:"34334"},
{colNum:"38", col3Mo:3, col6Mo:5, col1Yr:11, col2Yr:25, colAlltime:126, colEvenOdd:"Even", colType:"", wbColor:"33333"},
{colNum:"39", col3Mo:9, col6Mo:13, col1Yr:21, col2Yr:36, colAlltime:148, colEvenOdd:"Odd", colType:"Hot", wbColor:"66555"}
	   ],
	   Megaballs: [
		{colNum:"01", col3Mo:1, col6Mo:4, col1Yr:5, col2Yr:11, colAlltime:61, colEvenOdd:"Odd", colType:"", wbColor:"34344"},
{colNum:"02", col3Mo:1, col6Mo:2, col1Yr:2, col2Yr:7, colAlltime:45, colEvenOdd:"Even", colType:"Cold", wbColor:"33222"},
{colNum:"03", col3Mo:1, col6Mo:2, col1Yr:5, col2Yr:10, colAlltime:58, colEvenOdd:"Odd", colType:"", wbColor:"33334"},
{colNum:"04", col3Mo:3, col6Mo:4, col1Yr:7, col2Yr:15, colAlltime:56, colEvenOdd:"Even", colType:"Hot", wbColor:"54454"},
{colNum:"05", col3Mo:0, col6Mo:1, col1Yr:6, col2Yr:8, colAlltime:41, colEvenOdd:"Odd", colType:"Cold", wbColor:"32432"},
{colNum:"06", col3Mo:3, col6Mo:3, col1Yr:5, col2Yr:11, colAlltime:50, colEvenOdd:"Even", colType:"", wbColor:"54343"},
{colNum:"07", col3Mo:0, col6Mo:1, col1Yr:4, col2Yr:11, colAlltime:66, colEvenOdd:"Odd", colType:"", wbColor:"32345"},
{colNum:"08", col3Mo:3, col6Mo:4, col1Yr:7, col2Yr:17, colAlltime:59, colEvenOdd:"Even", colType:"Hot", wbColor:"54454"},
{colNum:"09", col3Mo:2, col6Mo:3, col1Yr:7, col2Yr:9, colAlltime:56, colEvenOdd:"Odd", colType:"", wbColor:"44434"},
{colNum:"10", col3Mo:4, col6Mo:5, col1Yr:6, col2Yr:12, colAlltime:53, colEvenOdd:"Even", colType:"Hot", wbColor:"55443"},
{colNum:"11", col3Mo:0, col6Mo:0, col1Yr:3, col2Yr:10, colAlltime:51, colEvenOdd:"Odd", colType:"Cold", wbColor:"32233"},
{colNum:"12", col3Mo:0, col6Mo:1, col1Yr:2, col2Yr:4, colAlltime:34, colEvenOdd:"Even", colType:"Cold", wbColor:"32211"},
{colNum:"13", col3Mo:1, col6Mo:2, col1Yr:5, col2Yr:9, colAlltime:55, colEvenOdd:"Odd", colType:"", wbColor:"33334"},
{colNum:"14", col3Mo:3, col6Mo:5, col1Yr:8, col2Yr:12, colAlltime:62, colEvenOdd:"Even", colType:"Hot", wbColor:"55545"},
{colNum:"15", col3Mo:0, col6Mo:1, col1Yr:5, col2Yr:10, colAlltime:60, colEvenOdd:"Odd", colType:"", wbColor:"32334"},
{colNum:"16", col3Mo:0, col6Mo:3, col1Yr:6, col2Yr:12, colAlltime:48, colEvenOdd:"Even", colType:"", wbColor:"34443"},
{colNum:"17", col3Mo:3, col6Mo:5, col1Yr:6, col2Yr:16, colAlltime:60, colEvenOdd:"Odd", colType:"Hot", wbColor:"55454"},
{colNum:"18", col3Mo:1, col6Mo:3, col1Yr:8, col2Yr:14, colAlltime:58, colEvenOdd:"Even", colType:"", wbColor:"34544"},
{colNum:"19", col3Mo:0, col6Mo:3, col1Yr:7, col2Yr:10, colAlltime:52, colEvenOdd:"Odd", colType:"", wbColor:"34433"}
	   ],
	   // PowerPlay: [
		//
	   // ],
	   WhiteStats: [
		{colNum:"High", col3Mo:9, col6Mo:13, col1Yr:23, col2Yr:36, colAlltime:155 },
{colNum:"Low", col3Mo:0, col6Mo:1, col1Yr:5, col2Yr:18, colAlltime:111 },
{colNum:"Average", col3Mo:3.3, col6Mo:6.7, col1Yr:13.3, col2Yr:26.7, colAlltime:131.4 },
{colNum:"StdDev", col3Mo:1.9, col6Mo:2.7, col1Yr:4.0, col2Yr:4.8, colAlltime:11.4 },
{colNum:"Total", col3Mo:130, col6Mo:260, col1Yr:520, col2Yr:1040, colAlltime:5125 },
{colNum:"Since", col3Mo:"11/09/11", col6Mo:"08/10/11", col1Yr:"02/09/11", col2Yr:"02/10/10", colAlltime:"04/13/02" }
	   ],
	   MegaStats: [
		{colNum:"High", col3Mo:4, col6Mo:5, col1Yr:8, col2Yr:17, colAlltime:66 },
{colNum:"Low", col3Mo:0, col6Mo:0, col1Yr:2, col2Yr:4, colAlltime:34 },
{colNum:"Average", col3Mo:1.4, col6Mo:2.7, col1Yr:5.5, col2Yr:10.9, colAlltime:53.9 },
{colNum:"StdDev", col3Mo:1.4, col6Mo:1.5, col1Yr:1.8, col2Yr:3.1, colAlltime:7.9 },
{colNum:"Total", col3Mo:26, col6Mo:52, col1Yr:104, col2Yr:208, colAlltime:1025 },
{colNum:"Since", col3Mo:"11/09/11", col6Mo:"08/10/11", col1Yr:"02/09/11", col2Yr:"02/10/10", colAlltime:"04/13/02" }
	   ],
	   // PPlayStats: [
		//
	   // ],
	   NumSummary: [
		{colNum:"Warm + Hot", colSumWhite:"01 09 15 16 18 22 39 ", colSumMBs:"04 08 10 14 17 "},{colNum:"Cool + Cold", colSumWhite:"02 13 20 23 26 27 ", colSumMBs:"02 05 11 12 "}
	   ],
	   PayoutHotSummary: [
		{colNum:"Num Dwgs", col3Mo:26, col6Mo:52, col1Yr:104, col2Yr:208, colAlltime:1025 },
{colNum:"Win Jackpot", col3Mo:0, col6Mo:0, col1Yr:0, col2Yr:0, colAlltime:0 },
{colNum:"5W", col3Mo:0, col6Mo:0, col1Yr:0, col2Yr:0, colAlltime:0 },
{colNum:"4+HB", col3Mo:1, col6Mo:1, col1Yr:1, col2Yr:1, colAlltime:2 },
{colNum:"4W", col3Mo:0, col6Mo:0, col1Yr:0, col2Yr:0, colAlltime:1 },
{colNum:"3+HB", col3Mo:0, col6Mo:0, col1Yr:0, col2Yr:0, colAlltime:11 },
{colNum:"3W", col3Mo:0, col6Mo:1, col1Yr:4, col2Yr:5, colAlltime:22 },
{colNum:"2+HB", col3Mo:6, col6Mo:8, col1Yr:11, col2Yr:18, colAlltime:75 },
{colNum:"2W", col3Mo:5, col6Mo:7, col1Yr:20, col2Yr:33, colAlltime:161 },
{colNum:"1+HB", col3Mo:8, col6Mo:12, col1Yr:17, col2Yr:31, colAlltime:126 },
{colNum:"1W", col3Mo:5, col6Mo:17, col1Yr:31, col2Yr:63, colAlltime:313 },
{colNum:"HB", col3Mo:1, col6Mo:2, col1Yr:5, col2Yr:22, colAlltime:76 },
{colNum:"None", col3Mo:0, col6Mo:4, col1Yr:15, col2Yr:35, colAlltime:238 }
	   ],
	   PayoutColdSummary: [
		{colNum:"Num Dwgs", col3Mo:26, col6Mo:52, col1Yr:104, col2Yr:208, colAlltime:1025 },
{colNum:"Win Jackpot", col3Mo:0, col6Mo:0, col1Yr:0, col2Yr:0, colAlltime:0 },
{colNum:"5W", col3Mo:0, col6Mo:0, col1Yr:0, col2Yr:0, colAlltime:0 },
{colNum:"4+HB", col3Mo:0, col6Mo:0, col1Yr:0, col2Yr:0, colAlltime:0 },
{colNum:"4W", col3Mo:0, col6Mo:0, col1Yr:0, col2Yr:0, colAlltime:0 },
{colNum:"3+HB", col3Mo:0, col6Mo:0, col1Yr:0, col2Yr:0, colAlltime:5 },
{colNum:"3W", col3Mo:0, col6Mo:0, col1Yr:0, col2Yr:1, colAlltime:9 },
{colNum:"2+HB", col3Mo:0, col6Mo:0, col1Yr:0, col2Yr:1, colAlltime:15 },
{colNum:"2W", col3Mo:1, col6Mo:3, col1Yr:5, col2Yr:22, colAlltime:118 },
{colNum:"1+HB", col3Mo:1, col6Mo:3, col1Yr:5, col2Yr:13, colAlltime:67 },
{colNum:"1W", col3Mo:5, col6Mo:12, col1Yr:29, col2Yr:62, colAlltime:357 },
{colNum:"HB", col3Mo:0, col6Mo:1, col1Yr:8, col2Yr:15, colAlltime:84 },
{colNum:"None", col3Mo:19, col6Mo:33, col1Yr:57, col2Yr:94, colAlltime:370 }
	   ],
	   PayoutHotColdSummary: [
		{colNum:"Num Dwgs", col3Mo:26, col6Mo:52, col1Yr:104, col2Yr:208, colAlltime:1025 },
{colNum:"Win Jackpot", col3Mo:0, col6Mo:0, col1Yr:0, col2Yr:0, colAlltime:2 },
{colNum:"5W", col3Mo:0, col6Mo:0, col1Yr:0, col2Yr:0, colAlltime:2 },
{colNum:"4+HB", col3Mo:1, col6Mo:2, col1Yr:3, col2Yr:3, colAlltime:12 },
{colNum:"4W", col3Mo:0, col6Mo:0, col1Yr:0, col2Yr:1, colAlltime:16 },
{colNum:"3+HB", col3Mo:4, col6Mo:4, col1Yr:6, col2Yr:14, colAlltime:78 },
{colNum:"3W", col3Mo:0, col6Mo:1, col1Yr:4, col2Yr:10, colAlltime:89 },
{colNum:"2+HB", col3Mo:6, col6Mo:12, col1Yr:22, col2Yr:45, colAlltime:171 },
{colNum:"2W", col3Mo:5, col6Mo:9, col1Yr:21, col2Yr:44, colAlltime:218 },
{colNum:"1+HB", col3Mo:5, col6Mo:8, col1Yr:14, col2Yr:31, colAlltime:155 },
{colNum:"1W", col3Mo:4, col6Mo:14, col1Yr:28, col2Yr:42, colAlltime:188 },
{colNum:"HB", col3Mo:1, col6Mo:1, col1Yr:2, col2Yr:8, colAlltime:43 },
{colNum:"None", col3Mo:0, col6Mo:1, col1Yr:4, col2Yr:10, colAlltime:51 }
	   ],
	   PayoutExpectedSummary: [
		{colNum:"Num Dwgs", col3Mo:26, col6Mo:52, col1Yr:104, col2Yr:208, colAlltime:1025 },
{colNum:"Win Jackpot", col3Mo:0, col6Mo:0, col1Yr:0, col2Yr:1, colAlltime:8 },
{colNum:"5W", col3Mo:0, col6Mo:0, col1Yr:1, col2Yr:3, colAlltime:11 },
{colNum:"4+HB", col3Mo:3, col6Mo:5, col1Yr:6, col2Yr:10, colAlltime:55 },
{colNum:"4W", col3Mo:4, col6Mo:6, col1Yr:10, col2Yr:24, colAlltime:86 },
{colNum:"3+HB", col3Mo:5, col6Mo:7, col1Yr:8, col2Yr:20, colAlltime:114 },
{colNum:"3W", col3Mo:3, col6Mo:8, col1Yr:22, col2Yr:39, colAlltime:211 },
{colNum:"2+HB", col3Mo:2, col6Mo:6, col1Yr:10, col2Yr:26, colAlltime:124 },
{colNum:"2W", col3Mo:5, col6Mo:10, col1Yr:24, col2Yr:43, colAlltime:208 },
{colNum:"1+HB", col3Mo:2, col6Mo:4, col1Yr:7, col2Yr:14, colAlltime:58 },
{colNum:"1W", col3Mo:1, col6Mo:5, col1Yr:11, col2Yr:21, colAlltime:120 },
{colNum:"HB", col3Mo:0, col6Mo:0, col1Yr:1, col2Yr:1, colAlltime:7 },
{colNum:"None", col3Mo:1, col6Mo:1, col1Yr:4, col2Yr:6, colAlltime:23 }
	   ],
	   PayoutNeutHotSummary: [
		{colNum:"Num Dwgs", col3Mo:26, col6Mo:52, col1Yr:104, col2Yr:208, colAlltime:1025 },
{colNum:"Win Jackpot", col3Mo:15, col6Mo:22, col1Yr:40, col2Yr:63, colAlltime:235 },
{colNum:"5W", col3Mo:0, col6Mo:1, col1Yr:7, col2Yr:16, colAlltime:83 },
{colNum:"4+HB", col3Mo:8, col6Mo:20, col1Yr:35, col2Yr:66, colAlltime:362 },
{colNum:"4W", col3Mo:1, col6Mo:3, col1Yr:7, col2Yr:18, colAlltime:106 },
{colNum:"3+HB", col3Mo:0, col6Mo:3, col1Yr:9, col2Yr:32, colAlltime:163 },
{colNum:"3W", col3Mo:0, col6Mo:1, col1Yr:3, col2Yr:5, colAlltime:32 },
{colNum:"2+HB", col3Mo:2, col6Mo:2, col1Yr:3, col2Yr:7, colAlltime:26 },
{colNum:"2W", col3Mo:0, col6Mo:0, col1Yr:0, col2Yr:1, colAlltime:16 },
{colNum:"1+HB", col3Mo:0, col6Mo:0, col1Yr:0, col2Yr:0, colAlltime:2 },
{colNum:"1W", col3Mo:0, col6Mo:0, col1Yr:0, col2Yr:0, colAlltime:0 },
{colNum:"HB", col3Mo:0, col6Mo:0, col1Yr:0, col2Yr:0, colAlltime:0 },
{colNum:"None", col3Mo:0, col6Mo:0, col1Yr:0, col2Yr:0, colAlltime:0 }
	   ],
	   Last6ResultsSummary: [
		{colNum:"02/04/2012", colB1:7, colB2:8, colB3:29, colB4:30, colB5:38, colB6:17, wbColor:"333336"},
{colNum:"02/01/2012", colB1:9, colB2:14, colB3:28, colB4:35, colB5:39, colB6:9, wbColor:"633363"},
{colNum:"01/28/2012", colB1:7, colB2:18, colB3:19, colB4:23, colB5:32, colB6:14, wbColor:"363136"},
{colNum:"01/25/2012", colB1:5, colB2:15, colB3:18, colB4:23, colB5:38, colB6:14, wbColor:"366136"},
{colNum:"01/21/2012", colB1:17, colB2:18, colB3:21, colB4:25, colB5:34, colB6:10, wbColor:"363336"},
{colNum:"01/18/2012", colB1:7, colB2:10, colB3:15, colB4:17, colB5:39, colB6:8, wbColor:"336366"},
{colNum:"01/14/2012", colB1:1, colB2:4, colB3:9, colB4:17, colB5:21, colB6:10, wbColor:"636336"},
{colNum:"01/11/2012", colB1:8, colB2:16, colB3:28, colB4:34, colB5:35, colB6:13, wbColor:"363333"},
{colNum:"01/07/2012", colB1:11, colB2:18, colB3:34, colB4:37, colB5:39, colB6:6, wbColor:"363363"},
{colNum:"01/04/2012", colB1:3, colB2:5, colB3:10, colB4:22, colB5:29, colB6:1, wbColor:"333633"},
{colNum:"12/31/2011", colB1:9, colB2:17, colB3:24, colB4:30, colB5:31, colB6:6, wbColor:"633333"},
{colNum:"12/28/2011", colB1:7, colB2:15, colB3:19, colB4:23, colB5:27, colB6:14, wbColor:"363116"},
{colNum:"12/24/2011", colB1:16, colB2:21, colB3:22, colB4:26, colB5:34, colB6:8, wbColor:"636136"},
{colNum:"12/21/2011", colB1:20, colB2:22, colB3:29, colB4:33, colB5:39, colB6:2, wbColor:"163361"},
{colNum:"12/17/2011", colB1:5, colB2:16, colB3:19, colB4:21, colB5:33, colB6:18, wbColor:"363333"},
{colNum:"12/14/2011", colB1:1, colB2:6, colB3:7, colB4:8, colB5:16, colB6:9, wbColor:"633363"},
{colNum:"12/10/2011", colB1:3, colB2:11, colB3:14, colB4:15, colB5:34, colB6:10, wbColor:"333636"},
{colNum:"12/07/2011", colB1:9, colB2:16, colB3:17, colB4:18, colB5:22, colB6:4, wbColor:"663666"},
{colNum:"12/03/2011", colB1:5, colB2:7, colB3:15, colB4:24, colB5:39, colB6:3, wbColor:"336363"},
{colNum:"11/30/2011", colB1:6, colB2:9, colB3:16, colB4:28, colB5:38, colB6:8, wbColor:"366336"},
{colNum:"11/26/2011", colB1:4, colB2:17, colB3:30, colB4:36, colB5:39, colB6:17, wbColor:"333366"},
{colNum:"11/23/2011", colB1:4, colB2:5, colB3:13, colB4:35, colB5:39, colB6:6, wbColor:"331363"},
{colNum:"11/19/2011", colB1:8, colB2:10, colB3:30, colB4:31, colB5:39, colB6:17, wbColor:"333366"},
{colNum:"11/16/2011", colB1:3, colB2:28, colB3:33, colB4:36, colB5:39, colB6:4, wbColor:"333366"},
{colNum:"11/12/2011", colB1:12, colB2:20, colB3:22, colB4:28, colB5:36, colB6:10, wbColor:"316336"},
{colNum:"11/09/2011", colB1:15, colB2:18, colB3:21, colB4:25, colB5:37, colB6:4, wbColor:"663336"}
	   ]
	}

	// Panel 1 - Table Definitions
        var hotcoldColumnDefs = [
            {key:"colNum",     label:"Ball",  sortable:true},
            {key:"col3Mo",     label:"3 Mo", sortable:true, formatter:"myCustom"},
            {key:"col6Mo",     label:"6 Mo", sortable:true, formatter:"myCustom"},
            {key:"col1Yr",     label:"1 Yr", sortable:true, formatter:"myCustom"},
            {key:"col2Yr",     label:"2 Yr", sortable:true, formatter:"myCustom"},
            {key:"colAlltime", label:"All Time", sortable:true, formatter:"myCustom"},
            {key:"colEvenOdd", label:"E/O",  sortable:true},
            {key:"colType",    label:"Type",  sortable:true},
            {key:"wbColor", hidden:true}
        ];
	// Panel 4 - Table Definitions
        var hotcoldStatDefs = [
            {key:"colNum",     label:""},
            {key:"col3Mo",     label:"3 Month"},
            {key:"col6Mo",     label:"6 Month"},
            {key:"col1Yr",     label:"1 Year"},
            {key:"col2Yr",     label:"2 Year"},
            {key:"colAlltime", label:"All Time"}
        ];
	// Panel 3 - Table Definitions
        var prizeStatDefs = [
            {key:"colNum",     label:"Prize"},
            {key:"col3Mo",     label:"3 Month"},
            {key:"col6Mo",     label:"6 Month"},
            {key:"col1Yr",     label:"1 Year"},
            {key:"col2Yr",     label:"2 Year"},
            {key:"colAlltime", label:"All Time"}
        ];

	// Overlay 1 - Table Definitions
        var NumSumDefs = [
            {key:"colNum",      label:""},
            {key:"colSumWhite", label:"White Balls"},
            {key:"colSumMBs",   label:"Hotballs"}
        ];

	// Panel 1 - Table Definitions
        var resultsColumnDefs = [
            {key:"colNum",     label:"Date",  sortable:false},
            {key:"colB1",     label:"B1", sortable:false, formatter:"myCustom"},
            {key:"colB2",     label:"B2", sortable:false, formatter:"myCustom"},
            {key:"colB3",     label:"B3", sortable:false, formatter:"myCustom"},
            {key:"colB4",     label:"B4", sortable:false, formatter:"myCustom"},
            {key:"colB5",     label:"B5", sortable:false, formatter:"myCustom"},
            {key:"colB6",     label:"MB", sortable:false, formatter:"myCustom"},
            {key:"wbColor", hidden:true}
        ];
	// Panel 1 - Table Definitions
        var resultsColumnDefsEM = [
            {key:"colNum",     label:"Date",  sortable:false},
            {key:"colB1",     label:"B1", sortable:false, formatter:"myCustom"},
            {key:"colB2",     label:"B2", sortable:false, formatter:"myCustom"},
            {key:"colB3",     label:"B3", sortable:false, formatter:"myCustom"},
            {key:"colB4",     label:"B4", sortable:false, formatter:"myCustom"},
            {key:"colB5",     label:"B5", sortable:false, formatter:"myCustom"},
            {key:"colB6",     label:"LS", sortable:false, formatter:"myCustom"},
            {key:"colB7",     label:"LS", sortable:false, formatter:"myCustom"},
            {key:"wbColor", hidden:true}
        ];
	// Panel 1 - Table Definitions
        var resultsColumnDefsL6 = [
            {key:"colNum",     label:"Date",  sortable:false},
            {key:"colB1",     label:"B1", sortable:false, formatter:"myCustom"},
            {key:"colB2",     label:"B2", sortable:false, formatter:"myCustom"},
            {key:"colB3",     label:"B3", sortable:false, formatter:"myCustom"},
            {key:"colB4",     label:"B4", sortable:false, formatter:"myCustom"},
            {key:"colB5",     label:"B5", sortable:false, formatter:"myCustom"},
            {key:"colB6",     label:"B6", sortable:false, formatter:"myCustom"},
            {key:"colB7",     label:"BB", sortable:false, formatter:"myCustom"},
            {key:"wbColor", hidden:true}
        ];

        var resultsColumnDefsS7 = [
            {key:"colNum",     label:"Date",  sortable:false},
            {key:"colB1",     label:"B1", sortable:false, formatter:"myCustom"},
            {key:"colB2",     label:"B2", sortable:false, formatter:"myCustom"},
            {key:"colB3",     label:"B3", sortable:false, formatter:"myCustom"},
            {key:"colB4",     label:"B4", sortable:false, formatter:"myCustom"},
            {key:"colB5",     label:"B5", sortable:false, formatter:"myCustom"},
            {key:"colB6",     label:"B6", sortable:false, formatter:"myCustom"},
            {key:"colB7",     label:"B7", sortable:false, formatter:"myCustom"},
            {key:"colB8",     label:"BB", sortable:false, formatter:"myCustom"},
            {key:"wbColor", hidden:true}
        ];

        var resultsColumnDefsTX2 = [
            {key:"colNum",     label:"Date",  sortable:false},
            {key:"colB1",     label:"B1", sortable:false, formatter:"myCustom"},
            {key:"colB2",     label:"B2", sortable:false, formatter:"myCustom"},
            {key:"colB3",     label:"B3", sortable:false, formatter:"myCustom"},
            {key:"colB4",     label:"B4", sortable:false, formatter:"myCustom"},
            {key:"colB5",     label:"BB", sortable:false, formatter:"myCustom"},
            {key:"wbColor", hidden:true}
        ];


	// Panel 1 Tab 0 Definition
        var myDataSource = new YAHOO.util.DataSource(YAHOO.example.hotcoldData.Whiteballs);
        myDataSource.responseType = YAHOO.util.DataSource.TYPE_JSARRAY;
        myDataSource.responseSchema = { fields: ["colNum","col3Mo","col6Mo","col1Yr","col2Yr", "colAlltime", "colEvenOdd", "colType", "wbColor"] };
        var panel1tab0Table = new YAHOO.widget.DataTable("p1t0container", hotcoldColumnDefs, myDataSource,{scrollable:false,width:"100%" });

	// Panel 1 Tab 1 Definition
        var myDataSource = new YAHOO.util.DataSource(YAHOO.example.hotcoldData.Megaballs);
        myDataSource.responseType = YAHOO.util.DataSource.TYPE_JSARRAY;
        myDataSource.responseSchema = { fields: ["colNum","col3Mo","col6Mo","col1Yr","col2Yr", "colAlltime", "colEvenOdd", "colType", "wbColor"] };
        var panel1tab1Table = new YAHOO.widget.DataTable("p1t1container", hotcoldColumnDefs, myDataSource,{scrollable:false,width:"100%" });

	// // Panel 1 Tab 2 Definition
        // var myDataSource = new YAHOO.util.DataSource(YAHOO.example.hotcoldData.PowerPlay);
        // myDataSource.responseType = YAHOO.util.DataSource.TYPE_JSARRAY;
        // myDataSource.responseSchema = { fields: ["colNum","col3Mo","col6Mo","col1Yr","col2Yr","colAlltime","wbColor"] };
        // var panel1tab2Table = new YAHOO.widget.DataTable("p1t2container", hotcoldColumnDefs, myDataSource,{scrollable:false,width:"100%" });



	// Panel 4 Tab 0 Definition
        var myDataSource = new YAHOO.util.DataSource(YAHOO.example.hotcoldData.WhiteStats);
        var panel4tab0Table = new YAHOO.widget.DataTable("p4t0container", hotcoldStatDefs, myDataSource,{scrollable:false,width:"100%" });

	// Panel 4 Tab 1 Definition
        var myDataSource = new YAHOO.util.DataSource(YAHOO.example.hotcoldData.MegaStats);
        var panel4tab1Table = new YAHOO.widget.DataTable("p4t1container", hotcoldStatDefs, myDataSource,{scrollable:false,width:"100%" });

	// // Panel 4 Tab 2 Definition
        // var myDataSource = new YAHOO.util.DataSource(YAHOO.example.hotcoldData.PPlayStats);
        // var panel4tab2Table = new YAHOO.widget.DataTable("p4t2container", hotcoldStatDefs, myDataSource,{scrollable:false,width:"100%" });


	// Panel 3 Tab 0 Definition
        var myDataSource = new YAHOO.util.DataSource(YAHOO.example.hotcoldData.PayoutHotSummary);
        var panel3tab0Table = new YAHOO.widget.DataTable("p3t0container", prizeStatDefs, myDataSource,{scrollable:false,width:"100%" });

	// Panel 3 Tab 1 Definition
        var myDataSource = new YAHOO.util.DataSource(YAHOO.example.hotcoldData.PayoutColdSummary);
        var panel3tab1Table = new YAHOO.widget.DataTable("p3t1container", prizeStatDefs, myDataSource,{scrollable:false,width:"100%" });

	// Panel 3 Tab 2 Definition
        var myDataSource = new YAHOO.util.DataSource(YAHOO.example.hotcoldData.PayoutHotColdSummary);
        var panel3tab2Table = new YAHOO.widget.DataTable("p3t2container", prizeStatDefs, myDataSource,{scrollable:false,width:"100%" });

	// Panel 3 Tab 3 Definition
        var myDataSource = new YAHOO.util.DataSource(YAHOO.example.hotcoldData.PayoutExpectedSummary);
        var panel3tab3Table = new YAHOO.widget.DataTable("p3t3container", prizeStatDefs, myDataSource,{scrollable:false,width:"100%" });

	// Panel 3 Tab 4 Definition
        var myDataSource = new YAHOO.util.DataSource(YAHOO.example.hotcoldData.PayoutNeutHotSummary);
        var panel3tab3Table = new YAHOO.widget.DataTable("p3t4container", prizeStatDefs, myDataSource,{scrollable:false,width:"100%" });




//****************************
	// Head Right 0 Tab 0 Definition
	// Overlay 1 Definition
        var myDataSource = new YAHOO.util.DataSource(YAHOO.example.hotcoldData.NumSummary);
        var overlayHdRightTable = new YAHOO.widget.DataTable("overlayRtcontainer", NumSumDefs, myDataSource,{scrollable:false,width:"100%" });

	// Head Right 0 Definition
	var myDataSource = new YAHOO.util.DataSource(YAHOO.example.hotcoldData.Last6ResultsSummary);
	myDataSource.responseType = YAHOO.util.DataSource.TYPE_JSARRAY;

	myDataSource.responseSchema = { fields: ["colNum","colB1","colB2","colB2","colB3", "colB4", "colB5", "colB6", "wbColor"] };

        // var panel0tab1Table = new YAHOO.widget.DataTable("p0t1container", resultsColumnDefs, myDataSource,{scrollable:true, height:"110", width:"100%" });
        var panel0tab1Table = new YAHOO.widget.DataTable("p0t1container", resultsColumnDefs, myDataSource,{scrollable:false, width:"100%" });

               
		
//****************************

	// ---------------------------------------------------------------------------------
	// Overlay Layout Definitions
	YAHOO.widget.overlayHd = new YAHOO.widget.Overlay("hdAds1", 
	{ width:"974px", visible:true, draggable:false } 
	);

	YAHOO.widget.overlay1 = new YAHOO.widget.Overlay("hdOverlayLeft", 
	{ width:"225px", height:"200px", visible:true, draggable:false, zIndex:50, context:["hdAds1",'tl','bl'] } 
	);

	YAHOO.widget.overlay2 = new YAHOO.widget.Overlay("hdOverlayCenter", 
	{ width:"500px",  height:"200px", visible:true, draggable:false, context:["hdOverlayLeft",'tl','tr'] } 
	);

	YAHOO.widget.overlay3 = new YAHOO.widget.Panel("hdOverlayRight", 
	{ zIndex:50, width:"250", height:"210px", visible:true, close:false, draggable:false, context:["hdOverlayCenter",'tl','tr'] } 
	);
	var myTabView = new YAHOO.widget.TabView("infotabs");

	YAHOO.widget.overlayFt = new YAHOO.widget.Overlay("hdFoot", 
	{  width:"974px", visible:true, draggable:false, context:["hdOverlayLeft",'tl','bl'] } 
	);

	// ---------------------------------------------------------------------------------
	// Panel Layout Definitions

	YAHOO.widget.panel1 = new YAHOO.widget.Panel("panel1", 
	{ width:"370px", height:"1240px", visible:true, draggable:false, close:false, context:["hdFoot",'tl','bl'] } 
	);
	// { width:"370px", height:"1420px", xy:[81,800], visible:true, draggable:false, close:false, context:["hdFoot",'tl','bl'] } 
        var myTabView = new YAHOO.widget.TabView("hotcoldtabs");

	


	YAHOO.widget.panel4 = new YAHOO.widget.Panel("panel4", 
	{ width:"340px", visible:true, draggable:false, close:false, context:["panel1",'tl','tr']  } 
	);
        var myTabView = new YAHOO.widget.TabView("panel4tabs");



	YAHOO.widget.panel2 = new YAHOO.widget.Panel("panel2", 		// Normal Dist Graph
	{ width:"340px", visible:true, draggable:false, close:false, context:["panel4",'tl','bl'] } 
	);


	YAHOO.widget.panel3 = new YAHOO.widget.Panel("panel3",  	// Winnings Payout
	{ width:"340px", visible:true, draggable:false, close:false, context:["panel2",'tl','bl']  } 
	);
        var myTabView = new YAHOO.widget.TabView("panel3tabs");

			
	YAHOO.widget.panelRtAds = new YAHOO.widget.Panel("panelRtAds", 
	{ width:"200", height:"1240", visible:true, draggable:false, close:false, context:["panel4",'tl','tr'] } 
	);

	YAHOO.widget.panelFooting = new YAHOO.widget.Panel("bodyFoot", 
	{  width:"974px", visible:true, draggable:false, close:false, context:["panel1",'tl','bl'] } 
	);



	YAHOO.widget.overlay1.render();
	YAHOO.widget.overlay2.render();
	YAHOO.widget.overlay3.render();

	YAHOO.widget.overlayHd.render();
	YAHOO.widget.overlayFt.render();



	YAHOO.widget.panel1.render();
	YAHOO.widget.panel4.render();
	YAHOO.widget.panel2.render();
	YAHOO.widget.panel3.render();
	YAHOO.widget.panelRtAds.render();
	YAHOO.widget.panelFooting.render();


	var oMenu = new YAHOO.widget.Button("menubutton1", { 
                                        type: "menu", 
                                        menu: "menubutton1select" });


//	Click event listener for the second Button's Menu instance

	var onMenuClick = function (p_sType, p_aArgs) {

	   oMenuItem = p_aArgs[1];
	   // alert( oMenuItem.value );

	   window.open( oMenuItem.value );
	};
	oMenu.getMenu().subscribe("click", onMenuClick);


   }
   YAHOO.util.Event.addListener(window, "load", init);



