function loadFlashPdfView(no) {
	var w = 365;
	var h = 550;
	document.write("<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\""+w+"\" height=\""+h+"\" codebase=\"http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab\">");
	document.write("<param name=\"movie\" value=\"https://acrobat.com/Clients/current/ADCMainEmbed.swf\" />");
	document.write("<param name=\"quality\" value=\"high\" />");
	document.write("<param name=\"wmode\" value=\"transparent\" />");
	document.write("<param name=\"bgcolor\" value=\"#202020\" />");
	document.write("<param name=\"allowScriptAccess\" value=\"sameDomain\" />");
	document.write("<param name=\"allowFullScreen\" value=\"true\" />");
	document.write("<param name=\"flashvars\" value=\""+no+"\" />");
	document.write("<embed src=\"https://acrobat.com/Clients/current/ADCMainEmbed.swf\" quality=\"high\" bgcolor=\"#202020\"");
	document.write("width=\""+w+"\" height=\""+h+"\" align=\"middle\"");
	document.write("play=\"true\"");
	document.write("loop=\"false\"");
	document.write("quality=\"high\"");
	document.write("wmode=\"transparent\"");
	document.write("allowScriptAccess=\"sameDomain\"");
	document.write("allowFullScreen=\"true\"");
	document.write("type=\"application/x-shockwave-flash\"");
	document.write("flashvars=\""+no+"\"");
	document.write("pluginspage=\"http://www.adobe.com/go/getflashplayer\">");
	document.write("</embed>");
	document.write("</object>");
}


function initRollOverImages() {
	var image_cache = new Object();
	$("img.roll").each(function(i) {
		var imgsrc = this.src;
		var dot = this.src.lastIndexOf('.');
		var imgsrc_on = this.src.substr(0, dot) + '_on' + this.src.substr(dot, 4);
		image_cache[this.src] = new Image();
		image_cache[this.src].src = imgsrc_on;
		$(this).hover(
		function() { this.src = imgsrc_on; },
		function() { this.src = imgsrc; });
	});
}

function formatTimeZone(targetDate) {
	if(targetDate.length<1) {
		return;
	}

	var date = targetDate.split(" ");
	var week = date[0].split(",");
	date = date[2]+" "+date[1]+", "+date[3]+" "+date[4];
	date = new Date(date);

	date.setHours(date.getHours()+9);
	var year = date.getFullYear();
	var month = date.getMonth()+1;
	var day = date.getDate();
	var hour = date.getHours();
	var min = date.getMinutes();
	var sec = date.getSeconds();
	if(month<10) {
		month = '0'+month;
	}
	if(day<10) {
		day = '0'+day;
	}
	if(min<10) {
		min = '0'+min;
	}
	if(sec<10) {
		sec = '0'+sec;
	}

	switch(week[0]) {
		case "Mon":
			week[0] = "月";
			break;

		case "Tue":
			week[0] = "火";
			break;

		case "Wed":
			week[0] = "水";
			break;

		case "Thu":
			week[0] = "木";
			break;

		case "Fri":
			week[0] = "金";
			break;

		case "Sat":
			week[0] = "土";
			break;

		case "Sun":
			week[0] = "日";
			break;

		default:
			week[0] = "日";
			break;
	}

	return year+"/"+month+"/"+day+"（"+week[0]+"） "+hour+":"+min+":"+sec;
}

$(document).ready(initRollOverImages);
