<!--
// $Id: inline.js,v 1.12 2000/11/06 18:48:59 dchristian Exp $

if (top.frames.length == 0)
{  
  no_frames=1;

  axel = Math.random() + "";
  ord = axel * 1000000000000000000;
  c = Math.floor(Math.random()*1001);
  srvr = 'www';

  // Weights are now in the thousands, for fractional percentages, 
  // e.g., 8% = 80, 50% = 500,  25.5% = 255, etc.

  if (c <= 100)           ////////   BannerSpace   ////////   
  {
    var AdSrc = "http://www.bannerspace.com/asp/getban_html.asp?MID=14497&alt=off&f=0000FF&b=FFFFFF&w=_blank";
    var ImgURL = "http://www6.bannerspace.com/asp/getban.asp?MID=14497";
    var ClkURL = "http://www6.bannerspace.com/asp/gosite.asp?MID=14497";
  }

  else if (c <= 400)     ////////   NetSponsors   ////////
  {
    var AdSrc = "http://" + srvr + ".terrashare.com/ad_netsponsors.htm";
    var ImgURL = "http://www.netsponsors.com/cgi-bin/getimage.cgi/unique?REGION=general";
    var ClkURL = "http://www.netsponsors.com/cgi-bin/general/click.cgi?terrashare";
  }

  else                  ////////   DoubleClick   ////////
  {
    var AdSrc = "http://ad2.doubleclick.net/adi/sonar.terrashare/reach;sz=468x60;ord=" + ord + "?";
    var ImgURL = "http://ad2.doubleclick.net/ad/sonar.terrashare/reach;sz=468x60;ord=" + ord + "?";
    var ClkURL = "http://ad2.doubleclick.net/jump/sonar.terrashare/reach;sz=468x60;ord=" + ord + "?";
  }


  // This part of script alleviates a Netscape document.write bug

  NS4 = document.layers;

  if (NS4) 
  {
    origWidth = innerWidth;
    origHeight = innerHeight;
  }

  function reDo() 
  {
    if (innerWidth != origWidth || innerHeight != origHeight)
      location.reload();
  }
    
  if (NS4) onresize = reDo;  

  if (NS4) 
  {

    // Outer table for including search box. Start by centering

    document.write('<div align="center">');

    // Start the table

    document.write
    (
      '<table border="0" cellspacing="0" cellpadding="0">',
      '<tr>'
    );

    // Then the 1st column of the outer table, which is empty

    document.write
    (
      '<td width="150">',
      '&nbsp;',
      '</td>'
    );

    // then the middle column of the outer table

    document.write
    (
      '<td align="center" valign="top">'
    );

    // Table containing the Terrashare logo with image map in the
    // 1st row, and the location placeholder for the banner ad in
    // the 2nd row.

    document.write
    (
      '<table border="0" align="center" width="468" cellpadding=0 cellspacing=0>',
      '<tr>',
      '<td width="468">'
    );

    // The image map itself

    document.write
    (
      '<map name="tsbanner">',
      '<area shape="rect" coords="0,0,377,19" href="http://www.terrashare.com">',
      '<area shape="rect" coords="377,0,467,19" href="http://www.terrashare.com/join1a">',
      '</map>'
    );

    // And now the image

    document.write('<img src="http://www.terrashare.com/banner.gif" usemap="#tsbanner" border="0"><BR>');

    // Done with this row

    document.write
    (
      '</td>',
      '</tr>'
    );

    // Onto the next row 

    document.write
    (
      '<tr>',
      '<td width="468">'
    );

    // Set up an anchor for the layer to use later

    document.write
    (
      '<a name="bannerPos">',
      '</a>',
      '&nbsp;'
    );

    // Finish up this row and the table

    document.write
    (
      '</td>',
      '</tr>',
      '</table>'
    );

    // Now complete the outer table's right column with a place
    // marker for the search box.

    document.write
    (
      '<td align="left" width="150" valign="top">',
      '<a name="searchPos">',
      '</a>',
      '&nbsp;',
      '</td>'
    );

    // Now complete the outer table

    document.write
    (
      '</tr>',
      '</table>'
    );

    // Now to the layer setup

    // Set up the basic layer for the banner ad

    document.write('<LAYER id="ad1" visibility="hide" width="468" height="60">x</LAYER>');

    // Set up the x,y positions to correspond to the anchor in the table
    // we did earlier

    document.layers['ad1'].x = document.anchors['bannerPos'].x;
    document.layers['ad1'].y = document.anchors['bannerPos'].y;

    // Connect the Ad with the Layer with the x,y position of the layer

    document.write('<LAYER src="' + AdSrc +'" width="468" height="60" visibility="hide" onload="moveToAbsolute(ad1.pageX, ad1.pageY); visibility=\'show\';" clip="468,60"></LAYER>');

    // Set up the basic layer for the search box

    document.write('<LAYER id="ad2" visibility="hide" width="468" height="210">y</LAYER>');

    // Set up the x,y positions to correspond to the anchor in the table
    // we did earlier

    document.layers['ad2'].x = document.anchors['searchPos'].x + 15;
    document.layers['ad2'].y = document.anchors['searchPos'].y;

    // Connect the Ad with the Layer with the x,y position of the layer

    // document.write('<LAYER src="http://www.terrashare.com/search_box3.htm" width="468" height="210" visibility="hide" onload="moveToAbsolute(ad2.pageX, ad2.pageY); visibility=\'show\';" clip="468,210"></LAYER>');

    // Done the div

    document.write('</div>');

    // Some whitespace to finish up with

    document.write('<br><br><br><br><br>');
  }
  else // We're using IE. Oh well.
  {
    // Center it all up

    document.write('<div align="center">');

    // Set up the image map

    document.write
    (
      '<table border="0" cellspacing="0" cellpadding="0">',
      '<tr>',
      '<td rowspan="2" width="158">',
      '&nbsp;',
      '</td>',
      '<td width="468" align="center" valign="top">'
    );

    document.write
    (
      '<map name="tsbanner">',
      '<area shape="rect" coords="0,0,377,19" href="http://www.terrashare.com">',
      '<area shape="rect" coords="377,0,467,19" href="http://www.terrashare.com/join1a">',
      '</map>'
    );

    // Now the Terrashare logo image

    document.write('<img src="http://www.terrashare.com/banner.gif" usemap="#tsbanner" border="0"><BR>');

    // Put a little 15pixel gap in

    document.write('</td><td rowspan="2" width="15">&nbsp;');

    // and now let's put another column for the search box

    document.write('</td><td rowspan="2" valign="top" width="164" height="56">');

    // Let's now put the search box in .

    //document.write('<NOLAYER>');

    // Center it all

    //document.write('<DIV ALIGN=CENTER>');

    // Put the iframe in (floating frame)

    //document.write('<IFRAME SRC="http://www.terrashare.com/search_box3.htm" width="164" height="56" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no">');
    //document.write('</IFRAME>');

    // Close up

    //document.write('</DIV>');
    //document.write('</NOLAYER>');

		
		//document.write('<FORM ACTION="http://service.bfast.com/bfast/click">');
		//document.write('<INPUT TYPE="hidden" NAME="bfsiteid" VALUE="34960037">');
		//document.write('<INPUT TYPE="hidden" NAME="bfpage" VALUE="sbcstc10">');
		//document.write('<INPUT TYPE="hidden" NAME="bfmid" VALUE="253985">');
		//document.write('<table border=1 width=158 height=50 cellpadding=0 cellspacing=0 bordercolor="#00000" ');
		//document.write('bordercolorlight="#00000" bordercolordark="#00000" bgcolor="#fffff">');
		//document.write('        <tr>');
		//document.write('                <td width=158 height=50>');
		//document.write('<table border=0 width=158 height=50 cellpadding=0 cellspacing=0>');
		//document.write('        <tr>');
		//document.write('                <td width=60 height=50 valign=top bgcolor=#ffcc00 rowspan=2><a href="http://www.goto.com"><img ');
		//document.write('src="http://www.goto.com/images-affiliates/befree/gotologo1.gif" border=0 alt="www.goto.com" width=58 ');
		//document.write('height=49></a><img src="http://www.goto.com/images-affiliates/befree/hor3.gif" border=0 alt="" width=2 ');
		//document.write('height=50></td>');
		//document.write('                <td width=98 height=15 align=center valign=bottom><font face="verdana, sans-serif" size=1 ');
		//document.write('color="#00000"><b>Search the Web.</b></td></tr>');
		//document.write('        <tr>');
		//document.write('                <td width=98 height=35 align=center valign=middle>');
		//document.write('&nbsp;<input type="text" size=6 name="Keywords">&nbsp;');
		//document.write('<input type=image src="http://www.goto.com/images-affiliates/befree/flatarrow1.gif" align="absmiddle" width=22 ');
		//document.write('height=22 name="Submit" alt="Find It!" border=0>');
		//document.write('<input type="hidden" name="Promo" value="befree">');
		//document.write('</td></tr></table>');
		//document.write('</td></tr></table>');
		//document.write('');
		//document.write('</FORM>');
		//document.write('<IMG SRC="http://service.bfast.com/bfast/serve?bfmid=253985&bfsiteid=34960037&bfpage=sbcstc10" BORDER="0" ');
		//document.write('WIDTH="1" HEIGHT="1" NOSAVE >');

    document.write('</td></tr>');
    document.write('<tr><td valign="top">');

    // The banner ad ; ignore as a layer

    document.write('<NOLAYER>');

    // Center it all

    document.write('<DIV ALIGN=CENTER>');

    // Put the iframe in (floating frame)

    document.write('<IFRAME SRC="' + AdSrc + '" width="468" height="60" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no">');
    document.write('<A HREF="' + ClkURL + '" target="_top"><IMG SRC="' + ImgURL + '" width="468" height="60" border="0"></A>');
    document.write('</IFRAME>');

    // Close up

    document.write('</DIV>');
    document.write('</NOLAYER>');
    document.write('</td></tr>');
    document.write('</table>');
    document.write('</div>');

  }

}
else
{
  no_frames=0;

  if(browser_ok())
  {
    start_pop_up();
  }
}


//-->

