//var strTemp = '"bla"bla"bla"bla';
//window.alert(strTemp.replace(/\"/gi, '"'));
var contentReplacer = [];

function loadRollOver()
{
	contentReplacer['target'] = document.getElementById("homeInfoBlok");
	if(contentReplacer['target'] == null)
	{
		window.alert('Error: failed load infoblock');
	}
	else
	{
		contentReplacer['original'] = contentReplacer['target'].innerHTML;
	}
}

function rollOver(elementId)
{
	if(contentReplacer['timeout'] != null)
	{
		clearTimeout(contentReplacer['timeout']);
	}
	contentReplacer['timeout'] = window.setTimeout('place(' + elementId + ');', 100);
}

function rollOut()
{
	if(contentReplacer['timeout'] != null)
	{
		clearTimeout(contentReplacer['timeout']);
	}
	contentReplacer['timeout'] = window.setTimeout('restore()', 2500);
}

function place(elementId)
{
	var element = document.getElementById('rollOver' + elementId);
	if(element != null)
	{
		var strString = element.innerHTML;
		if(contentReplacer['target'] != null)
		{
			contentReplacer['target'].innerHTML = strString;
		}
	}
}

function restore()
{
	if(contentReplacer['target'] != null)
	{
		contentReplacer['target'].innerHTML = contentReplacer['original'];
	}
}

addLoadEvent(loadRollOver);