// topflash
function Top() {
  document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="950" height="116">\n');
  document.write('<param name="movie" value="image/header.swf" />\n');
  document.write('<param name="quality" value="high" />\n');
  document.write('<param name="wmode" value="transparent">\n');
  document.write('<embed src="image/header.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="950" height="116" quality="high" wmode="transparent"></embed>\n');	
  document.write('</object>\n');
} 

function Recom() {
  document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="165" height="280">\n');
  document.write('<param name="movie" value="image/recom.swf" />\n');
  document.write('<param name="quality" value="high" />\n');
  document.write('<param name="wmode" value="transparent">\n');
  document.write('<embed src="image/recom.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="165" height="280" quality="high" wmode="transparent"></embed>\n');	
  document.write('</object>\n');
} 

function Fstr() {
  document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="950" height="59">\n');
  document.write('<param name="movie" value="image/footer.swf" />\n');
  document.write('<param name="quality" value="high" />\n');
  document.write('<param name="wmode" value="transparent">\n');
  document.write('<embed src="image/footer.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="950" height="59" quality="high" wmode="transparent"></embed>\n');	
  document.write('</object>\n');
} 

// subpage flash
function spfl() {
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="950" height="116" />\n');
	document.write('<param name="movie" value="../image/header.swf" />\n');
	document.write('<param name="quality" value="high" />\n');
	document.write('<param name="wmode" value="transparent" />\n');
	document.write('<embed src="../image/header.swf" quality="high" wmode="transparent" width="950" height="116" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />\n');	
	document.write('</object>\n');
}

// RandomImage
function intRandom(max) {
	return Math.floor(Math.random()*max);
}
function rndImg() {
	n=intRandom(rndImg.arguments.length);
//	document.write('<img src="'+rndImg.arguments[n]+'">');
	document.write(rndImg.arguments[n]);
}

// MM
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function MM_preloadImages() { //v3.0
	var d=document;
	if(d.images){if(!d.MM_p) d.MM_p=new Array();
	var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
	if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

