
//
//script is copyright
//


//Specify affected tags. Add or remove from list:
var tgs = new Array( 'div','td','tr');

//Specify spectrum of different font sizes:
var szs = new Array( '7pt','8pt','9pt','10pt','11pt','12pt','13pt' );
var startSz = 1;

function pl()
{
	var t = getCookie( '__startSize' );
	if ( t ) startSz = parseInt( t );
	ts( 'txtBox',0 );
}

function ts( trgt,inc )
{
	var d = document,cEl = null,sz,i,j,cTags;
	
	sz = startSz;
	sz += inc;
	if ( sz < 0 ) sz = 0;
	if ( sz > 6 ) sz = 6;
	startSz = sz;
	setCookie( '__startSize',sz );
	
	if ( !( cEl = d.getElementById( trgt ) ) )
		cEl = d.getElementsByTagName( trgt )[ 0 ];

	if (cEl) {
		cEl.style.fontSize = szs[ sz ];

		for ( i = 0 ; i < tgs.length ; i++ )
		{
			cTags = cEl.getElementsByTagName( tgs[ i ] );
			for ( j = 0 ; j < cTags.length ; j++ ) 
				cTags[ j ].style.fontSize = szs[ sz ];
		}
	}
}
function getCookie( name ) 
{
	var re = new RegExp( name + "=([^;]+)" );
	var value = re.exec( document.cookie ); 
	return ( value != null ) ? unescape( value[ 1 ] ) : null;
}

var today = new Date( );
var expiry = new Date( today.getTime( ) + 100 * 24 * 60 * 60 * 1000 ); // plus 100 days

function setCookie( name,value ) 
{ 
	document.cookie=name + "=" + escape( value ) + ";path=/;domain=.www.racekites.com;expires=" + expiry.toGMTString( );
}