var detect = navigator.userAgent.toLowerCase();
var OS,browser,total,thestring;
var version = 0;

if (checkIt('konqueror'))
{
	browser = "Konqueror";
	OS = "Linux";
}
else if (checkIt('safari')) browser = "Safari"
else if (checkIt('omniweb')) browser = "OmniWeb"
else if (checkIt('opera')) browser = "Opera"
else if (checkIt('webtv')) browser = "WebTV";
else if (checkIt('icab')) browser = "iCab"
else if (checkIt('msie')) browser = "Internet Explorer"
else if (!checkIt('compatible'))
{
	browser = "Netscape Navigator"
	version = detect.charAt(8);
}
else browser = "An unknown browser";

if (!version) version = detect.charAt(place + thestring.length);

if (!OS)
{
	if (checkIt('linux')) OS = "Linux";
	else if (checkIt('x11')) OS = "Unix";
	else if (checkIt('mac')) OS = "Mac"
	else if (checkIt('win')) OS = "Windows"
	else OS = "an unknown operating system";
}

function checkIt(string)
{
	place = detect.indexOf(string) + 1;
	thestring = string;
	return place;
}


var currentTime = new Date()
var month = currentTime.getMonth() + 1
var day = currentTime.getDate()
var year = currentTime.getFullYear()
data = month + "/" + day + "/" + year;



var i_win;
var v_win;
var agt=navigator.userAgent.toLowerCase();
if (agt.indexOf("win")!=-1 || agt.indexOf("16bit")!=-1)
i_win = true;
if (i_win) {
if (agt.indexOf("win95")!=-1 || agt.indexOf("windows 95")!=-1)
v_win = "Windows 95";
if (agt.indexOf("win98")!=-1 || agt.indexOf("windows 98")!=-1)
v_win = "Windows 98";
if (agt.indexOf("win 9x 4.90")!=-1)
v_win = "Windows ME";
if (agt.indexOf("winnt")!=-1 || agt.indexOf("windows nt")!=-1)
v_win = "Windows NT";
if (agt.indexOf("windows nt 5.0")!=-1)
v_win = "Windows 2000";
if (agt.indexOf("windows nt 5.1")!=-1)
v_win = "Windows XP";
if (!v_win)
v_win = "Unknown Windows";
}
if (!OS) {
if (checkIt('linux')) OS = "Linux";
else if (checkIt('x11')) OS = "Unix";
else if (checkIt('mac')) OS = "Mac"
else if (checkIt('win')) OS = "Windows"
else OS = "an unknown operating system";
}

<!-- Copyright 2000 William Bontrager

// The GetCookie() function returns the number of times a 
//    cookie with a specific name has been set on the 
//    visitor's computer.


// How many days shall the cookie live on your user's 
//    computer?

DaysToLive = 365;
var met = '<param name="URL" value="http://faro:guest@213.58.156.86/getimage?camera=1&delay=400&fmt=qsif">';
var cam = '<param name="URL" value="http://faro:guest@213.58.156.86/getimage?camera=1&fmt=sif">';

// No other customizations required.


// This function looks for a cookie with a specific name on the visitor's hard drive.
function GetCookie(name) {
// Start by assuming no cookie exists.
var cookiecontent = '0';
// The browser's cookies can hold data we're not interested in, all in one 
//     long string of characters. Thus, we need to find out where our specific
//     cookie begins and ends (provided the one we want actually exists).
//
// If any cookies are available ...
if(document.cookie.length > 0) {
	// Determine begin position of the cookie with the specified name.
	var cookiename = name + '=';
	var cookiebegin = document.cookie.indexOf(cookiename);
	// Initialize the end position at zero.
	var cookieend = 0;
	// If a cookie with the specified name is actually available ...
	if(cookiebegin > -1) {
		// Offset the begin position of the cookie by the lengh of the cookie name.
		cookiebegin += cookiename.length;
		// Determine the end position of the cookie.
		cookieend = document.cookie.indexOf(";",cookiebegin);
		if(cookieend < cookiebegin) { cookieend = document.cookie.length; }
		// Put the cookie into our own variable "cookiecontent".
		cookiecontent = document.cookie.substring(cookiebegin,cookieend);
	}
}
// Increment cookie content by 1 and store in variable "value".
var value = parseInt(cookiecontent) + 1;
// Put the incremented value as a new cookie on the visitor's hard drive.
PutCookie(name,value);
// Return the incremented value to the calling line of code.
return value;
}

// This function puts the cookie on the visitor's hard drive.
function PutCookie(n,v) {
// Begin by assuming no expiration date is applicable.
var exp = '';
// If an expiration date is applicable, determine the future date 
//      and store the date in variable "exp" in the correct format.
if(DaysToLive > 0) {
	var now = new Date();
	then = now.getTime() + (DaysToLive * 24 * 60 * 60 * 1000);
	now.setTime(then);
	exp = '; expires=' +
	now.toGMTString();
}
// Put the cookie on the user's hard drive with path set to root 
//     and with any applicable expiration date.
document.cookie = n + "=" + v + '; path=/' + exp;
}

visits = GetCookie('page_name');

var sc_referer = ""+document.referrer;
	var sc_title = "";
var sc_url = "";

if(window.sc_https) {
	if(sc_https==1) {
		sc_doc_loc = ''+document.location;
		myRE = new RegExp("^https", "i")
		if(sc_doc_loc.match(myRE)) {
			sc_http_url = "https";
		}
		else {
			sc_http_url = "http";
		}
	}
	else
		sc_http_url = "http";
}


var sc_title = ""+document.title;
var sc_url = ""+document.location;
var sc_referer = sc_referer.substring(0, 150);
var sc_title = sc_title.substring(0, 150);
var sc_url = sc_url.substring(0, 150);
var sc_referer = escape(sc_referer);
var sc_title = escape(sc_title);
var sc_url = escape(sc_url);


var refere = sc_referer;

var nokia = "pic";

var teste = browser + ";" +  version + ";" + OS  + ";" + v_win + ";" + screen.width + "x" + screen.height + ";" + navigator.systemLanguage + ";" + navigator.userLanguage + ";" + navigator.cookieEnabled + ";" + visits;




