

function highlight(obj, status) {
	if(status == 'on') {obj.style.fontWeight='bold';obj.style.fontSize='12px';}
	else {obj.style.fontWeight='normal';obj.style.fontSize='11px';}
}
//function highlight(obj, status) {
//	if(status == 'on') {obj.className = 'bigtxt';}
//	else {obj.className = 'smalltxt'}
//}
prev_prod = "prodmain_dap";
prev_btn = "panel_1";
prev_btn_r = "panel_1_r";
prev_btn_l = "";
prev_class = "tab_l";
prev_left_btn_r = "";

function TablinkOver(btn, prodclass){
    var cur_div = document.getElementById(btn);
    onclass = prodclass+"_on";
    
    if(cur_div.className == onclass){
        cur_div.style.cursor = 'default';
    }else if(cur_div.className != onclass){
        cur_div.style.cursor='pointer';
        cur_div.className = onclass;
        if(btn == 'panel_1') {
            //document.getElementById('panel_1_l').className = "rbottom panel_corner_on";    
            document.getElementById('tab_corner_l').innerHTML = "<div id=\"tabs_bottom_on\"><b class=\"rbottom\"><b class=\"r10 blue_bg\"></b><b class=\"r9 blue_bg\"></b></b></div><b class=\"rbottom\"><b class=\"r12 blue_bg\"></b><b class=\"r11 blue_bg\"></b><b class=\"r10 blue_bg\"></b><b class=\"r9 blue_bg\"></b></b>"
        }
    }
}
function TablinkOut(btn, prodclass){
    var cur_div = document.getElementById(btn);
    offclass = prodclass+"_off";
    
    if((cur_div.className == onclass)  && (btn != prev_btn)){
        cur_div.className = offclass;
        if(btn == 'panel_1') {
            //document.getElementById('panel_1_l').className = "rbottom panel_corner_off";    
            document.getElementById('tab_corner_l').innerHTML = "<div id=\"tabs_bottom_off\"><b class=\"rbottom\"><b class=\"r10 blue_dark_bg\"></b><b class=\"r9 blue_dark_bg\"></b></b></div><b class=\"rbottom\"><b class=\"r12 blue_dark_bg\"></b><b class=\"r11 blue_dark_bg\"></b><b class=\"r10 blue_dark_bg\"></b><b class=\"r9 blue_dark_bg\"></b></b>"
        }
    }
}

function panelbtn(btn,prod,prodclass){
    button = "panel_"+btn;
    new_prod = "prodmain_"+prod;     
    onbtn = prodclass+"_on";
    offbtn = prev_class+"_off";
    
    onbtn_sideclass_r = 'tab_side_r_on';
    offbtn_sideclass_r = 'tab_side_r'; 
    btn_r = button+'_r';
    
    
    onbtn_sideclass_l = 'tab_side_l_on';
    offbtn_sideclass_l = 'tab_side_l'; 
    btn_l = button+'_l'; 
    
    if (btn != '1'){
        left_btn_r = "panel_"+eval(btn-1)+"_r";
    }else if ((btn == '1')){
        left_btn_r = "";
    }
   
    if (new_prod != prev_prod){ 
        document.getElementById(button).className = onbtn;
        document.getElementById(prev_btn).className = offbtn;
        
        if((prodclass == 'tab_l') && (document.getElementById(button).className == onbtn)){
           //document.getElementById('panel_1_l').className = "rbottom panel_corner_on";  
           document.getElementById('tab_corner_l').innerHTML = "<div id=\"tabs_bottom_on\"><b class=\"rbottom\"><b class=\"r10 blue_bg\"></b><b class=\"r9 blue_bg\"></b></b></div><b class=\"rbottom\"><b class=\"r12 blue_bg\"></b><b class=\"r11 blue_bg\"></b><b class=\"r10 blue_bg\"></b><b class=\"r9 blue_bg\"></b></b>"  
        }
        if(prev_class == 'tab_l'){
            //document.getElementById('panel_1_l').className = "rbottom panel_corner_off";
            document.getElementById('tab_corner_l').innerHTML = "<div id=\"tabs_bottom_off\"><b class=\"rbottom\"><b class=\"r10 blue_dark_bg\"></b><b class=\"r9 blue_dark_bg\"></b></b></div><b class=\"rbottom\"><b class=\"r12 blue_dark_bg\"></b><b class=\"r11 blue_dark_bg\"></b><b class=\"r10 blue_dark_bg\"></b><b class=\"r9 blue_dark_bg\"></b></b>"
        }     
            
        document.getElementById(new_prod).style.display = 'block';
        document.getElementById(prev_prod).style.display = 'none';
        
        prev_prod = new_prod;
        prev_btn = button;
        prev_class = prodclass;
        
    }else if (new_prod == prev_prod){
        TablinkOver(button, prodclass);
    }
}


function btnover(btn,divid){
    onlink = divid+"_over";
    if (document.getElementById(btn).className != onlink){
        document.getElementById(btn).className = onlink; 
    }
}
function btnout(btn,divid){
    onlink = divid+"_over";
    offlink = divid;
    
    if ((document.getElementById(btn).className == onlink) && (btn != prev_btn)){
    
        document.getElementById(btn).className = offlink;
    }
}

 function loadkamin() {
	document.getElementById("kamin").style.display = "block";
	document.getElementById("kaminimg").style.display = "none";	
 }


