//
// B14 Flash JS Tools V1.0.2
//

//
// Navigation from flash back or forward buttons
//
function b14CmsHistoryGo(offset) {
	history.go(-1);	
}

//
// Dynamic sizechange from flash
//
function changeDivSize(width, height) {
	var flashDiv = document.getElementById("flashcontent");
	var flashSite = document.getElementById("flashSite");

	var newFlashWidth = parseInt(width);
	var newFlashHeight = parseInt(height);
	
	// update site's "global minimum height"
	if (minHeight && minHeight < newFlashHeight)
		minHeight = newFlashHeight;
	
	if (newFlashWidth != 0)
		flashDiv.style.width = newFlashWidth + "px";
	
	if (newFlashHeight != 0) {
		flashDiv.style.height = newFlashHeight + "px";
		// Handle old MSIE buggy CSS engine
		if ( navigator.appName == "Microsoft Internet Explorer" && parseFloat(navigator.appVersion) < 7 )
			flashSite.style.height = newFlashHeight;
	}
	
}

