function get_top()
{

document.write ('<form method="POST" action="http://www.focalmedia.net/cgi-bin/fmsearchpro/fmsearch.cgi">    <div align="center"><center>  <table border="0" cellpadding="0" cellspacing="0" width="100%">    <tr>      <td width="100%"><img src="http://www.focalmedia.net/header/spacer.gif" width="15" height="15"></td>    </tr>  </table>  <table id="Table_01" width="965" height="197" border="0" cellpadding="0" cellspacing="0">      <tr>        <td colspan="2" rowspan="4"><img src="http://www.focalmedia.net/header/header_01.jpg" width="176" height="138"></td>        <td rowspan="4"><img src="http://www.focalmedia.net/header/header_02.jpg" width="1" height="138"></td>        <td colspan="3"><a href="http://www.focalmedia.net/about.html"><img        src="http://www.focalmedia.net/header/header_033.jpg" border="0" width="86" height="43"></a></td>        <td colspan="5" rowspan="3" background="http://www.focalmedia.net/header/header_04.jpg" valign="top"><table        border="0" cellspacing="0" width="100%" cellpadding="3">          <tr>            <td width="37%" align="center"><strong><font face="Verdana" size="1"><a            href="http://www.focalmedia.net/featured.html"><font color="#FFFFFF">FocalMedia.Net            Featured On</font></a> </font></strong><font size="1" color="#FFFFFF"><b>|</b></font> <a            href="http://www.focalmedia.net/blog/new/"><strong><font face="Verdana" size="1"            color="#FFFFFF">Blog</font></strong></a> </td>            <td width="15%" align="right"><img src="http://www.focalmedia.net/ffsearch.gif" width="89"            height="32"></td>            <td width="25%"><input type="text" name="keywords" size="26"></td>            <td width="10%"><input src="http://www.focalmedia.net/ffgo.gif" name="I1" type="image"            width="48" height="29"></td>          </tr>        </table>        </td>      </tr>      <tr>        <td colspan="2" rowspan="2"><img src="http://www.focalmedia.net/header/header_05.jpg" width="85" height="94"></td>        <td><img src="http://www.focalmedia.net/header/header_06.jpg" width="1" height="1"></td>      </tr>      <tr>        <td><img src="http://www.focalmedia.net/header/header_07.jpg" width="1" height="93"></td>      </tr>      <tr>        <td><img src="http://www.focalmedia.net/header/header_08.jpg" width="52" height="1"></td>        <td colspan="3" rowspan="2"><a href="http://www.focalmedia.net/products.html"><img        src="http://www.focalmedia.net/header/header_09.jpg" width="127" height="59" border="0"></a></td>        <td rowspan="2"><a href="http://www.focalmedia.net/supportdesk.html"><img        src="http://www.focalmedia.net/header/header_10.jpg" width="144" height="59" border="0"></a></td>        <td rowspan="2"><a href="http://www.focalmedia.net/aff.html"><img        src="http://www.focalmedia.net/header/header_11.jpg" width="176" height="59" border="0"></a></td>        <td rowspan="2"><a href="http://www.focalmedia.net/webhosting.html"><img        src="http://www.focalmedia.net/header/header_12.jpg" width="137" height="59" border="0"></a></td>        <td rowspan="2"><a href="http://www.focalmedia.net/contact.html"><img        src="http://www.focalmedia.net/header/header_13.jpg" width="152" height="59" border="0"></a></td>      </tr>      <tr>        <td><a href="http://www.focalmedia.net"><img src="http://www.focalmedia.net/header/header_14.jpg" width="122"        height="58" border="0"></a></td>        <td colspan="3"><a href="http://www.focalmedia.net/sitemap.html"><img        src="http://www.focalmedia.net/header/header_15.jpg" width="107" height="58" border="0"></a></td>      </tr>      <tr>        <td><img src="http://www.focalmedia.net/header/spacer.gif" width="122" height="1"></td>        <td><img src="http://www.focalmedia.net/header/spacer.gif" width="54" height="1"></td>        <td><img src="http://www.focalmedia.net/header/spacer.gif" width="1" height="1"></td>        <td><img src="http://www.focalmedia.net/header/spacer.gif" width="52" height="1"></td>        <td><img src="http://www.focalmedia.net/header/spacer.gif" width="33" height="1"></td>        <td><img src="http://www.focalmedia.net/header/spacer.gif" width="1" height="1"></td>        <td><img src="http://www.focalmedia.net/header/spacer.gif" width="93" height="1"></td>        <td><img src="http://www.focalmedia.net/header/spacer.gif" width="144" height="1"></td>        <td><img src="http://www.focalmedia.net/header/spacer.gif" width="176" height="1"></td>        <td><img src="http://www.focalmedia.net/header/spacer.gif" width="137" height="1"></td>        <td><img src="http://www.focalmedia.net/header/spacer.gif" width="152" height="1"></td>      </tr>    </table>    </center></div>  </form>  ');

random = parseInt(Math.random()*10000);

dref = document.referrer;

var origcookie = Get_Cookie('referrer');

var re = /focalmedia/;

if (origcookie.length > 0)
	{
	random = 0;
	}
else if (re.test(dref))
	{
	random = 0;
	}
else if (dref.length > 0)
	{
	Set_Cookie( 'referrer', dref, '180', '/', '', '' );
	}





}





function Set_Cookie( name, value, expires, path, domain, secure )
{
// set time, it's in milliseconds
var today = new Date();
today.setTime( today.getTime() );

if ( expires )
{
expires = expires * 1000 * 60 * 60 * 24;
}
var expires_date = new Date( today.getTime() + (expires) );

document.cookie = name + "=" +escape( value ) +
( ( expires ) ? ";expires=" + expires_date.toGMTString() : "" ) +
( ( path ) ? ";path=" + path : "" ) +
( ( domain ) ? ";domain=" + domain : "" ) +
( ( secure ) ? ";secure" : "" );
}



function Get_Cookie( name ) 
{

var start = document.cookie.indexOf( name + "=" );
var len = start + name.length + 1;
if ( ( !start ) &&
( name != document.cookie.substring( 0, name.length ) ) )
{
return '';
}
if ( start == -1 ) return '';
var end = document.cookie.indexOf( ";", len );
if ( end == -1 ) end = document.cookie.length;
return unescape( document.cookie.substring( len, end ) );
}


