if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 && 
	  navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) {
	document.write('<SCRIPT LANGUAGE=VBScript\> \n');
	document.write('on error resume next \n');
	document.write('Sub mainMovie_FSCommand(ByVal command, ByVal args)\n');
	document.write('  call mainMovie_DoFSCommand(command, args)\n');
	document.write('end sub\n');
	document.write('</SCRIPT\> \n');
}

var tabs = {
	'OFFER' 	: {x : 56, 	url : 'pages/offer.html'},
	'RECOMEND' 	: {x : 89, 	url : 'pages/recomend.html'}
}

var currentTab = null;

function mainMovie_DoFSCommand (command, args)
{
	var frameNode = document.getElementById("contentFrame");
	frameNode.style.display = 'none';	

	if (args == currentTab) {
		currentTab = null;
		return;
	}
	
	currentTab = args;
	
 frameNode.contentWindow.location.href = "about:blank";
	setTimeout(function () {
		with (frameNode.style) {
			var tab = tabs[currentTab];
			left = tab['x'] + 'px';
			display = 'block';
			frameNode.contentWindow.location.href = tab['url'];
		}
	}, 500);
}