//
// swf同士の連携js
// localconnectionではieで不具合があったため
//


//////////sound関連//////////////////////////////////////////////////
/**
 * pressサウンド
 */
function lcSetPressSound()
{
	document.getElementById("soundexternal").setPressSound();
}
/**
 * サウンドのOnOff
 * @param boolean - true:サウンドOn, false:サウンドOff
 */
function lcSetSoundBoolean(b)
{
	document.getElementById("soundexternal").setSoundBoolean(b);
}
/**
 * サウンドのタイプ
 * @param string - opening, loop, drive
 */
function lcSetSoundChange(str)
{
	document.getElementById("soundexternal").setSoundChange(str);
}
/**
 * サウンドのナレーションモード
 * @param boolean - true:ナレOn, false:ナレOff
 */
function lcSetSoundNarration(b)
{
	document.getElementById("soundexternal").setSoundNarration(b);
}
/**
 * サウンドの変化　ドライブムービー中
 * @param boolean - true:サウンドOn, false:サウンドOff
 */
function lcDrivingOnSoundBoolean(b)
{
	document.getElementById("drivingexternal").onSoundBoolean(b);
}
/**
 * サウンドの変化　サンプルムービー中
 * @param boolean - true:サウンドOn, false:サウンドOff
 */
function lcSampleOnSoundBoolean(b)
{
	document.getElementById("sampleexternal").onSoundBoolean(b);
}
/**
 * サウンドの変化　オープニング中
 * @param boolean - true:サウンドOn, false:サウンドOff
 */
function lcOpeningOnSoundBoolean(b)
{
	document.getElementById("topexternal").onSoundBoolean(b);
}
/**
 * サウンドの初期状態
 * @param string - returnで帰ってくるターゲット
 */
function lcNowSoundCondition(str)
{
	document.getElementById("soundexternal").nowSoundCondition(str);
}
/**
 * サウンドの初期状態の返し
 * @param object - {str:ターゲット, b:Boolean}
 */
function lcTargetOnSoundBoolean(o)
{
	document.getElementById(o.str+"external").onSoundBoolean(o.b);
}


//////////キャラ説明関連//////////////////////////////////////////////////
/**
 * 説明の削除
 */
function lcHideExplanation()
{
	document.getElementById("explanationexternal").hideExplanation();
}


//////////ナビゲータ関連//////////////////////////////////////////////////
/**
 * ナビのタイプ
 * @param string - opening, sample, map, drive
 */
function lcSetNaviScene(str)
{
	document.getElementById("navigatorexternal").setNaviScene(str);
}
/**
 * サンプルムービーの削除
 */
function lcCloseSampleMovie()
{
	document.getElementById("navigatorexternal").closeSampleMovie();
}


//////////スポット関連//////////////////////////////////////////////////
/**
 * 3つのスポットの選択
 */
function lcOnShow3Spot()
{
	document.getElementById("spotexternal").onShow3Spot();
}
/**
 * ドライブムービーを見る
 */
function lcOnDrivingCourse()
{
	document.getElementById("spotexternal").onDrivingCourse();
}
/**
 * オリジナルコースを作る
 */
function lcOnOriginalCourse()
{
	document.getElementById("spotexternal").onOriginalCourse();
}


//////////トップ関連//////////////////////////////////////////////////
/**
 * シーンの変更
 * @param string - top, area
 */
function lcOnNaviChangeEvent(str)
{
	document.getElementById("topexternal").onNaviChangeEvent(str);
}
/**
 * ヘッターの初期値
 * @param string - opening, skip, top
 */
function lcHeaderSetOpeningTyp(str)
{
	document.getElementById("headerexternal").setOpeningType(str);
}
/**
 * フッターの初期値
 * @param string - opening, skip, top
 */
function lcFooterSetOpeningTyp(str)
{
	document.getElementById("footerexternal").setOpeningType(str);
}
/**
 * ナビゲーターの初期値
 * @param string - opening, skip, top
 */
function lcNavigatorSetOpeningTyp(str)
{
	document.getElementById("navigatorexternal").setOpeningType(str);
}



//////////ドライブムービー関連//////////////////////////////////////////////////
/**
 * 応募する
 */
function lcOnApplication()
{
	document.getElementById("drivingexternal").onApplication();
}



//////////tracking//////////////////////////////////////////////////
/**
 * tracking
 * @param {com:command, arg:args}
 */
function tracking(o)
{
	document.getElementById("soundexternal").tracking(o);
}

