
     color=getcookie("color");
     if(color=="black")
     {
          document.write('<style type="text/css">','body {background-color:#000000} ','</style>');
     }
     else if(color=="white")
     {
          document.write('<style type="text/css">','body {background-color:#FFFFFF} ','</style>');
     }
     else if(color=="red")
     {
          document.write('<style type="text/css">','body {background-color:#FF0000} ','</style>');
     }
     else if(color=="blue")
     {
          document.write('<style type="text/css">','body {background-color:#0000FF} ','</style>');
     }
     else if(color=="green")
     {
          document.write('<style type="text/css">','body {background-color:#00FF00} ','</style>');
     }
     else if(color=="pic1")
     {
          document.write('<style type="text/css">','body {background-image:url(/background.gif)}','</style>');
     }
     else
     {
          document.write('<style type="text/css">','body {background-color:#'+color+'}','</style>');
     }
function color()
{
     color=getcookie("color");
     if(color=="black")
     {
          document.write('<style type="text/css">','body {background-color:#000000} ','</style>');
     }
     else if(color=="white")
     {
          document.write('<style type="text/css">','body {background-color:#FFFFFF} ','</style>');
     }
     else if(color=="red")
     {
          document.write('<style type="text/css">','body {background-color:#FF0000} ','</style>');
     }
     else if(color=="blue")
     {
          document.write('<style type="text/css">','body {background-color:#0000FF} ','</style>');
     }
     else if(color=="green")
     {
          document.write('<style type="text/css">','body {background-color:#00FF00} ','</style>');
     }
     else if(color=="pic1")
     {
          document.write('<style type="text/css">','body {background-image:url(/background.gif)}','</style>');
     }
     else
     {
          document.write('<style type="text/css">','body {background-color:#'+color+'}','</style>');
     }
}
function cursor()
{
     document.write('<style>HTML,BODY{cursor: url("http://www.newfusionprogramming.com/green.ani"), url("http://www.newfusionprogramming.com/green.gif"), auto;}</style>');
}
function nav()
{
     document.write('<div id="navcontainer" style="position:absolute; left:10px; top:100px;"><table width="200" border="0" cellspacing="0" cellpadding="0" ><tr><td><ul id="navlist">');
     document.write('<li><a href="http://www.newfusionprogramming.com">Home</a></li>');
     document.write('<li><a href="http://www.newfusionprogramming.com/News">News</a></li>');
     document.write('<li><a href="http://www.newfusionprogramming.com/Downloads/Download.html">Downloads</a></li>');
     document.write('<li><a href="http://www.newfusionprogramming.com/games">Games</a></li>');
     document.write('<li><a href="http://www.newfusionprogramming.com/music">Music</a></li>');
     document.write('<li><a href="Http://www.newfusionprogramming.com/options.html">Options</a></li>');
     document.write('<li><a href="http://www.newfusionprogramming.com/rgb">RGB</a></li>');
     document.write('<li><a href="http://www.newfusionprogramming.com/rss">RSS</a></li>');
     document.write('<li><a href="http://newfusionprogramming.com">Log Out</a></li>');
     document.write('</ul></td></tr></table></div>');
}

function links()
{
     document.write('<form action="dummy" method="post"><select name="choice" size="1" onChange="jump(this.form)">');
     document.write('<option value="">GAMES</option>');
     document.write('<option value="http://www.newfusionprogramming.com/games/ageofwar.html">Age of War</option>');
     document.write('<option value="http://www.newfusionprogramming.com/games/ballontd3.html">Baloon Tower Defense 3</option>');
     document.write('<option value="http://www.newfusionprogramming.com/games/btd4.html">Baloon Tower Defense 4!!!</option>');     
     document.write('<option value="http://www.newfusionprogramming.com/games/bowman2.html">Bow Man 2</option>');
     document.write('<option value="http://www.newfusionprogramming.com/games/castlewars.html">Castle Wars</option>');
     document.write('<option value="http://www.newfusionprogramming.com/games/dbike.html">Chronotron</option>');
     document.write('<option value="http://www.newfusionprogramming.com/games/sand.html">Falling Sand</option>');
     document.write('<option value="http://www.newfusionprogramming.com/games/fantastic.html">Fantastic Contraption</option>');
     document.write('<option value="http://www.newfusionprogramming.com/games/heli.html">Helicopter</option>');
     document.write('<option value="http://www.newfusionprogramming.com/games/interactive.html">Interactive Buddy</option>');
     document.write('<option value="http://www.newfusionprogramming.com/games/madness/">Madness Interactive and Mods</option>');
     document.write('<option value="http://www.newfusionprogramming.com/games/maxdirtbike.html">Max Dirt Bike</option>');
     document.write('<option value="http://www.newfusionprogramming.com/games/miniputt.html">MiniPutt</option>');
     document.write('<option value="http://www.newfusionprogramming.com/games/pacxon.html">Pacxon</option>');
     document.write('<option value="http://www.newfusionprogramming.com/games/pandemic2.html">Pandemic 2</option>');
     document.write('<option value="http://www.newfusionprogramming.com/games/penguinheli.html">Penguin Helicopter</option>');
     document.write('<option value="http://www.newfusionprogramming.com/games/portal.html">Portal</option>');
     document.write('<option value="http://www.newfusionprogramming.com/games/pyro.html">Pyro Sand</option>');
     document.write('<option value="http://www.newfusionprogramming.com/games/assass.html">Tactical Assassin</option>');
     document.write('<option value="http://www.newfusionprogramming.com/games/ta2.html">Tactical Assassin 2</option>');
     document.write('<option value="http://www.newfusionprogramming.com/games/tetris.html">Tetris</option>');
     document.write('</select></form>');

}


function littlebar()
{
     document.write('<![if !IE]>');
     document.write('<div style="position: fixed; bottom:0px; right:0px; z-index: 50;">');
     document.write('<font size="1">');
     document.write('');
     document.write('<a href="http://members.webs.com"  style="color:Blue">Admin Login</a> <BR>');
     document.write('<a href="http://www.xkcd.com"  style="color:Blue">XKCD</a> <BR>');
     document.write('<a href="http://www.newfusionprogramming.com/dcrsd"  style="color:Blue">DCRSD</a> <BR>');
     document.write('<a href="http://www.centsports.com/?opcode=80131"  style="color:Blue">CentSports</a> <BR>');
     document.write('<a href="http://www.samstiedyes.com" style="color:Blue">Sam\'s Tie Dyes</a>');
     document.write('</font> </div>');
     document.write('<![endif]>');

}


function madness()
{
     document.write('<CENTER>');
     document.write('<a href="http://www.newfusionprogramming.com/games/" style="color:Blue">Games Home</a> <BR>');
     document.write('<a href="http://www.newfusionprogramming.com/games/madness/" style="color:Blue">Madness Home</a> <BR>');
     document.write('<a href="http://www.newfusionprogramming.com/games/madness/espionage.html" style="color:Blue">Madness Espionage (The Best Madness Game)</a> <BR>');    
     document.write('<a href="http://www.newfusionprogramming.com/games/madness/bullettime.html" style="color:Blue">Bullet Time</a> <BR>');
     document.write('<a href="http://www.newfusionprogramming.com/games/madness/deltaforce.html" style="color:Blue">Delta Force</a> <BR>');
     document.write('<a href="http://www.newfusionprogramming.com/games/madness/familyguy.html" style="color:Blue">Family Guy</a> <BR>');
     document.write('<a href="http://www.newfusionprogramming.com/games/madness/masterboi.html" style="color:Blue">Master Boi</a> <BR>');
     document.write('<a href="http://www.newfusionprogramming.com/games/madness/mp.html" style="color:Blue">MP</a> <BR>');
     document.write('<a href="http://www.newfusionprogramming.com/games/madness/mutants.html" style="color:Blue">Mutants Interactive</a> <BR>');
     document.write('<a href="http://www.newfusionprogramming.com/games/madness/swat.html" style="color:Blue">Swat</a> <BR>');
     document.write('<a href="http://www.newfusionprogramming.com/games/madness/zombie.html" style="color:Blue">Zombie</a> <BR>');
     document.write('</CENTER>');
}

function showmenu(drop)
{
     document.getElementById(drop).style.visibility="visible";
}
function hidemenu(drop)
{
     document.getElementById(drop).style.visibility="hidden";
}

function makecookie(name,value,days)
{
     var exdate=new Date();
     exdate.setDate(exdate.getDate()+days);
     document.cookie=name+ "=" +escape(value)+"; expires=" + exdate;
}

function getcookie(name)
{
     if (document.cookie.length>0)
     {
         start=document.cookie.indexOf(name + "=");
         if (start!=-1)
         { 
              start=start + name.length+1 ;
              end=document.cookie.indexOf(";",start);
              if (end==-1) end=document.cookie.length;
              return unescape(document.cookie.substring(start,end));
         } 
     }
     return "";
}



