// Remove outer frame
//if (top.document != self.document)
//  { 
//    window.location = self.document.location; 
//  };

if (document.location != top.location)
{
    top.location = document.location;
};

//isNs4()
//isIe4()
//isNs3()
//isNs()
//isIe()
//function scrollit_r2l(seed)
//function makearray(n) 
//function setbgColor(r, g, b) 
//function fade(sr, sg, sb, er, eg, eb, step) 
//function hex(i) 
//function fadein() 
//function putmenu(page)


function isIe4()
{
 return ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4 ))
}
function isNs4()
{
 return ((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) >= 4 ))
}
function isNs3()
{
 return ((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) <= 3 ))
}

function isIe()
{
 return (navigator.appName == "Microsoft Internet Explorer") 
}
function isNs()
{
 return (navigator.appName == "Netscape")
}

/************************************************************/
/* Copyright (C)1996 Web Integration Systems, Inc. DBA Websys, Inc.
   All Rights Reserved.
   This applet can be re-used or modified, if credit is given in the source code.
   We will not be held responsible for any unwanted effects due to the usage of this 
      applet or any derivative.  No warrantees for usability 
   for any specific application are given or implied.
  Chris Skinner, January 30th, 1996.
*/

function scrollit_r2l(seed)

{
	var msg="All American SportsWare...Does League Administration Right!"
	var out = " ";
	var c   = 1;
	if (seed > 100) {
		seed--;
		var cmd="scrollit_r2l(" + seed + ")";
		timerTwo=window.setTimeout(cmd,100);
	}
	else if (seed <= 100 && seed > 0) {
		for (c=0 ; c < seed ; c++) {
			out+=" ";
		}
		out+=msg;
		seed--;
		var cmd="scrollit_r2l(" + seed + ")";
		    window.status=out;
		timerTwo=window.setTimeout(cmd,100);

	}
	else if (seed <= 0) {
		if (-seed < msg.length) {
			out+=msg.substring(-seed,msg.length);
			seed--;
			var cmd="scrollit_r2l(" + seed + ")";
			window.status=out;
			timerTwo=window.setTimeout(cmd,100);
		}
		else {
			window.status=" ";
			timerTwo=window.setTimeout("scrollit_r2l(100)",75);
		}
	}
}

/*************************************************************
 * Copyright (c) 1997 - ASMAT.
 * All Rights Reserved.
 * Designed by : Dibya Pradana
 */

function makearray(n) 
{
    this.length = n;
    for(var i = 1; i <= n; i++)
        this[i] = 0;
    return this
}

hexa = new makearray(16);
for(var i = 0; i < 10; i++)
    hexa[i] = i;
hexa[10]="a"; hexa[11]="b"; hexa[12]="c";
hexa[13]="d"; hexa[14]="e"; hexa[15]="f";

function hex(i) 
{
    if (i < 0)
        return "00";
    else if (i > 255)
        return "ff";
    else
        return "" + hexa[Math.floor(i/16)] + hexa[i%16];
}


function setbgColor(r, g, b) 
{
    var hr = hex(r); var hg = hex(g); var hb = hex(b);
    document.bgColor = "#"+hr+hg+hb;
}



function fade(sr, sg, sb, er, eg, eb, step) 
{
  for(var i = 0; i <= step; i++) 
    {
        setbgColor(
          Math.floor(sr * ((step-i)/step) + er * (i/step)),
          Math.floor(sg * ((step-i)/step) + eg * (i/step)),
          Math.floor(sb * ((step-i)/step) + eb * (i/step)));
    }
}


function fadein() 
{ fade(0,0,0, 255,255,255, 100); }


/***** end fade script *****/


function putmenu(page)
{

// Use this code to add the menu to a web page
//       <SCRIPT LANGUAGE='javascript'><!--
//         putmenu('index.htm');
//         // -->
//       </SCRIPT>

//if (isIe4()) {
 document.writeln('<STYLE>');
 document.writeln('TD.putmenu_root     {background-color:000000;color:FFFFFF;font-family:arial,verdana;font-size:small;font-weight:bold; }');
 document.writeln('TD.putmenu          {background-color:000000;color:FFFFFF;font-family:arial,verdana;font-size:small;font-weight:bold; background-image:url(/images/menu/menuback-grn.gif);}');
 document.writeln('TD.putmenu_at       {background-color:000000;color:00FF00;font-family:arial,verdana;font-size:small;font-weight:bold; background-image:url(/images/menu/menuback-grn.gif);}');
 document.writeln('TD.putmenu:hover    {background-color:333333; background-image:/images/menu/menuback-grn.gif;}');
 document.writeln('TD.putmenu_at:hover {background-color:333333; background-image:/images/menu/menuback-grn.gif;}');
 document.writeln('A.putmenu:link    {color:FFFFFF;text-decoration:none;font-weight:bold}');
 document.writeln('A.putmenu:visited {color:FFFFFF;text-decoration:none;font-weight:bold}');
 document.writeln('A.putmenu:active  {color:FFFF00;text-decoration:none;font-weight:bold;background-color:ff3333}');
 document.writeln('A.putmenu:hover   {color:FFFF00;text-decoration:none;font-weight:bold;background-color:888888}');
 document.writeln('</STYLE>')
//};

 target = '';
 if (page=='training_fs.htm') {  target = "target='_top'"; };  

 document.writeln('<TABLE BORDER="0" height="30" cellpadding="0" cellspacing="0" STYLE="vertical-align:top">');
   // This makes it taller if you put it in <table>: bgcolor=000000
   // Any spaces inside the <TD>...</TD> cause funny spaces in Netscape!
 document.write('<TR>');

 //************** HOME
 if (page=='index.htm')
   {
    document.write('<TD CLASS="putmenu_at">');
    if (isIe4()) {
    document.write('&nbsp;&nbsp;Home&nbsp;&nbsp;');
    } else {
    document.write('<img src="/images/menu/at_home.gif" hspace=0 vspace=0 height=30 width=100 border=0 alt="Home">');
    };
   } else { 
    document.write('<TD CLASS="putmenu_root">');
    if (page=='order.htm') { document.write('<a class="putmenu" border=0 href="http://www.AllAmericanSportsWare.com/" title="Back to Home Page" '+target+'>');
                    } else { document.write('<a class="putmenu" border=0 href="/" title="Back to Home Page" '+target+'>');     };
      document.write('<IMG SRC="/images/home_aas.gif" height=26 width=32 BORDER=0>');
      document.write('</A></TD><TD CLASS="putmenu_root">');
      if (page=='order.htm') { document.write('<a class="putmenu" border=0 href="http://www.AllAmericanSportsWare.com/" title="Back to Home Page" '+target+'>');
                      } else { document.write('<a class="putmenu" border=0 href="/" title="Back to Home Page" '+target+'>');      };
      document.write('&nbsp;&nbsp;Home&nbsp;&nbsp;');
    document.write('</a>');
   };
 document.write('</TD>');

 //************** ADMIN
 if ( (page=='las/index.htm') ||
      (page=='las')  )
  {
    document.writeln('    <TD CLASS="putmenu_at">');
    document.write('&nbsp;&nbsp;Administration&nbsp;&nbsp;');
  } else { 
    document.writeln('    <TD CLASS="putmenu_root">');
    if (page=='order.htm') {
    document.write('<a class="putmenu" border=0 href="http://www.AllAmericanSportsWare.com/las/" title="League Administration Software (LAS)" >');
    } else {
    document.write('<a class="putmenu" border=0 href="/las/" title="League Administration Software (LAS)" '+target+'>');
    };
    document.write('&nbsp;&nbsp;Administration&nbsp;&nbsp;');
    document.write('</a>');
 };
 document.write('</TD>');

 //************** SCHED
  if ( (page=='sched.htm') ||
       (page=='gt.htm')    ||
       (page=='tt.htm')    || 
       (page=='tt')        || 
       (page=='arbiter.htm')  )
   {
    document.writeln('    <TD BGCOLOR=#000000 CLASS="putmenu_at">');
    if (page!='sched.htm') { document.write('<a class="putmenu" border=0 href="/sched.htm" title="GameTime (GT) and Tournament Time (TT)" '+target+' style="text-decoration:none;font-weight:bold;">'); };
    document.write( '&nbsp;&nbsp;Scheduling&nbsp;&nbsp;');
    if (page!='sched.htm') {  document.write('</a>') };
  } else {
    document.writeln('    <TD BGCOLOR=#000000 CLASS="putmenu_root">');
    if (page=='order.htm') {
    document.write('<a class="putmenu" border=0 href="http://www.AllAmericanSportsWare.com/sched.htm" title="GameTime (GT) and Tournament Time (TT)" >');
    } else {
    document.write('<a class="putmenu" border=0 href="/sched.htm" title="GameTime (GT) and Tournament Time (TT)" '+target+'>');
    };
    document.write( '&nbsp;&nbsp;Scheduling&nbsp;&nbsp;');
    document.write('</a>');
  };
 document.write('</TD>');

 //************** STATS
 if (page=='sp.htm')
  {
   document.write('<TD CLASS="putmenu_at">');
   document.write( '&nbsp;&nbsp;Statistics&nbsp;&nbsp;');
  } else { 
   document.write('<TD CLASS="putmenu_root">');
   if (page=='order.htm') {
   document.write('<a class="putmenu" border=0 href="http://www.AllAmericanSportsWare.com/sp.htm" title="StatsPack for all Sports (SP,FSP,HSP,SSP,BKSP)" >');
   } else {
   document.write('<a class="putmenu" border=0 href="/sp.htm" title="StatsPack for all Sports (SP,FSP,HSP,SSP,BKSP)" '+target+'>');
   };
   document.write( '&nbsp;&nbsp;Statistics&nbsp;&nbsp;');
   document.write('</a>');
  };
 document.write('</TD>');

 //************** SCORING
 if (page=='scoring.htm')
  {
   document.write('<TD CLASS="putmenu_at">');
   document.write( '&nbsp;&nbsp;Scoring&nbsp;&nbsp;');
  }
 else
  {
   document.write('<TD CLASS="putmenu_root">');
   if (page=='order.htm') {
   document.write('<a class="putmenu" border=0 href="http://www.AllAmericanSportsWare.com/scoring.htm" title="ScoreBook" >');
   } else {
   document.write('<a class="putmenu" border=0 href="/scoring.htm" title="ScoreBook" '+target+'>');
   };
   document.write( '&nbsp;&nbsp;Scoring&nbsp;&nbsp;');
   document.write('</a>');
  };
 document.write('</TD>');

 //************** TRAINING
 if (page=='training')
  {
   document.write('<TD CLASS="putmenu_at">');
   document.write( '&nbsp;&nbsp;Training&nbsp;&nbsp;');
  }
 else
  {
   document.write('<TD CLASS="putmenu_root">');
   if (page=='order.htm') {
   document.write('<a class="putmenu" border=0 href="http://www.AllAmericanSportsWare.com/training" title="Training CDs" >');
   } else {
   document.write('<a class="putmenu" border=0 href="/training" title="Training" '+target+'>');
   };
   document.write( '&nbsp;&nbsp;Training&nbsp;&nbsp;');
   document.write('</a>');
  };
 document.write('</TD>');

 //************** SURVEYS
 if ((page=='srv_las.htm')||(page=='srv_tt.htm'))
  {
   document.write('<TD CLASS="putmenu_at" width="150">');
   document.write( '&nbsp;&nbsp;Feedback&nbsp;&nbsp;');
  }
 else
  {
   document.write('<TD CLASS="putmenu_root">');
   if (page=='order.htm') {
   document.write('<a class="putmenu" border=0 href="http://www.AllAmericanSportsWare.com/srv_las.htm" title="User Feedback" >');
   } else {
   document.write('<a class="putmenu" border=0 href="/srv_las.htm" title="User Feedback" '+target+'>');
   };
   document.write( '&nbsp;&nbsp;Feedback&nbsp;&nbsp;');
   document.write('</a>');
  };
 document.write('</TD>');

 //************** Developer
 if ((page=='/developers')||(page=='/developers'))
  {
   document.write('<TD CLASS="putmenu_at">');
   document.write( '&nbsp;&nbsp;Developer&nbsp;Tools&nbsp;&nbsp;');
  }
 else
  {
   document.write('<TD CLASS="putmenu_root">');
   if (page=='order.htm') {
   document.write('<a class="putmenu" border=0 href="http://www.AllAmericanSportsWare.com/developers" title="Developer Tools" >');
   } else {
   document.write('<a class="putmenu" border=0 href="/developers" title="Developer Tools" '+target+'>');
   };
   document.write( '&nbsp;&nbsp;Developer&nbsp;Tools&nbsp;&nbsp;');
   document.write('</a>');
  };
 document.write('</TD>');

 //************* PAGE COUNTER
 var ending = ' height=20>';
// if (isIe4()) { 
    ending = ' >' 
//  };
 if (page=='scoring.htm')
  {
   document.write('<TD CLASS="putmenu_root">');
   document.write('<img border="0" src="http://fastcounter.bcentral.com/fastcounter?267942+535891" '+ending);
   document.write('</TD>');
  };

 if (page=='faq.htm')
  {
   document.write('<TD CLASS="putmenu_root">');
   document.write('<img border="0" src="http://fastcounter.bcentral.com/fastcounter?1254929+2509865" '+ending);
   document.write('</TD>');
  };
 if (page=='faq/index.htm')
  {
   document.write('<TD CLASS="putmenu_root">');
   document.write('<img border="0" src="http://fastcounter.bcentral.com/fastcounter?3386245+6772497" '+ending);
   document.write('</TD>');
  };
 if (page=='faq/las.htm')
  {
   document.write('<TD CLASS="putmenu_root">');
   document.write('<img border="0" src="http://fastcounter.bcentral.com/fastcounter?3386240+6772487" '+ending);
   document.write('</TD>');
  };
 if (page=='faq/gt.htm')
  {
   document.write('<TD CLASS="putmenu_root">');
   document.write('<img border="0" src="http://fastcounter.bcentral.com/fastcounter?3386241+6772489" '+ending);
   document.write('</TD>');
  };
 if (page=='faq/tt.htm')
  {
   document.write('<TD CLASS="putmenu_root">');
   document.write('<img border="0" src="http://fastcounter.bcentral.com/fastcounter?3386242+6772491" '+ending);
   document.write('</TD>');
  };
 if (page=='faq/sp.htm')
  {
   document.write('<TD CLASS="putmenu_root">');
   document.write('<img border="0" src="http://fastcounter.bcentral.com/fastcounter?3386243+6772493" '+ending);
   document.write('</TD>');
  };
 if (page=='faq/scorebk.htm')
  {
   document.write('<TD CLASS="putmenu_root">');
   document.write('<img border="0" src="http://fastcounter.bcentral.com/fastcounter?3386244+6772495" '+ending);
   document.write('</TD>');
  };



 if (page=='training')
  {
   document.write('<TD CLASS="putmenu_root">');
   document.write('<img border="0" src="http://fastcounter.bcentral.com/fastcounter?2193965+4387937" '+ending);
   document.write('</TD>');
  };

 if (page=='/ftp/index.htm')
  {
   document.write('<TD CLASS="putmenu_root">');
   document.write('<img border="0" src="http://fastcounter.bcentral.com/fastcounter?2084489+4168985" '+ending);
   document.write('</TD>');
  };

 if (page=='/ftp/sb/index.htm')
  {
   document.write('<TD CLASS="putmenu_root">');
   document.write('<img border="0" src="http://fastcounter.bcentral.com/fastcounter?2265899+4531805"> '+ending);
   document.write('</TD>');
  };

 document.writeln('</TR>');

//*****************************  Do Second Row! ************************************
 if (    (page=='srv_las.htm')
      || (page=='srv_tt.htm' )
      || (page=='sched.htm'  )
      || (page=='gt.htm'     )
      || (page=='tt.htm'     )
      || (page=='arbiter.htm') 
      || (page=='sp.htm') 
      || (page=='baseball.htm') 
      || (page=='hockey.htm') 
    )
  {
   document.write('<TR>');

     document.write('<TD></TD>') 
     document.write('<TD></TD>'); //HOME
     document.write('<TD></TD>'); //ADMIN
     if (   (page=='sched.htm')||(page=='gt.htm')
          ||(page=='tt.htm')||(page=='tt')
          ||(page=='arbiter.htm'))
      {
       if (page=='gt.htm')
        {
         document.write('<TD CLASS="putmenu_at" style="font-weight:bold;color:#00AA00">'); //SCHED
         document.write( '&nbsp;&nbsp;GameTime&nbsp;&nbsp;');
        }
       else
        {
         document.write('<TD CLASS="putmenu">'); //SCHED
         document.write('<a class="putmenu" border=0 href="/gt.htm" title="GameTime" >');
         document.write( '&nbsp;&nbsp;GameTime&nbsp;&nbsp;');
         document.write('</a>');
        };
      } else { 
      document.write('<TD>'); //SCHED      
     };

     if ( (page=='sp.htm')||(page=='baseball.htm')||(page=='hockey.htm') )
     {
         document.write('<TD CLASS="putmenu" >'); //SCHED
         document.write('<a class="putmenu" border=0 href="/baseball.htm">');
         document.write( '&nbsp;&nbsp;Baseball&nbsp;&nbsp;');
         document.write('</a>');
     }
     else
     {
       document.write('<TD></TD>'); //STATS
     };
     document.write('<TD></TD>'); //SCORING
     document.write('<TD></TD>'); //TRAINING
   
     if ((page=='srv_las.htm')||(page=='srv_tt.htm'))
      {
       if (page=='srv_las.htm')
        {
         document.write('<TD CLASS="putmenu_at">'); //SURVEYS
         document.write( '&nbsp;&nbsp;League&nbsp;Administraion&nbsp;&nbsp;');
        }
       else
        {
         document.write('<TD CLASS="putmenu">'); //SURVEYS
         document.write('<a class="putmenu" border=0 href="/srv_las.htm" title="LAS Survey" >');
         document.write( '&nbsp;&nbsp;League&nbsp;Administration&nbsp;&nbsp;');
         document.write('</a>');
        };
       } else {
     document.write('<TD>'); //SURVEYS
       };
   document.write('</TD>');

   document.writeln('</TR>');
  };

//*****************************  Do Third Row! ************************************
 if (    (page=='srv_las.htm')
      || (page=='srv_tt.htm')
      || (page=='sched.htm')
      || (page=='gt.htm')
      || (page=='tt.htm')
      || (page=='tt')
      || (page=='arbiter.htm') 
      || (page=='sp.htm') 
      || (page=='baseball.htm') 
      || (page=='hockey.htm') 
     )
  {
   document.write('<TR>');

       document.write('<TD></TD>') 
     document.write('<TD></TD>'); //HOME
     document.write('<TD></TD>'); //ADMIN
     if ((page=='sched.htm')
         ||(page=='gt.htm')
         ||(page=='tt.htm')
         ||(page=='tt')
         ||(page=='arbiter.htm'))
      {
       if ( (page=='tt.htm') || (page=='tt') )
        {
         document.write('<TD CLASS="putmenu_at">'); //SCHED
         document.write( '&nbsp;&nbsp;Tournament&nbsp;Time&nbsp;&nbsp;');
        }
       else
        {
         document.write('<TD CLASS="putmenu">'); //SCHED
         document.write('<a class="putmenu" border=0 href="/tt/" title="Tournament Time" >');
         document.write( '&nbsp;&nbsp;Tournament&nbsp;Time&nbsp;&nbsp;');
         document.write('</a>');
        };
      } else {
      document.write('<TD>'); //SCHED
      };
     document.write('</TD>');

     if ( (page=='sp.htm')||(page=='baseball.htm')||(page=='hockey.htm') )
     {
         document.write('<TD CLASS="putmenu">'); //SCHED
         document.write('<a class="putmenu" border=0 href="/hockey.htm">');
         document.write( '&nbsp;&nbsp;Hockey&nbsp;&nbsp;');
         document.write('</a>');
     }
     else
     {
       document.write('<TD></TD>'); //STATS
     };
     document.write('<TD></TD>'); //SCORING
     document.write('<TD></TD>'); //TRAINING
   
     if ((page=='srv_las.htm')||(page=='srv_tt.htm'))
      {
       if (page=='srv_tt.htm')
        {
         document.write('<TD CLASS="putmenu_at">'); //SURVEYS
         document.write( '&nbsp;&nbsp;Tournament&nbsp;Time&nbsp;&nbsp;');
        }
       else
        {
         document.write('<TD CLASS="putmenu">'); //SURVEYS
         document.write('<a class="putmenu" border=0 href="/srv_tt.htm" title="TT Survey" >');
         document.write( '&nbsp;&nbsp;Tournament&nbsp;Time&nbsp;&nbsp;');
         document.write('</a>');
        };
      } else {
      document.write('<TD>'); //SURVEYS
      };
   document.write('</TD>');
   document.writeln('</TR>');
  };

//*****************************  Do Fourth Row! ************************************
 if (    (page=='sched.htm')
      || (page=='gt.htm')
      || (page=='tt.htm')
      || (page=='tt')
      || (page=='arbiter.htm') 
      || (page=='sp.htm') 
      || (page=='baseball.htm') 
      || (page=='hockey.htm') 
     )
  {
   document.writeln('<TR>');

       document.write('<TD></TD>') 
     document.write('<TD></TD>'); //HOME
     document.write('<TD></TD>'); //ADMIN
     if ( (page=='sched.htm')||(page=='gt.htm')
          ||(page=='tt.htm')
          ||(page=='tt')
          ||(page=='arbiter.htm'))
      {
       if (page=='arbiter.htm')
        {
         document.write('<TD CLASS="putmenu_at">'); //SCHED
         document.write( '&nbsp;&nbsp;Arbiter&nbsp;&nbsp;');
        }
       else
        {
         document.write('<TD CLASS="putmenu">'); //SCHED
         document.writeln('<a class="putmenu" border=0 href="/arbiter/" title="Arbiter" >');
         document.write( '&nbsp;&nbsp;Arbiter&nbsp;&nbsp;');
         document.writeln('</a>');
        };
      } else {
      document.write('<TD>'); //SCHED
      };
     document.write('</TD>');
     if ( (page=='sp.htm')||(page=='baseball.htm')||(page=='hockey.htm') )
     {
         document.write('<TD CLASS="putmenu">'); //SCHED
         document.write('<a class="putmenu" border=0 href="/scoring.htm">');
         document.write( '&nbsp;&nbsp;ScoreBook&nbsp;&nbsp;');
         document.write('</a>');
     }
     else
     {
       document.write('<TD></TD>'); //STATS
     };
     document.write('<TD></TD>'); //SCORING
     document.write('<TD></TD>'); //TRAINING
     document.writeln('<TD></TD>'); //SURVEYS
   document.writeln('</TR>');
  };
 document.writeln('</TABLE>');
}

