var moduleCounter=0;
var totalModule=0;

//called from playtime_index.jhtml
function setSuppressLeftNav(_isSuppress){
	if(_isSuppress){
		setTotalModule(2);
	}else{
		setTotalModule(3);
	}
}
function setTotalModule(_totalModule){
	totalModule=_totalModule;
	//alert("Krittiya's test, set totalModule to ||"+_totalModule);
}


// This fn is fired from flash when the last asset of the flash module is loaded completely
function onModuleComplete(_message){
	moduleCounter++;
	//alert("Krittiya's test,"+_message+ "loaded & ,moduleCounter ||"+moduleCounter);
}
/* 
This fn will be called from flash game . Flash Game checks if assets of other modules are completely loaded.
If so, return true and flash game loads its external assets.
*/

function isPageReady(){
	alert("Krittiya's test, isPageReady is called,moduleConter||"+moduleCounter);
	if(moduleCounter==totalModule && moduleCounter!=0){
		return true;
	}else{
		return false;
	}
}

function hi(){
	alert("Krittiya's test, HI!!");
	return("hi");
}