// init
AC_FL_RunContent = 0;

function putPhotoSwf( path ) {
	if( path == undefined )  path = '';
	AC_FL_RunContent(
			'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0',
			'width', '200',
			'height', '262',
			'src', path + 'album',
			'quality', 'high',
			'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
			'align', 'middle',
			'play', 'true',
			'loop', 'true',
			'scale', 'noscale',
			'wmode', 'window',
			'devicefont', 'false',
			'id', 'album',
			'bgcolor', '#FFFFFF',
			'name', 'album',
			'menu', 'true',
			'allowScriptAccess','sameDomain',
			'movie', path + 'album',
			'salign', ''
			); //end AC code
}


// diplay new Icon
// passage time (hour)
var defaultPass = 24 * 7;
 
// display content
var defaultContent = '&nbsp;';

function newIcons( content, pass ) {
	if( content == undefined )  content = defaultContent;
	if( pass == undefined )  pass = defaultPass;
	var currentDate = new Date(); 
	var spans = document.getElementsByTagName('span');
	for (i = 0; i < spans.length; i++) {
	    if(spans[i].getAttribute('class') == 'new' ||
	       spans[i].getAttribute('className') == 'new') {
	        time = spans[i].childNodes[0].nodeValue.split(":");
	        var entryDate = new Date(time[0], time[1]-1, time[2], time[3], time[4], time[5]); 
	        var now = (entryDate.getTime() - currentDate.getTime())/(60*60*1000); 
	        now = Math.ceil(now);
	        if(-now <= pass){
	            spans[i].innerHTML = content;
	            spans[i].style.display = 'inline';
	        }
	    }
	}
}


// access log
function acc( base ) {
	document.write("<img src='"+ base + "cgi/acc/acclog.cgi?");
	document.write("referrer="+document.referrer+"&");
	document.write("width="+screen.width+"&");
	document.write("height="+screen.height+"&");
	document.write("color="+screen.colorDepth+"'>");
}