// =============================================================================
// windowオブジェクト拡張クラス
// =============================================================================
/*
   window クラス

   最終更新日:2004年2月26日(金)
   -----------------------------------------------------------------------------

   依存
	sniffer.js

   -----------------------------------------------------------------------------

   コンストラクタの引数
	無し

   -----------------------------------------------------------------------------

   メソッド
	- getViewPointHeight()
		ドキュメントルートへのパスを返す

   -----------------------------------------------------------------------------

   備考
	A List Apart(http://www.alistapart.com/)とBobby van der Sluis氏の記事
	http://www.alistapart.com/articles/footers/
	を参考にしました。感謝します。

 */
// =============================================================================
if(sniffer.DOMable()) {



// -----------------------------------------------------------------------------
/*
   getViewPointHeightメソッド
	String window.getViewPointHeight();
	
	返値
		Number windowHeight - ウィンドウ（View Point）の高さ

	引数
		無し
*/
window.getViewPointHeight = function() {
	var windowHeight=0;
	if (typeof window.innerHeight == "number") {
		windowHeight = window.innerHeight;
	}
	else {
		//IE6 Standard Mode
		if (document.documentElement && document.documentElement.clientHeight) {
			windowHeight= document.documentElement.clientHeight;
		}
		//IE6 quirks mode, IE5
		else {
			if (document.body && document.body.clientHeight) {
				windowHeight=document.body.clientHeight;
			}
		}
	}
	return windowHeight;
}
// -----------------------------------------------------------------------------


}




// =============================================================================
// windowのイベントをみんなでシェアするための設定
// =============================================================================
/*

   最終更新日:2004年2月26日(金)
   -----------------------------------------------------------------------------

   依存
	sniffer.js
	broadcaster.js

   -----------------------------------------------------------------------------

   備考
   	
*/
// =============================================================================
if(sniffer.DOMable()) {


// -----------------------------------------------------------------------------
/*
   windowオブジェクトをブロードキャスターにする
*/
BroadCaster.initialize( window );
// -----------------------------------------------------------------------------



// -----------------------------------------------------------------------------
/*
   onLoad＞onReady
*/
window.onload = function() {
	window.broadcastMessage("onReady");
}
// -----------------------------------------------------------------------------



// -----------------------------------------------------------------------------
/*
   onResize＞onReisze
*/
window.onresize = function() {
	window.broadcastMessage("onResize");
}
// -----------------------------------------------------------------------------


}
