//
//___________________________________________________________ [ preload Global ]
function JsPreImg(){
	var JsPreLoad = new Array();
	for( var JsRoop = 0; JsRoop < JsPreLoadList.length; JsRoop ++ ){
		JsPreLoad[ JsRoop ] = new Image();
		JsPreLoad[ JsRoop ].src = JsPreLoadList[ JsRoop ];
	}
}

var JsPreLoadList = new Array
	(
/*
	"http://www.tokyo-gas.co.jp/satellite/image/gn_1.gif",
	"http://www.tokyo-gas.co.jp/satellite/image/gn_2.gif",
	"http://www.tokyo-gas.co.jp/satellite/image/gn_3.gif",
	"http://www.tokyo-gas.co.jp/satellite/image/gn_4.gif",
	"http://www.tokyo-gas.co.jp/satellite/image/gn_5.gif",
	"http://www.tokyo-gas.co.jp/satellite/image/gn_6.gif",
	"http://www.tokyo-gas.co.jp/satellite/image/gn_7.gif",
*/
	"http://www.tokyo-gas.co.jp/satellite/image/spacer.gif"
	);
JsPreImg();

//___________________________________________________________ [ rollover ]

function JsRollOver( Data1 , Data2 ){
	if( "gn_" == Data1 ){ return; }
	if( Data2 ==  1 ){
		document.images[ Data1 ].src = "http://www.tokyo-gas.co.jp/satellite/image/" + Data1 + "_.gif";
	}
	else{
		document.images[ Data1 ].src = "http://www.tokyo-gas.co.jp/satellite/image/" + Data1 + ".gif";
	}
}

//___________________________________________________________ [ rollover ]

function JsRollOver3( Data1 , Data2 ){
		document.images[ Data2 ].src = Data1;
}

//___________________________________________________________ [ popup ]
var MacIe = navigator.userAgent.indexOf( "Mac" ) > -1 &&  navigator.userAgent.indexOf( "MSIE" ) > -1;
var JsWin;

function commonpop( JsUrl, JsWinName, JSWidth, JSHeight ){
	if( !MacIe ){ JSWidth = JSWidth + 16; }
	if( MacIe ){ JSWidth = JSWidth - 1 ; }
	JsProperty = "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,width=" + JSWidth + ",height=" + JSHeight;
	JsWin = window.open( JsUrl, JsWinName, JsProperty );
	if( MacIe ){ return; }
	JsWin.focus();
}

function commonpop2( JsUrl, JsWinName, JSWidth, JSHeight ){
	JsProperty = "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=" + JSWidth + ",height=" + JSHeight;
	JsWin = window.open( JsUrl, JsWinName, JsProperty );
	if( MacIe ){ return; }
	JsWin.focus();
}
