if(navigator.appName.indexOf("Netscape")>=0 && navigator.appVersion.indexOf("4.")>=0){	
	document.write('<link rel=\"stylesheet\" href=\"O7style-ns.css\" type=\"text/css\">');
}

var wWidth = 0;
var hHeight = 0;
var swooshimg = 300;

function dobgnd()
{
	txt = "";

	if ( parseInt(hHeight / 40) > numrows )
	{
		numrows = parseInt(hHeight / 40) - 1;
	}

	txt += '<table cellpadding="0" cellspacing="0" border="0">\n';

	for ( i = 0; i < numrows; i++ )
	{
		txt += '<tr>';
		for ( j = 0; j < 5; j++ )
		{
			img = 5;
			if ( ( i > 0 ) && ( j > 0 ) )
			{
				imgid1 = 'r' + ( i - 1 ) + 'c' + j;
				imgid2 = 'r' + i + 'c' + ( j - 1 );

				randnum = Math.floor(Math.random()*25);
				if ( randnum > 21 )
				{
					if ( ( randnum % 2 ) == 0 )
					{
						img = 6;
					}
					else
					{
						img = 7;
					}
				}
			}
			txt += '<td width="40"><img src="images/' + img + '.gif" height="40" width="40" name="r' + i + 'c' + j + '" alt=""></td>\n';
		}

		txt += '</tr>\n';
	}

	txt += '</table>\n';
	
	drawer(txt, 'bgnd');
}

function doswoosh()
{
	if ( navigator.appName == "Netscape" )
	{
		wWidth = window.innerWidth;
		hHeight = window.innerHeight;
	}
	else
	{
		wWidth = document.body.clientWidth;
		hHeight = document.body.clientHeight;
	}

	swooshimg = parseInt(( wWidth - 360 ) / 10) * 10;
	if ( swooshimg < 300 )
	{
		swooshimg = 300;
	}
	if ( swooshimg > 600 )
	{
		swooshimg = 600;
	}
	txt = '<img src="images/swoosh_' + swooshimg + '.gif" alt="">';

	drawer(txt, 'swoosh');
}

function intz()
{
	errorOff(); 
	
	if ( navigator.appName == "Netscape" )
	{
		wWidth = window.innerWidth;
		hHeight = window.innerHeight;
	}
	else
	{
		wWidth = document.body.clientWidth;
		hHeight = document.body.clientHeight;
	}

	doswoosh();

	cb_getElementStyle('anim').visibility = "hidden";
	cb_getElementStyle('anim').left = wWidth - 135;
	cb_getElementStyle('anim').visibility = "visible";

	cb_getElementStyle("bgnd").visibility = "hidden";
	cb_getElementStyle("bgnd").left = wWidth - 200;
	cb_getElementStyle("bgnd").visibility = "visible";

	if ( subloc > -1 )
	{
		clicksub(subloc);
	}
}

function errorOff(){
	window.onerror=null;
}

