
// 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; }
	    if ( oColumn.field == "col6Mo" ) { pos = 1; }
	    if ( oColumn.field == "col1Yr" ) { pos = 2; }
	    if ( oColumn.field == "col2Yr" ) { pos = 3; }
	    if ( oColumn.field == "colAlltime" ) { pos = 4; }


	    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:1, col6Mo:1, col1Yr:4, col2Yr:14, colAlltime:32, colEvenOdd:"Odd", colType:"Cold", wbColor:"22224"},
{colNum:"02", col3Mo:0, col6Mo:3, col1Yr:8, col2Yr:19, colAlltime:27, colEvenOdd:"Even", colType:"", wbColor:"23333"},
{colNum:"03", col3Mo:0, col6Mo:0, col1Yr:4, col2Yr:17, colAlltime:32, colEvenOdd:"Odd", colType:"Cold", wbColor:"21234"},
{colNum:"04", col3Mo:3, col6Mo:9, col1Yr:15, col2Yr:24, colAlltime:37, colEvenOdd:"Even", colType:"Hot", wbColor:"45544"},
{colNum:"05", col3Mo:5, col6Mo:9, col1Yr:15, col2Yr:27, colAlltime:34, colEvenOdd:"Odd", colType:"Hot", wbColor:"55554"},
{colNum:"06", col3Mo:3, col6Mo:7, col1Yr:10, col2Yr:18, colAlltime:33, colEvenOdd:"Even", colType:"", wbColor:"44334"},
{colNum:"07", col3Mo:2, col6Mo:4, col1Yr:13, col2Yr:25, colAlltime:35, colEvenOdd:"Odd", colType:"", wbColor:"33444"},
{colNum:"08", col3Mo:1, col6Mo:5, col1Yr:10, col2Yr:21, colAlltime:34, colEvenOdd:"Even", colType:"", wbColor:"23344"},
{colNum:"09", col3Mo:4, col6Mo:7, col1Yr:16, col2Yr:28, colAlltime:38, colEvenOdd:"Odd", colType:"Hot", wbColor:"44555"},
{colNum:"10", col3Mo:0, col6Mo:1, col1Yr:6, col2Yr:16, colAlltime:29, colEvenOdd:"Even", colType:"Cold", wbColor:"22223"},
{colNum:"11", col3Mo:4, col6Mo:6, col1Yr:12, col2Yr:20, colAlltime:36, colEvenOdd:"Odd", colType:"", wbColor:"44434"},
{colNum:"12", col3Mo:4, col6Mo:6, col1Yr:10, col2Yr:23, colAlltime:39, colEvenOdd:"Even", colType:"", wbColor:"44345"},
{colNum:"13", col3Mo:2, col6Mo:3, col1Yr:10, col2Yr:17, colAlltime:26, colEvenOdd:"Odd", colType:"", wbColor:"33332"},
{colNum:"14", col3Mo:3, col6Mo:8, col1Yr:15, col2Yr:27, colAlltime:39, colEvenOdd:"Even", colType:"Hot", wbColor:"45555"},
{colNum:"15", col3Mo:3, col6Mo:4, col1Yr:10, col2Yr:18, colAlltime:34, colEvenOdd:"Odd", colType:"", wbColor:"43334"},
{colNum:"16", col3Mo:1, col6Mo:7, col1Yr:14, col2Yr:27, colAlltime:33, colEvenOdd:"Even", colType:"", wbColor:"24554"},
{colNum:"17", col3Mo:3, col6Mo:5, col1Yr:12, col2Yr:26, colAlltime:29, colEvenOdd:"Odd", colType:"", wbColor:"43453"},
{colNum:"18", col3Mo:6, col6Mo:7, col1Yr:12, col2Yr:21, colAlltime:29, colEvenOdd:"Even", colType:"", wbColor:"64443"},
{colNum:"19", col3Mo:3, col6Mo:6, col1Yr:16, col2Yr:25, colAlltime:40, colEvenOdd:"Odd", colType:"Hot", wbColor:"44545"},
{colNum:"20", col3Mo:2, col6Mo:9, col1Yr:14, col2Yr:25, colAlltime:30, colEvenOdd:"Even", colType:"Hot", wbColor:"35543"},
{colNum:"21", col3Mo:1, col6Mo:6, col1Yr:12, col2Yr:20, colAlltime:37, colEvenOdd:"Odd", colType:"", wbColor:"24434"},
{colNum:"22", col3Mo:3, col6Mo:4, col1Yr:11, col2Yr:24, colAlltime:28, colEvenOdd:"Even", colType:"", wbColor:"43443"},
{colNum:"23", col3Mo:2, col6Mo:4, col1Yr:6, col2Yr:16, colAlltime:31, colEvenOdd:"Odd", colType:"Cold", wbColor:"33223"},
{colNum:"24", col3Mo:2, col6Mo:8, col1Yr:9, col2Yr:13, colAlltime:26, colEvenOdd:"Even", colType:"", wbColor:"35322"},
{colNum:"25", col3Mo:2, col6Mo:4, col1Yr:12, col2Yr:25, colAlltime:34, colEvenOdd:"Odd", colType:"", wbColor:"33444"},
{colNum:"26", col3Mo:2, col6Mo:5, col1Yr:11, col2Yr:20, colAlltime:33, colEvenOdd:"Even", colType:"", wbColor:"33434"},
{colNum:"27", col3Mo:2, col6Mo:2, col1Yr:6, col2Yr:15, colAlltime:25, colEvenOdd:"Odd", colType:"Cold", wbColor:"32222"},
{colNum:"28", col3Mo:1, col6Mo:1, col1Yr:4, col2Yr:10, colAlltime:18, colEvenOdd:"Even", colType:"Cold", wbColor:"22211"},
{colNum:"29", col3Mo:5, col6Mo:8, col1Yr:16, col2Yr:27, colAlltime:36, colEvenOdd:"Odd", colType:"Hot", wbColor:"55554"},
{colNum:"30", col3Mo:5, col6Mo:8, col1Yr:12, col2Yr:25, colAlltime:32, colEvenOdd:"Even", colType:"Hot", wbColor:"55444"},
{colNum:"31", col3Mo:3, col6Mo:8, col1Yr:12, col2Yr:18, colAlltime:29, colEvenOdd:"Odd", colType:"", wbColor:"45433"},
{colNum:"32", col3Mo:2, col6Mo:4, col1Yr:5, col2Yr:15, colAlltime:24, colEvenOdd:"Even", colType:"Cold", wbColor:"33222"},
{colNum:"33", col3Mo:2, col6Mo:4, col1Yr:8, col2Yr:18, colAlltime:26, colEvenOdd:"Odd", colType:"", wbColor:"33332"},
{colNum:"34", col3Mo:4, col6Mo:6, col1Yr:8, col2Yr:19, colAlltime:29, colEvenOdd:"Even", colType:"", wbColor:"44333"},
{colNum:"35", col3Mo:4, col6Mo:7, col1Yr:11, col2Yr:23, colAlltime:33, colEvenOdd:"Odd", colType:"", wbColor:"44444"},
{colNum:"36", col3Mo:2, col6Mo:5, col1Yr:11, col2Yr:24, colAlltime:34, colEvenOdd:"Even", colType:"", wbColor:"33444"},
{colNum:"37", col3Mo:1, col6Mo:4, col1Yr:14, col2Yr:26, colAlltime:40, colEvenOdd:"Odd", colType:"", wbColor:"23555"},
{colNum:"38", col3Mo:5, col6Mo:8, col1Yr:11, col2Yr:22, colAlltime:33, colEvenOdd:"Even", colType:"Hot", wbColor:"55444"},
{colNum:"39", col3Mo:2, col6Mo:4, col1Yr:8, col2Yr:13, colAlltime:23, colEvenOdd:"Odd", colType:"Cold", wbColor:"33322"},
{colNum:"40", col3Mo:1, col6Mo:2, col1Yr:9, col2Yr:21, colAlltime:30, colEvenOdd:"Even", colType:"Cold", wbColor:"22343"},
{colNum:"41", col3Mo:2, col6Mo:4, col1Yr:7, col2Yr:21, colAlltime:30, colEvenOdd:"Odd", colType:"", wbColor:"33243"},
{colNum:"42", col3Mo:2, col6Mo:7, col1Yr:11, col2Yr:18, colAlltime:30, colEvenOdd:"Even", colType:"", wbColor:"34433"},
{colNum:"43", col3Mo:7, col6Mo:8, col1Yr:8, col2Yr:18, colAlltime:29, colEvenOdd:"Odd", colType:"Hot", wbColor:"65333"},
{colNum:"44", col3Mo:5, col6Mo:6, col1Yr:11, col2Yr:22, colAlltime:35, colEvenOdd:"Even", colType:"", wbColor:"54444"},
{colNum:"45", col3Mo:2, col6Mo:2, col1Yr:10, col2Yr:25, colAlltime:32, colEvenOdd:"Odd", colType:"", wbColor:"32344"},
{colNum:"46", col3Mo:4, col6Mo:8, col1Yr:10, col2Yr:18, colAlltime:21, colEvenOdd:"Even", colType:"", wbColor:"45332"},
{colNum:"47", col3Mo:2, col6Mo:7, col1Yr:8, col2Yr:16, colAlltime:30, colEvenOdd:"Odd", colType:"", wbColor:"34323"},
{colNum:"48", col3Mo:0, col6Mo:0, col1Yr:6, col2Yr:15, colAlltime:24, colEvenOdd:"Even", colType:"Cold", wbColor:"21222"},
{colNum:"49", col3Mo:3, col6Mo:5, col1Yr:10, col2Yr:24, colAlltime:34, colEvenOdd:"Odd", colType:"", wbColor:"43344"},
{colNum:"50", col3Mo:2, col6Mo:4, col1Yr:17, col2Yr:31, colAlltime:48, colEvenOdd:"Even", colType:"Hot", wbColor:"33566"}
	   ],
	   Megaballs: [
		{colNum:"01", col3Mo:2, col6Mo:7, col1Yr:19, col2Yr:43, colAlltime:73, colEvenOdd:"Odd", colType:"Cold", wbColor:"22234"},
{colNum:"02", col3Mo:6, col6Mo:10, col1Yr:21, col2Yr:43, colAlltime:62, colEvenOdd:"Even", colType:"", wbColor:"43332"},
{colNum:"03", col3Mo:9, col6Mo:16, col1Yr:28, col2Yr:54, colAlltime:79, colEvenOdd:"Odd", colType:"Hot", wbColor:"55555"},
{colNum:"04", col3Mo:8, col6Mo:12, col1Yr:22, col2Yr:38, colAlltime:60, colEvenOdd:"Even", colType:"Cold", wbColor:"44322"},
{colNum:"05", col3Mo:5, col6Mo:14, col1Yr:30, col2Yr:52, colAlltime:79, colEvenOdd:"Odd", colType:"Hot", wbColor:"34555"},
{colNum:"06", col3Mo:4, col6Mo:12, col1Yr:25, col2Yr:50, colAlltime:78, colEvenOdd:"Even", colType:"", wbColor:"34445"},
{colNum:"07", col3Mo:6, col6Mo:11, col1Yr:23, col2Yr:47, colAlltime:70, colEvenOdd:"Odd", colType:"", wbColor:"43343"},
{colNum:"08", col3Mo:4, col6Mo:8, col1Yr:19, col2Yr:46, colAlltime:67, colEvenOdd:"Even", colType:"Cold", wbColor:"32233"},
{colNum:"09", col3Mo:8, col6Mo:14, col1Yr:21, col2Yr:43, colAlltime:64, colEvenOdd:"Odd", colType:"", wbColor:"44333"}
	   ],
	   // PowerPlay: [
		//
	   // ],
	   WhiteStats: [
		{colNum:"High", col3Mo:7, col6Mo:9, col1Yr:17, col2Yr:31, colAlltime:48 },
{colNum:"Low", col3Mo:0, col6Mo:0, col1Yr:4, col2Yr:10, colAlltime:18 },
{colNum:"Average", col3Mo:2.6, col6Mo:5.2, col1Yr:10.4, col2Yr:20.8, colAlltime:31.6 },
{colNum:"StdDev", col3Mo:1.6, col6Mo:2.5, col1Yr:3.3, col2Yr:4.7, colAlltime:5.4 },
{colNum:"Total", col3Mo:130, col6Mo:260, col1Yr:520, col2Yr:1040, colAlltime:1580 },
{colNum:"Since", col3Mo:"09/11/09", col6Mo:"03/13/09", col1Yr:"03/14/08", col2Yr:"03/17/06", colAlltime:"02/20/04" }
	   ],
	   MegaStats: [
		{colNum:"High", col3Mo:9, col6Mo:16, col1Yr:30, col2Yr:54, colAlltime:79 },
{colNum:"Low", col3Mo:2, col6Mo:7, col1Yr:19, col2Yr:38, colAlltime:60 },
{colNum:"Average", col3Mo:5.8, col6Mo:11.6, col1Yr:23.1, col2Yr:46.2, colAlltime:70.2 },
{colNum:"StdDev", col3Mo:2.3, col6Mo:2.9, col1Yr:3.9, col2Yr:5.1, colAlltime:7.4 },
{colNum:"Total", col3Mo:52, col6Mo:104, col1Yr:208, col2Yr:416, colAlltime:632 },
{colNum:"Since", col3Mo:"09/11/09", col6Mo:"03/13/09", col1Yr:"03/14/08", col2Yr:"03/17/06", colAlltime:"02/20/04" }
	   ],
	   // PPlayStats: [
		//
	   // ],
	   NumSummary: [
		{colNum:"Warm + Hot", colSumWhite:"04 05 09 14 19 20 29 30 38 43 50 ", colSumMBs:"03 05 "},{colNum:"Cool + Cold", colSumWhite:"01 03 10 23 27 28 32 39 40 48 ", colSumMBs:"01 04 08 "}
	   ],
	   PayoutHotSummary: [
		{colNum:"Num Dwgs", col3Mo:26, col6Mo:52, col1Yr:104, col2Yr:208, colAlltime:316 },
{colNum:"5+2LS Jackpot", col3Mo:0, col6Mo:0, col1Yr:0, col2Yr:0, colAlltime:0 },
{colNum:"5+1LS", col3Mo:0, col6Mo:0, col1Yr:0, col2Yr:0, colAlltime:0 },
{colNum:"5W", col3Mo:0, col6Mo:0, col1Yr:0, col2Yr:0, colAlltime:0 },
{colNum:"4+2LS", col3Mo:0, col6Mo:0, col1Yr:0, col2Yr:0, colAlltime:0 },
{colNum:"4+1LS", col3Mo:0, col6Mo:0, col1Yr:0, col2Yr:1, colAlltime:2 },
{colNum:"4W", col3Mo:0, col6Mo:0, col1Yr:1, col2Yr:3, colAlltime:3 },
{colNum:"3+2LS", col3Mo:1, col6Mo:2, col1Yr:2, col2Yr:2, colAlltime:2 },
{colNum:"3+1LS", col3Mo:1, col6Mo:4, col1Yr:9, col2Yr:11, colAlltime:14 },
{colNum:"3W", col3Mo:2, col6Mo:3, col1Yr:5, col2Yr:10, colAlltime:15 },
{colNum:"2+2LS", col3Mo:0, col6Mo:0, col1Yr:1, col2Yr:2, colAlltime:3 },
{colNum:"2+1LS", col3Mo:5, col6Mo:9, col1Yr:16, col2Yr:26, colAlltime:35 },
{colNum:"2W", col3Mo:7, col6Mo:10, col1Yr:17, col2Yr:33, colAlltime:42 },
{colNum:"1+2LS", col3Mo:0, col6Mo:1, col1Yr:1, col2Yr:2, colAlltime:3 },
{colNum:"1+1LS", col3Mo:4, col6Mo:8, col1Yr:17, col2Yr:33, colAlltime:54 },
{colNum:"1W", col3Mo:4, col6Mo:10, col1Yr:17, col2Yr:37, colAlltime:66 },
{colNum:"2LS", col3Mo:0, col6Mo:0, col1Yr:1, col2Yr:3, colAlltime:5 },
{colNum:"1LS", col3Mo:2, col6Mo:3, col1Yr:6, col2Yr:17, colAlltime:27 },
{colNum:"None", col3Mo:0, col6Mo:2, col1Yr:11, col2Yr:28, colAlltime:45 }
	   ],
	   PayoutColdSummary: [
		{colNum:"Num Dwgs", col3Mo:26, col6Mo:52, col1Yr:104, col2Yr:208, colAlltime:316 },
{colNum:"5+2LS Jackpot", col3Mo:0, col6Mo:0, col1Yr:0, col2Yr:0, colAlltime:0 },
{colNum:"5+1LS", col3Mo:0, col6Mo:0, col1Yr:0, col2Yr:0, colAlltime:0 },
{colNum:"5W", col3Mo:0, col6Mo:0, col1Yr:0, col2Yr:0, colAlltime:0 },
{colNum:"4+2LS", col3Mo:0, col6Mo:0, col1Yr:0, col2Yr:0, colAlltime:0 },
{colNum:"4+1LS", col3Mo:0, col6Mo:0, col1Yr:0, col2Yr:1, colAlltime:1 },
{colNum:"4W", col3Mo:0, col6Mo:0, col1Yr:0, col2Yr:0, colAlltime:1 },
{colNum:"3+2LS", col3Mo:0, col6Mo:0, col1Yr:0, col2Yr:1, colAlltime:1 },
{colNum:"3+1LS", col3Mo:0, col6Mo:0, col1Yr:0, col2Yr:0, colAlltime:3 },
{colNum:"3W", col3Mo:0, col6Mo:0, col1Yr:0, col2Yr:1, colAlltime:6 },
{colNum:"2+2LS", col3Mo:0, col6Mo:0, col1Yr:2, col2Yr:4, colAlltime:8 },
{colNum:"2+1LS", col3Mo:0, col6Mo:0, col1Yr:2, col2Yr:11, colAlltime:22 },
{colNum:"2W", col3Mo:0, col6Mo:0, col1Yr:5, col2Yr:12, colAlltime:22 },
{colNum:"1+2LS", col3Mo:0, col6Mo:0, col1Yr:2, col2Yr:6, colAlltime:9 },
{colNum:"1+1LS", col3Mo:6, col6Mo:10, col1Yr:20, col2Yr:44, colAlltime:68 },
{colNum:"1W", col3Mo:5, col6Mo:9, col1Yr:18, col2Yr:38, colAlltime:49 },
{colNum:"2LS", col3Mo:0, col6Mo:1, col1Yr:1, col2Yr:3, colAlltime:4 },
{colNum:"1LS", col3Mo:8, col6Mo:15, col1Yr:28, col2Yr:43, colAlltime:62 },
{colNum:"None", col3Mo:7, col6Mo:17, col1Yr:26, col2Yr:44, colAlltime:60 }
	   ],
	   PayoutHotColdSummary: [
		{colNum:"Num Dwgs", col3Mo:26, col6Mo:52, col1Yr:104, col2Yr:208, colAlltime:316 },
{colNum:"5+2LS Jackpot", col3Mo:0, col6Mo:0, col1Yr:0, col2Yr:0, colAlltime:0 },
{colNum:"5+1LS", col3Mo:0, col6Mo:0, col1Yr:0, col2Yr:0, colAlltime:4 },
{colNum:"5W", col3Mo:0, col6Mo:0, col1Yr:0, col2Yr:0, colAlltime:0 },
{colNum:"4+2LS", col3Mo:0, col6Mo:0, col1Yr:2, col2Yr:4, colAlltime:9 },
{colNum:"4+1LS", col3Mo:1, col6Mo:2, col1Yr:7, col2Yr:14, colAlltime:20 },
{colNum:"4W", col3Mo:1, col6Mo:1, col1Yr:1, col2Yr:3, colAlltime:6 },
{colNum:"3+2LS", col3Mo:2, col6Mo:3, col1Yr:6, col2Yr:13, colAlltime:21 },
{colNum:"3+1LS", col3Mo:2, col6Mo:6, col1Yr:14, col2Yr:27, colAlltime:33 },
{colNum:"3W", col3Mo:1, col6Mo:1, col1Yr:3, col2Yr:8, colAlltime:13 },
{colNum:"2+2LS", col3Mo:4, col6Mo:5, col1Yr:11, col2Yr:22, colAlltime:34 },
{colNum:"2+1LS", col3Mo:8, col6Mo:17, col1Yr:24, col2Yr:49, colAlltime:69 },
{colNum:"2W", col3Mo:2, col6Mo:3, col1Yr:6, col2Yr:8, colAlltime:14 },
{colNum:"1+2LS", col3Mo:1, col6Mo:3, col1Yr:7, col2Yr:14, colAlltime:23 },
{colNum:"1+1LS", col3Mo:2, col6Mo:6, col1Yr:12, col2Yr:22, colAlltime:33 },
{colNum:"1W", col3Mo:1, col6Mo:2, col1Yr:3, col2Yr:9, colAlltime:13 },
{colNum:"2LS", col3Mo:0, col6Mo:1, col1Yr:2, col2Yr:3, colAlltime:4 },
{colNum:"1LS", col3Mo:1, col6Mo:2, col1Yr:5, col2Yr:9, colAlltime:17 },
{colNum:"None", col3Mo:0, col6Mo:0, col1Yr:1, col2Yr:3, colAlltime:3 }
	   ],
	   PayoutExpectedSummary: [
		{colNum:"Num Dwgs", col3Mo:26, col6Mo:52, col1Yr:104, col2Yr:208, colAlltime:316 },
{colNum:"5+2LS Jackpot", col3Mo:0, col6Mo:0, col1Yr:1, col2Yr:1, colAlltime:2 },
{colNum:"5+1LS", col3Mo:0, col6Mo:1, col1Yr:2, col2Yr:4, colAlltime:5 },
{colNum:"5W", col3Mo:0, col6Mo:0, col1Yr:0, col2Yr:0, colAlltime:1 },
{colNum:"4+2LS", col3Mo:0, col6Mo:0, col1Yr:1, col2Yr:5, colAlltime:8 },
{colNum:"4+1LS", col3Mo:3, col6Mo:4, col1Yr:6, col2Yr:10, colAlltime:15 },
{colNum:"4W", col3Mo:1, col6Mo:1, col1Yr:3, col2Yr:4, colAlltime:9 },
{colNum:"3+2LS", col3Mo:2, col6Mo:2, col1Yr:3, col2Yr:8, colAlltime:17 },
{colNum:"3+1LS", col3Mo:7, col6Mo:11, col1Yr:22, col2Yr:42, colAlltime:55 },
{colNum:"3W", col3Mo:0, col6Mo:0, col1Yr:1, col2Yr:6, colAlltime:12 },
{colNum:"2+2LS", col3Mo:4, col6Mo:5, col1Yr:14, col2Yr:26, colAlltime:37 },
{colNum:"2+1LS", col3Mo:2, col6Mo:10, col1Yr:18, col2Yr:41, colAlltime:62 },
{colNum:"2W", col3Mo:2, col6Mo:2, col1Yr:4, col2Yr:10, colAlltime:14 },
{colNum:"1+2LS", col3Mo:1, col6Mo:4, col1Yr:8, col2Yr:14, colAlltime:24 },
{colNum:"1+1LS", col3Mo:1, col6Mo:5, col1Yr:12, col2Yr:18, colAlltime:28 },
{colNum:"1W", col3Mo:2, col6Mo:3, col1Yr:4, col2Yr:8, colAlltime:10 },
{colNum:"2LS", col3Mo:0, col6Mo:1, col1Yr:1, col2Yr:2, colAlltime:3 },
{colNum:"1LS", col3Mo:1, col6Mo:2, col1Yr:2, col2Yr:6, colAlltime:11 },
{colNum:"None", col3Mo:0, col6Mo:1, col1Yr:2, col2Yr:3, colAlltime:3 }
	   ],
	   PayoutNeutHotSummary: [
		{colNum:"Num Dwgs", col3Mo:26, col6Mo:52, col1Yr:104, col2Yr:208, colAlltime:316 },
{colNum:"5+2LS Jackpot", col3Mo:5, col6Mo:10, col1Yr:14, col2Yr:26, colAlltime:37 },
{colNum:"5+1LS", col3Mo:5, col6Mo:7, col1Yr:13, col2Yr:26, colAlltime:36 },
{colNum:"5W", col3Mo:0, col6Mo:0, col1Yr:0, col2Yr:0, colAlltime:0 },
{colNum:"4+2LS", col3Mo:6, col6Mo:14, col1Yr:26, col2Yr:43, colAlltime:57 },
{colNum:"4+1LS", col3Mo:7, col6Mo:11, col1Yr:24, col2Yr:45, colAlltime:68 },
{colNum:"4W", col3Mo:0, col6Mo:1, col1Yr:2, col2Yr:6, colAlltime:10 },
{colNum:"3+2LS", col3Mo:1, col6Mo:2, col1Yr:8, col2Yr:23, colAlltime:29 },
{colNum:"3+1LS", col3Mo:2, col6Mo:5, col1Yr:11, col2Yr:19, colAlltime:39 },
{colNum:"3W", col3Mo:0, col6Mo:0, col1Yr:3, col2Yr:5, colAlltime:9 },
{colNum:"2+2LS", col3Mo:0, col6Mo:0, col1Yr:1, col2Yr:2, colAlltime:11 },
{colNum:"2+1LS", col3Mo:0, col6Mo:2, col1Yr:2, col2Yr:8, colAlltime:12 },
{colNum:"2W", col3Mo:0, col6Mo:0, col1Yr:0, col2Yr:2, colAlltime:2 },
{colNum:"1+2LS", col3Mo:0, col6Mo:0, col1Yr:0, col2Yr:1, colAlltime:4 },
{colNum:"1+1LS", col3Mo:0, col6Mo:0, col1Yr:0, col2Yr:1, colAlltime:1 },
{colNum:"1W", col3Mo:0, col6Mo:0, col1Yr:0, col2Yr:1, colAlltime:1 },
{colNum:"2LS", col3Mo:0, col6Mo:0, col1Yr:0, col2Yr:0, colAlltime:0 },
{colNum:"1LS", col3Mo:0, col6Mo:0, col1Yr:0, col2Yr:0, colAlltime:0 },
{colNum:"None", col3Mo:0, col6Mo:0, col1Yr:0, col2Yr:0, colAlltime:0 }
	   ]
	}

	// 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:"LuckyStars"}
        ];


	// 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%" });

	// Possibly See
	// http://webbits.pl/yui/examples/datatable/dt_server_pag_sort.html#myDataTable=sort%3Dname%26dir%3Dasc%26results%3D25%26startIndex%3D0
	// myDataTable.subscribe("cellClickEvent", myDataTable.myCustom);
//
// myDataTable.subscribe("cellClickEvent", myDataTable.onEventShowCellEditor);
 	// this.cellHighlightDataTable.subscribe("cellMouseoverEvent", this.cellHighlightDataTable.onEventHighlightCell);
            // {key:"col6Mo",     label:"6 Mo", sortable:true, formatter:"myCustom"},

	// 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%" });




	// 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%" });


               
		
	// ---------------------------------------------------------------------------------
	// 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, context:["hdAds1",'tl','bl'] } 
	);
	// YAHOO.widget.overlay1.IFRAME_SRC( "http://www.lotterypowerpicks.com/mobile/lpp_mobile.php?mm" );
	// YAHOO.widget.Overlay.IFRAME_SRC( YAHOO.widget.overlay1, "http://www.lotterypowerpicks.com/mobile/lpp_mobile.php?mm" );
	// YAHOO.widget.Overlay.IFRAME_SRC( "hdOverlayLeft", "http://www.lotterypowerpicks.com/mobile/lpp_mobile.php?mm" );

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

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

	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();


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


