var mode=0;

function MM_findObj(n, d) { //v3.0
  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); return x;
}

function MM_showHideLayers() { //v3.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}

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_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_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 changewidth(whichlayer, lwidth){
	if(document.all){
		eval("document.all."+whichlayer).style.left = lwidth;
	}
	else if(document.layers){
		eval("document.layers."+whichlayer).pageX = lwidth;
	}
	else if (document.getElementById){
		elm = document.getElementById(whichlayer);
		elm.style.left = lwidth;
	}
}

function changeheight(whichlayer, lheight){
	if(document.all){
		eval("document.all."+whichlayer).style.top = lheight;			
	}
	else if(document.layers){
		eval("document.layers."+whichlayer).pageY = lheight;
	}
	else if (document.getElementById){
		elm = document.getElementById(whichlayer);
		elm.style.top = lheight;
	}
}

function isshow(){
	if(mode){
		return true;
	}else{
		return false;
	}
}
function showhideNs6(whichlayer,show){
	elm = document.getElementById(whichlayer);
	if(show){	
		elm.style.visibility = "visible";
	}else{
		elm.style.visibility = "hidden";
	}
}
function MM_showHideLayers_N6(){
	var i,p,v,obj,args=MM_showHideLayers_N6.arguments;
	var showit;
	if((!document.all && document.getElementById)){
		for (i=0; i<(args.length-2); i+=3){
			v=args[i+2];
			if(v=='show')	showit=1
			else	showit=0;
			showhideNs6(args[i],showit)
		}
	}else{
		for (i=0; i<(args.length-2); i+=3) 
			if ((obj=MM_findObj(args[i]))!=null) { 
				v=args[i+2];
				if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
				obj.visibility=v; 
			}
	}
}
/*
document.write('<div id="Layer1" style="position:absolute; left:146px; top:0px; width:117px; height:28px; z-index:1; overflow: visible; visibility: hidden">'); 
document.write('<table width="117" border="0" cellspacing="0" cellpadding="0">');
document.write('<tr><td><a href="member/memberreg/memberreg.html" onClick="return true" onMouseOut="MM_showHideLayers(\'Layer1\',\'\',\'hide\'); mode=0" onMouseOver="MM_showHideLayers(\'Layer1\',\'\',\'show\'); mode=1; MM_swapImage(\'img_products03\',\'\',\'_image/products03.gif\',1); "><img src="_image/member01.gif" width="117" border="0" name="img_member01" height="14"></a></td></tr>');
document.write('<tr><td><a href="member/download/download.html"  onClick="return true" onMouseOut="MM_swapImgRestore(); MM_showHideLayers(\'Layer1\',\'\',\'hide\'); mode=0" onMouseOver="MM_showHideLayers(\'Layer1\',\'\',\'show\'); mode=1; MM_swapImage(\'img_member02\',\'\',\'_image/member02.gif\',1)"><img src="_image/member02.gif" width="117" border="0" name="img_member02" height="14"></a></td></tr>');
document.write('</table>');
document.write('</div>');

document.write('<div id="Layer2" style="position:absolute; left:299px; top:0px; width:117px; height:42px; z-index:2; overflow: visible; visibility: hidden">');
document.write('<table width="117" border="0" cellspacing="0" cellpadding="0">');
document.write('<tr><td><a href="product/productinfo/productinfo.html" onClick="return true" onMouseOut="MM_showHideLayers(\'Layer2\',\'\',\'hide\'); mode=0" onMouseOver="MM_showHideLayers(\'Layer2\',\'\',\'show\'); mode=1; MM_swapImage(\'img_products01\',\'\',\'_image/products01.gif\',1)"><img src="_image/products01.gif" width="117" border="0" name="img_products01" height="14"></a></td></tr>');
document.write('<tr><td><a href="product/comicmix/comicmix.html"  onClick="return true" onMouseOut="MM_swapImgRestore(); MM_showHideLayers(\'Layer2\',\'\',\'hide\'); mode=0" onMouseOver="MM_showHideLayers(\'Layer2\',\'\',\'show\'); mode=1; MM_swapImage(\'img_products02\',\'\',\'_image/products02.gif\',1)"><img src="_image/products02.gif" width="117" border="0" name="img_products02" height="14"></a></td></tr>');
document.write('<tr><td><a href="product/review/review.html"  onClick="return true" onMouseOut="MM_swapImgRestore(); MM_showHideLayers(\'Layer2\',\'\',\'hide\'); mode=0" onMouseOver="MM_showHideLayers(\'Layer2\',\'\',\'show\'); mode=1; MM_swapImage(\'img_products03\',\'\',\'_image/products03.gif\',1)"><img src="_image/products03.gif" width="117" border="0" name="img_products03" height="14"></a></td></tr>');
document.write('</table>');
document.write('</div>');

document.write('<div id="Layer3" style="position:absolute; left:450px; top:0px; width:117px; height:14px; z-index:2; overflow: visible; visibility: hidden">');
document.write('<table width="117" border="0" cellspacing="0" cellpadding="0">');
document.write('<tr><td><a href="gamezone/teddy_game_2/game_2a/game_2a.html" onClick="return true" onMouseOut="MM_showHideLayers(\'Layer3\',\'\',\'hide\'); mode=0" onMouseOver="MM_showHideLayers(\'Layer3\',\'\',\'show\'); mode=1; MM_swapImage(\'img_gamezone01\',\'\',\'_image/gamezone01.gif\',1)"><img src="_image/gamezone01.gif" width="117" border="0" name="img_gamezone01" height="14"></a></td></tr>');
document.write('</table>');
document.write('</div>');

document.write('<div id="Layer4" style="position:absolute; left:602px; top:0px; width:117px; height:14px; z-index:2; overflow: visible; visibility: hidden">');
document.write('<table width="117" border="0" cellspacing="0" cellpadding="0">');
document.write('<tr><td><a href="contactzone/mesgboard/001.html" onClick="return true" onMouseOut="MM_showHideLayers(\'Layer4\',\'\',\'hide\'); mode=0" onMouseOver="MM_showHideLayers(\'Layer4\',\'\',\'show\'); mode=1; MM_swapImage(\'img_contact01\',\'\',\'_image/contact01.gif\',1)"><img src="_image/contact01.gif" width="117" border="0" name="img_contact01" height="14"></a></td></tr>');
document.write('<tr><td><a href="contactzone/contactus/contactus.html" onClick="return true" onMouseOut="MM_showHideLayers(\'Layer4\',\'\',\'hide\'); mode=0" onMouseOver="MM_showHideLayers(\'Layer4\',\'\',\'show\'); mode=1; MM_swapImage(\'img_contact03\',\'\',\'_image/contact03.gif\',1)"><img src="_image/contact03.gif" width="117" border="0" name="img_contact03" height="14"></a></td></tr>');
document.write('<tr><td><a href="contactzone/contactus/contactcow.html" onClick="return true" onMouseOut="MM_showHideLayers(\'Layer4\',\'\',\'hide\'); mode=0" onMouseOver="MM_showHideLayers(\'Layer4\',\'\',\'show\'); mode=1; MM_swapImage(\'img_contact04\',\'\',\'_image/contact04.gif\',1)"><img src="_image/contact04.gif" width="117" border="0" name="img_contact04" height="14"></a></td></tr>');
document.write('</table>');
document.write('</div>');

document.write('<div id="Layer5" style="position:absolute; left:754px; top:0px; width:117px; height:14px; z-index:2; overflow: visible; visibility: hidden"> ');
document.write('<table width="117" border="0" cellspacing="0" cellpadding="0">');
document.write('<tr><td><a href="article/editorial/editorial.html" onClick="return true" onMouseOut="MM_showHideLayers(\'Layer5\',\'\',\'hide\'); mode=0" onMouseOver="MM_showHideLayers(\'Layer5\',\'\',\'show\'); mode=1; MM_swapImage(\'img_news01\',\'\',\'_image/news01.gif\',1)"><img src="_image/news01.gif" width="117" border="0" name="img_news01" height="14"></a></td></tr>');
document.write('</table>');
document.write('</div>');*/
