// for Netscape 4.7x premil check
if(navigator.appName.indexOf("Netscape") != -1){
	if(parseFloat(navigator.appVersion) < 5){
		top.location.replace("http://disney.go.com/guestservices/upgrade/index.html");
		}
}

// link disclaimer
function GOurl(url){
var popDisclaimer=window.open("","disclaimer","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=370,height=240,top=5,left=5");
popDisclaimer.document.writeln('<html><head><title>Disney.com - Disclaimer</title>');
popDisclaimer.document.writeln('<SCR'+'IPT TYPE="text/javascript" LANGUAGE="JavaScript">');
popDisclaimer.document.writeln('sendTimer = setTimeout("sendToClientSide()",1500);closeTimer = setTimeout("window.close()",15000);');
popDisclaimer.document.writeln('function sendToClientSide(){window.open("'+url+'","_blank","toolbar,location,status,menubar,scrollbars,resizable");}');
popDisclaimer.document.writeln('</scr'+'ipt>');
popDisclaimer.document.writeln('</head>');
popDisclaimer.document.writeln('<body bgcolor="#FFFFFF" text="#0065CE" link="#FFFF80" vlink="#FFFF80" alink="#FFFF80" leftmargin=0 topmargin=0 marginwidth=0 marginheight=0>');
popDisclaimer.document.writeln('<table width="370" height="100%" border="0" cellspacing="0" cellpadding="0"><tr><td><img src="http://disney.go.com/globalmedia00/disclaimer/disclaimer_top.gif" width="370" height="27" alt="" border="0"></td></tr><tr><td><table width="330" border="0" cellspacing="0" cellpadding="0" align="center"><tr><td><br><FONT FACE="Verdana,sans-serif" SIZE="2" COLOR="#0065CE"><b>The web site you are about to link to is not controlled by Disney Online and different terms of use and privacy policy will apply. By proceeding you agree and understand that Disney Online is not responsible for the site you are about to access.<br><br>If your page does not load within a few seconds, please <a href="javascript:sendToClientSide();"><font color="#000000">click here</font></a> to open it.</b></FONT><br><br></td></tr></table>');
popDisclaimer.document.writeln('</td></tr><tr bgcolor="#0000CC"><td align="center" height="20"><a href="javascript:window.close();"><FONT FACE="Verdana,sans-serif" SIZE="1" COLOR="#FFFF00"><b>Close this window</b></font></a></td></tr></table>');
popDisclaimer.document.writeln('</body></html>');
popDisclaimer.document.close();
}
// end link disclaimer






//-----------------------------------------------
function rollover(imgID) {
  // get the image object we're referring to
  var thisimg = document.getElementById(imgID);
  // and add "_on" to its src
  thisimg.src = thisimg.src.replace(/_off(\.[a-z0-9]+)$/i,'_on$1');
}
function rollout(imgID) {
  // get the image object we're referring to
  var thisimg = document.getElementById(imgID);
  // and remove "_on" from its src
  thisimg.src = thisimg.src.replace(/_on(\.[a-z0-9]+)$/i,'_off$1');
}

//-----------------------------------------------

function writeNav(){
navArray = new Array("Home","Contest","HowTo","Resources","PastWinners","Links","Rules");
for(i=0;i<navArray.length;i++){
document.write('<div id="'+navArray[i]+'_container" class="navContainer">');
eval("write"+navArray[i]+"Nav()");
document.write('</div>');
}

}

function writeHomeNav(){
  if (navItem!="home"){
  document.write('<a href="http://disney.go.com/allstars/index.html" onmouseover="rollover(\'home\')" onmouseout="rollout(\'home\')"><img src="http://disney.go.com/allstars/media/nav/as_nav_home_off.gif" width="177" height="21" alt="Home" border="0" id="home"></a>');
  }else{
  document.write('<img src="http://disney.go.com/allstars/media/nav/as_nav_home_on.gif" width="177" height="21" alt="How To Enter" border="0">');
  }
}

function writeRulesNav(){
  if (navItem!="rules"){
  document.write('<a href="http://disney.go.com/allstars/rules.html" onmouseover="rollover(\'rules\')" onmouseout="rollout(\'rules\')"><img src="http://disney.go.com/allstars/media/nav/as_nav_rules_off.gif" width="177" height="21" alt="Contest Rules" border="0" id="rules"></a>');
  }else{
  document.write('<img src="http://disney.go.com/allstars/media/nav/as_nav_rules_on.gif" width="177" height="21" alt="Contest Rules" border="0">');
  }
}

function writeHowToNav(){
  if (navItem!="howtoenter"){
  document.write('<a href="http://disney.go.com/allstars/howtoenter.html" onmouseover="rollover(\'howtoenter\')" onmouseout="rollout(\'howtoenter\')"><img src="http://disney.go.com/allstars/media/nav/as_nav_howto_off.gif" width="177" height="21" alt="How To Enter" border="0" id="howtoenter"></a>');
  }else{
  document.write('<a href="http://disney.go.com/allstars/howtoenter.html"><img src="http://disney.go.com/allstars/media/nav/as_nav_howto_on.gif" width="177" height="21" alt="How To Enter" border="0"></a>');
  }
}

function writeResourcesNav(){
  if (navItem!="resources"){
  document.write('<a href="http://disney.go.com/allstars/for_kids/index.html" onmouseover="rollover(\'resources\')" onmouseout="rollout(\'resources\')"><img src="http://disney.go.com/allstars/media/nav/as_nav_resources_off.gif" width="177" height="21" alt="Resources" border="0" id="resources"></a>');
  }else{
  document.write('<img src="http://disney.go.com/allstars/media/nav/as_nav_resources_on.gif" width="177" height="21" alt="Resources" border="0"><br>');
    if (subNavItem=="kids"){
	document.write('<img src="http://disney.go.com/allstars/media/nav/subnav_resources_kids_on.gif" width="151" height="19" alt="For Kids" border="0" id="resources_kids"><br><a href="http://disney.go.com/allstars/for_parents/index.html" onmouseover="rollover(\'resources_parents\')" onmouseout="rollout(\'resources_parents\')"><img src="http://disney.go.com/allstars/media/nav/subnav_resources_parents_off.gif" width="151" height="19" alt="For Parents and Teachers" border="0" id="resources_parents"></a><br><a href="http://disney.go.com/allstars/links/volunteer.html" onmouseover="rollover(\'links_volunteer\')" onmouseout="rollout(\'links_volunteer\')"><img src="http://disney.go.com/allstars/media/nav/subnav_links_volunteer_off.gif" width="151" height="19" alt="Volunteer Links" border="0" id="links_volunteer"></a>');
    }else if (subNavItem=="parents"){
  document.write('<a href="http://disney.go.com/allstars/for_kids/index.html" onmouseover="rollover(\'resources_kids\')" onmouseout="rollout(\'resources_kids\')"><img src="http://disney.go.com/allstars/media/nav/subnav_resources_kids_off.gif" width="151" height="19" alt="For Kids" border="0" id="resources_kids"></a><br><img src="http://disney.go.com/allstars/media/nav/subnav_resources_parents_on.gif" width="151" height="19" alt="For Parents and Teachers" border="0" id="resources_parents"><br><a href="http://disney.go.com/allstars/links/volunteer.html" onmouseover="rollover(\'links_volunteer\')" onmouseout="rollout(\'links_volunteer\')"><img src="http://disney.go.com/allstars/media/nav/subnav_links_volunteer_off.gif" width="151" height="19" alt="Volunteer Links" border="0" id="links_volunteer"></a>');
	}else if (subNavItem=="volunteer"){
  document.write('<a href="http://disney.go.com/allstars/for_kids/index.html" onmouseover="rollover(\'resources_kids\')" onmouseout="rollout(\'resources_kids\')"><img src="http://disney.go.com/allstars/media/nav/subnav_resources_kids_off.gif" width="151" height="19" alt="For Kids" border="0" id="resources_kids"></a><br><a href="http://disney.go.com/allstars/for_parents/index.html" onmouseover="rollover(\'resources_parents\')" onmouseout="rollout(\'resources_parents\')"><img src="http://disney.go.com/allstars/media/nav/subnav_resources_parents_off.gif" width="151" height="19" alt="For Parents and Teachers" border="0" id="resources_parents"></a><br><img src="http://disney.go.com/allstars/media/nav/subnav_links_volunteer_on.gif" width="151" height="19" alt="Volunteer Links" border="0" id="links_volunteer">');
	}
  }
}

function writePastWinnersNav(){
  if (navItem!="pastwinners"){
  document.write('<a href="http://disney.go.com/allstars/winners/winners_kid_2006.html" onmouseover="rollover(\'pastwinners\')" onmouseout="rollout(\'pastwinners\')"><img src="http://disney.go.com/allstars/media/nav/as_nav_pastwin_off.gif" width="177" height="21" alt="Past Winners" border="0" id="pastwinners"></a>');
  }else{
  document.write('<img src="http://disney.go.com/allstars/media/nav/as_nav_pastwin_on.gif" width="177" height="21" alt="Past Winners" border="0"><br>');
   if(subNavItem=="kid"){
  document.write('<img src="http://disney.go.com/allstars/media/nav/subnav_past_kid_on.gif" width="151" height="19" alt="Kid All-Star Winners" border="0" id="pastwinners_kid"><br><a href="http://disney.go.com/allstars/winners/winners_team_2006.html" onmouseover="rollover(\'pastwinners_team\')" onmouseout="rollout(\'pastwinners_team\')"><img src="http://disney.go.com/allstars/media/nav/subnav_past_team_off.gif" width="151" height="19" alt="Team All-Star Winners" border="0" id="pastwinners_team"></a><br><a href="http://disney.go.com/allstars/winners/winners_school_2006.html" onmouseover="rollover(\'pastwinners_school\')" onmouseout="rollout(\'pastwinners_school\')"><img src="http://disney.go.com/allstars/media/nav/subnav_past_school_off.gif" width="151" height="19" alt="School All-Star Winners" border="0" id="pastwinners_school"></a>');
   }else if (subNavItem=="team"){
   document.write('<a href="http://disney.go.com/allstars/winners/winners_kid_2006.html" onmouseover="rollover(\'pastwinners_kid\')" onmouseout="rollout(\'pastwinners_kid\')"><img src="http://disney.go.com/allstars/media/nav/subnav_past_kid_off.gif" width="151" height="19" alt="Kid All-Star Winners" border="0" id="pastwinners_kid"></a><br><img src="http://disney.go.com/allstars/media/nav/subnav_past_team_on.gif" width="151" height="19" alt="Team All-Star Winners" border="0" id="pastwinners_team"><br><a href="http://disney.go.com/allstars/winners/winners_school_2006.html" onmouseover="rollover(\'pastwinners_school\')" onmouseout="rollout(\'pastwinners_school\')"><img src="http://disney.go.com/allstars/media/nav/subnav_past_school_off.gif" width="151" height="19" alt="School All-Star Winners" border="0" id="pastwinners_school"></a>');
   }else if (subNavItem=="school"){
   document.write('<a href="http://disney.go.com/allstars/winners/winners_kid_2006.html" onmouseover="rollover(\'pastwinners_kid\')" onmouseout="rollout(\'pastwinners_kid\')"><img src="http://disney.go.com/allstars/media/nav/subnav_past_kid_off.gif" width="151" height="19" alt="Kid All-Star Winners" border="0" id="pastwinners_kid"></a><br><a href="http://disney.go.com/allstars/winners/winners_team_2006.html" onmouseover="rollover(\'pastwinners_team\')" onmouseout="rollout(\'pastwinners_team\')"><img src="http://disney.go.com/allstars/media/nav/subnav_past_team_off.gif" width="151" height="19" alt="Team All-Star Winners" border="0" id="pastwinners_team"></a><br><img src="http://disney.go.com/allstars/media/nav/subnav_past_school_on.gif" width="151" height="19" alt="School All-Star Winners" border="0" id="pastwinners_school">');
   
   }
  }
}

function writeContestNav(){
  if (navItem!="aboutcontest"){
  document.write('<a href="http://disney.go.com/allstars/about.html" onmouseover="rollover(\'about\')" onmouseout="rollout(\'about\')"><img src="http://disney.go.com/allstars/media/nav/as_nav_contest_off.gif" width="177" height="21" alt="About the Contest" border="0" id="about"></a>');
  }else{
  document.write('<img src="http://disney.go.com/allstars/media/nav/as_nav_contest_on.gif" width="177" height="21" alt="About the Contest" border="0">');
  }
}

function writeLinksNav(){
  if (navItem!="links"){
  document.write('<a href="http://disney.go.com/allstars/links/index.html" onmouseover="rollover(\'links\')" onmouseout="rollout(\'links\')"><img src="http://disney.go.com/allstars/media/nav/as_nav_links2_off.gif" width="177" height="21" alt="Disney Links" border="0" id="links"></a>');
  }else{
  document.write('<img src="http://disney.go.com/allstars/media/nav/as_nav_links2_on.gif" width="177" height="21" alt="DisneyLinks" border="0">');
  /*if(subNavItem!="disney"){
  document.write('<a href="http://disney.go.com/allstars/links/index.html" onmouseover="rollover(\'links_disney\')" onmouseout="rollout(\'links_disney\')"><img src="http://disney.go.com/allstars/media/nav/subnav_links_disney_off.gif" width="151" height="19" alt="Disney Links" border="0" id="links_disney"></a><br><img src="http://disney.go.com/allstars/media/nav/subnav_links_volunteer_on.gif" width="151" height="19" alt="Volunteer Links" border="0" id="links_volunteer">');
  } else if (subNavItem!="volunteer"){
  document.write('<img src="http://disney.go.com/allstars/media/nav/subnav_links_disney_on.gif" width="151" height="19" alt="Disney Links" border="0" id="links_disney"><br><a href="http://disney.go.com/allstars/links/volunteer.html" onmouseover="rollover(\'links_volunteer\')" onmouseout="rollout(\'links_volunteer\')"><img src="http://disney.go.com/allstars/media/nav/subnav_links_volunteer_off.gif" width="151" height="19" alt="Volunteer Links" border="0" id="links_volunteer"></a>');
  }*/
  }
}
