var browserCheck = new RegExp('Microsoft', 'i'); // fuck microsoft and their stupid rules

// set browser:
if(browserCheck.test(navigator.appName))
	var app = "ie";
else
	var app = "moz";

function setScrollWidth()
{
	
	if(!document.getElementById('fixedWidth'))
	{
		return false;
	}
	else
	{
		var scrollArea = document.getElementById('fixedWidth');

		if(app == "ie")
			var sWidth = scrollArea.offsetWidth;
		else
			var sWidth = scrollArea.clientWidth;

		scrollArea.style.width = sWidth+'px';

		//alert(sWidth+" -- "+scrollArea.style.width);
	}
}

var f_CP;

function f_hoverProduct(prodId)
{
	f_hideProduct();
	
	document.getElementById('prodBox_'+prodId).style.display = 'block';
	
	f_CP = prodId;
}

function f_hideProduct()
{
	if(f_CP)
	{
		document.getElementById('prodBox_'+f_CP).style.display = 'none';

		f_CP = false;
	}
}
