///////////////////
// SOL of Auburn //
///////////////////

// define global variables

function StartUp()
  {
	//Prevention from getting 'framed'
	FreeFrames()
	
	if (navigator.appName == "Netscape" && navigator.appVersion.charAt(0) == "4")
		 { alert("The Auburn Solar Car web site will not display properly with Netscape 4.\n\nPlease use Internet Explorer or Netscape 6.  We apologize for any inconvenience."); }

	LogoSet = '<div id="topbar" style="position:absolute; z-index:5; visibility: visible; top:0px; left:0px"><table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td align="left" valign="top" rowspan="2" width="217" height="65"><img src="row1_pic.jpg" WIDTH="217" HEIGHT="139" BORDER="0"></td><td width="70%" align="left" valign="top" bgcolor="#406DA5" width="325" height="65"><img align="top" src="row1_homemenu.gif" width="325" height="65" border="0" usemap="#homemenu"><map name="homemenu" id="homemenu"><area coords="0,40,43,64" href="index.html"><area coords="53,40,132,64" href="ask-question.html"><area coords="142,40,236,64" href="links.html"><area coords="244,40,308,64" href="SiteMap.html"></map></td><td align="right" valign="top" bgcolor="#406DA5" height="65"><a href="index.html"><img align="top" src="row1_logo.gif" WIDTH="209" HEIGHT="65" BORDER="0"></a></td></tr><tr><td height="74" align="left" valign="top" colspan="2" bgcolor="#a0b6d2" background="row2_background.gif"><img src="row2_spacer.gif" border="0"><a href="History.html" onMouseOut="MM_swapImgRestore();" onMouseOver="MM_swapImage(\'general\',\'\',\'row2_generalbw.gif\',1);"><img src="row2_general.gif" border="0" name="general" alt="General Info"></a><a href="Sponsorship.html" onMouseOut="MM_swapImgRestore();" onMouseOver="MM_swapImage(\'sponsorship\',\'\',\'row2_sponsorshipbw.gif\',1);"><img src="row2_sponsorship.gif" border="0" name="sponsorship" alt="Sponsorship"></a><a href="Pictures.html" onMouseOut="MM_swapImgRestore();" onMouseOver="MM_swapImage(\'pictures\',\'\',\'row2_picturesbw.gif\',1);"><img src="row2_pictures.gif" border="0" name="pictures" alt="Pictures"></a><a href="TeamInfo.html" onMouseOut="MM_swapImgRestore();" onMouseOver="MM_swapImage(\'teaminfo\',\'\',\'row2_teaminfobw.gif\',1);"><img src="row2_teaminfo.gif" border="0" name="teaminfo" alt="Team Info"></a><img src="row2_end.gif" border="0"></td></tr></table></div><!--end header menu--><span id="noprint"><img src="clear.gif" width="1" height="139"><BR>';
	document.write(LogoSet);

		}
function FreeFrames()
	{
	// Prevention from getting 'framed'
	if (top != self)
		{ top.location = location }
	}

function Footer()
{
if (navigator.javaEnabled())
	{
	FooterSet = '<CENTER><BR><IMG src="orangefade.jpg" border=0><BR><BR>'    
	FooterSet = FooterSet + '<SPAN class="Text"><A HREF="javascript:history.back()">Back</A> | <A HREF="index.html">Home</A> | <A HREF="History.html">General&nbsp;Info</A> | <A HREF="Sponsorship.html">Sponsorship</A> | <A HREF="Pictures.html">Pictures</A> | <A href="TeamInfo.html">Team&nbsp;Information</A> | <A HREF="ask-question.html">Contact&nbsp;Us</A> | <A HREF="links.html">Links</A> | <A HREF="SiteMap.html">Site&nbsp;Map</A></SPAN>'
	FooterSet = FooterSet + '<FONT size=1 face="Arial, Helvetica, san-serif"><BR><BR>'
	document.write(FooterSet)
	WhenModified()
	Counter()
	}
}

function Counter()
{
	count = '<script>showme=\'n\'; st=\'js\'</script>'
	count = count + '<script language="JavaScript" src="http://www.Free-Stats.com/pphlogger.js.php?id=ausolar"></SCRIPT>'
	document.write(count)
}

function WhenModified()
	{
  // display the date in which the current page was last updated - this is fancy! - No MANUAL date changes!
	// Netscape is stupid in getting the year - for '2000' it returns '100'.
	update = new Date(document.lastModified)
	theMonth = update.getMonth() + 1
	theDate = update.getDate()
	theYear = update.getYear()
	Modified = 'Last updated: ' + theMonth + '-' + theDate + '-' + theYear + '.<BR><BR></FONT></CENTER>'
	document.write(Modified)
	}

function Go(name)
        {
	//var w = screen.width - 64
	//var h = screen.height - 200
	//window.open("http://eng.auburn.edu/organizations/SOA/"+name,"","status,resizable,scrollbars,width="+w+",height="+h+",left=16,top=16")
	document.location.href = name
        }
				
				
// ******************************
// ******************************


function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function MM_findObj(n, d) { //v3.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x;
}

function reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.pgW=innerWidth; document.pgH=innerHeight; onresize=reloadPage; }}
  else if (innerWidth!=document.pgW || innerHeight!=document.pgH) location.reload();
}

reloadPage(true);


