function Msg(tmpStr){
	alert(tmpStr);
}


var AnimationCnt=0;
var AnimationTimerID;
function AnimationStart(imgName)
{
	AnimationCnt++;
	if( AnimationCnt >= 5) AnimationCnt=4;

	if(imgName == "prof"){
		document.prof.src = ProfImg[AnimationCnt].src;
		AnimationTimerID  = setTimeout("AnimationStart('prof')",150);
	}else if(imgName == "disc"){
		document.disc.src = DiscImg[AnimationCnt].src;
		AnimationTimerID  = setTimeout("AnimationStart('disc')",150);
	}else if(imgName == "live"){
		document.live.src = LiveImg[AnimationCnt].src;
		AnimationTimerID  = setTimeout("AnimationStart('live')",150);
	}else if(imgName == "bbs"){
		document.bbs.src = BbsImg[AnimationCnt].src;
		AnimationTimerID  = setTimeout("AnimationStart('bbs')",150);
	}else if(imgName == "link"){
		document.link.src = LinkImg[AnimationCnt].src;
		AnimationTimerID  = setTimeout("AnimationStart('link')",150);
	}



}

function AnimationStop()
{
	if( AnimationTimerID ){
		clearTimeout(AnimationTimerID);
		AnimationCnt=0;
		AnimationV=1;
	}
}

function ShowImage(imgName)
{
	if( imgName == "prof"){
		document.prof.src=ProfImg[0].src;
	}else if( imgName == "disc"){
		document.disc.src=DiscImg[0].src;
	}else if( imgName == "live"){
		document.live.src=LiveImg[0].src;
	}else if( imgName == "bbs"){
		document.bbs.src=BbsImg[0].src;
	}else if( imgName == "link"){
		document.link.src=LinkImg[0].src;
	}
}

function SoundWindow(title,fileName) 
{
	sub=window.open("","vvvv","height=340,width=300");
	sub.document.write("<title>"+title+"</title>");
	sub.document.write("<link rel='stylesheet' href='main.css' type='text/css'>");
	sub.document.write("<center>");

	sub.document.write("<object id=sound1 classid='clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95' hieght=10 width=280 >");
	sub.document.write("<param name='controls' value='All' ><param name='console' value='sound1' ><param name='autostart' value='true' ><param name='src' value="+ fileName +">");
	
	sub.document.write("<embed src="+ fileName +" autostart='true' type='audio/mp3' repeat='false' width='280' heigh='10' loop='0'>");

	sub.document.write("</object>");

	sub.document.write("<form method='post' action=''>");

	sub.document.write( "Title:　" + title + "<br>" ); 
	sub.document.write( "<input type='button' value='close' onClick='window.close()' >");
	sub.document.write("</form>");

	sub.document.write( "<br>※ActiveXをオンにしてください" );
	sub.document.write("</center>");
}

