function crSwfCode(SWFFILE,FW,FH){
	var acontent = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0" '
	+ '	width='+FW+' height='+FH+'>'
	+ '<param name="movie" value='+SWFFILE+'><param name=quality value=high><param name=menu value=false>'
	+ '<embed src='+SWFFILE+' '
	+ 'quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" '
	+ ' width='+FW+' height='+FH+'></embed></object>';
	document.write(acontent);
}
	
function clearSearch(input){
	if ((input.value == "フリーワード検索") || (input.value == "フリーワード")) input.value="";
}

function changeClass(mode,target1,target2){
	switch(mode){
		case"onclick":
			document.getElementById("mapmenu"+target1).className="active0";
			document.getElementById("mapmenu"+target2).className="active1";
			
			if(target1=="1"){
				document.getElementById("map2").src="../include_map.php";
			} else {
				document.getElementById("map2").src="../_images/map.jpg";
			}				
			break;
	}
}

function swmmenu1(target,current,mode){
	if(mode=="v"){
		document.getElementById("mmenu1_"+target).className="active1";
		if(document.getElementById("mmenu2_"+target)){
			document.getElementById("mmenu2_"+target).className="l2v1";
		}
	} 
	else {
		if(target!=current) document.getElementById("mmenu1_"+target).className="active0";
		if(document.getElementById("mmenu2_"+target)){
			document.getElementById("mmenu2_"+target).className="l2v0";
		}
	}
}

function swmmenu2(target,parentbox,mode){
	if(mode=="v"){
		document.getElementById(target).className="active2";
	} else {
		document.getElementById(target).className="active0";
	}
}



/*florrmap functions*/
var browser = (navigator.appName); /*browser*/
var mX = 0, mY = 0; /*mouse location*/
var sX = -220, sY = -210; /*popup location*/	
function lfGetMousePoint(event_point) {
		if(browser=="Netscape"){
			mX = event_point.pageX;
			mY = event_point.pageY;
		} else {
			mX = event.clientX + document.body.scrollLeft;
			mY = event.clientY + document.body.scrollTop;
		}
}
function fpu(id_name,m) { /*floor popup*/
	var id,name,m;
	if(m==1){
		/*activate mousemove*/
		if(browser=="Netscape"){
			window.onmousemove=lfGetMousePoint;
		} else {
			document.onmousemove=lfGetMousePoint;
		}	
		document.getElementById(id_name).style.visibility = "visible";
		document.getElementById(id_name).style.left = mX + sX + "px";
		document.getElementById(id_name).style.top = mY + sY + "px";
	} else {
		document.getElementById(id_name).style.visibility="hidden";
		/*deactivate mousemove*/
		document.onmousemove="";
	}
}

function showhide(a,b,id,boxw){
	var id,a,b,c,boxw;
	a=document.getElementById(a).style;
	b=document.getElementById(b).style;
	c=document.getElementById("sml_"+id).style;
	
	
	if(b.display=='none'){
		a.display='none';
		b.display='block';
		c.display='block';
		chimgsize(id,2,boxw); //additional
		document.getElementById("shopboxsma_"+id).style.backgroundColor="#e2f2e2";
	} else {
		a.display='block';
		b.display='none';
		c.display='none';
		chimgsize(id,1,boxw); //additional
		document.getElementById("shopboxsma_"+id).style.backgroundColor="#ffffff";
	}
}

function chimgsize(id,m,boxw){ /* sm list change image*/
	var a,b,c,boxw;
	a=document.getElementById("smimg"+id+"0");
	b=document.getElementById("smimg"+id+"1");
	c=document.getElementById("smimg"+id+"2");
	box=document.getElementById("smimgbox"+id);

	if(m==1){
		if(a) { a.src=a.src.replace("=200","=85"); }
		if(b) { b.src=b.src.replace("=200","=85"); }
		if(c) { c.src=c.src.replace("=200","=85"); }
		box.style.width=null;
	} else {
		if(a) { a.src=a.src.replace("=85","=200"); }
		if(b) { b.src=b.src.replace("=85","=200"); }
		if(c) { c.src=c.src.replace("=85","=200"); }
		box.style.width=boxw;
	}
}

function swph(no){ /*switch photo*/
	for(i=1; i<=5; i++){
		if(document.getElementById("photo"+i)){
			document.getElementById("photo"+i).className="v0";
		}
		if(document.getElementById("photoc"+i)){
			document.getElementById("photoc"+i).className="v0";
		}
	}
	document.getElementById("photo"+no).className="v1";
	document.getElementById("photoc"+no).className="v1";
}

function showhideextbox(id){
	a=document.getElementById(id).style;
	if(a.display!='block'){
		a.display='block';
	} else {
		a.display='none';
	}
}

/*function test(e){
  if(window.opera)   
          alert("A");
  else if(document.all)   
          alert("B");
  else if(document.layers || document.getElementById)
          alert("C");
}
*/


