﻿/*
author:char
date:2009.12.1
*/
function changeContent(){
    this.b1=document.getElementById("c_btn1");
    this.b2=document.getElementById("c_btn2");
    this.b3=document.getElementById("c_btn3");
    this.c1=document.getElementById("c_content1");
    this.c2=document.getElementById("c_content2");
    this.c3=document.getElementById("c_content3");
    this.b1.onclick=function(){
        cc.show1();
    }
    this.b2.onclick=function(){
        cc.show2();
    }
    this.b3.onclick=function(){
        cc.show3();
    }
    this.show1=function(){
        if(this.c1.style.display=="block")return;
        this.reset();
        this.b1.src="/images/spzsimg/btn1_1.gif";
        this.c1.style.display="block";
    }
    this.show2=function(){
        if(this.c2.style.display=="block")return;
        this.reset();
        this.b2.src="/images/spzsimg/btn2_1.gif";
        this.c2.style.display="block";
    }
    this.show3=function(){
        if(this.c3.style.display=="block")return;
        this.reset();
        this.b3.src="/images/spzsimg/btn3_1.gif";
        this.c3.style.display="block";
    }
    this.reset=function(){
        this.b1.src="/images/spzsimg/btn1_0.gif";
        this.b2.src="/images/spzsimg/btn2_0.gif";
        this.b3.src="/images/spzsimg/btn3_0.gif";
        this.c1.style.display="none";
        this.c2.style.display="none";
        this.c3.style.display="none";
    }
}
var cc=new changeContent();