///////////////////////////////////////////////////////////////
//IE6
try { 
document.execCommand('BackgroundImageCache', false, true); 
} catch(e) {} 

///////////////////////////////////////////////////////////////
//トラッキングコード
try{
	var _gaq = _gaq || [];
	_gaq.push(['_setAccount', 'UA-23869016-1']);
	_gaq.push(['_trackPageview']);

	(function() {
	var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
	ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
	var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
	})();
} catch(e) {}

///////////////////////////////////////////////////////////////
//GoogleMaps
function GoogleMaps() {
  var latlng = new google.maps.LatLng(33.983874,133.339262);
	var hitomi = new google.maps.MarkerImage('http://www.1103.co.jp/images/map_marker.gif', new google.maps.Size(16, 16));

  var opts = {
    zoom: 14,
    center: latlng,
    mapTypeId: google.maps.MapTypeId.ROADMAP,
		backgroundColor: '#FFFFFF',

		mapTypeControl: false,
		navigationControl: false,
		streetViewControl: false,

		disableDoubleClickZoom: true,
		draggable: false,
		keyboardShortcuts: false,
		scrollwheel: false
		
		//noClear: true

  };
	var map = new google.maps.Map(document.getElementById('map_canvas'), opts);

	var m_opts = {
		map: map,
		position: latlng,
		clickable: false,
		icon: hitomi

	};
	var marker = new google.maps.Marker( m_opts );

}

///////////////////////////////////////////////////////////////
//標準 別窓表示

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

///////////////////////////////////////////////////////////////
//イメージ入れ替え
function switchImage(ID,imgSrc){
  if (document.images){
    if (imgSrc != "none"){
      document.images[ID].src = imgSrc;
    }
  }
}

///////////////////////////////////////////////////////////////
//動画埋め込み
function Player(file,preview,w,h){
	h = 25 + h;

	//<param name="flashvars" value="src=' + file + '&preview=' + preview + '" />\
	//flashvars="src=' + file + '&preview=' + preview + '"\

	document.open();
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"\
		id="FLVplay" width="' + w + '" height="' + h +'"\
		codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab">\
		<param name="movie" value="/swf/player.swf" />\
		<param name="quality" value="high" />\
		<param name="bgcolor" value="#000000" />\
		<param name="allowScriptAccess" value="sameDomain" />\
		<param name="flashvars" value="src=' + file + '" />\
		<embed src="/swf/player.swf" quality="high" bgcolor="#000000"\
			width="' + w + '" height="' + h + '" name="FLVplay" align="middle"\
			play="true"\
			loop="false"\
			quality="high"\
			allowScriptAccess="sameDomain"\
			type="application/x-shockwave-flash"\
			flashvars="src=' + file + '"\
			pluginspage="http://www.adobe.com/go/getflashplayer">\
		</embed>\
	</object>\
	');
	document.close();
}

