function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

//document.write('<script type="text/javascript" src="' + 'http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.js' + '"></scr' + 'ipt>');
document.getElementById("top_header").style.display = "none";
document.getElementById("main_nav").style.display = "none";
document.getElementById("sub_nav").style.display = "none";
document.getElementById("masthead").style.height = "140px";
document.getElementById("masthead").style.padding = "0";
document.getElementById("masthead").style.background = "none";

var hoftmp = '<style type="text/css">' +
											'#navi td ul {'+
											'	margin: 0 0 0 0;'+
											'	padding: 0;'+
											'	position: absolute;'+
											'	visibility: hidden;'+
											'	border: 1px solid white;' +
											'	background: #FEFDF8;' +
											'	font-size:11px;' +
											'	list-style-image:none;' +
											'	list-style-type:none;' +
											'	font-family:Verdana, Arial, Helvetica, sans-serif;' +
											'	min-width:161px;' +
											'}' +
											'#navi td ul li {' +
											'	float: none;' +
											'	list-style-image:none;' +
											'	list-style-type:none;' +
											'	padding: 0;' +
											'	border-bottom:1px solid #9F1B1B;' +
											'	border-left:1px solid #9F1B1B;' +
											'	border-right:1px solid #9F1B1B;' +
											'}' +
											'#navi td ul li a {' +
											'	display:block;' +
											'	margin:0;' +
											'	padding: 4px 3px;' +
											'	text-decoration:none;' +
											'}' +
											'#navi td ul li a:hover {' +
											'	background:#fef9e6;' +
											'}' +
											'#masthead {' +
											'	height:140px !important;' +
											' background: none;' +
											'	padding:0;' +
											'}' +
											'</style>' +
											'<div style="top:0px; width:951px; text-align:center; margin:0 auto; z-index:11; background:#FFF;">' +
											'<a href="http://www.profootballfestival.com"><img src="http://profootballfestival.com/images/header.jpg" width="898" height="107" /></a>'+
											'<a href="http://profootballfestival.com/schedule.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'Image3\',\'\',\'http://profootballfestival.com/images/btn_schedule_on.jpg\',1)"><img src="http://profootballfestival.com/images/btn_schedule.jpg" alt="Schedule of Events" name="Image3" width="193" height="23" border="0" id="Image3" /></a>' +
											'<a href="http://profootballfestival.com/enshrinees2009.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'Image4\',\'\',\'http://profootballfestival.com/images/btn_enshrinees_on.jpg\',1)"><img src="http://profootballfestival.com/images/btn_enshrinees.jpg" alt="Enshrinees" name="Image4" width="161" height="23" border="0" id="Image4" /></a>' +
											'<a href="http://www.cantonrep.com/sports/hall_of_fame" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'Image6\',\'\',\'http://profootballfestival.com/images/btn_news_on.jpg\',1)"><img src="http://profootballfestival.com/images/btn_news.jpg" alt="News" name="Image6" width="124" height="23" border="0" id="Image6" /></a>' +
											'<a href="http://profootballfestival.com/multimedia.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'Image5\',\'\',\'http://profootballfestival.com/images/btn_multimedia_on.jpg\',1)"><img src="http://profootballfestival.com/images/btn_multimedia.jpg" alt="Multimedia" name="Image5" width="158" height="23" border="0" id="Image5" /></a>' +
											'<a href="http://profootballfestival.com/lodging.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'Image7\',\'\',\'http://profootballfestival.com/images/btn_lodging_on.jpg\',1)"><img src="http://profootballfestival.com/images/btn_lodging.jpg" alt="Lodging" name="Image7" width="125" height="23" border="0" id="Image7" /></a>' +
											'<a href="http://media.cantonrep.com/contact_us/" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'Image8\',\'\',\'http://profootballfestival.com/images/btn_contact_on.jpg\',0)"><img src="http://profootballfestival.com/images/btn_contact.jpg" alt="Contact Us" name="Image8" width="137" height="23" border="0" id="Image8" /></a>' +
											'</div>';
											
document.getElementById('masthead').innerHTML = hoftmp;


var timeout    = 500;
var closetimer = 0;
var ddmenuitem = 0;

function jsddm_open()
{  jsddm_canceltimer();
   jsddm_close();
   ddmenuitem = $(this).find('ul').css('visibility', 'visible');}

function jsddm_close()
{  if(ddmenuitem) ddmenuitem.css('visibility', 'hidden');}

function jsddm_timer()
{  closetimer = window.setTimeout(jsddm_close, timeout);}

function jsddm_canceltimer()
{  if(closetimer)
   {  window.clearTimeout(closetimer);
      closetimer = null;}}

$(document).ready(function()
{  $('#navi > td').bind('mouseover', jsddm_open)
   $('#navi > td').bind('mouseout',  jsddm_timer)});

document.onclick = jsddm_close;


