/* JavaScript Files Lib. */

function MM_swapImgRestore() { 
  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() { 
  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) { 
  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() { 
  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];}
}

function WindowOpen(link,winName,xx,yy){
	feature = "width=" + xx + ",height=" + yy + ",scrollbars=yes";
	var win1 = window.open(link,winName,feature);
	win1.focus();
}

function WindowOpen_scrollno(link,winName,xx,yy){
	feature = "width=" + xx + ",height=" + yy + ",scrollbars=yes";
	var win1 = window.open(link,winName,feature);
	win1.focus();
}
/*****************indexページのseminar 切り替え　******************/
function none(){
	var i=0;
	var cha1=document.getElementById("indexchart1");
	document.getElementById("indexchart2").style.display="none";
	while(i<=4){
	cha1.getElementsByTagName("table")[i].style.display="block";
	i++;}
	
}

function collindex(){
		document.getElementById("seminartab1").src="image/seminarTabNEW01_r1_c1.gif";
		document.getElementById("seminartab2").src="image/seminarTabNEW01_r1_c2.gif";
		document.getElementById("indexchart1").style.display="block";
		document.getElementById("indexchart3").style.display="block";
		document.getElementById("indexchart2").style.display="none";
		document.getElementById("inputHTML").style.display="none";
}

function collindex2(){
if(browser != "Internet Explorer"){location.replace("seminar/index.html#date")}
else {	document.getElementById("seminartab2").src="image/seminarTabNEW02_r1_c2.gif";
		document.getElementById("seminartab1").src="image/seminarTabNEW02_r1_c1.gif";
		document.getElementById("indexchart2").style.display="block";
		document.getElementById("indexchart1").style.display="none";
		document.getElementById("indexchart3").style.display="none";}
}

     
/***************** index 場所別　******************/
function showdata(tag){
var obj=document.getElementById(tag).outerHTML;
	if(browser != "Internet Explorer"){location.replace("seminar/index.html#date")}
	else {document.getElementById("inputHTML").style.display="block";
	document.getElementById("inputHTML").innerHTML= obj;
	document.getElementById("inputHTML").focus();}
}

function nonedata(tag){
var obj=document.getElementById(tag);
document.obj.style.display="none";
}

/********************* ブラウザー判別  *********************/
var detect = navigator.userAgent.toLowerCase();
var OS,browser,version,total,thestring;

if (checkIt('konqueror'))
{
	browser = "Konqueror";
	OS = "Linux";
}
else if (checkIt('safari')) browser = "Safari"
else if (checkIt('omniweb')) browser = "OmniWeb"
else if (checkIt('opera')) browser = "Opera"
else if (checkIt('webtv')) browser = "WebTV";
else if (checkIt('icab')) browser = "iCab"
else if (checkIt('msie')) browser = "Internet Explorer"
else if (!checkIt('compatible'))
{
	browser = "Netscape Navigator"
	version = detect.charAt(8);
}
else browser = "An unknown browser";

if (!version) version = detect.charAt(place + thestring.length);

if (!OS)
{
	if (checkIt('linux')) OS = "Linux";
	else if (checkIt('x11')) OS = "Unix";
	else if (checkIt('mac')) OS = "Mac"
	else if (checkIt('win')) OS = "Windows"
	else OS = "an unknown operating system";
}

function checkIt(string)
{
	place = detect.indexOf(string) + 1;
	thestring = string;
	return place;
}




