// Springfix for lightwindow version 2 
// Use this on all projects with lightwindow
// It will fix window escaping making the costumer leave the website instead of seeing a 
// lightwindow.


var aBackup = new Array();

function springfix () 
{
	aTags = document.getElementsByTagName ('a');
	
	for (var i = 0; i < aTags.length; i++)
	{
	   if (aTags[i].className == 'lightwindow')
	  {
		aTags[i]._href = aTags[i].href;
		aTags[i].href  = '#';
		aBackup.push (aTags[i]);
	  }
 	}
}

window.onload = function () 
{  
	for (var backup in aBackup)	aBackup [backup].href = aBackup [backup]._href;
}