function credits(){
	var width = 304;
	var height = 178;
	var iLeft = ( screen.width  - width ) / 2 ;
	var iTop  = ( screen.height - height ) / 2 ;

	var sOptions = "toolbar=no,status=no,resizable=no,dependent=yes" ;
	sOptions += ",width=" + width ;
	sOptions += ",height=" + height ;
	sOptions += ",left=" + iLeft ;
	sOptions += ",top=" + iTop ;
	
	var oWindow=window.open('','credits',sOptions) ;
	if (oWindow) {
		oWindow.document.open();
		oWindow.document.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">'+
		'<html xmlns="http://www.w3.org/1999/xhtml">'+
		'<head>'+
		'<title>Credits</title>'+
		'<style type="text/css">'+
		'	body{'+
		'		margin: 0px;'+
		'		padding: 0px;'+
		'		text-align: center;'+
		'	}'+
		'	a img{'+
		'		border: none;'+
		'	}'+
		'</style>'+
		'</head>'+
		'<body>'+
		'<a href="javascript:" onclick="var newwin=window.open(\'http://www.mijoheto.com\');if (newwin) newwin.focus();window.close();return false;"><img src="/images/credits.jpg"/></a>'+
		'</body>'+
		'</html>');
		oWindow.document.close();
		oWindow.focus();
	}
}

function EmbedFlash(movie,width,height,altimg){
	
	var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
	
	/*
	var width="100%";
	var height=(window.innerHeight?(window.innerHeight>=480?window.innerHeight:480):"100%");
	var path=(preview==1?'/administration':'');
	*/
	
	if(hasRightVersion) {  // if we've detected an acceptable version
	    var oeTags = '<object style="height: 100%" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" '
	    + 'width="'+width+'" height="'+height+'" '
	    + 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">'
	    + '<param name="movie" value="/flash/'+movie+'" /><param name="menu" value="false" /><param name="quality" value="high" /><param name="scale" value="noscale" /><param name="salign" value="t" /><param name="wmode" value="transparent" /><param name="bgcolor" value="#fff" />'
	    + '<embed id="theflash" src="/flash/'+movie+'" menu="false" quality="high" scale="noscale" salign="t" wmode="transparent" bgcolor="#fff" '
	    + 'width="'+width+'" height="'+height+'" name="basis" align="middle" '
	    + 'play="true" '
	    + 'loop="false" '
	    + 'quality="high" '
	    + 'allowScriptAccess="sameDomain" '
	    + 'type="application/x-shockwave-flash" '
	    + 'pluginspage="http://www.macromedia.com/go/getflashplayer">'
	    + '</embed>'
	    + '</object>';
	    return(oeTags);   // embed the flash movie
  } else {  // flash is too old or we can't detect the plugin
	    //var alternateContent = '<a href="http://www.macromedia.com/go/getflashplayer">Get flash</a>';
	    var alternateContent = '<img src="/images/'+altimg+'" width="'+width+'" height="'+height+'" alt="" class="floatingleft"/>';
	    return(alternateContent);  // insert non-flash content
  }
}

if(document.getElementById) {
	window.getObj = function(id) {
		return document.getElementById(id);
	}
} else {
	window.getObj = function(id) {
		return false;
	}
}
