swfid = "uchinoko";
function removeFrame(){
	if(self != top){top.location.href = self.location.href;}
}
function swf(name,width,height,cls,fvar,id,wm){
	if(cls == "fla" || cls == "open"){
		code = new Array('id="'+id+'" ','name="'+id+'" ');
//		view = 'style=visibility:hidden ';
		view = '';
	}else{
		code = new Array('','');
		view = '';
	}
	if(wm != ""){
		wmode = new Array('<param name="wmode" value="'+wm+'" />\n','wmode="'+wm+'" ');
	}else{
		wmode = new Array('','');
	}
	if(fvar != ""){
		flashvars = new Array('<param name="FlashVars" value="'+fvar+'" />\n','FlashVars="'+fvar+'" ');
	}else{
		flashvars = new Array('','');
	}
	document.write('<div class="'+cls+'">\n');
	document.write('<object '+code[0]+view+'classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="'+width+'" height="'+height+'" align="middle">\n');
	document.write('<param name="allowScriptAccess" value="sameDomain" />\n');
	document.write('<param name="movie" value="'+name+'.swf" />\n');
	document.write('<param name="quality" value="high" />\n');
	document.write(''+flashvars[0]+'\n');
	document.write(''+wmode[0]+'\n');
	document.write('<embed '+code[1]+view+'src="'+name+'.swf" quality="high" width="'+width+'" height="'+height+'" align="middle" '+flashvars[1]+' '+wmode[1]+'"swLiveConnect="true" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />\n');
	document.write('</object>\n');
	document.write('</div>\n');
}
function chgSize(){
	if(document.body.clientWidth>1 && document.body.clientHeight>1){
		eval('window.document.'+swfid+'.style.width='+document.documentElement.clientWidth+'+"px"');
		eval('window.document.'+swfid+'.style.height='+document.documentElement.clientHeight+'+"px"');
	}
}

