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"));


//-- マップ表示用 ---
var checkwinopen = false;
var nowMap = "";
function openmap( lat , lon ){
	var tarURL = "/pcmap/?plat=" + lat + "&plon=" + lon;
	if( !checkwinopen ){
		checkwinopen = true;
		nowMap = lat + "-" + lon;
		this.mapWin = window.open(tarURL , "map" , "width=630,height=480");
	}else{
		if( mapWin.closed ){
			nowMap = lat + "-" + lon;
			this.mapWin = window.open(tarURL , "map" , "width=630,height=480");
		}else{
			this.mapWin.focus();
			this.mapWin = window.open(tarURL , "map" , "width=630,height=480");
		}
	}
}

function openmap_wr( lat_wr , lon_wr ){
	var tarURL = "/pcmap_4th/?lat=" + lat_wr + "&lon=" + lon_wr;
	//var nowMap = "map" + lat_wr + "-" + lon_wr;
	window.open(tarURL , "map" , "width=630,height=480");
}

//-- 問合せフォーム用 ---
var nowRoom = "";
var shopID = "";
var checkquestionwinopen = false;
function question( roomname , callshop ){
	switch( callshop){
		case "大津店":
			shopID = "otsu";
			shopName = "ミニミニ大津店";
		break;
		case "石山駅前店":
			shopID = "ishiyama";
			shopName = "ミニミニ石山駅前店";
		break;
		case "瀬田店":
			shopID = "seta";
			shopName = "ミニミニ瀬田店";
		break;
		case "南草津店":
			shopID = "minamikusatsu";
			shopName = "ミニミニ南草津店";
		break;
		case "草津西口店":
			shopID = "kusatsu";
			shopName = "ミニミニ草津西口店";
		break;
		case "守山駅前店":
			shopID = "moriyama";
			shopName = "ミニミニ守山駅前店";
		break;
		case "近江八幡店":
			shopID = "oumihachiman";
			shopName = "ミニミニ近江八幡店";
		break;
		case "堅田駅前店":
			shopID = "katata";
			shopName = "ミニミニ堅田駅前店";
		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=560,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=560,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=\"672\" height=\"172\" id=\"\">");
	document.write("<param name=\"movie\" value=\"/home_4th/main.swf\"><param name=\"flashvars\" value=\"page=minimiishiga\"><param name=\"quality\" value=\"best\">");
	document.write("<embed src=\"/home_4th/main.swf\" quality=\"high\" pluginspage=\"http://www.macromedia.com/jp/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\" type=\"application/x-shockwave-flash\" flashvars=\"page=miniminishiga\" width=\"672\" height=\"172\" wmode=\"transparent\" id=\"minimini\"></embed>");
	document.write("</object>");
}

function writeflash1(){
	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=\"672\" height=\"172\" id=\"\">");
	document.write("<param name=\"movie\" value=\"/home_3rd/main1.swf\"><param name=\"flashvars\" value=\"page=minimiishiga\"><param name=\"quality\" value=\"best\">");
	document.write("<embed src=\"/home_3rd/main1.swf\" quality=\"high\" pluginspage=\"http://www.macromedia.com/jp/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\" type=\"application/x-shockwave-flash\" flashvars=\"page=miniminishiga\" width=\"672\" height=\"172\" wmode=\"transparent\" id=\"minimini\"></embed>");
	document.write("</object>");
}

