var pdrx = 1;

function drx(i)
    {
    if (i == pdrx)
        return;
    var pi = document.getElementById('drxi' + pdrx);
    var pt = document.getElementById('drxt' + pdrx);
    pi.style.display = 'none';
    pt.className = 'n';
    var ai = document.getElementById('drxi' + i);
    var at = document.getElementById('drxt' + i);
    ai.style.display = 'block';
    at.className = 'a';
    pdrx = i;
    }

function menu(button,button_color,text,text_color)
    {
    document.getElementById(button).style.backgroundColor=button_color;
    document.getElementById(text).style.color=text_color;
    }
	
function textcolor1(text,color)
    {
    document.getElementById(text).style.color=color;
    }

function praymeriz(praym1,prcolor1,praym2,prcolor2)
    {
    document.getElementById(praym1).style.backgroundColor=prcolor1;
    document.getElementById(praym2).style.color=prcolor2;
    }

function opacity1(id_op1,o_op1_value,e_op1_value,id_op1d,op1d_color)
    {
    document.getElementById(id_op1).style.opacity=o_op1_value;
    document.getElementById(id_op1).style.filter=e_op1_value;
    document.getElementById(id_op1d).style.color=op1d_color;
    }

function opacity2(id_op2,o_op2_value,e_op2_value)
    {
    document.getElementById(id_op2).style.opacity=o_op2_value;
    document.getElementById(id_op2).style.filter=e_op2_value;
    }

function opacity3(id_op3,o_op3_value,e_op3_value,id_op3b,op3b_color,id_op3t,op3t_color)
    {
    document.getElementById(id_op3).style.opacity=o_op3_value;
    document.getElementById(id_op3).style.filter=e_op3_value;
    document.getElementById(id_op3b).style.backgroundColor=op3b_color;
    document.getElementById(id_op3t).style.color=op3t_color;
	}
	
function opacity4(id_op4,o_op4_value,e_op4_value,id_op4t,op4t_color)
    {
    document.getElementById(id_op4).style.opacity=o_op4_value;
    document.getElementById(id_op4).style.filter=e_op4_value;
    document.getElementById(id_op4t).style.color=op4t_color;
	}
	
function link1(link1_bg,link1_bg_v,link1_clr,link1_clr_v)
    {
    document.getElementById(link1_bg).style.backgroundColor=link1_bg_v;
    document.getElementById(link1_clr).style.color=link1_clr_v;
	}

function link2(link2_clr,link2_clr_v)
    {
    document.getElementById(link2_clr).style.color=link2_clr_v;
	}

function visibility(id1,vis1,id2,vis2,id3,vis3,id4,vis4,id5,vis5)
    {
    document.getElementById(id1).style.visibility=vis1;
    document.getElementById(id2).style.visibility=vis2;
    document.getElementById(id3).style.visibility=vis3;
    document.getElementById(id4).style.visibility=vis4;
    document.getElementById(id5).style.visibility=vis5;
    }
	
function visibility2(v2id1,v2vis1,v2id2,v2vis2,v2id3,v2vis3,v2id4,v2vis4)
    {
    document.getElementById(v2id1).style.visibility=v2vis1;
    document.getElementById(v2id2).style.visibility=v2vis2;
    document.getElementById(v2id3).style.visibility=v2vis3;
    document.getElementById(v2id4).style.visibility=v2vis4;
    }
