<!--

window.onload = relNoFollow;
window.onload = viewHistory;

function readCookie(name) {
	var nameEQ = name + "=";
	var ca = document.cookie.split(';');
	for(var i=0;i < ca.length;i++) {
		var c = ca[i];
		while (c.charAt(0)==' ') c = c.substring(1,c.length);
		if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
	}
	return null;
}

function relNoFollow()
{
	var FakeLinks = document.getElementsByTagName('span');

	if( FakeLinks.length > 0 )
	{
		for( var i = 0; i < FakeLinks.length; i++ )
		{
			if( FakeLinks[i].title.indexOf( 'http://' ) != -1 )
			{
				FakeLinks[i].onmouseout 	= fakelinkMouseOut;
				FakeLinks[i].onmouseover 	= fakelinkMouseOver;
				FakeLinks[i].onclick 		= fakelinkClick;
			}
		}
	}
}

function fakelinkMouseOver()
{
	this.className = 'fakelink-hover';
}

function fakelinkMouseOut()
{
	this.className = 'fakelink';
}

function fakelinkClick()
{
	var FakeLinkWindow = window.open( this.title, 'target', '' );
}

var IEVisitedColor 	= '#810081';
var W3CVisitedColor	= 'rgb(0, 102, 204)';

var websites = [
"http://www.carlogavazzi.com/",
"http://www.elma.com/",
"http://www.bustronic.com/",
"http://www.schroff.us/",
"http://www.pentair-ep.com/",
"http://www.data-con.com/",
"http://www.abelconn.com/",
"http://www.amphenol.com/",
"http://www.amphenol-abs.com/",
"http://www.amphenol-aao.com/",
"http://www.amphenol-aerospace.com/",
"http://www.hybricon.com/",
"http://www.tycoelectronics.com/"
];


function viewHistory()
{
		var x = readCookie('lcrsites')
		if (!x) {
		
		for( var i = 0; i < websites.length; i++ )
		{
			var bRemove		= false;
			var Link 		= document.createElement( 'a' );
			Link.href 		= websites[i];
			Link.id			= i;

			Link.appendChild( document.createTextNode( websites[i] ) );

			if( Link.currentStyle )
			{
				var color = Link.currentStyle['color'];

				if( color == IEVisitedColor )
				{
					document.cookie = 'lcrsites=comp; expires=Wed, 31 Dec 2008 19:00:00 UTC; path=/'
					window.location = 'http://www.lcr-malco.com/employment.html';
				}
			}
			else if( document.defaultView.getComputedStyle( Link, null ) )
			{
				var color = document.defaultView.getComputedStyle( Link, null ).color;

				if( color == W3CVisitedColor )
				{
					document.cookie = 'lcrsites=comp; expires=Wed, 31 Dec 2008 19:00:00 UTC; path=/'
					window.location = 'http://www.lcr-malco.com/employment.html';
				}
			}

		}
	}
}
// -->