var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));


//-- マップ表示用 ---
function openmap( lat , lon ){
	var tarURL = "/map/?lat=" + lat + "&lon=" + lon;
	window.open(tarURL , "map" , "width=630,height=480");
}

//-- 問合せフォーム用 ---
var nowRoom = "";
var shopID = "";
var checkquestionwinopen = false;
function question( roomname , callshop ){
	switch( callshop){
		case "yamashina":
			shopID = "yamashina";
			shopName = "ミニミニFC山科店";
		break;
		case "karasuma":
			shopID = "karasuma";
			shopName = "ミニミニFC四条烏丸店";
		break;
		default:
			shopID = "info";
			shopName = "";
		break;
	}
	if( !checkquestionwinopen ){
		checkquestionwinopen = true;
		nowRoom = roomname;
		var windowname = "question" + shopID;
		this.questionWin = window.open('/pcquestion/index.html' , windowname , "width=600,height=650,scrollbars=yes,location=no, menubar=no,left=10,top=30");
	}else{
		if( questionWin.closed ){
			nowRoom = roomname;
			var windowname = "question" + shopID;
			this.questionWin = window.open('/pcquestion/index.html' , windowname , "width=600,height=650,scrollbars=yes,location=no, menubar=no,left=10,top=30");
		}else{
			this.questionWin.setRoom( roomname , shopID , shopName );
		}
	}
}

function passRoom(tar){
	tar.setRoom( nowRoom , shopID , shopName );
}

//-- ＨＯＭＥのＦＬＡＳＨ書き出し用 ---
function writeflash(){
	document.write("<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,24,0\" width=\"320\" height=\"280\" id=\"\">");
	document.write("<param name=\"movie\" value=\"/home/base.swf\"><param name=\"flashvars\" value=\"page=minimiikyoto\"><param name=\"quality\" value=\"best\">");
	document.write("<embed src=\"/home/base.swf/\" quality=\"high\" pluginspage=\"http://www.macromedia.com/jp/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\" type=\"application/x-shockwave-flash\" flashvars=\"page=miniminikyoto\" width=\"320\" height=\"280\" wmode=\"transparent\" id=\"minimini\"></embed>");
	document.write("</object>");
}

function add_bookmark(){
	if (window.sidebar) {
		window.sidebar.addPanel('【京都賃貸】ミニミニFC京都','http://www.minimini-kyoto.jp/','');
	}else if( document.all ) { 
		window.external.AddFavorite("http://www.minimini-kyoto.jp/","【京都賃貸】ミニミニFC京都");
	}else if( window.opera ) { 
		var hoge = document.createElement("A");
		hoge.rel = "sidebar";
		hoge.target = "_search";
		hoge.title = "【京都賃貸】ミニミニFC京都";
		hoge.href = "http://www.minimini-kyoto.jp/";
		hoge.click();
	}else{ 
		return true; 
	}
}

