
currentSpinThumb = null;

function getSWF(movieName)
{
	if (navigator.appName.indexOf('Microsoft') != -1) return window[movieName];
	
	return document[movieName];
}


function showSpin(ind)
{
	markSpinThumb(ind);
	getSWF('SpinPlayer').showSpinByImageIndex(ind);
}


function markSpinThumb(ind)
{
	if (currentSpinThumb) currentSpinThumb.className = 'thumb';
	currentSpinThumb = document.getElementById('spinThumb'+ind);
	currentSpinThumb.className = 'currentThumb';
}
