function imgrep(id, ext)
{

	if(document.all && ext.indexOf(".png") != -1)
	{
		document.getElementById(id).style.cssText = "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=image src='/custom/img/nav/" + id + ext + "');";
	}
	else
	{
		document.getElementById(id).src = "/custom/img/nav/" + id + ext;
	}
}

// Scroll iframe
var timerid;

function scroll(frm, inc)
{
	if(timerid)
	{
		clearTimeout(timerid);
	}
	if(window.frames[frm])
	{
		window.frames[frm].scrollBy(0, inc);
		timerid = setTimeout('scroll(\'' + frm + '\', ' + inc + ')', 20);
	}
}

function stopscroll()
{
	if(timerid)
	{
		clearTimeout(timerid);
	}
}

function setheight(noOfPrinavPoints)
{
	var navHeight = noOfPrinavPoints * 26 + 102;
	
	var height = 0;
	height = document.getElementById('contenttable').offsetHeight - navHeight;
	
	if(height > 0)
	{
		if(height%2 != 0) 
		{
			height = height + 1;
		}

		document.getElementById('spacerimgl').style.height = height + 'px';
	}
}

/* Lightbox */
var slideshows = new Array();

function init_slideshows()
{
	for (var i = 0; i < slideshows.length; i++)
	{
		window.setTimeout(slideshows[i], 0);
	}
}