function writeSwf(SRC,ID,WIDTH,HEIGHT,ALLOWSCRIPT,MENU,WMODE){
	var outStr = '';
	outStr += '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="' + WIDTH + '" height="' + HEIGHT + '" id="' + ID + '" align="middle">\n';
	outStr += '<param name="movie" value="' + SRC + '" />\n';
	outStr += '<param name="quality" value="high" />\n';
	if(WMODE != undefined){
		outStr += '<param name="wmode" value="' + WMODE + '" />\n';
	}
	if(ALLOWSCRIPT != undefined){
		outStr += '<param name="allowScriptAccess" value="' + ALLOWSCRIPT + '" />\n';
	}
	if(MENU != undefined){
		outStr += '<param name="menu" value="' + MENU + '" />\n';
	}
	outStr += '<embed type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" quality="high" align="middle" src="' + SRC + '" width="' + WIDTH + '" height="' + HEIGHT + '" name="' + ID + '"';
	if(WMODE != undefined){
		outStr +=  ' wmode="' + WMODE + '"';
	}
	if(ALLOWSCRIPT != undefined){
		outStr +=  ' allowScriptAccess="' + ALLOWSCRIPT + '"';
	}
	if(MENU != undefined){
		outStr +=  ' menu="' + MENU + '"';
	}
	outStr += ' />\n';
	outStr += '</object>';
	document.write(outStr);
	//clipboardData.setData('Text',outStr);
}


function changeImage(THIS,FLAG){
	SRC = THIS.src;
	if(FLAG == 1){
		THIS.src = THIS.src.replace('_off.','_on.');
	}else{
		THIS.src = THIS.src.replace('_on.','_off.');
	}
}


function initChangeImage(){
	for(i=0;i<document.images.length;i++){
		if(document.images[i].className.search('changeImage')!=-1){
			document.images[i].onmouseover = function(){
				changeImage(this,1)
			}
			document.images[i].onmouseout = document.images[i].onmousedown = function(){
				changeImage(this,0)
			}
		}
	}
}


function displayResult(THIS){
	var search_result = document.getElementById('result');
	if(search_result.style.display == 'block'){
		search_result.style.display = 'none';
		THIS.src = THIS.src.replace('_up.gif','_down.gif');
	}else{
		search_result.style.display = 'block';
		THIS.src = THIS.src.replace('_down.gif','_up.gif');
	}
}


// 初期処理
if (window.attachEvent){
	window.attachEvent('onload',initiarize);
}else{
	window.addEventListener('load',initiarize,false);
}
function initiarize(){
	// 画像オーバー時
	initChangeImage();
}

//popup Window
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}




