// JavaScript Document
function setFirstCookie(){
	document.cookie = 'firstLoad=1';
}
function isFirstTime(){
	if (document.cookie.indexOf("firstLoad")==-1){
		window.document.top.SetVariable("firstLoad", 1);
		setFirstCookie();
	}
	else{
		window.document.top.SetVariable("firstLoad", 0);
	}
}

var isInternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
// Handle all the FSCommand messages in a Flash movie.
function top_DoFSCommand(command, args) {
	var topObj = isInternetExplorer ? document.all.top : document.top;
	isFirstTime();
}
// Hook for Internet Explorer.
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 top_FSCommand(ByVal command, ByVal args)\n');
	document.write('	Call top_DoFSCommand(command, args)\n');
	document.write('End Sub\n');
	document.write('</script\>\n');
}
