// JavaScript Document
var dropDownMenu = Class.create();
dropDownMenu.prototype = {
    initialize:function(cls){
        this.cls = cls;
        this.init();
    },
    
    init:function(){
        $$(this.cls).each(function(o){
            o.observe("mouseover",function(){o.down(1).show()});
            o.observe("mouseout",function(){o.down(1).hide()});
        });
    }
};

document.observe("dom:loaded",function(){
    var newMenu = new dropDownMenu(".nav_li");
});






function changeTB(I,T)
{
	if(T=='A')
	{
		document.getElementById('NA'+I).className='v_pho actabnav';
		document.getElementById('NB'+I).className='v_tel';
		document.getElementById('TA'+I).style.display='';
		document.getElementById('TB'+I).style.display='none';
	}
	if(T=='B')
	{
		document.getElementById('NA'+I).className='v_pho';
		document.getElementById('NB'+I).className='v_tel actabnav';
		document.getElementById('TA'+I).style.display='none';
		document.getElementById('TB'+I).style.display='';
	}
}

