// JavaScript Document

function indexImage(num){
	var imgAry = [
		['index','swf/display/index.swf', '500','Home'],
		['hotnews','swf/display/hotnews.swf', '60','HotNews'],
		['si','swf/display/si.swf', '60','ICT Service'],
		['dc','swf/display/dc.swf', '60','Digital Contents'],
		['ac','swf/display/aboutcm.swf', '60','AboutCM'],
		['jobs','swf/display/jobs.swf', '60','Jobs'],
		['sitepolicy','swf/display/sitepolicy.swf', '60','SitePolicy'],
		['contactus','swf/display/contactus.swf', '60','ContactUs']
	]
	var MM_contentVersion = 6;
	var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
	if ( plugin ) {
		var words = navigator.plugins["Shockwave Flash"].description.split(" ");
		for (var i = 0; i < words.length; ++i){
			if (isNaN(parseInt(words[i])))
			continue;
			var MM_PluginVersion = words[i]; 
		}
		var MM_FlashCanPlay = MM_PluginVersion >= MM_contentVersion;
	}
	else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 && (navigator.appVersion.indexOf("Win") != -1)) {
		document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n'); //FS hide this from IE4.5 Mac by splitting the tag
		document.write('on error resume next \n');
		document.write('MM_FlashCanPlay = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & MM_contentVersion)))\n');
		document.write('</SCR' + 'IPT\> \n');
	}
	if ( MM_FlashCanPlay ) {
		document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" ID="'+ imgAry[num][0] +'" WIDTH="750" HEIGHT="'+ imgAry[num][2] +'" ALIGN=""><PARAM NAME=movie VALUE="'+ imgAry[num][1] +'"><PARAM NAME=menu VALUE=false><PARAM NAME=quality VALUE=autohigh><PARAM NAME=bgcolor VALUE=#FFFFFF><EMBED src="'+ imgAry[num][1] +'" menu=false quality=autohigh bgcolor=#FFFFFF swLiveConnect=FALSE WIDTH="750" HEIGHT="'+ imgAry[num][2] +'" NAME="'+ imgAry[num][0] +'" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED></OBJECT>');
	}else{
		document.write('<a href="http://get.adobe.com/jp/flashplayer/" target="_blank">このサイトを閲覧するには最新の&ldquo;Flash Player&rdquo;プラグインが必要です</a><h2>'+ imgAry[num][3] +'</h2>');
	}
}
