
/* ====================================================
General Site variables script
==================================================== */

pagelink		= document.location
pagename		= document.title
sitetitle		= 'BridgeToTheStars.Net © '
siteurl			= 'http://www.bridgetothestars.net'

/* ====================================================
Detect for correct browser t
==================================================== */

if	     (document.layers)		               		{ browser="n4"; }
else if  (document.all)		 	                    { browser="ie"; }
else if  (!document.all && document.getElementById)	{ browser="n6"; }


/* ====================================================
Previous Page
==================================================== */

function previous() { history.go(-1); }

/* ====================================================
Pick Header Graphic
==================================================== */

pagewidth = screen.width;

if (pagewidth <= 801)
{
	banner = "<A HREF='http://www.bridgetothestars.net' class='image'><IMG SRC='/images/shell/800.jpg'></A>";
}

if (pagewidth = 1024)
{
	banner = "<A HREF='http://www.bridgetothestars.net' class='image'><IMG SRC='/images/shell/1024.jpg'></A>";
}

if (pagewidth > 1024)
{
	banner = "<A HREF='http://www.bridgetothestars.net' class='image'><IMG SRC='/images/shell/1280.jpg'></A>";
}


/* ====================================================
Print Today's DATE function - Y2K + Netscape friendly
==================================================== */

var months=new Array(13);

months[1]	= "January";
months[2]	= "February";
months[3]	= "March";
months[4]	= "April";
months[5]	= "May";
months[6]	= "June";
months[7]	= "July";
months[8]	= "August";
months[9]	= "September";
months[10]	= "October";
months[11]	= "November";
months[12]	= "December";

var time=new Date();
var lmonth=months[time.getMonth() + 1];
var date=time.getDate();
var year=time.getYear();
if (year < 2000)
year = year + 1900;

function year() { document.write(year); }

defaultStatus	= sitetitle + year;


/* ======================================================
Expandable DIV
====================================================== */


function toggleLayer( whichLayer )
{
  var elem, vis;
  if( document.getElementById ) // this is the way the standards work
    elem = document.getElementById( whichLayer );
  else if( document.all ) // this is the way old msie versions work
      elem = document.all[whichLayer];
  else if( document.layers ) // this is the way nn4 works
    elem = document.layers[whichLayer];
  vis = elem.style;
  // if the style.display value is blank we try to figure it out here
  if(vis.display==''&&elem.offsetWidth!=undefined&&elem.offsetHeight!=undefined)
    vis.display = (elem.offsetWidth!=0&&elem.offsetHeight!=0)?'block':'none';
  vis.display = (vis.display==''||vis.display=='block')?'none':'block';
}


/* ======================================================
End of file
====================================================== */


