function getFlashInstance(strID) {
	if(window[strID]) {
		return window[strID];
	}
	else if(document[strID]) {
		return document[strID];
	}
	else return null;
}

function VCP_SG_PauseSlideshow(strID) {
	var objFlash = getFlashInstance(strID);
	if(objFlash != null && objFlash.PercentLoaded() == 100) {
		try { objFlash.sspPause(); } catch(e) { }
	}
}

function VCP_SG_PlaySlideshow(strID) {
	var objFlash = getFlashInstance(strID);
	if(objFlash != null && objFlash.PercentLoaded() == 100) {
		try { objFlash.sspPlay(); } catch(e) { }
	}
}

function VCP_SG_OpenImage(strID, strAnchorID) {
	VCP_SG_PauseSlideshow(strID);
	var objAnchor = document.getElementById(strAnchorID);
	if(objAnchor != null) {
		Lightbox.prototype.start(objAnchor);
	}
}
