var link1

function new_window_pic(url) { 
	if(link1 != null)
	{
	link1.close()
	link1=null
	}
link1 = window.open(url,"link1","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=yes,resizable=1,width=500,height=500,left=0,top=0");  
}  

function new_window_pic_wh(url,w,h) { 
	if(link1 != null)
	{
	link1.close()
	link1=null
	}
link1 = window.open(url,"link1","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=yes,resizable=1,width="+w+",height="+h+",left=0,top=0");  
}  



function new_window(url) { 
link2 = window.open(url,"link2","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=yes,resizable=0,width=550,height=500,left=80,top=30");  
} 

function new_window_member(url) { 
link5 = window.open(url,"link5","'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=yes,resizable=1,width=750,height=500,left=10,top=10"); 
} 
function new_window_small(url) { 
link3 = window.open(url,"link3","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=yes,resizable=0,width=250,height=150,left=180,top=130");  
}  
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

///////////////////***********************
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];}
}

/*
////////////////////////////
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 bookmarksite(title, url) {
	if (document.all)window.external.AddFavorite(url, title);
	else if (window.sidebar)window.sidebar.addPanel(title, url, "")
	}
*/
//////////////////////////



		
		//<script language='javascript'>
		var menushow;
		var xhowheight;
		var yhowheight;
		//var fix_yhowheight;
		
		
		function showmenu(menu){ 
		if(menushow) 
			
		menushow.style.visibility='hidden'
		menushow=menu 
		menu.style.visibility='visible' 
		//menu.filters.alpha.opacity = 90; 		374-  document.body.scrollTop
		
			//if(document.body.scrollTop != 0){
				//document.body.scrollTop = 0;
				//for(ia=1;document.body.scrollTop = 0;ia++){
					//document.body.scrollTop = document.body.scrollTop-ia;
					//setTimeout();
					//document.body.scrollTop = document.body.scrollTop-ia
				//}
			//}
			
			//if(fix_yhowheight < event.clientY) { 
				//yhowheight = fix_yhowheight;
			//}
		
			if(!yhowheight){
			
			//if(document.body.scrollTop != 0){
					yhowheight=event.clientY+document.body.scrollTop ;		
					//if(document.body.scrollTop != 0){
					//yhowheight=event.clientY;
					//menu.style.top=yhowheight+document.body.scrollTop;
					//menu.style.top=yhowheight;
					//}
					//fix_yhowheight=yhowheight;
					menu.style.top=yhowheight;
					//}
					
				}else{					
					//if(document.body.scrollTop != 0){
					//yhowheight=event.clientY;
					//menu.style.top=yhowheight+document.body.scrollTop;
					//}//lese{
					menu.style.top=yhowheight;
					//}
				}
		//////////////////
		
		//docHeight = document.body.scrollHeightwindow.screenTop
		//tttt=yhowheight+document.body.scrollTop;
		//alert("scrollTop: "    + document.body.scrollTop+"    mousefix:" +yhowheight + "      mousenow:"  + event.clientY + "     total:" +tttt); 		
		
		/////////////////////
				
		
			if(screen.width <= 800){
					if(event.clientX < 156) {menu.style.left=1;	} 
					else if(event.clientX > 156 && event.clientX < 312) {	menu.style.left=158;} 
					else if(event.clientX > 312 && event.clientX < 468) {	menu.style.left=313;}
					else if(event.clientX > 468 && event.clientX < 624) {	menu.style.left=468; }
					else if(event.clientX > 624) {	menu.style.left=623}
			}else{
					if(event.clientX < 273) {menu.style.left=113;	} 
					else if(event.clientX > 273 && event.clientX < 429) {	menu.style.left=270;} 
					else if(event.clientX > 429 && event.clientX < 585) {	menu.style.left=426;}
					else if(event.clientX > 585 && event.clientX < 693) {	menu.style.left=581;}
					else if(event.clientX > 693) {	menu.style.left=736}
			}
		
				
		} 
		
		function hidemenu(menu){ 
		menu.style.visibility='hidden'
		} 
		
////////////////////////
var currentMenu = 0;
function ShowSubMenu(id) {
	//alert("SubMenu" +id);
  if (document.all["SubMenu" + id].style.display == "")
  {
     document.all["SubMenu" + id].style.display = "none";
     currentMenu = 0;
  }
  else
  {
     if (currentMenu != 0) {document.all["SubMenu" + currentMenu].style.display = "none";} 

     document.all["SubMenu" + id].style.display = "";
			 if(screen.width > 800){
				document.all["SubMenu" + id].style.left = 290;
			 }else{
				document.all["SubMenu" + id].style.left = 175;
			}
     currentMenu = id;

  }
}
/////////

////////////////////////
var currentMenuC = 0;
function ShowSubMenuC(id) {
	//alert("SubMenu" +id);
  if (document.all["SubMenuC" + id].style.display == "")
  {
     document.all["SubMenuC" + id].style.display = "none";
//alert("scrollTop:  "+ event.clientY );
     currentMenuC = 0;
  }
  else
  {
     if (currentMenuC != 0) {document.all["SubMenuC" + currentMenuC].style.display = "none";}  
     document.all["SubMenuC" + id].style.display = "";
			 if(screen.width > 800){
				document.all["SubMenuC" + id].style.left = 290;
			 }else{
				document.all["SubMenuC" + id].style.left = 175;
			}
     currentMenuC = id;
  }
}

/////LOD/////////////
var currentMenu = 0;
function ShowSubMenuMX(id) {
	//alert("SubMenu" +id);
  if (document.all["SubMenu" + id].style.display == "")
  {
     document.all["SubMenu" + id].style.display = "none";
     currentMenu = 0;
  }
  else
  {
     if (currentMenu != 0) {document.all["SubMenu" + currentMenu].style.display = "none";}  
     document.all["SubMenu" + id].style.display = "";
 	 document.all["SubMenu" + id].style.top = event.clientY+document.body.scrollTop-12;
			 if(screen.width > 800){
				document.all["SubMenu" + id].style.left = 290;
			 }else{
				document.all["SubMenu" + id].style.left = 175;
			}

     currentMenu = id;

  }
}

////////////////////////
var currentMenuC = 0;
function ShowSubMenuCMX(id) {
	//alert("SubMenu" +id);
  if (document.all["SubMenuC" + id].style.display == "")
  {
     document.all["SubMenuC" + id].style.display = "none";
//alert("scrollTop:  "+ event.clientY );
     currentMenuC = 0;
  }
  else
  {
     if (currentMenuC != 0) {document.all["SubMenuC" + currentMenuC].style.display = "none";}  
     document.all["SubMenuC" + id].style.display = "";
     //document.all["SubMenuC" + id].style.top = event.clientY+document.body.scrollTop-12;
     currentMenuC = id;
  }
}

function ppname(pname,pH,pW) {
	//alert("ｈ：" + pH + "ｗ：" +pW);
	var ppName = pname
	var ppH=pH
	var ppW=pW
	document.ppallname.height = ppH;
	document.ppallname.width = ppW;
	document.ppallname.src = ppName;
	document.getElementById('p1p').style.width = ppW;
	document.getElementById('p2p').style.width = ppW;
	document.getElementById('p3p').style.width = ppW;

	//alert('ss=' + document.getElementById('p1p').width);
}


function ppname2(pname2) {
	var ppName2 = pname2
	document.ppallname2.src = ppName2
}
function ppname3(pname3) {
	var ppName3 = pname3
	document.ppallname3.src = ppName3
}


/////////
function Clockme() {

window.setTimeout( "Clockme()", 100 );

today = new Date();

self.status = today.toString();

}
Clockme()

///////////////////////////////

defaultStatus = 'Welcome!';

<!--
function ChIMGChkImageSize(ImgD){

	document.getElementById(ImgD).style.width="130px";
	document.getElementById(ImgD).style.height="75px";
	
}
function closeChIMGChkImageSize(ImgD){

	document.getElementById(ImgD).style.width="80px";
	document.getElementById(ImgD).style.height="25px";
	
}

//-->


