if (navigator.appVersion.indexOf("2.") != -1){
        check = false;
        }
if ((navigator.appVersion.indexOf("3.") != -1) && (navigator.appName.indexOf("Explorer") != -1)){
        check = false;
        }
else {
        check = true;
        }
if (check == true){
        menu1 = new Image();
        menu1.src = "http://image.ecplaza.net/global/tonta/images/Head/topmenu1.gif";
        menu1on = new Image();
        menu1on.src = "http://image.ecplaza.net/global/tonta/images/Head/topmenu1on.gif";

        menu2 = new Image();
        menu2.src = "http://image.ecplaza.net/global/tonta/images/Head/topmenu2.gif";
        menu2on = new Image();
        menu2on.src = "http://image.ecplaza.net/global/tonta/images/Head/topmenu2on.gif";

        menu3 = new Image();
        menu3.src = "http://image.ecplaza.net/global/tonta/images/Head/topmenu3.gif";
        menu3on = new Image();
        menu3on.src = "http://image.ecplaza.net/global/tonta/images/Head/topmenu3on.gif";

        menu4 = new Image();
        menu4.src = "http://image.ecplaza.net/global/tonta/images/Head/topmenu4.gif";
        menu4on = new Image();
        menu4on.src = "http://image.ecplaza.net/global/tonta/images/Head/topmenu4on.gif";
	
	       menu5 = new Image();
        menu5.src = "http://image.ecplaza.net/global/tonta/images/Head/topmenu5.gif";
        menu5on = new Image();
        menu5on.src = "http://image.ecplaza.net/global/tonta/images/Head/topmenu5on.gif";

}

imageStay = ""

function imageon(name){
        if (imageStay != name){
                document[name].src = eval(name + "on.src");
        }
}
function imageoff(name){
        if (imageStay != name){
                document[name].src = eval(name + ".src");
        }
}

function on(name){
        if (check == true){
        imageon(name);
        }
}
function off(name){
        if (check == true){
        imageoff(name);
        }
}

function stay(name){
        if (check == true){
        document[name].src = eval(name + "stay.src");
        if (imageStay != name){
                if (imageStay != ""){
                        document[imageStay].src = eval(imageStay + ".src");
                }
        }
        imageStay = name
        }
}


//Popup Window 2004.09.08 b2future
function open_win(path,width,height,name){
	var win_width = width; 
	var win_height = height;
	var win_left = (screen.width-win_width)/2;
	var win_top = (screen.height-win_height)/2;	
	var win_url = path; 
	var win_name = name;
	window.open(win_url,win_name,"toolbar=0,scrollbars=0,width="+win_width+",height="+win_height+",resizable=no,left="+win_left+",top="+win_top+",scrollbars=yes");
}

