var preloadFlag = 0;

// ************************
function toi_mainPreLoad()
// ************************
{
	if (document.images)
	{
    p1 = toi_newImage( "images/sbar_03.gif" );
    p2 = toi_newImage( "images/sbar_03a.gif" );
    p3 = toi_newImage( "images/sbar_03b.gif" );
    p4 = toi_newImage( "images/sbar_03c.gif" );
    p5 = toi_newImage( "images/sbar_03d.gif" );
    p6 = toi_newImage( "images/sbar_03e.gif" );
    p7 = toi_newImage( "images/sbar_03f.gif" );

		preloadFlag = 1;
	}
}

// ************************
function toi_newImage(arg)
// ************************
{
	if (document.images)
	{
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

// **************************
function toi_changeImages()
// **************************
{
	if (document.images && (preloadFlag > 0))
	{
		for (var i=0; i<toi_changeImages.arguments.length; i+=2)
		{
			document[toi_changeImages.arguments[i]].src = toi_changeImages.arguments[i+1];
		}
	}
}

// *****************************************
function textLinkTable()
// *****************************************
{
  document.write(' <table  border="0" cellpadding="0" cellspacing="0">');
  document.write('   <tr>');
  document.write('     <td valign="top" align="center" class="body">');
  document.write('       <img src="images/graypixel.gif" border=0 width=800 height=2><br>');
  document.write('       <a href="index.html" class="body">Home</a> :: ');
  document.write('       <a href="services.html" class="body">Service</a> :: ');
  document.write('       <a href="jobseekers.html" class="body">Job Seekers</a> :: ');
  document.write('       <a href="clients.html" class="body">Clients</a> :: ');
  document.write('       <a href="contact.html" class="body" >Contact Us</a>');
  //document.write('       <a href="resumes.html" class="body">Resumes</a>');
	document.write('<p>Copyright &copy; 2006&nbsp;American Temp');
	document.write('<br>All Rights Reserved. <br>');
  document.write('     </TD>');
  document.write('   </TR>');
  document.write(' </TABLE> ');

}
// **********************************
function stdmenu()
// **********************************
{
  document.write('<TABLE WIDTH=235 BORDER=0 CELLPADDING=0 CELLSPACING=0>');
  document.write('	<TR><TD COLSPAN=2><IMG SRC="images/sbar_01.gif" border=0 WIDTH=235 HEIGHT=122 ALT=""></TD></TR>');
  document.write('	<TR>');
  document.write('	  <TD><IMG SRC="images/sbar_02.gif" border=0 WIDTH=113 HEIGHT=211 ALT=""></TD>');
  document.write('	  <TD>');
  document.write('	    <IMG Name="menu" SRC="images/sbar_03.gif" border=0 WIDTH=122 HEIGHT=211 ALT="" usemap=#menumap>');
  document.write('	  </TD>');
  document.write('	</TR>');
  document.write('	<TR><TD COLSPAN=2><IMG SRC="images/sbar_04.gif" border=0 WIDTH=235 HEIGHT=49 ALT=""></TD></TR>');
  document.write('	<TR><TD COLSPAN=2><A HREF="javascript:openguarantee();"><IMG SRC="images/sbar_05.gif" border=0 WIDTH=235 HEIGHT=140 ALT=""></a></TD></TR>');
  document.write('	<TR><TD COLSPAN=2><IMG SRC="images/sbar_06.gif" border=0 WIDTH=235 HEIGHT=138 ALT=""></TD></TR>');
  document.write('</TABLE>');
}
// **********************************
function makemenumap()
// **********************************
{

  document.write('<MAP NAME="menumap">');
  document.write('<AREA SHAPE="rect" ALT="" COORDS="1,2,120,27" HREF="index.html" ONCLICK="if(this.blur)this.blur();"');
  document.write('	ONMOUSEOVER="toi_changeImages(\'menu\', \'images/sbar_03a.gif\'); return true;"');
  document.write('	ONMOUSEOUT="toi_changeImages(\'menu\', \'images/sbar_03.gif\'); return true;">');
  document.write('<AREA SHAPE="rect" ALT="" COORDS="1,28,120,52" HREF="services.html" ONCLICK="if(this.blur)this.blur();"');
  document.write('	ONMOUSEOVER="toi_changeImages(\'menu\', \'images/sbar_03b.gif\'); return true;"');
  document.write('	ONMOUSEOUT="toi_changeImages(\'menu\', \'images/sbar_03.gif\'); return true;">');
  document.write('<AREA SHAPE="rect" ALT="" COORDS="1,54,120,78" HREF="jobseekers.html" ONCLICK="if(this.blur)this.blur();"');
  document.write('	ONMOUSEOVER="toi_changeImages(\'menu\', \'images/sbar_03c.gif\'); return true;"');
  document.write('	 ONMOUSEOUT="toi_changeImages(\'menu\', \'images/sbar_03.gif\'); return true;">');
  document.write('<AREA SHAPE="rect" ALT="" COORDS="1,80,120,104" HREF="clients.html" ONCLICK="if(this.blur)this.blur();"');
  document.write('	ONMOUSEOVER="toi_changeImages(\'menu\', \'images/sbar_03d.gif\'); return true;"');
  document.write('	 ONMOUSEOUT="toi_changeImages(\'menu\', \'images/sbar_03.gif\'); return true;">');
  document.write('<AREA SHAPE="rect" ALT="" COORDS="1,106,120,130" HREF="contactus.html" ONCLICK="if(this.blur)this.blur();"');
  document.write('	ONMOUSEOVER="toi_changeImages(\'menu\', \'images/sbar_03e.gif\'); return true;"');
  document.write('	 ONMOUSEOUT="toi_changeImages(\'menu\', \'images/sbar_03.gif\'); return true;">');
  document.write('</MAP>');
}
function openguarantee()
{
  window.open('guarantee.html','guarantee','toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no,copyhistory=no,scrollbars=no,width=390,height=500');
}