pic1= new Image(12,41); 
pic1.src="http://www.focalmedia.net/buttonb3.gif"; 

pic2= new Image(12,41); 
pic2.src="http://www.focalmedia.net/buttonb2.gif"; 



function get_top()
{

document.write ('<table width="100%" border="0" cellspacing="0" cellpadding="0">    <tr>      <td height="167" align="center" valign="top" class="topbc"><table width="100%" border="0" cellspacing="0" cellpadding="0">          <tr>            <td align="center"><table width="970" border="0" cellspacing="0" cellpadding="0">                <tr>                  <td width="418"><img src="http://www.focalmedia.net/fctoplogo.jpg" width="418" height="112" alt=""></td>                  <td class="fctoplogo2"><form name="form1" method="post" action="http://www.focalmedia.net/cgi-bin/fmsearchpro/fmsearch.cgi">                      <table width="345" border="0" cellpadding="5" cellspacing="1">                        <tr>                          <td width="55" align="center" >&nbsp;</td>                          <td width="267" align="left" class="searchb3"><img src="http://www.focalmedia.net/blspc.gif" width="30" height="10" alt="">                            <input name="keywords" type="text" style="background-color: transparent; border:none; color:#999; font-size:11px;" onFocus="this.value=\'\'" value="Keywords to search site..." size="25">                            <img src="http://www.focalmedia.net/blspc.gif" width="5" height="15" alt="">                            <input type="submit" name="button" id="button" onmouseover="this.style.cursor=\'hand\'" value="          " style="background-color: transparent; border:none;"></td>                        </tr>                      </table>                    </form></td>                </tr>              </table></td>          </tr>        </table>        <table width="950" border="0" cellspacing="0" cellpadding="0">          <tr>            <td align="center"><img src="http://www.focalmedia.net/butsep.gif" alt=""></td>            <td align="center" onmouseover="this.style.background=\'url(http://www.focalmedia.net/buttonb3.gif)\'" onmouseout="this.style.background=\'url(http://www.focalmedia.net/buttonb2.gif)\'"><strong> <a href="http://www.focalmedia.net" class="menutext">HOME</a></strong></td>            <td align="center"><img src="http://www.focalmedia.net/butsep.gif" width="1" height="41" alt=""></td>            <td align="center" onmouseover="this.style.background=\'url(http://www.focalmedia.net/buttonb3.gif)\'" onmouseout="this.style.background=\'url(http://www.focalmedia.net/buttonb2.gif)\'"><strong ><a href="http://www.focalmedia.net/sitemap.html" class="menutext">SITEMAP</a></strong></td>            <td align="center"><img src="http://www.focalmedia.net/butsep.gif" width="1" height="41" alt=""></td>            <td align="center" onmouseover="this.style.background=\'url(http://www.focalmedia.net/buttonb3.gif)\'" onmouseout="this.style.background=\'url(http://www.focalmedia.net/buttonb2.gif)\'"><strong ><a href="http://www.focalmedia.net/products.html" class="menutext">PRODUCTS</a></strong></td>            <td align="center"><img src="http://www.focalmedia.net/butsep.gif" width="1" height="41" alt=""></td>            <td align="center" onmouseover="this.style.background=\'url(http://www.focalmedia.net/buttonb3.gif)\'" onmouseout="this.style.background=\'url(http://www.focalmedia.net/buttonb2.gif)\'"><strong ><a href="http://www.focalmedia.net/supportdesk.html" class="menutext">SUPPORT</a></strong></td>            <td align="center"><img src="http://www.focalmedia.net/butsep.gif" width="1" height="41" alt=""></td>            <td align="center" onmouseover="this.style.background=\'url(http://www.focalmedia.net/buttonb3.gif)\'" onmouseout="this.style.background=\'url(http://www.focalmedia.net/buttonb2.gif)\'"><strong ><a href="http://www.focalmedia.net/aff.html" class="menutext">AFFILIATE PROGRAM</a></strong></td>            <td align="center"><img src="http://www.focalmedia.net/butsep.gif" width="1" height="41" alt=""></td>            <td align="center" onmouseover="this.style.background=\'url(http://www.focalmedia.net/buttonb3.gif)\'" onmouseout="this.style.background=\'url(http://www.focalmedia.net/buttonb2.gif)\'"><strong ><a href="http://www.focalmedia.net/about.html" class="menutext">ABOUT US</a></strong></td>            <td align="center"><img src="http://www.focalmedia.net/butsep.gif" width="1" height="41" alt=""></td>            <td align="center" onmouseover="this.style.background=\'url(http://www.focalmedia.net/buttonb3.gif)\'" onmouseout="this.style.background=\'url(http://www.focalmedia.net/buttonb2.gif)\'"><strong ><a href="http://www.focalmedia.net/webhosting.html" class="menutext">WEBHOSTING</a></strong></td>            <td align="center"><img src="http://www.focalmedia.net/butsep.gif" width="1" height="41" alt=""></td>            <td align="center" onmouseover="this.style.background=\'url(http://www.focalmedia.net/buttonb3.gif)\'" onmouseout="this.style.background=\'url(http://www.focalmedia.net/buttonb2.gif)\'"><strong ><a href="http://www.focalmedia.net/contact.html" class="menutext">CONTACT US</a></strong></td>            <td align="center"><img src="http://www.focalmedia.net/butsep.gif" width="1" height="41" alt=""></td>          </tr>        </table></td>    </tr>  </table> <table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td height="10"></td></tr></table>  ');

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 ) );
}



Date.prototype.daysInMonth = function ()
{
return new Date(this.getFullYear(), this.getMonth()+1, 0).getDate()
}

Date.prototype.getMonthName = function()
{
return ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'][this.getMonth()];
}




var popupwin = null;
function popup(loc,ww,hh, h_pos, v_pos)
   {
    var mywidth = (ww + 0);
    var myheight = (hh + 0);
	 
	 if ((h_pos > 0) && (v_pos > 0))
	 	{
	 	var winl = h_pos;
	 	var wint = v_pos;
	 	}
	 	else
	 	{
	 	var winl = 80;
	 	var wint = 30;
	 	}
	 
    var myspecs = 'menubar=0,status=0,resizable=1,location=1,titlebar=0,toolbar=0,scrollbars=1,width=' + mywidth + ',height=' + myheight + ',top=' + wint + ',left=' + winl;
	 var random = parseInt(Math.random()*10000)
    var popupwin = null;
    myWindow = open (loc, popupwin + random, myspecs);
    myWindow.focus();
    
    return (false);
  }





