
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// ÇÃ·¡½Ã Ãâ·Â
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////


function FlashInsert(FlashIDName, FlashFileName, FlashWidth, FlashHeight, DNSSetting, WMODESetting, FlashBGColor, QSetting, FlashAlign){
	
	
   document.write('<OBJECT CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
   document.write('CODEBASE="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab#version=8,0,22,0" ');
   document.write(' ID="'+FlashIDName+'" WIDTH="' + FlashWidth + '" HEIGHT="' + FlashHeight + '" ALIGN="'+FlashAlign+'" >');
   document.write('<PARAM NAME="movie" VALUE="'+ FlashFileName +'">');
   document.write('<PARAM NAME="quality" VALUE="'+QSetting+'">');
   document.write('<PARAM NAME="bgcolor" VALUE="'+FlashBGColor+'">');
   document.write('<PARAM NAME="wmode" VALUE="'+WMODESetting+'">');
   document.write('<PARAM NAME="allowScriptAccess" VALUE="'+DNSSetting+'">');
   document.write('<PARAM NAME="scale" VALUE="noscale">');
   document.write('<PARAM NAME="salign" VALUE="lt"> ');
   

   document.write('<EMBED invokeURLs=false SRC="'+ FlashFileName +'"  NAME="'+FlashIDName+'"');

   document.write(' WIDTH="' + FlashWidth + '" HEIGHT="' + FlashHeight + '" QUALITY="'+QSetting+'" SCALE="noscale"    SALIGN="lt" BGCOLOR="'+FlashBGColor+'"');

   document.write(' ALLOWSCRIPTACCESS="'+DNSSetting+'" ALIGN="'+FlashAlign+'" WMODE="'+WMODESetting+'" TYPE="application/x-shockwave-flash" ');
   document.write(' PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer" >');
   document.write('</EMBED invokeURLs=false>');
   document.write('</OBJECT>');
}




//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//  ÆË¾÷Ã¢
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
 
 
	function getCookie(name) {
	var nameOfCookie = name + "=";
	var x = 0

	while ( x <= document.cookie.length ) {
	var y = (x+nameOfCookie.length);
	if ( document.cookie.substring( x, y ) == nameOfCookie ) {
	if ( (endOfCookie=document.cookie.indexOf( ";",y )) == -1 )
	endOfCookie = document.cookie.length;
	return unescape( document.cookie.substring(y, endOfCookie ) );
	}
	x = document.cookie.indexOf( " ", x ) + 1;
	if ( x == 0 )
	break;
	}
	return "";
	}

	

