/**
* autor: Pawel Zawada
* Funkcja pokazuje - ukrywa wskazanego w prarametrze diva
*/

function showHideDiv(id, legend)
    {
        var divstyle = new String();
        divstyle = document.getElementById(id).style.display;
        var class_name = document.getElementById(legend).className;
        if( (divstyle.toLowerCase()=="block" || divstyle == "") && class_name == "info")
        {
            document.getElementById(legend).className = "info_hide";
            document.getElementById(id).style.display = "none";
            
        }
        else
        {
            document.getElementById(id).style.display = "block";
            document.getElementById(legend).className = "info";
        }
    }
 
 /**
  * @author Paweł Zawada
  * @author Alfred Broda
  */
 function showHideInfoMenu(nr_buttons) {
 	var info_menu = $('cms_left_panel');
 	var content = $('content');
 	var center_panel = $('cms_center_panel_content');
 	var show_hide_icon = $('show_hide_icon');
 	var diff;
 	
 	if(info_menu.style.display == 'block' || info_menu.style.display == ''){
 		diff = info_menu.clientWidth;
 		content.style.width = (content.clientWidth+diff)+"px";
 		center_panel.style.width = (center_panel.clientWidth+diff)+"px";
 		//show_hide_icon.parentNode.style.width = show_hide_icon.parentNode.clientWidth+diff+"px"; 
 		info_menu.style.display = "none";
 		show_hide_icon.className = "show_menu_icon";
 		if(nr_buttons > 0) {
	 		for(i=0;i<=nr_buttons;i++) {
	 			document.getElementById('button'+i).className = "button_streach";
	 		}
 		}
 	} else {
 		info_menu.style.display = "block";
 		diff = info_menu.clientWidth;
 		content.style.width = (content.clientWidth-diff)+"px";
 		center_panel.style.width = (center_panel.clientWidth-diff)+"px";
 		//show_hide_icon.parentNode.style.width = show_hide_icon.parentNode.clientWidth-diff+"px";
 		show_hide_icon.className = "hide_menu_icon";
 		if(nr_buttons > 0) {
	 		for(i=0;i<=nr_buttons;i++) {
	 			document.getElementById('button'+i).className = "button";
	 		}
 		}
 	}
 }
 
 function startTabs()
 {
 	var tabber2 = new Yetii({id: 'tab-container-2',tabclass:'tab2' });
 	var tabber2_1 = new Yetii({id: 'tab-container-2_1',tabclass:'tab2_1' });
 	var tabber2_2 = new Yetii({id: 'tab-container-2_2',tabclass:'tab2_2' });
 	var tabber2_3 = new Yetii({id: 'tab-container-2_3',tabclass:'tab2_3' });
 	var tabber2_4 = new Yetii({id: 'tab-container-2_4',tabclass:'tab2_4' });
 }