var iScrollTimer;

function hiLiteText(showText)
{
	showText.style.color = "#000000";
}

function loLiteText(showText)
{
	showText.style.color = "#333333";
}

function openFromIFrame(targetURL)
{
	parent.location = targetURL;
}

function openImage(imageID,imageHeight,imageWidth)
{
	target = '../popup/popup-' + imageID + '.html'

	//if firefox do different size...

	winHeight = imageHeight + 21;
	winWidth = imageWidth;

	popWindow = window.open(target,'ImageWindow','status=no,scrollbars=no,resizeable=no,height='+winHeight+',width='+winWidth);

	if (popWindow.navigator.platform == "Win32") {
		winHeight = winHeight + 36;
		winWidth = winWidth + 10;
		popWindow.resizeTo(winWidth,winHeight);
	} else {
		popWindow.resizeTo(winWidth,winHeight);
	}
	popWindow.focus();
}

function openPage(targetURL, newWindow)
{
	if (newWindow) {
		window.open(targetURL)
	} else {
		window.location = targetURL;
	}
}

function scrollPortfolio(sScrollFrame,iScrollSpeed)
{
	if (iScrollTimer)
	{
		clearTimeout(iScrollTimer);
	}
	if (window.frames[sScrollFrame])
	{
		window.frames[sScrollFrame].scrollBy(iScrollSpeed, 0);
		iScrollTimer = setTimeout("scrollPortfolio('" + sScrollFrame + "'," + iScrollSpeed + ")",40);
	}
}

function scrollPortfolio_East()
{
	scrollPortfolio("framePortfolio",4);
}

function scrollPortfolio_West()
{
	scrollPortfolio("framePortfolio",-4);
}

function scrollStop()
{
	if (iScrollTimer)
	{
		clearTimeout(iScrollTimer);
	}
}
