function Ssize_Login(){
	var w;
	var h;
	
	w=screen.width;
	h=screen.height;
	if (w>1024){
		window.moveTo(140,100);
		window.resizeTo(970,700);
	}
	else if (w>1000){
		window.moveTo(65,20);
		window.resizeTo(900,750);
	}
	else if (w<700){
		window.moveTo(0,0);
		window.resizeTo(700,650);
	}
}


function Move_Top(){
	var w;
	var h;
	w=screen.width;
	h=screen.height;
	
	window.moveTo(0,0);
	window.resizeTo(w,h);

/*	
	w=screen.width;
	h=screen.height;
	if (w>1024){
		//window.moveTo(140,100);
		window.resizeTo(800,100);
	}
	else if (w>1000){
		//window.moveTo(112,20);
		window.resizeTo(800,100);
	}
	else if (w>700){
		//window.moveTo(0,0);
		window.resizeTo(700,100);
	}
*/	
}


function imgLink(img){
//	img = "Ai" + no + ".jpg";
//	image1.src = "Image/Pc/cast/" + img;
	image1.src = img;
}


function onMsOver(no){
	switch(no){
		case 1:
			img1.src = "Image/Com/top2.gif";
			break;
		case 2:
			img2.src = "Image/Com/system2.gif";
			break;
		case 3:
			img3.src = "Image/Com/profile2.gif";
			break;
		case 4:
			img4.src = "Image/Com/option2.gif";
			break;
		case 5:
			img5.src = "Image/Com/attend2.gif";
			break;
		case 6:
			img6.src = "Image/Com/mail2.gif";
			break;
		case 7:
			img7.src = "Image/Com/recruit2.gif";
			break;
		case 8:
			img8.src = "Image/Com/link2.gif";
			break;
	}
}

function onMsOut(no){
	switch(no){
		case 1:
			img1.src = "Image/Com/top.gif";
			break;
		case 2:
			img2.src = "Image/Com/system.gif";
			break;
		case 3:
			img3.src = "Image/Com/profile.gif";
			break;
		case 4:
			img4.src = "Image/Com/option.gif";
			break;
		case 5:
			img5.src = "Image/Com/attend.gif";
			break;
		case 6:
			img6.src = "Image/Com/mail.gif";
			break;
		case 7:
			img7.src = "Image/Com/recruit.gif";
			break;
		case 8:
			img8.src = "Image/Com/link.gif";
			break;
	}
}


function fFlashImg(){
	filters[0].opacity = Math.abs(Math.sin(n+=0.1)) * 100;
}


function confirmat(){
		return confirm("M܂H");

}


// Flash ***********************************************************
function FlashpcOpen0()
{
    document.write('<object style="WIDTH: 700px; HEIGHT: 200px" type="application/x-shockwave-flash"  width="700" height="200" data="Flash/opening.swf" VIEWASTEXT>\n');
	//document.write('<object classid="clsid:D27CDB6E..." ...>\n');

    document.write('<param name="Src" value="Flash/opening.swf">\n');
    document.write('<param name="loop" value="on">\n');
    document.write('<param name="quality" value="high">\n');
	document.write('</object>\n');
}


function FlashpcOpen()
{
    document.write('<object style="WIDTH: 512px; HEIGHT: 430px" type="application/x-shockwave-flash"  width="512" height="430" data="Flash/Race/G-Hyuga.swf" VIEWASTEXT>\n');
	//document.write('<object classid="clsid:D27CDB6E..." ...>\n');

    document.write('<param name="Src" value="Flash/Race/G-Hyuga.swf">\n');
    document.write('<param name="loop" value="on">\n');
    document.write('<param name="quality" value="high">\n');
	document.write('</object>\n');
    
/*	<script src="MTenpoJsp.js" type="text/javascript">

				<OBJECT style="WIDTH: 240px; HEIGHT: 300px" type="application/x-shockwave-flash" height="300"
					width="240" data="MoFlash/MoSystem/MoSystemAr.swf" VIEWASTEXT>
					<param name="Src" value="face.swf">
					<param name="loop" value="on">
					<param name="quality" value="high">
				</OBJECT>
*/
}

function FlashpcOpen1()
{
    document.write('<object style="WIDTH: 380px; HEIGHT: 320px" type="application/x-shockwave-flash" width="380" height="320" data="Flash/Touring.swf" VIEWASTEXT>\n');
	//document.write('<object classid="clsid:D27CDB6E..." ...>\n');

    document.write('<param name="Src" value="Flash/Touring.swf">\n');
    document.write('<param name="loop" value="on">\n');
    document.write('<param name="quality" value="high">\n');
	document.write('</object>\n');
	
}

function FlashpcOpen2()
{
    document.write('<object style="WIDTH: 380px; HEIGHT: 320px" type="application/x-shockwave-flash" width="380" height="320" data="Flash2/album2.swf" VIEWASTEXT>\n');
	//document.write('<object classid="clsid:D27CDB6E..." ...>\n');

    document.write('<param name="Src" value="Flash2/album2.swf">\n');
    document.write('<param name="loop" value="on">\n');
    document.write('<param name="quality" value="high">\n');
	document.write('</object>\n');
}

function FlashpcOpen0119()
{
    document.write('<object style="WIDTH: 380px; HEIGHT: 320px" type="application/x-shockwave-flash" width="380" height="320" data="Flash0119/0119.swf" VIEWASTEXT>\n');
	//document.write('<object classid="clsid:D27CDB6E..." ...>\n');

    document.write('<param name="Src" value="Flash0119/0119.swf">\n');
    document.write('<param name="loop" value="on">\n');
    document.write('<param name="quality" value="high">\n');
	document.write('</object>\n');
}

function FlashpcOpen0216()
{
    document.write('<object style="WIDTH: 380px; HEIGHT: 320px" type="application/x-shockwave-flash" width="380" height="320" data="Video0216/0216.swf" VIEWASTEXT>\n');
	//document.write('<object classid="clsid:D27CDB6E..." ...>\n');

    document.write('<param name="Src" value="Video0216/0216.swf">\n');
    document.write('<param name="loop" value="on">\n');
    document.write('<param name="quality" value="high">\n');
	document.write('</object>\n');
}

function FlashpcOpen3()
{
    document.write('<object style="WIDTH: 380px; HEIGHT: 320px" type="application/x-shockwave-flash" width="380" height="320" data="Flash/Pc/pcAntAlbum.swf" VIEWASTEXT>\n');
	//document.write('<object classid="clsid:D27CDB6E..." ...>\n');

    document.write('<param name="Src" value="Flash/Pc/pcAntAlbum.swf">\n');
    document.write('<param name="loop" value="on">\n');
    document.write('<param name="quality" value="high">\n');
	document.write('</object>\n');
}
//******************************************************************/
function chDisp()
{
	table1.style.display = "none";
	div0.style.display = "block";
}
var counter = 0;
function progressBar()
{
	counter += 20;
	span1.style.pixelWidth = counter;
	span1.innerText = (counter/200)*100 + "%";
}

/*******************************************************************/
// Movie ***********************************************************
	
function media_stop(sender, args) {

    sender.findName("media").stop();
}

function media_pause(sender, args) {
    
    sender.findName("media").pause();
}

function media_begin(sender, args) {
    
    sender.findName("media").play();
}


function canvas_loaded(sender, args)
{
  
    var plugin = sender.getHost();
    plugin.content.onfullScreenChange = onFullScreenChanged;
    

}

function toggle_fullScreen(sender, args)
{
    var silverlightPlugin = sender.getHost();
    silverlightPlugin.content.fullScreen = !silverlightPlugin.content.fullScreen;  
   
}

function onFullScreenChanged(sender, args)
{

  
    var silverlightPlugin = sender.getHost();
    var buttonPanel = sender.findName("buttonPanel");
    
    if (silverlightPlugin.content.fullScreen == true)
    {
      buttonPanel.opacity = 0;
    }
    else 
    {
      buttonPanel.opacity = 1;
    }
    
    var mediaPlayer = sender.findName("media");
    mediaPlayer.width = silverlightPlugin.content.actualWidth;
    mediaPlayer.height = silverlightPlugin.content.actualHeight;
     
    //mediaPlayer.width = "800";silverlightPlugin.content.actualWidth;
    //mediaPlayer.height = "320";silverlightPlugin.content.actualHeight;

}

//function MediaFailedHandler(sender, args)
//{
//    var errorMsg = "\n動画の接続に失敗しました。\n";
//    errorMsg += "誠に恐れ入りますが、ブラウザの再読み込みボタンを押して、\n再度接続してください。" ;
//    alert(errorMsg);  
//}

//function videoroop(sender, args)
//{
//  sender.stop();
//  sender.play();
//}



// End **********************************************************************************************


