// Copyright 2007 NEW3S s.a. - NEW3S.com
// Christophe LEMOINE + Michael BRICOUT

AddScene ("ascenseur", "ascenseur", "ascenseur.tnt");

function Add_ascenseur_option() {
	if (gSceneDebug > 1) { alert ("Add_ascenseur_option()"); }
	AddSceneOptionWithStyle ('0','Village de la Terre','LoadScene("ascenseur")','ascenseur','font-weight:bold; color:#2C2F8E;');
}

function OnLoad_ascenseur() {
}

function OnUnload_ascenseur() {
}

function OnReady_ascenseur()
{
	//window.status = "TurnTool Ready (" + gLastScene + " -> " + gCurrentScene + ")";
	//switch (gLastScene) {
	//	case "ascenseur":
	//		OpenDoor(gLastScene);
	//		TNTDoCommand('CameraCtrl.Match("camera0",2000)'); // Sortir
	//		CloseDoor(gLastScene);
	//	break;
	//}
}

function OnClick_ascenseur(obj) {
	switch(obj) {
		//Liens inter-scene
		case "etage1": LoadScene("etage1_1"); break;
		case "etage2": LoadScene("etage2_1"); break;
		case "etage3": LoadScene("etage3_1"); break;
		case "etage4": LoadScene("etage4_1"); break;
		case "etage5": LoadScene("etage5_1"); break;
		default: LoadScene(obj); break;
	}
}

function OnMouseEnter_ascenseur(obj) {
}

function OnMouseExit_ascenseur(obj) {
}

function OnZoneEnter_ascenseur(zone, physics) {
}

function OnZoneExit_ascenseur(zone, physics) {
}

function OnKeyPress_ascenseur(keyCode, ascii) {
}

function OnKeyRelease_ascenseur(keyCode, ascii) {
}

// Copyright 2007 NEW3S s.a. - NEW3S.com
// Christophe LEMOINE + Michael BRICOUT
