function writeFlash( swf , width , height, ver ){

  var htm = "";
  htm+="<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000'"
  htm+="        codebase='http://download.macromedia.com/pub/shockwave/"
                    htm+="cabs/flash/swflash.cab'"
  htm+="        width   = " + width
  htm+="        height  = " + height + ">"
  htm+="<param  name    = movie value=" + swf + ">"
  htm+="<param  name    = quality value=high>"
  htm+="<embed  src     = " + swf + " "
  htm+="        quality = high  "
  htm+="        width   = "+ width
  htm+="        height  = " + height
  htm+="        type    = 'application/x-shockwave-flash' "
  htm+="        pluginspage='http://www.macromedia.com/go/getflashplayer'>"
  htm+="</embed>"
  htm+="</object>"
  
  document.write(htm);
}




function outFlash(URI, W, H, vars) {

document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
document.write(' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0"');
document.write(' width="' + W + '" height="' + H + '">');
document.write('<param name="FlashVars" value="' + vars +'">');
document.write('<param name="movie" value="' + URI + '" /><param name="base" value="." />');
document.write('<param name="quality" value="high" />');
document.write('<embed src="' + URI + '"  FlashVars="' + vars + '" base="." quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="' + W + '" height="' + H + '"></embed></object>');

}



function call_css_retouch() {


preWin = document.URL;
refWin = "text";


	if( preWin.indexOf( refWin, 0 ) >= 0 ){
		document.write('<link rel="stylesheet" type="text/css" href="./css/retouch_ex.css" />');
	} else {
		document.write('<link rel="stylesheet" type="text/css" href="./css/retouch.css" />');
	}

}



function call_css_mascara() {

	preWin = document.URL;
	refWin = "text";

	if( preWin.indexOf( refWin, 0 ) >= 0 ){
		document.write('<link rel="stylesheet" type="text/css" href="./css/mascara_ex.css" />');
	} else {
		document.write('<link rel="stylesheet" type="text/css" href="./css/mascara.css" />');
	}
}


function txt_ex_retouch(){

		preWin = document.URL;
		refWin = "text";

		if( preWin.indexOf( refWin, 0 ) >= 0 ){
			document.write('<a href="./retouch.html" target="_self" class="txt_back">文字サイズを戻す</a>');
		} else {
			document.write('<a href="./retouch.html?=text" target="_self" class="txt">文字を大きく表示</a>');
		}
}

function txt_ex_mascara(){

		preWin = document.URL;
		refWin = "text";

		if( preWin.indexOf( refWin, 0 ) >= 0 ){
			document.write('<a href="./mascara.html" target="_self" class="txt_back">文字サイズを戻す</a>');
		} else {
			document.write('<a href="./mascara.html?=text" target="_self" class="txt">文字を大きく表示</a>');
		}
}