﻿/*
author:char
date:2009.12.1
*/
function topic_product(){
    this.b1=document.getElementById("t_b_1");
    this.b2=document.getElementById("t_b_2");
    this.c1=document.getElementById("t_c_1");
    this.c2=document.getElementById("t_c_2");
    this.init=function(){
        this.b1.onmouseover=function(){
            t_p.start(1);
        }
        this.b2.onmouseover=function(){
            t_p.start(2);
        }
    }
    this.start=function(id){
        if(id==1){
            this.b2.className="t_a_1";
            this.c2.style.display="none";
            this.b1.className="t_a_2";
            this.c1.style.display="block";
        }else if(id==2){
            this.b1.className="t_a_1";
            this.c1.style.display="none";
            this.b2.className="t_a_2";
            this.c2.style.display="block";
        }
    }
}
var t_p=new topic_product();
t_p.init();
