// 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 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 *****/

/* **********************************************
 * Cookie functions from http://www.yourhtmlsource.com/examples/util-functions.js
 */
function createCookie(name, value, days) {
    var expires = '';
    if (days) {
        var date = new Date();
        date.setTime(date.getTime() + (days*24*60*60*1000));
        var expires = '; expires=' + date.toGMTString();
    }
    document.cookie = name + '=' + value + expires + '; path=/';
}

function readCookie(name) {
    var cookieCrumbs = document.cookie.split(';');
    var nameToFind = name + '=';
    for (var i = 0; i < cookieCrumbs.length; i++) {
        var crumb = cookieCrumbs[i];
        while (crumb.charAt(0) == ' ') {
            crumb = crumb.substring(1, crumb.length); /* delete spaces */
        }
        if (crumb.indexOf(nameToFind) == 0) {
            return crumb.substring(nameToFind.length, crumb.length);
        }
    }
    return null;
}

function eraseCookie(name) {
    createCookie(name, '', -1);
}


/* **********************************************
 * Cross-browser event handling, by Scott Andrew
 *  from http://www.yourhtmlsource.com/examples/util-functions.js
 */
function addEvent(element, eventType, lamdaFunction, useCapture) {
    if (element.addEventListener) {
        element.addEventListener(eventType, lamdaFunction, useCapture);
        return true;
    } else if (element.attachEvent) {
        var r = element.attachEvent('on' + eventType, lamdaFunction);
        return r;
    } else {
        return false;
    }
}

/* 
 * Kills an event's propagation and default action
 */
function knackerEvent(eventObject) {
    if (eventObject && eventObject.stopPropagation) {
        eventObject.stopPropagation();
    }
    if (window.event && window.event.cancelBubble ) {
        window.event.cancelBubble = true;
    }
    
    if (eventObject && eventObject.preventDefault) {
        eventObject.preventDefault();
    }
    if (window.event) {
        window.event.returnValue = false;
    }
}

/* 
 * Safari doesn't support canceling events in the standard way, so we must
 * hard-code a return of false for it to work.
 */
function cancelEventSafari() {
    return false;        
}

