/****************************************************
     Author: Eric King
     Url: http://redrival.com/eak/index.shtml
     This script is free to use as long as this info is left in
     Featured on Dynamic Drive script library (http://www.dynamicdrive.com)
****************************************************/
var win=null;
function NewWindow(mypage,myname,w,h,scroll,pos,resizeyn){
if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}
settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=yes,menubar=no,toolbar=no,resizable='+resizeyn+'';
win=window.open(mypage,myname,settings);
if(win.focus){win.focus();}}

/**************************************************************/

/*********************************************************
              M A G I C  B U T T O N S  v3.0
       http://junior.apk.net/~jbarta/tutor/buttons/
      Permission is granted to freely use this script.
**********************************************************/

// function for the animated gif mouseovers
function hiLite2(imgName,imgSrc) {
if (document.images) {
document.images[imgName].src = imgSrc
}}

/**************************************************************/
/*
Left-Right Stripy Curtain Script-
© Dynamic Drive (www.dynamicdrive.com)
For full source code, installation instructions,
100's more free DHTML scripts, and Terms Of
Use, visit dynamicdrive.com
*/

function openit(){
window.scrollTo(0,0)
if (document.layers){
for (i=1;i<=8;i=i+2)
temp[i].right-=speed
for (i=2;i<=8;i=i+2)
temp[i].left+=speed
if (temp[2].left>window.innerWidth)
clearInterval(stopit)
}
else if (document.all){
clipright-=speed
for (i=1;i<=8;i=i+2){
temp[i].clip="rect(0 "+clipright+" auto 0)"
}
clipleft+=speed
for (i=2;i<=8;i=i+2){
temp[i].clip="rect(0 auto auto "+clipleft+")"
}
if (clipright<=0)
clearInterval(stopit)
}
}

function gogo(){
stopit=setInterval("openit()",100)
}

/**************************************************************/

/*This Script allows people to enter by using a form that asks for a Password*/
function pasuser(form) 
{
	location= form.pass.value + ".htm" 
}



/*************************************************************/

/* Function to set the status message on a window --- hides the html link */

function set_status_message(status_msg) 
{

	if (status_msg == 1) {
	   window.status = "Chill Out with Andlin" }
    else if (status_msg == 2) {
       window.status = "Test your knowledge of Black History - Click here to Start Playing" }
    else if (status_msg == 3) {
       window.status = "Visit Dane's Website" }
    else if (status_msg == 4) {
       window.status = "What Events are taking place that you should know about ?" }
    else if (status_msg == 5) {
       window.status = "Play Intro Music" }
    else if (status_msg == 6) {
       window.status = "Return to Main Screen" }
    else if (status_msg == 7) {
       window.status = "History Menu" }
    else if (status_msg == 8) {
       window.status = "Flags" }
    else if (status_msg == 9) {
       window.status = "Music Menu" }
    else if (status_msg == 10) {
       window.status = "Sports Menu" }
    else if (status_msg == 15) {
       window.status = "Download the latest version of Real Player Basic Audio -- It's FREE !!!" }
    else if (status_msg == 100) {
       window.status = "" }
    else if (status_msg == 105) {
       window.status = "Mark Questions" }
    else if (status_msg == 106) {
       window.status = "Show correct Ansswers" }
    else if (status_msg == 107) {
       window.status = "Reset" }
    else if (status_msg == 108) {
       window.status = "Start the Timer - 60 Second Count Down" }
    else if (status_msg == 110) {
       window.status = "Stop Timer" }
    else if (status_msg == 112) {
       window.status = "How to Play Black To The Future" }
    else if (status_msg == 114) {
       window.status = "Click on this link to find out more about these People" }
    else if (status_msg == 99) {
       window.status = "Black To The Future" }
    else {
       window.status = "Send Email to Andlin" }

}










