//System Force Co. Ltd
//mouse over script

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; 
  for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
 	var d=document; 
	if(d.images){ 
  		if(!d.MM_p) d.MM_p=new Array();
    	var i,j=d.MM_p.length,a=MM_preloadImages.arguments; 
		for(i=0; i<a.length; i++)
    		if (a[i].indexOf("#")!=0){ 
				d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];
			}
	}
}

function MM_findObj(n, d) { //v4.01
  	var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    	d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  	if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  	for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  	if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  	var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   	if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}


//for Slide Show
mySlide = new Array("images/slide1.gif", "images/slide2.gif", "images/slide3.gif", "images/slide4.gif", "images/slide5.gif")
imgSlide = 0
current = 0
imgCt = mySlide.length - 1

function previousSlide() {
	if (document.images && imgSlide > 0)
  	{imgSlide--
	document.slide.src=mySlide[imgSlide]
	}
}

function nextSlide() {
	if (document.images && imgSlide < imgCt)
  	{imgSlide++
	document.slide.src=mySlide[imgSlide]
	}
}


//Open another Window for enlarged Slide
function MM_openBrWindow(theURL,winName,features) { //v2.0
  	window.open(theURL,winName,features);
}

//js to communicate flash
function getFlashMovieObject(movieName)
{
  if (window.document[movieName]) 
  {
    return window.document[movieName];
  }
  if (navigator.appName.indexOf("Microsoft Internet")==-1)
  {
    if (document.embeds && document.embeds[movieName])
      return document.embeds[movieName]; 
  }
  else // if (navigator.appName.indexOf("Microsoft Internet")!=-1)
  {
    return document.getElementById(movieName);
  }
}

function PlayFlashMovie()
{
	var flashMovie=getFlashMovieObject("flashfile");
	flashMovie.Play();
}
 
function PlayFlashMovie3()
{
	var flashMovie=getFlashMovieObject("flashfile");
	flashMovie.GotoFrame(3);
}





//next frame
  function NextFrameFlashMovie()
  {
	var flashMovie=getFlashMovieObject("myFlashMovie");
	// 4 is the index of the property for _currentFrame
	var currentFrame=flashMovie.TGetProperty("/", 4);
	var nextFrame=parseInt(currentFrame);
	if (nextFrame>=10)
		nextFrame=0;
	flashMovie.GotoFrame(nextFrame);		
  }
  
//for movie 2
function movie2() {
  flashfile.GotoFrame(2);
}  

//for movie 3
function movie3() {
  flashfile.GotoFrame(3);
}  
