  /*
Script Name: Your Computer Information
Author: Harald Hope, Website: http://TechPatterns.com/
Script Source URI: http://TechPatterns.com/downloads/browser_detection.php
Version 1.0.8
Copyright (C) 16 November 2008

This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation; either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

Get the full text of the GPL here: http://www.gnu.org/licenses/gpl.txt

This script requires the Full Featured Browser Detection and the Javascript Cookies scripts
to function.
You can download them here.
http://TechPatterns.com/downloads/browser_detection_php_ar.txt
http://TechPatterns.com/downloads/javascript_cookies.txt
*/

/*
If your page is XHMTL 1 strict, you have to
put this code into a js library file or your
page will not validate
*/
function client_data(info)
{
	if (info == 'width')
	{
		width_height_html = '';
		width = (screen.width) ? screen.width:'';
		height = (screen.height) ? screen.height:'';
		width_height_html += width + "x" + height + "px";
//(width && height) ? document.write(width_height_html):'';
		Set_Cookie( 
			'track_screen_resolution', 
			width_height_html , 
			1270872255, 
			'/', 
			'.tirecrawler.com', 
			'' 
		);
	}
	/**
	* Just because a cookie is NOT able to be written does not mean that javascript is disabled.  
	* May need to make this ajax available to write value to session instead
	*/
	else if (info == 'js' )
	{
//document.write('JavaScript is enabled.');
		Set_Cookie(
			'track_javascript_enabled', 
			'TRUE' , 
			1270872255, 
			'/', 
			'.tirecrawler.com', 
			'' 
		);
	}
	else if ( info == 'cookies' )
	{
		expires ='';
		Set_Cookie( 
			'track_cookies_enabled', 
			'TRUE' , 
			1270872255, 
			'/', 
			'.tirecrawler.com', 
			'' 
		);
		string = '';
		if ( Get_Cookie( 'track_cookies_enabled' ) )
		{
			string += 'Cookies are enabled';
		}
		else 
		{
			string += 'Cookies are disabled';
		}
//document.write( string ); 
	}
}
client_data('js');
client_data('cookies');
client_data('width');