var xmlHttp=false;
/*@cc_on @*/
/*@if (@_jscript_version >= 5)
try
{
  xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
}
catch (e)
{
  try
  {
      xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
  }
  catch (E)
  {
      xmlHttp = false;
  }
}
@end @*/

if (!xmlHttp && typeof XMLHttpRequest != 'undefined')
{
  xmlHttp= new XMLHttpRequest();
}

function blankcallBack()
{
   var i = 1;
}

function doBodogRef()
{
  // Build the URL to connect to
  var url = "bodog.aspx";

  // Open a connection to the server
  xmlHttp.open("GET", url, true);

  // Setup a function for the server to run when it's done
  xmlHttp.onreadystatechange = blankcallBack;
  
  // Send the request
  xmlHttp.send(null);
}

//----------------------------------------------
//  Top Menu Navigation
//
//  Written by: Aaron Erickson
//  Copyright 2005 Flagellum Software
//----------------------------------------------

// inline style for the menu
function writeCustomStyle()
{
	document.writeln("<style>");
                  document.writeln("body { font-family:verdana;Arial;}");
	document.writeln("p { font-family:Arial;font-size:10pt; }");
	document.writeln("a { font-family:Arial;font-size:1.0em; }");
	//document.writeln("td { font-family:Arial;font-size:10pt; }");
	document.writeln(".rootMenuCell {");
	document.writeln("		border-width: 1px 1px 1px 1px;");
	document.writeln("		padding: 3px 3px 3px 3px;");
	document.writeln("		border-style: solid solid solid solid;");
	document.writeln("		border-color: #c6c6c6 #c6c6c6 #c6c6c6 #c6c6c6;");
	document.writeln("      vertical-align: middle;");
	document.writeln("		background-color: #fafafa; }");
	document.writeln(".menuItemCellTop{");
	document.writeln("    border-width: 1px 1px 1px 1px;");
	document.writeln("		padding: 1px 1px 1px 1px;");
	document.writeln("		border-style: solid solid solid solid;");
	document.writeln("		border-color: #cecece #cecece #cecece #cecece; }");
	document.writeln(".menuItemCell {");
	document.writeln("    border-width: 0px 1px 1px 1px;");
	document.writeln("    padding: 1px 1px 1px 1px;");
	document.writeln("    border-style: solid solid solid solid;");
	document.writeln("    border-color: #006ca1 #006ca1 #006ca1 #006ca1; }");
	document.writeln(".menuItemFont { font: 80% sans-serif }");
	document.writeln(".paraShow { display: block; }");
	document.writeln(".paraHide { display: none; }");
	document.writeln(".menuTextFont { font: 80% arial;font-weight:bold;text-decoration:none;color:#505050;vertical-align: middle; }");
	document.writeln("</style>");
}

// shows the submenu
function showdiv(divName)
{
	var divObject = document.all(divName);
	divObject.className = "paraShow";
}

// hides the submenu
function hidediv(divName)
{
	var divObject = document.all(divName);
	divObject.className = "paraHide";
}

function putoutimage(idImg,menuDiv)
{
	//the genned script uses this to restore the default script
	mouseoutmenucolor(idImg);
	if (menuDiv != null) hidediv(menuDiv);
}	
function putoverimage(idImg,menuDiv)
{
	//this handles placing the mouseover script
	mouseovermenucolor(idImg);
	if (menuDiv != null) showdiv(menuDiv);
}
function mouseoveritemcolor(idMenuCell)
{
	var cellObject = document.all(idMenuCell);
	cellObject.style.background = "#000000";
}
function mouseoutitemcolor(idMenuCell)
{
	var cellObject = document.all(idMenuCell);
	cellObject.style.background = "#505050";
}
function mouseovermenucolor(idMenuCell)
{
	var cellObject = document.all(idMenuCell);
	cellObject.style.background = "#cecece";
}
function mouseoutmenucolor(idMenuCell)
{
	var cellObject = document.all(idMenuCell);
	cellObject.style.background = "#fafafa";
}

function putimage(idImg,imgName,backImg,backName)
{
	//general image swapping routine
	var imageObject = document.all(idImg);
	var backObject = document.all(backImg);
	imageObject.src = imgName;
	backObject.src = backName;
}

function writeMenuItemNoSubs(menuName,rootURL,pctWidth,menuText)
{
	//routine to write a generic menu item
	var rootURLEsc = rootURL.replace("\\","\\\\");
	document.writeln("<td id=\"" + menuName + "_img\" class=\"rootMenuCell\" width=\"" + pctWidth + "%\" align=\"left\" onmouseout=\"mouseoutmenucolor('" + menuName + "_img');\" onmouseover=\"mouseovermenucolor('" + menuName + "_img');\">");
	document.writeln("    <div align=left style=\"position:relative;LEFT:0px;TOP:0px;WIDTH:100%;HEIGHT:20px;\">");
	document.writeln("      <div align=left style=\"position:absolute;LEFT:0px;TOP:0px;WIDTH:100%;HEIGHT:20px;z-index:1;\">");
	//document.writeln("        <a href=\"" + rootURLEsc + "\">");
	document.writeln("           <p style=\"width:100%;height:20px;z-index:1;\">&nbsp;</p>");
	//document.writeln("        </a>");
	document.writeln("      </div>");
	document.writeln("      <div align=center style=\"position:absolute;LEFT:0px;TOP:0px;WIDTH:98%;z-index:2;\">");
	document.writeln("        <a href=\"" + rootURLEsc + "\">");
	document.writeln("          <p border=0 style=\"z-index:2;\" class=\"menuTextFont\">" + menuText + "</p>");
	document.writeln("        </a>");
	document.writeln("      </div>");
	document.writeln("    </div>");
	document.writeln("</td>");
}

//write menu items here, in a seperate div that the onmouseover knows how to activate
function writeMenuItem(menuName,rootURL,pctWidth,menuItems,menuText,isLast,rootmenuText)
{

  //routine to write a generic menu item
	var rootURLEsc = rootURL.replace("\\","\\\\");
	var menuDivArg = menuName + "_items";

	if (isLast)
  {
	  document.writeln("<td id=\"" + menuName + "_img\" class=\"rootMenuCell\" width=\"" + pctWidth + "%\" align=\"right\" onmouseout=\"putoutimage('" + menuName + "_img','" + menuDivArg + "');\" onmouseover=\"putoverimage('" + menuName + "_img','" + menuDivArg + "');\">");
  }
  else
	{
	  document.writeln("<td id=\"" + menuName + "_img\" class=\"rootMenuCell\" width=\"" + pctWidth + "%\" align=\"left\" onmouseout=\"putoutimage('" + menuName + "_img','" + menuDivArg + "');\" onmouseover=\"putoverimage('" + menuName + "_img','" + menuDivArg + "');\">");
  }

  document.writeln("    <span>");
  document.writeln("    <div align=left style=\"position:relative;LEFT:0px;TOP:0px;WIDTH:100%;HEIGHT:20px;\">");
  document.writeln("      <div align=center style=\"position:absolute;LEFT:0px;TOP:0px;WIDTH:100%;HEIGHT:20px;z-index:2;\">");
  document.writeln("        <a width=100% style=\"color:#ffffff;text-decoration:none;width:100%;\" href=\"" + rootURLEsc + "\">");
  document.writeln("          <span width=100% style=\"z-index:2;\" class=\"menuTextFont\">" + rootmenuText + "</span>");
  document.writeln("        </a>");
  document.writeln("      </div>");
  document.writeln("    </div>");
  document.writeln("    </span>");

	//write the div wrapper
  if (isLast)
  {
    document.writeln("<div align=right style=\"position:relative;RIGHT:0px;TOP:0px;WIDTH:70%;HEIGHT:0px;\">");
    document.writeln("   <div id=\"" + menuDivArg + "\" class=\"paraHide\" align=right style=\"position:absolute;RIGHT=0px;TOP:0px;WIDTH:100%;z-index:2;\">");
  }
  else
  {
    document.writeln("<div align=left style=\"position:relative;LEFT:0px;TOP:0px;WIDTH:70%;HEIGHT:0px;\">");
    document.writeln("   <div id=\"" + menuDivArg + "\" class=\"paraHide\" align=left style=\"position:absolute;LEFT=0px;TOP:0px;WIDTH:100%;z-index:2;\">");
  }
  
  //write the table element line
  document.writeln("      <table bgcolor=\"#ffffff\" cellspacing=0 cellpadding=2 border=0>");
  	
	//write each cell for the menu item table
  var i;
  var theLink;
  var theText;
  var mouseOverAndOut;
  for (i = 0; i < menuItems.length; i++)
  {
    if (menuItems[i].length > 0)
		{
			theLink = menuItems[i];
			theText = "&nbsp;&nbsp;" + menuText[i] + "&nbsp;&nbsp;";
			mouseOverAndOut = " onMouseOver=\"mouseoveritemcolor('" + menuName + "_link_" + i + "')\" onMouseOut=\"mouseoutitemcolor('" + menuName + "_link_" + i + "')\"";
			
			document.writeln("      <tr>");
			if (i == 0)
			{
				document.writeln("          <td id=" + menuName + "_link_" + i + " width=100% class=\"menuItemCellTop\"" + mouseOverAndOut + " >");	
			}
			else
			{
				document.writeln("          <td id=" + menuName + "_link_" + i + " width=100% class=\"menuItemCell\"" + mouseOverAndOut + ">");		
			}
			document.writeln("            <a href=\"" + theLink + "\" style=\"cellpadding:2;color:black;text-decoration:none;width: 100%;\">" + theText + "</a>");
			document.writeln("          </td>");
			document.writeln("        </tr>");
		}
  }	
  
  document.writeln("      </table>");	
  //close the div wrapper
  document.writeln("   </div>");
  document.writeln("</div>");
  document.writeln("</td>");				  	
  	
 }
 
 function writeTheMenu()
 {
         writeCustomStyle();
         document.writeln("<table width=100% cellspacing=0 cellpadding=0 border=0 style=\"z-index:5\">");
	     document.writeln("<tr>");
         //writeMenuItemNoSubs('homemenu1','default.aspx','10','Home');
	
	    
		 var menu2Link = new Array(0);
		 var menu2Text = new Array(0); 		 		 		 
		 writeMenuItem('indmenu','http://www.winnersedgeonline.com/nfl-stats.html','10',menu2Link,menu2Text,false,'NFL');

	  
		 var menu3Link = new Array(0);
		 var menu3Text = new Array(0);		 		 		 		 
		 writeMenuItem('indmenu2','http://www.winnersedgeonline.com/cfb-stats.html','10',menu3Link,menu3Text,false,'CFB');

	
		 var menu3Link = new Array(0);
		 var menu3Text = new Array(0);	 		 		 		 
		 writeMenuItem('indmenu3','http://www.winnersedgeonline.com/nba-stats.html','10',menu3Link,menu3Text,false,'NBA');

		 var menu3Link = new Array(0);
		 var menu3Text = new Array(0);	 		 		 		 
		 writeMenuItem('indmenu7','http://www.winnersedgeonline.com/cbb-stats.html','10',menu3Link,menu3Text,false,'CBB');
		 var menu3Link = new Array(0);
		 var menu3Text = new Array(0); 		 		 		 
		 writeMenuItem('indmenu4','http://www.winnersedgeonline.com/mlb-stats.html','10',menu3Link,menu3Text,false,'MLB');
		 
		 var menu3Link = new Array(0);
		 var menu3Text = new Array(0);	 		 		 		 
		 writeMenuItem('indmenu10','http://www.winnersedgeonline.com/nhl-stats.html','10',menu3Link,menu3Text,false,'NHL');

		 var menu3Link = new Array(0);
		 var menu3Text = new Array(0);
		 writeMenuItem('indmenu11','http://www.winnersedgeonline.com/cfl-stats.html','10',menu3Link,menu3Text,false,'CFL');


		 
	// End: Links for menu
 
     document.writeln("</tr>");	    			    			    			    			    	
     document.writeln("</table>");
 }
 
 writeTheMenu();
 
 