
//ポップアップウィンドウ
function OpenWindow(Url,Name,Width,Height) {
	var features = 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=' + Width + ',height=' + Height;
	Name = window.open(Url,Name,features);
	Name.focus();
}

//Flash
var swfVersion="8";
var swfDirectory="./"

var VBflash="ShockwaveFlash.ShockwaveFlash."+swfVersion;
var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
if (plugin){
	plugin = parseInt(plugin.description.substring(plugin.description.indexOf(".")-1)) >= swfVersion;
}else{
	document.write('<script language=VBScript>\n');
	document.write('on error resume next\n');
	document.write('plugin=(IsObject(CreateObject(VBflash)))\n');
	document.write('</script\>');
}

function showSwf(){
	if (plugin){
		document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+swfWidth+'" height="'+swfHeight+'">');
		document.write('<param name="movie" value="'+ swf +'" /><param name="loop" value="true" /><param name="quality" value="high" /><param name="base" value="'+swfDirectory+'">');
		document.write('<embed src="'+ swf +'" base="'+swfDirectory+'" loop="true" quality="high" swLiveConnect="false" width="'+swfWidth+'" height="'+swfHeight+'" type="application/x-shockwave-flash"></embed>');
		document.write('</object>');
	}else{
		document.write('<a href="/works/web/index.html"><img src="/common/img/noscript1.gif" width="193" height="220" alt="Webインテグレーション" /></a><a href="/works/mobile/index.html"><img src="/common/img/noscript2.gif" width="179" height="220" alt="モバイルインテグレーション" /></a><a href="/works/marketing/index.html"><img src="/common/img/noscript3.gif" width="178" height="220" alt="マーケティング&amp;プロモーション" /></a><a href="/works/strategy/index.html"><img src="/common/img/noscript4.gif" width="194" height="220" alt="戦略立案&amp;コンサルティング" /></a>');
	}
}


//ロールオーバー
function ROfunction(){
	var imgNum=document.getElementsByTagName("img");
	var inputNum=document.getElementsByTagName("input");
	overNum=new Array;
	for(i=0;i<imgNum.length;i++){overNum[i]=imgNum[i];}
	for(i=0;i<inputNum.length;i++){overNum[i+imgNum.length]=inputNum[i];}
	for(i=0;i<overNum.length;i++){
		if(overNum[i].className.indexOf("Rover")!=-1){
			overNum[i].overimg=new Image();
			if(overNum[i].className.indexOf(":")!=-1){
				Replace=overNum[i].className.split(":");
				Replace=Replace[1].split(" ");
				overNum[i].overimg.src=Replace[0];
			}else{
				Replace = overNum[i].src.length;
				overNum[i].overimg.src=overNum[i].src.substring(0,Replace-4)+"_o"+overNum[i].src.substring(Replace-4,Replace);
			}
			overNum[i].setAttribute("out",overNum[i].src);
			overNum[i].onmouseover=new Function('this.src=this.overimg.src;');
			overNum[i].onmouseout=new Function('this.src=this.getAttribute("out");');
		}
	}
}
window.onload=ROfunction;


//開示等の手続きについて
function check_DLfile() {
	var val = "";
	if (document.kaiji_seikyu.doui.checked) {
		val += "http://www.iact.co.jp/privacy/kaiji_seikyu.pdf";
		new_window = window.open(val,"iact_kaiji_seikyu");
	}
}