// -----------------------------------------------------------------------------
// Globals
// Major version of Flash required
var requiredMajorVersion = 9;
// Minor version of Flash required
var requiredMinorVersion = 0;
// Minor version of Flash required
var requiredRevision = 28;
// -----------------------------------------------------------------------------
// -->

function java_ShowMadoguchi()
{
//	this.document.location = 'http://www.google.co.jp/';
	this.document.location = 'krsb_top.php?MENU=35';
}

//↓[2010.03.09]
function java_ShowCity(h_city)
{
	//alert(h_city);
	//this.document.location = 'http://navi.wcric.com/krsb_top.php?MENU=39&SMNU1=42&SMNU2=cityinfo_frommap&PKEY=函館市';
	//this.document.location = 'http://www.kurasube.com/krsb_top.php?MENU=39&SMNU1=42&SMNU2=cityinfo_frommap&PKEY=' + h_city;
	this.document.location = 'http://www.kurasube.com/krsb_top.php?MENU=39&SMNU1=42&SMNU2=cityinfo_frommap&PKEY=' + encodeURI(h_city);
	//this.document.location = 'http://navi.wcric.com/krsb_top.php?MENU=39&SMNU1=42&SMNU2=cityinfo_from50on&PKEY=70';
}

/* IFrame用に追加 start... */
var g_PopupMode = 0;
var g_LiveUrl = '';
var g_LiveTitle = '';
var g_MemberUrl = '';
var g_MemberTitle = '';

function java_SetPopupMode(h_mode) {
	g_PopupMode = h_mode;
}

function java_GetPopupMode() {
	return g_PopupMode;
}

function java_SetLive(h_url,h_title) {
	g_LiveUrl = h_url;
	g_LiveTitle = h_title;
}

function java_GetLiveUrl() {
	return g_LiveUrl;
}

function java_GetLiveTitle() {
	return g_LiveTitle;
}

function java_SetMember(h_url,h_title) {
	g_MemberUrl = h_url;
	g_MemberTitle = h_title;
}

function java_GetMemberUrl() {
	return g_MemberUrl;
}

function java_GetMemberTitle() {
	return g_MemberTitle;
}

//////function moveIFrame(x,y,w,h) {
//////var a_map = bytefx.$position(document.getElementById('kurasube_map'));
////////alert(a_map.x);
////////var a_map = document.getElementById("kurasube_map");
////////alert(a_map.positionedOffset);
////////alert('moveIFrame x=' + x + ',Y=' + y + ',w=' + w + ',h=' + h); //[2010.02.04]
//////    var frameRef=document.getElementById("myFrame");
//////    frameRef.style.left=a_map.x + 10;
//////    frameRef.style.top=a_map.y + 30;
//////    var iFrameRef=document.getElementById("myIFrame");	
//////	iFrameRef.width=690;
//////	iFrameRef.height=528;
///////*
//////    var frameRef=document.getElementById("myFrame");
//////    frameRef.style.left=x;
//////    frameRef.style.top=y;
//////    var iFrameRef=document.getElementById("myIFrame");	
//////	iFrameRef.width=w;
//////	iFrameRef.height=h;
//////*/
////////alert(frameRef);
//////}

function hideIFrame(){
    document.getElementById("myFrame").style.visibility="hidden";
}
	
function showIFrame(){
    document.getElementById("myFrame").style.visibility="visible";
}

function loadIFrame(url){
	document.getElementById("myFrame").innerHTML = "<iframe id='myIFrame' src='" + url + "'frameborder='0'></iframe>";
}

/* IFrame用に追加 end... */

